[03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]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: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: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:42]accept exits with 9 [03:26:42]New connection [03:26:42]New thread 3066781028 created [03:26:42]Thread 3066924388 joined [03:26:42]Waiting for new connection... [03:26:42] Sock 9.Parse request [03:26:42]Sock 9.Check first char [03:26:42]Sock 9.First char is OK [03:26:42]request: POST /json_proto HTTP/1.0 [03:26:42]Method: POST [03:26:42]URL: /json_proto [03:26:42]Method is POST - this is cgi request [03:26:42]url: /json_proto [03:26:42]query_string will be loaded in cgi processing [03:26:42]execute_cgi json_proto POST (null) [03:26:42]execute_cgi path=json_proto method=POST [03:26:42]POST find Content-Length [03:26:42]Host: 172.17.39.131:8080 [03:26:42]Content-Length: 677 [03:26:42]Content-Type: application/json [03:26:42] [03:26:42]POST finish read [03:26:42]Found Content-Length = 677 [03:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [03:26:42]execute_script... [03:26: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)190996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [03:26:42]POST & json_proto [03:26:42]process_json_proto [03:26:42]json parsed OK: [03:26:42]protocol is kg_v1.0 [03:26:42]action value=close_receipt [03:26:42]process_action close_receipt [03:26:42]cmd_close_receipt [03:26:42]MH_GetDate [03:26:42]Write to MH i2c: F0 00 00 D0 15 D4 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: F0 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: F0 09 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: F0 09 00 D0 15 00 75 61 1C 67 86 57 24 65 9C [03:26:42]GetLastDocTimeStamp 1729909345 [03:26:42]current date 1729913205 [03:26:42]FM_GetShiftState [03:26:42]SAM_PROTO_GetShiftState [03:26:42]wFMCommunicate request_size=4 [03:26:42]MH_SAM_APDU [03:26:42]CAPDU: 80 13 01 00 [03:26:42]Write to MH i2c: E2 08 00 D1 15 80 13 01 00 00 00 00 00 63 [03:26:42]Write i2c OK [03:26:42]MH_I2C_Read... [03:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:42]Read from MH i2c: E2 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0E 00 [03:26:42]MH_I2C_Read... [03:26:42]Read from MH i2c: E2 0E 00 D1 15 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7E [03:26:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:26:42]wFMCommunicate OK [03:26:42]SAM_PROTO_GetShiftState done [03:26:42]FM_GetShiftState done [03:26:42]opened in 1729902166 [03:26:42]opened+sec_in_day 1729988566 [03:26:42]quantity*price = 30038 [03:26:42]sum+1 = 30039 [03:26: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 15 26.10.2024 03:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75023 ФПД: 93210146667963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T032645&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75023&fm=93210146667963&tin=02508201610067®Number=0000000000091691&sum=30000 [03:26:43]StoreToDocumentArchive [03:26:43]shift 512 fd 75023 [03:26:43]save to /storage/0512/doc_00075023 [03:26:43]save last doc name /storage/0512/doc_00075023 to /storage/kkm_last_doc_name [03:26:43]save OK [03:26:43]Clear old archive folders... [03:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:26:43]tlvbuf is B6F519B0 [03:26:43]SAM_PROTO_ClearQueue [03:26:43]wFMCommunicate request_size=4 [03:26:43]MH_SAM_APDU [03:26:43]CAPDU: 80 09 00 00 [03:26:43]Write to MH i2c: E2 08 00 DE 15 80 09 00 00 00 00 00 00 65 [03:26:43]Write i2c OK [03:26:43]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [03:26:44]RAPDU: 90 00 [03:26:44]wFMCommunicate OK [03:26:44]SAM_PROTO_ClearQueue done [03:26:44]KKMCreateOFDPacket [03:26:44]OFDProtocolAddRootSTLVToBuf [03:26:44]FM_MakeSignedData [03:26:44]FM_MakeSignedData [03:26:44]SAM_PROTO_SignData [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 0D 01 02 [03:26:44]Write to MH i2c: E2 08 00 DF 15 80 0D 01 02 00 00 00 00 6D [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [03:26:44]RAPDU: 90 00 [03:26:44]wFMCommunicate OK [03:26:44]wFMCommunicate request_size=255 [03:26:44]MH_SAM_APDU [03:26: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 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 0F 00 00 00 F4 03 04 00 75 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 25 01 00 35 04 06 00 54 [03:26:44]Write to MH i2c: E2 02 01 E0 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 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 0F 00 00 00 F4 03 04 00 75 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 25 01 00 35 04 06 00 54 00 00 E9 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]OFD Sender: No OFD packet to send [03:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [03:26:44]RAPDU: 90 00 [03:26:44]wFMCommunicate OK [03:26:44]wFMCommunicate request_size=10 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 0D 02 02 05 C6 2D AE 7D BB [03:26:44]Write to MH i2c: E2 0D 00 E1 15 80 0D 02 02 05 00 C6 2D AE 7D BB 00 00 53 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [03:26:44]RAPDU: 90 00 [03:26:44]wFMCommunicate OK [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 0D 03 02 [03:26:44]Write to MH i2c: E2 08 00 E2 15 80 0D 03 02 00 00 00 00 72 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 0B 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 0B 00 E2 15 00 F1 76 F4 FD E1 56 E3 24 90 00 09 [03:26:44]RAPDU: F1 76 F4 FD E1 56 E3 24 90 00 [03:26:44]wFMCommunicate OK [03:26:44]SAM_PROTO_SignData done [03:26:44]FM_MakeSignedData done [03:26:44]CreateOFDProtocolMessage [03:26:44]wFMCommunicate request_size=4 [03:26:44]MH_SAM_APDU [03:26:44]CAPDU: 80 11 00 00 [03:26:44]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:44]Read from MH i2c: E2 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 17 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CA [03:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:26:44]wFMCommunicate OK [03:26:44]CreateOFDProtocolMessage done [03:26:44]OFDSenderStorePacket 75023 [03:26:44]StoreOFDPacket docnum=75023 [03:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 BD 07 01 B5 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 75 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 25 01 00 35 04 06 00 54 C6 2D AE 7D BB F1 76 F4 FD E1 56 E3 24 [03:26:44]CheckFolder [03:26:44]dirname=/storage/ofd_packets [03:26:44]CheckFolder done [03:26:44]ProducePacketName [03:26:44]name=ofd_packets/00075023 [03:26:44]NVStorageSaveData ofd_packets/00075023 [03:26:44]File name is /storage/ofd_packets/00075023 [03:26:44]Write 301 bytes [03:26:44]NVStorageSaveData done [03:26:44]OFDSenderStorePacket done [03:26:44]KKMCreateOFDPacket done [03:26:44]NVStorageSaveData kkm_last_timestamp [03:26:44]File name is /storage/kkm_last_timestamp [03:26:44]Write 4 bytes [03:26:44]NVStorageSaveData done [03:26:44]ExternCall_PrintAddStr [03:26:44]wPrintStart [03:26:44]Write to MH i2c: 01 00 00 E4 15 F9 [03:26:44]Write i2c OK [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 07 00 [03:26:44]MH_I2C_Read... [03:26:44]Read from MH i2c: 01 07 00 E4 15 00 00 00 00 00 FF 0F 0E [03:26:44]RasterBufferAndPrint [03:26:44]line Счет N : (1)190996 [03:26:44]line ИНН: 02508201610067 [03:26:44]line Контрольно-Кассовый Чек [03:26:44]line ПРОДАЖА [03:26:44]line ТРК (МРК, ГНК) : 21 [03:26:44]line Товар: 2710124130 [03:26:44]line Аи-92-К-5 [03:26:44]line 4.490 * 66.90 [03:26:44]line = 300.38 [03:26:44]line НДС 12% НСП 1% [03:26:44]line > о реализуемом товаре [03:26:44]line ОКРУГЛЕНИЕ: -0.38 [03:26:44]line ИТОГО: 300.00 [03:26:44]line Внесено: 300.00 [03:26:44]line СДАЧА: 0.00 [03:26:44]line НСП 1% : 2.66 [03:26:44]line НДС 12% : 31.90 [03:26:44]line Наличными: 300.00 [03:26:44]line Безнал.: 0.00 [03:26:44]line Место: АЗС № 142 "Партнер Нефть" [03:26:44]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [03:26:44]line СНО: Общий режим [03:26:44]line Чек 15 26.10.2024 03:26 [03:26:44]line Смена: 512 ФФД: 1.0 [03:26:44]line ЗНМ: 0300000089 [03:26:44]line РНМ: 0000000000091691 [03:26:44]line Версия ККМ: 001 [03:26:44]line ФМ: 0000000000871795 [03:26:44]line ФД: 75023 [03:26:44]line ФПД: 93210146667963 [03:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T032645&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75023&fm=93210146667963&tin=02508201610067®Number=0000000000091691&sum=30000 [03:26:44]OFD Sender: Processing packet 75023 [packets to send 13, broken 12] [03:26:44]ProducePacketName [03:26:44]name=ofd_packets/00075023 [03:26:44]OFD Sender: To server: pG, [03:26:44]CommunicateWithHost lk.salyk.kg:30040 [03:26:44]ConnectInit lk.salyk.kg [03:26:44]written 0, free lines is 4095 [03:26:45]Connected sock=10 [03:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 BD 07 01 B5 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 75 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 25 01 00 35 04 06 00 54 C6 2D AE 7D BB F1 76 F4 FD E1 56 E3 24 [03:26:45]Write to MH i2c: 01 00 00 0F 16 25 [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: 01 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: 01 07 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 B6 0C EE [03:26:45]RasterBufferAndPrint [03:26:45]line [03:26:45]line [03:26:45]line [03:26:45]line [03:26:45]line [03:26:45]written 0, free lines is 3260 [03:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C1 2C 47 00 60 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 0F 25 01 00 F4 03 04 00 F3 08 1C 67 B6 04 01 00 00 EB 88 E4 3D 9F CF E2 A0 [03:26:45]CommunicateWithHost err = 0 [03:26:45]CheckOFDResponse [03:26:45]1017 (14) - 77093643461234 [03:26:45]1041 (16) - 0000000000871795 [03:26:45]1040 (4) - 75023 [03:26:45]1012 (4) - 25.10.2024 21:09 [03:26:45]1206 (1) - 0 [03:26:45]OFD Sender: Remove packet 75023 [03:26:45]ProducePacketName [03:26:45]name=ofd_packets/00075023 [03:26:45]NVStorageDeleteData [03:26:45]MH_Cut [03:26:45]Write to MH i2c: D1 01 00 16 16 01 FE [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: D1 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: D1 01 00 [03:26:45]MH_I2C_Read... [03:26:45]Read from MH i2c: D1 01 00 16 16 00 FD [03:26:45]Write to MH i2c: 01 00 00 17 16 2D [03:26:45]Write i2c OK [03:26:45]MH_I2C_Read... [03:26:45]OFD Sender: No OFD packet to send [03:26:46]*** Cut start [03:26:46]*** Partial cut [03:26:46]*** CUTSNS_PIN = 1 [03:26:46]*** CUTSNS_PIN = 0 [03:26:46]*** Brake cut motor [03:26:46]Read from MH i2c: 01 [03:26:46]MH_I2C_Read... [03:26:46]*** Stop cut motor [03:26:46]*** Cut end [03:26:46]Read from MH i2c: 01 07 00 [03:26:46]MH_I2C_Read... [03:26:46]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [03:26:46]process_action close_receipt done [03:26:46]requested_data is exist [03:26:46]produce_requested_data [03:26:46]requested_item fm.sn is exist - process it [03:26:46]wFMCommunicate request_size=4 [03:26:46]MH_SAM_APDU [03:26:46]CAPDU: 80 11 00 00 [03:26:46]Write to MH i2c: E2 08 00 18 16 80 11 00 00 00 00 00 00 A8 [03:26:46]Write i2c OK [03:26:46]MH_I2C_Read... [03:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:46]Read from MH i2c: E2 [03:26:46]MH_I2C_Read... [03:26:46]Read from MH i2c: E2 17 00 [03:26:46]MH_I2C_Read... [03:26:46]Read from MH i2c: E2 17 00 18 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 00 [03:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:26:46]wFMCommunicate OK [03:26:46]requested_item fd.num is exist - process it [03:26:46]SAM_PROTO_GetFieldsCounters [03:26:46]wFMCommunicate request_size=4 [03:26:46]MH_SAM_APDU [03:26:46]CAPDU: 80 13 00 00 [03:26:46]Write to MH i2c: E2 08 00 19 16 80 13 00 00 00 00 00 00 AB [03:26:46]Write i2c OK [03:26:46]MH_I2C_Read... [03:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:46]Read from MH i2c: E2 [03:26:46]MH_I2C_Read... [03:26:46]Read from MH i2c: E2 62 00 [03:26:46]MH_I2C_Read... [03:26:46]Read from MH i2c: E2 62 00 19 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0F 25 01 00 0E 04 04 00 00 02 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 36 [03:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 0F 25 01 00 0E 04 04 00 00 02 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 [03:26:47]wFMCommunicate OK [03:26:47]SAM_PROTO_GetFieldsCounters done [03:26:47]requested_item shift.num is exist - process it [03:26:47]requested_item shift.opened is exist - process it [03:26:47]req_shift_opened [03:26:47]FM_GetShiftState [03:26:47]SAM_PROTO_GetShiftState [03:26:47]wFMCommunicate request_size=4 [03:26:47]MH_SAM_APDU [03:26:47]CAPDU: 80 13 01 00 [03:26:47]Write to MH i2c: E2 08 00 1A 16 80 13 01 00 00 00 00 00 AD [03:26:47]Write i2c OK [03:26:47]MH_I2C_Read... [03:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:47]Read from MH i2c: E2 [03:26:47]MH_I2C_Read... [03:26:47]Read from MH i2c: E2 0E 00 [03:26:47]MH_I2C_Read... [03:26:47]Read from MH i2c: E2 0E 00 1A 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C8 [03:26:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:26:47]wFMCommunicate OK [03:26:47]SAM_PROTO_GetShiftState done [03:26:47]FM_GetShiftState done [03:26:47]req_shift_opened done [03:26:47]requested_item shift.open_date is exist - process it [03:26:47]req_shift_open_date [03:26:47]req_shift_open_date done [03:26:47]produce_requested_data done [03:26:47]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75023,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [03:26:47]process_action_free close_receipt [03:26:47]json_value_free [03:26:47]json_value_free done [03:26:47]process_json_proto returns [03:26:47]Send response to host [03:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75023,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [03:26:47]free response buf [03:26:47]execute_script done [03:26:47]execute_script returns [03:26:47]free content buf [03:26:47]Sock 9.Close socket [03:26:47]Sock 9.Thread stoped [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:26:57]accept exits with 8 [03:26:57]New connection [03:26:57]New thread 3066924388 created [03:26:57]Thread 3066781028 joined [03:26:57]Waiting for new connection... [03:26:57] Sock 8.Parse request [03:26:57]Sock 8.Check first char [03:26:57]Sock 8.First char is OK [03:26:57]request: POST /json_proto HTTP/1.0 [03:26:57]Method: POST [03:26:57]URL: /json_proto [03:26:57]Method is POST - this is cgi request [03:26:57]url: /json_proto [03:26:57]query_string will be loaded in cgi processing [03:26:57]execute_cgi json_proto POST (null) [03:26:57]execute_cgi path=json_proto method=POST [03:26:57]POST find Content-Length [03:26:57]Host: 172.17.39.131:8080 [03:26:57]Content-Length: 678 [03:26:57]Content-Type: application/json [03:26:57] [03:26:57]POST finish read [03:26:57]Found Content-Length = 678 [03:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 1.410, "sum" : 54.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 54.00, "payments": [ { "type": 0, "sum" : 54.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:57]execute_script... [03:26:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 1.410, "sum" : 54.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 54.00, "payments": [ { "type": 0, "sum" : 54.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:57]POST & json_proto [03:26:57]process_json_proto [03:26:57]json parsed OK: [03:26:57]protocol is kg_v1.0 [03:26:57]action value=close_receipt [03:26:57]process_action close_receipt [03:26:57]cmd_close_receipt [03:26:57]MH_GetDate [03:26:57]Write to MH i2c: F0 00 00 1B 16 20 [03:26:57]Write i2c OK [03:26:57]MH_I2C_Read... [03:26:57]Read from MH i2c: F0 [03:26:57]MH_I2C_Read... [03:26:57]Read from MH i2c: F0 09 00 [03:26:57]MH_I2C_Read... [03:26:57]Read from MH i2c: F0 09 00 1B 16 00 83 61 1C 67 86 57 24 65 F6 [03:26:57]GetLastDocTimeStamp 1729913205 [03:26:57]current date 1729913219 [03:26:57]FM_GetShiftState [03:26:57]SAM_PROTO_GetShiftState [03:26:57]wFMCommunicate request_size=4 [03:26:57]MH_SAM_APDU [03:26:57]CAPDU: 80 13 01 00 [03:26:57]Write to MH i2c: E2 08 00 1C 16 80 13 01 00 00 00 00 00 AF [03:26:57]Write i2c OK [03:26:57]MH_I2C_Read... [03:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:57]Read from MH i2c: E2 [03:26:57]MH_I2C_Read... [03:26:57]Read from MH i2c: E2 0E 00 [03:26:57]MH_I2C_Read... [03:26:57]Read from MH i2c: E2 0E 00 1C 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CA [03:26:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:26:57]wFMCommunicate OK [03:26:57]SAM_PROTO_GetShiftState done [03:26:57]FM_GetShiftState done [03:26:57]opened in 1729902166 [03:26:57]opened+sec_in_day 1729988566 [03:26:57]quantity*price = 5484 [03:26:57]sum+1 = 5486 [03:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 54.00 Внесено: 1000.00 СДАЧА: 946.00 НСП 1% : 0.48 НДС 12% : 5.82 Наличными: 54.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 16 26.10.2024 03:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75024 ФПД: 190035867106872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T032659&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75024&fm=190035867106872&tin=02508201610067®Number=0000000000091691&sum=5400 [03:26:58]StoreToDocumentArchive [03:26:58]shift 512 fd 75024 [03:26:58]save to /storage/0512/doc_00075024 [03:26:58]save last doc name /storage/0512/doc_00075024 to /storage/kkm_last_doc_name [03:26:58]save OK [03:26:58]Clear old archive folders... [03:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:26:58]tlvbuf is 0084DFF0 [03:26:58]SAM_PROTO_ClearQueue [03:26:58]wFMCommunicate request_size=4 [03:26:58]MH_SAM_APDU [03:26:58]CAPDU: 80 09 00 00 [03:26:58]Write to MH i2c: E2 08 00 29 16 80 09 00 00 00 00 00 00 B1 [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [03:26:58]RAPDU: 90 00 [03:26:58]wFMCommunicate OK [03:26:58]SAM_PROTO_ClearQueue done [03:26:58]KKMCreateOFDPacket [03:26:58]OFDProtocolAddRootSTLVToBuf [03:26:58]FM_MakeSignedData [03:26:58]FM_MakeSignedData [03:26:58]SAM_PROTO_SignData [03:26:58]wFMCommunicate request_size=4 [03:26:58]MH_SAM_APDU [03:26:58]CAPDU: 80 0D 01 02 [03:26:58]Write to MH i2c: E2 08 00 2A 16 80 0D 01 02 00 00 00 00 B9 [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [03:26:58]RAPDU: 90 00 [03:26:58]wFMCommunicate OK [03:26:58]wFMCommunicate request_size=255 [03:26:58]MH_SAM_APDU [03:26: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 05 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 02 00 00 00 00 07 04 06 00 18 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 83 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 25 01 00 35 04 06 00 AC D6 [03:26:58]Write to MH i2c: E2 02 01 2B 16 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 05 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 02 00 00 00 00 07 04 06 00 18 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 83 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 25 01 00 35 04 06 00 AC D6 00 00 BB [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [03:26:58]RAPDU: 90 00 [03:26:58]wFMCommunicate OK [03:26:58]wFMCommunicate request_size=9 [03:26:58]MH_SAM_APDU [03:26:58]CAPDU: 80 0D 02 02 04 2C 5A 7E 38 [03:26:58]Write to MH i2c: E2 0C 00 2C 16 80 0D 02 02 04 00 2C 5A 7E 38 00 00 00 [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [03:26:58]RAPDU: 90 00 [03:26:58]wFMCommunicate OK [03:26:58]wFMCommunicate request_size=4 [03:26:58]MH_SAM_APDU [03:26:58]CAPDU: 80 0D 03 02 [03:26:58]Write to MH i2c: E2 08 00 2D 16 80 0D 03 02 00 00 00 00 BE [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 0B 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 0B 00 2D 16 00 1F 12 DD 7C CE A4 3A A7 90 00 9C [03:26:58]RAPDU: 1F 12 DD 7C CE A4 3A A7 90 00 [03:26:58]wFMCommunicate OK [03:26:58]SAM_PROTO_SignData done [03:26:58]FM_MakeSignedData done [03:26:58]CreateOFDProtocolMessage [03:26:58]wFMCommunicate request_size=4 [03:26:58]MH_SAM_APDU [03:26:58]CAPDU: 80 11 00 00 [03:26:58]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:58]Read from MH i2c: E2 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 17 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 16 [03:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:26:58]wFMCommunicate OK [03:26:58]CreateOFDProtocolMessage done [03:26:58]OFDSenderStorePacket 75024 [03:26:58]StoreOFDPacket docnum=75024 [03:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CE 56 06 01 D6 71 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 05 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 02 00 00 00 00 07 04 06 00 18 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 83 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 25 01 00 35 04 06 00 AC D6 2C 5A 7E 38 1F 12 DD 7C CE A4 3A A7 [03:26:58]CheckFolder [03:26:58]dirname=/storage/ofd_packets [03:26:58]CheckFolder done [03:26:58]ProducePacketName [03:26:58]name=ofd_packets/00075024 [03:26:58]NVStorageSaveData ofd_packets/00075024 [03:26:58]File name is /storage/ofd_packets/00075024 [03:26:58]Write 300 bytes [03:26:58]NVStorageSaveData done [03:26:58]OFDSenderStorePacket done [03:26:58]KKMCreateOFDPacket done [03:26:58]NVStorageSaveData kkm_last_timestamp [03:26:58]File name is /storage/kkm_last_timestamp [03:26:58]Write 4 bytes [03:26:58]NVStorageSaveData done [03:26:58]ExternCall_PrintAddStr [03:26:58]wPrintStart [03:26:58]Write to MH i2c: 01 00 00 2F 16 45 [03:26:58]Write i2c OK [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: 01 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: 01 07 00 [03:26:58]MH_I2C_Read... [03:26:58]Read from MH i2c: 01 07 00 2F 16 00 00 00 00 00 FF 0F 5A [03:26:58]RasterBufferAndPrint [03:26:58]line Счет N : (1)190995 [03:26:58]line ИНН: 02508201610067 [03:26:58]line Контрольно-Кассовый Чек [03:26:58]line ПРОДАЖА [03:26:58]line ТРК (МРК, ГНК) : 51 [03:26:58]line Товар: 2711190000 [03:26:58]line ГАЗ-К-3 [03:26:58]line 1.410 * 38.90 [03:26:58]line = 54.85 [03:26:58]line НДС 12% НСП 1% [03:26:58]line > о реализуемом товаре [03:26:58]line ОКРУГЛЕНИЕ: -0.85 [03:26:58]line ИТОГО: 54.00 [03:26:58]line Внесено: 1000.00 [03:26:58]line СДАЧА: 946.00 [03:26:58]line НСП 1% : 0.48 [03:26:58]line НДС 12% : 5.82 [03:26:58]line Наличными: 54.00 [03:26:58]line Безнал.: 0.00 [03:26:58]line Место: АЗС № 142 "Партнер Нефть" [03:26:58]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [03:26:58]line СНО: Общий режим [03:26:58]line Чек 16 26.10.2024 03:26 [03:26:58]line Смена: 512 ФФД: 1.0 [03:26:58]line ЗНМ: 0300000089 [03:26:58]line РНМ: 0000000000091691 [03:26:58]line Версия ККМ: 001 [03:26:58]line ФМ: 0000000000871795 [03:26:58]line ФД: 75024 [03:26:58]line ФПД: 190035867106872 [03:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T032659&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75024&fm=190035867106872&tin=02508201610067®Number=0000000000091691&sum=5400 [03:26:58]OFD Sender: Processing packet 75024 [packets to send 13, broken 12] [03:26:58]ProducePacketName [03:26:58]name=ofd_packets/00075024 [03:26:58]OFD Sender: To server: pG, [03:26:58]CommunicateWithHost lk.salyk.kg:30040 [03:26:58]ConnectInit lk.salyk.kg [03:26:58]written 0, free lines is 4095 [03:26:59]Connected sock=10 [03:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 CE 56 06 01 D6 71 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 05 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6D 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 02 00 00 00 00 07 04 06 00 18 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 83 61 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 10 25 01 00 35 04 06 00 AC D6 2C 5A 7E 38 1F 12 DD 7C CE A4 3A A7 [03:26:59]Write to MH i2c: 01 00 00 5A 16 70 [03:26:59]Write i2c OK [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: 01 [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: 01 07 00 [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: 01 07 00 5A 16 00 00 00 00 00 B9 0C 3C [03:26:59]RasterBufferAndPrint [03:26:59]line [03:26:59]line [03:26:59]line [03:26:59]line [03:26:59]line [03:26:59]written 0, free lines is 3263 [03:26:59]MH_Cut [03:26:59]Write to MH i2c: D1 01 00 61 16 01 49 [03:26:59]Write i2c OK [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: D1 [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: D1 01 00 [03:26:59]MH_I2C_Read... [03:26:59]Read from MH i2c: D1 01 00 61 16 00 48 [03:26:59]Write to MH i2c: 01 00 00 62 16 78 [03:26:59]Write i2c OK [03:26:59]MH_I2C_Read... [03:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CC DD 47 00 1D 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 38 37 31 37 39 35 10 04 04 00 10 25 01 00 F4 03 04 00 01 09 1C 67 B6 04 01 00 00 D1 A8 36 C9 29 59 09 19 [03:26:59]CommunicateWithHost err = 0 [03:26:59]CheckOFDResponse [03:26:59]1017 (14) - 77093643461234 [03:26:59]1041 (16) - 0000000000871795 [03:26:59]1040 (4) - 75024 [03:26:59]1012 (4) - 25.10.2024 21:09 [03:26:59]1206 (1) - 0 [03:26:59]OFD Sender: Remove packet 75024 [03:26:59]ProducePacketName [03:26:59]name=ofd_packets/00075024 [03:26:59]NVStorageDeleteData [03:26:59]OFD Sender: No OFD packet to send [03:27:00]*** Cut start [03:27:00]*** Partial cut [03:27:00]*** CUTSNS_PIN = 1 [03:27:00]*** CUTSNS_PIN = 0 [03:27:00]*** Brake cut motor [03:27:00]Read from MH i2c: 01 [03:27:00]MH_I2C_Read... [03:27:00]*** Stop cut motor [03:27:00]*** Cut end [03:27:00]Read from MH i2c: 01 07 00 [03:27:00]MH_I2C_Read... [03:27:00]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [03:27:00]process_action close_receipt done [03:27:00]requested_data is exist [03:27:00]produce_requested_data [03:27:00]requested_item fm.sn is exist - process it [03:27:00]wFMCommunicate request_size=4 [03:27:00]MH_SAM_APDU [03:27:00]CAPDU: 80 11 00 00 [03:27:00]Write to MH i2c: E2 08 00 63 16 80 11 00 00 00 00 00 00 F3 [03:27:00]Write i2c OK [03:27:00]MH_I2C_Read... [03:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:27:00]Read from MH i2c: E2 [03:27:00]MH_I2C_Read... [03:27:00]Read from MH i2c: E2 17 00 [03:27:00]MH_I2C_Read... [03:27:00]Read from MH i2c: E2 17 00 63 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4B [03:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:27:00]wFMCommunicate OK [03:27:00]requested_item fd.num is exist - process it [03:27:00]SAM_PROTO_GetFieldsCounters [03:27:00]wFMCommunicate request_size=4 [03:27:00]MH_SAM_APDU [03:27:00]CAPDU: 80 13 00 00 [03:27:00]Write to MH i2c: E2 08 00 64 16 80 13 00 00 00 00 00 00 F6 [03:27:00]Write i2c OK [03:27:00]MH_I2C_Read... [03:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:27:01]Read from MH i2c: E2 [03:27:01]MH_I2C_Read... [03:27:01]Read from MH i2c: E2 62 00 [03:27:01]MH_I2C_Read... [03:27:01]Read from MH i2c: E2 62 00 64 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 10 25 01 00 0E 04 04 00 00 02 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 85 [03:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 10 25 01 00 0E 04 04 00 00 02 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:27:01]wFMCommunicate OK [03:27:01]SAM_PROTO_GetFieldsCounters done [03:27:01]requested_item shift.num is exist - process it [03:27:01]requested_item shift.opened is exist - process it [03:27:01]req_shift_opened [03:27:01]FM_GetShiftState [03:27:01]SAM_PROTO_GetShiftState [03:27:01]wFMCommunicate request_size=4 [03:27:01]MH_SAM_APDU [03:27:01]CAPDU: 80 13 01 00 [03:27:01]Write to MH i2c: E2 08 00 65 16 80 13 01 00 00 00 00 00 F8 [03:27:01]Write i2c OK [03:27:01]MH_I2C_Read... [03:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:27:01]Read from MH i2c: E2 [03:27:01]MH_I2C_Read... [03:27:01]Read from MH i2c: E2 0E 00 [03:27:01]MH_I2C_Read... [03:27:01]Read from MH i2c: E2 0E 00 65 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 13 [03:27:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:27:01]wFMCommunicate OK [03:27:01]SAM_PROTO_GetShiftState done [03:27:01]FM_GetShiftState done [03:27:01]req_shift_opened done [03:27:01]requested_item shift.open_date is exist - process it [03:27:01]req_shift_open_date [03:27:01]req_shift_open_date done [03:27:01]produce_requested_data done [03:27:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75024,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [03:27:01]process_action_free close_receipt [03:27:01]json_value_free [03:27:01]json_value_free done [03:27:01]process_json_proto returns [03:27:01]Send response to host [03:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75024,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [03:27:01]free response buf [03:27:01]execute_script done [03:27:01]execute_script returns [03:27:01]free content buf [03:27:01]Sock 8.Close socket [03:27:01]Sock 8.Thread stoped [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:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:03]accept exits with 9 [03:30:03]New connection [03:30:03]New thread 3066781028 created [03:30:03]Thread 3066924388 joined [03:30:03]Waiting for new connection... [03:30:03] Sock 9.Parse request [03:30:03]Sock 9.Check first char [03:30:03]Sock 9.First char is OK [03:30:03]request: POST /json_proto HTTP/1.0 [03:30:03]Method: POST [03:30:03]URL: /json_proto [03:30:03]Method is POST - this is cgi request [03:30:03]url: /json_proto [03:30:03]query_string will be loaded in cgi processing [03:30:03]execute_cgi json_proto POST (null) [03:30:03]execute_cgi path=json_proto method=POST [03:30:03]POST find Content-Length [03:30:03]Host: 172.17.39.131:8080 [03:30:03]Content-Length: 681 [03:30:03]Content-Type: application/json [03:30:03] [03:30:03]POST finish read [03:30:03]Found Content-Length = 681 [03:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 24.320, "sum" : 946.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 946.00, "total" : 946.00, "payments": [ { "type": 0, "sum" : 946.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:03]execute_script... [03:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 24.320, "sum" : 946.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 946.00, "total" : 946.00, "payments": [ { "type": 0, "sum" : 946.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:03]POST & json_proto [03:30:03]process_json_proto [03:30:03]json parsed OK: [03:30:03]protocol is kg_v1.0 [03:30:03]action value=close_receipt [03:30:03]process_action close_receipt [03:30:03]cmd_close_receipt [03:30:03]MH_GetDate [03:30:03]Write to MH i2c: F0 00 00 66 16 6B [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 09 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: F0 09 00 66 16 00 3E 62 1C 67 86 57 24 65 FD [03:30:03]GetLastDocTimeStamp 1729913219 [03:30:03]current date 1729913406 [03:30:03]FM_GetShiftState [03:30:03]SAM_PROTO_GetShiftState [03:30:03]wFMCommunicate request_size=4 [03:30:03]MH_SAM_APDU [03:30:03]CAPDU: 80 13 01 00 [03:30:03]Write to MH i2c: E2 08 00 67 16 80 13 01 00 00 00 00 00 FA [03:30:03]Write i2c OK [03:30:03]MH_I2C_Read... [03:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:03]Read from MH i2c: E2 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 [03:30:03]MH_I2C_Read... [03:30:03]Read from MH i2c: E2 0E 00 67 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 15 [03:30:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:30:03]wFMCommunicate OK [03:30:03]SAM_PROTO_GetShiftState done [03:30:03]FM_GetShiftState done [03:30:03]opened in 1729902166 [03:30:03]opened+sec_in_day 1729988566 [03:30:03]quantity*price = 94604 [03:30:03]sum+1 = 94606 [03:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 946.00 Внесено: 946.00 СДАЧА: 0.00 НСП 1% : 8.37 НДС 12% : 100.46 Наличными: 946.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 17 26.10.2024 03:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75025 ФПД: 177767359070360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T033006&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75025&fm=177767359070360&tin=02508201610067®Number=0000000000091691&sum=94600 [03:30:04]StoreToDocumentArchive [03:30:04]shift 512 fd 75025 [03:30:04]save to /storage/0512/doc_00075025 [03:30:04]save last doc name /storage/0512/doc_00075025 to /storage/kkm_last_doc_name [03:30:04]save OK [03:30:04]Clear old archive folders... [03:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:30:04]tlvbuf is B6EBA8E0 [03:30:04]SAM_PROTO_ClearQueue [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 09 00 00 [03:30:04]Write to MH i2c: E2 08 00 74 16 80 09 00 00 00 00 00 00 FC [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]SAM_PROTO_ClearQueue done [03:30:04]KKMCreateOFDPacket [03:30:04]OFDProtocolAddRootSTLVToBuf [03:30:04]FM_MakeSignedData [03:30:04]FM_MakeSignedData [03:30:04]SAM_PROTO_SignData [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 01 02 [03:30:04]Write to MH i2c: E2 08 00 75 16 80 0D 01 02 00 00 00 00 04 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]wFMCommunicate request_size=255 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8D 71 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 71 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 27 00 00 00 00 07 04 06 00 88 71 01 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 3E 62 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 25 01 00 35 04 06 00 A1 AD [03:30:04]Write to MH i2c: E2 02 01 76 16 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8D 71 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 71 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 27 00 00 00 00 07 04 06 00 88 71 01 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 3E 62 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 25 01 00 35 04 06 00 A1 AD 00 00 B4 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]wFMCommunicate request_size=9 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 02 02 04 B0 4A 40 98 [03:30:04]Write to MH i2c: E2 0C 00 77 16 80 0D 02 02 04 00 B0 4A 40 98 00 00 E1 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [03:30:04]RAPDU: 90 00 [03:30:04]wFMCommunicate OK [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 0D 03 02 [03:30:04]Write to MH i2c: E2 08 00 78 16 80 0D 03 02 00 00 00 00 09 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 0B 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 0B 00 78 16 00 E9 B0 99 4B 01 C9 58 90 90 00 39 [03:30:04]RAPDU: E9 B0 99 4B 01 C9 58 90 90 00 [03:30:04]wFMCommunicate OK [03:30:04]SAM_PROTO_SignData done [03:30:04]FM_MakeSignedData done [03:30:04]CreateOFDProtocolMessage [03:30:04]wFMCommunicate request_size=4 [03:30:04]MH_SAM_APDU [03:30:04]CAPDU: 80 11 00 00 [03:30:04]Write to MH i2c: E2 08 00 79 16 80 11 00 00 00 00 00 00 09 [03:30:04]Write i2c OK [03:30:04]MH_I2C_Read... [03:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:04]Read from MH i2c: E2 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 17 00 [03:30:04]MH_I2C_Read... [03:30:04]Read from MH i2c: E2 17 00 79 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 61 [03:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:30:04]wFMCommunicate OK [03:30:04]CreateOFDProtocolMessage done [03:30:04]OFDSenderStorePacket 75025 [03:30:04]StoreOFDPacket docnum=75025 [03:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 1C F3 06 01 B8 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8D 71 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 71 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 27 00 00 00 00 07 04 06 00 88 71 01 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 3E 62 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 25 01 00 35 04 06 00 A1 AD B0 4A 40 98 E9 B0 99 4B 01 C9 58 90 [03:30:04]CheckFolder [03:30:04]dirname=/storage/ofd_packets [03:30:04]CheckFolder done [03:30:04]ProducePacketName [03:30:04]name=ofd_packets/00075025 [03:30:04]NVStorageSaveData ofd_packets/00075025 [03:30:04]File name is /storage/ofd_packets/00075025 [03:30:04]Write 300 bytes [03:30:04]NVStorageSaveData done [03:30:04]OFDSenderStorePacket done [03:30:04]KKMCreateOFDPacket done [03:30:04]NVStorageSaveData kkm_last_timestamp [03:30:04]File name is /storage/kkm_last_timestamp [03:30:04]Write 4 bytes [03:30:04]NVStorageSaveData done [03:30:04]ExternCall_PrintAddStr [03:30:04]wPrintStart [03:30:04]Write to MH i2c: 01 00 00 7A 16 90 [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 FF 0F A5 [03:30:05]RasterBufferAndPrint [03:30:05]line Счет N : (1)190997 [03:30:05]line ИНН: 02508201610067 [03:30:05]line Контрольно-Кассовый Чек [03:30:05]line ПРОДАЖА [03:30:05]line ТРК (МРК, ГНК) : 51 [03:30:05]line Товар: 2711190000 [03:30:05]line ГАЗ-К-3 [03:30:05]line 24.320 * 38.90 [03:30:05]line = 946.05 [03:30:05]line НДС 12% НСП 1% [03:30:05]line > о реализуемом товаре [03:30:05]line ОКРУГЛЕНИЕ: -0.05 [03:30:05]line ИТОГО: 946.00 [03:30:05]line Внесено: 946.00 [03:30:05]line СДАЧА: 0.00 [03:30:05]line НСП 1% : 8.37 [03:30:05]line НДС 12% : 100.46 [03:30:05]line Наличными: 946.00 [03:30:05]line Безнал.: 0.00 [03:30:05]line Место: АЗС № 142 "Партнер Нефть" [03:30:05]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [03:30:05]line СНО: Общий режим [03:30:05]line Чек 17 26.10.2024 03:30 [03:30:05]line Смена: 512 ФФД: 1.0 [03:30:05]line ЗНМ: 0300000089 [03:30:05]line РНМ: 0000000000091691 [03:30:05]line Версия ККМ: 001 [03:30:05]line ФМ: 0000000000871795 [03:30:05]line ФД: 75025 [03:30:05]line ФПД: 177767359070360 [03:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T033006&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75025&fm=177767359070360&tin=02508201610067®Number=0000000000091691&sum=94600 [03:30:05]OFD Sender: Processing packet 75025 [packets to send 13, broken 12] [03:30:05]ProducePacketName [03:30:05]name=ofd_packets/00075025 [03:30:05]OFD Sender: To server: pG, [03:30:05]CommunicateWithHost lk.salyk.kg:30040 [03:30:05]ConnectInit lk.salyk.kg [03:30:05]written 0, free lines is 4095 [03:30:05]Connected sock=10 [03:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 1C F3 06 01 B8 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8D 71 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 71 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 27 00 00 00 00 07 04 06 00 88 71 01 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 3E 62 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 11 25 01 00 35 04 06 00 A1 AD B0 4A 40 98 E9 B0 99 4B 01 C9 58 90 [03:30:05]Write to MH i2c: 01 00 00 A5 16 BB [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: 01 07 00 A5 16 00 00 00 00 00 AD 0C 7B [03:30:05]RasterBufferAndPrint [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]line [03:30:05]written 0, free lines is 3251 [03:30:05]MH_Cut [03:30:05]Write to MH i2c: D1 01 00 AC 16 01 94 [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: D1 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: D1 01 00 [03:30:05]MH_I2C_Read... [03:30:05]Read from MH i2c: D1 01 00 AC 16 00 93 [03:30:05]Write to MH i2c: 01 00 00 AD 16 C3 [03:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 99 09 47 00 EA 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 38 37 31 37 39 35 10 04 04 00 11 25 01 00 F4 03 04 00 BB 09 1C 67 B6 04 01 00 00 0B 7C 50 AA 35 F8 BF DD [03:30:05]CommunicateWithHost err = 0 [03:30:05]CheckOFDResponse [03:30:05]1017 (14) - 77093643461234 [03:30:05]1041 (16) - 0000000000871795 [03:30:05]1040 (4) - 75025 [03:30:05]1012 (4) - 25.10.2024 21:12 [03:30:05]1206 (1) - 0 [03:30:05]OFD Sender: Remove packet 75025 [03:30:05]ProducePacketName [03:30:05]name=ofd_packets/00075025 [03:30:05]NVStorageDeleteData [03:30:05]Write i2c OK [03:30:05]MH_I2C_Read... [03:30:06]OFD Sender: No OFD packet to send [03:30:06]*** Cut start [03:30:06]*** Partial cut [03:30:06]*** CUTSNS_PIN = 1 [03:30:06]*** CUTSNS_PIN = 0 [03:30:06]*** Brake cut motor [03:30:07]Read from MH i2c: 01 [03:30:07]MH_I2C_Read... [03:30:07]*** Stop cut motor [03:30:07]*** Cut end [03:30:07]Read from MH i2c: 01 07 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [03:30:07]process_action close_receipt done [03:30:07]requested_data is exist [03:30:07]produce_requested_data [03:30:07]requested_item fm.sn is exist - process it [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 11 00 00 [03:30:07]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 17 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 96 [03:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [03:30:07]wFMCommunicate OK [03:30:07]requested_item fd.num is exist - process it [03:30:07]SAM_PROTO_GetFieldsCounters [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 13 00 00 [03:30:07]Write to MH i2c: E2 08 00 AF 16 80 13 00 00 00 00 00 00 41 [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 62 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 62 00 AF 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 11 25 01 00 0E 04 04 00 00 02 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 D4 [03:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 11 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:30:07]wFMCommunicate OK [03:30:07]SAM_PROTO_GetFieldsCounters done [03:30:07]requested_item shift.num is exist - process it [03:30:07]requested_item shift.opened is exist - process it [03:30:07]req_shift_opened [03:30:07]FM_GetShiftState [03:30:07]SAM_PROTO_GetShiftState [03:30:07]wFMCommunicate request_size=4 [03:30:07]MH_SAM_APDU [03:30:07]CAPDU: 80 13 01 00 [03:30:07]Write to MH i2c: E2 08 00 B0 16 80 13 01 00 00 00 00 00 43 [03:30:07]Write i2c OK [03:30:07]MH_I2C_Read... [03:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:07]Read from MH i2c: E2 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 0E 00 [03:30:07]MH_I2C_Read... [03:30:07]Read from MH i2c: E2 0E 00 B0 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5E [03:30:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [03:30:07]wFMCommunicate OK [03:30:07]SAM_PROTO_GetShiftState done [03:30:07]FM_GetShiftState done [03:30:07]req_shift_opened done [03:30:07]requested_item shift.open_date is exist - process it [03:30:07]req_shift_open_date [03:30:07]req_shift_open_date done [03:30:07]produce_requested_data done [03:30:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75025,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [03:30:07]process_action_free close_receipt [03:30:07]json_value_free [03:30:07]json_value_free done [03:30:07]process_json_proto returns [03:30:07]Send response to host [03:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75025,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [03:30:07]free response buf [03:30:07]execute_script done [03:30:07]execute_script returns [03:30:07]free content buf [03:30:07]Sock 9.Close socket [03:30:07]Sock 9.Thread stoped [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:28]accept exits with 8 [04:15:28]New connection [04:15:28]New thread 3066924388 created [04:15:28]Thread 3066781028 joined [04:15:28]Waiting for new connection... [04:15:28] Sock 8.Parse request [04:15:28]Sock 8.Check first char [04:15:28]Sock 8.First char is OK [04:15:28]request: POST /json_proto HTTP/1.0 [04:15:28]Method: POST [04:15:28]URL: /json_proto [04:15:28]Method is POST - this is cgi request [04:15:28]url: /json_proto [04:15:28]query_string will be loaded in cgi processing [04:15:28]execute_cgi json_proto POST (null) [04:15:28]execute_cgi path=json_proto method=POST [04:15:28]POST find Content-Length [04:15:28]Host: 172.17.39.131:8080 [04:15:28]Content-Length: 682 [04:15:28]Content-Type: application/json [04:15:28] [04:15:28]POST finish read [04:15:28]Found Content-Length = 682 [04:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [04:15:28]execute_script... [04:15: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)190998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [04:15:28]POST & json_proto [04:15:28]process_json_proto [04:15:28]json parsed OK: [04:15:28]protocol is kg_v1.0 [04:15:28]action value=close_receipt [04:15:28]process_action close_receipt [04:15:28]cmd_close_receipt [04:15:28]MH_GetDate [04:15:28]Write to MH i2c: F0 00 00 B1 16 B6 [04:15:28]Write i2c OK [04:15:28]MH_I2C_Read... [04:15:28]Read from MH i2c: F0 [04:15:28]MH_I2C_Read... [04:15:28]Read from MH i2c: F0 09 00 [04:15:28]MH_I2C_Read... [04:15:28]Read from MH i2c: F0 09 00 B1 16 00 E3 6C 1C 67 86 57 24 65 F7 [04:15:28]GetLastDocTimeStamp 1729913406 [04:15:28]current date 1729916131 [04:15:28]FM_GetShiftState [04:15:28]SAM_PROTO_GetShiftState [04:15:28]wFMCommunicate request_size=4 [04:15:28]MH_SAM_APDU [04:15:28]CAPDU: 80 13 01 00 [04:15:28]Write to MH i2c: E2 08 00 B2 16 80 13 01 00 00 00 00 00 45 [04:15:28]Write i2c OK [04:15:28]MH_I2C_Read... [04:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:28]Read from MH i2c: E2 [04:15:28]MH_I2C_Read... [04:15:28]Read from MH i2c: E2 0E 00 [04:15:28]MH_I2C_Read... [04:15:28]Read from MH i2c: E2 0E 00 B2 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 60 [04:15:28]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [04:15:28]wFMCommunicate OK [04:15:28]SAM_PROTO_GetShiftState done [04:15:28]FM_GetShiftState done [04:15:28]opened in 1729902166 [04:15:28]opened+sec_in_day 1729988566 [04:15:28]quantity*price = 200031 [04:15:28]sum+1 = 200032 [04:15:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 18 26.10.2024 04:15 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75026 ФПД: 106162894867787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T041531&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75026&fm=106162894867787&tin=02508201610067®Number=0000000000091691&sum=200000 [04:15:30]StoreToDocumentArchive [04:15:30]shift 512 fd 75026 [04:15:30]save to /storage/0512/doc_00075026 [04:15:30]save last doc name /storage/0512/doc_00075026 to /storage/kkm_last_doc_name [04:15:30]save OK [04:15:30]Clear old archive folders... [04:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:15:30]tlvbuf is B6EBAD10 [04:15:30]SAM_PROTO_ClearQueue [04:15:30]wFMCommunicate request_size=4 [04:15:30]MH_SAM_APDU [04:15:30]CAPDU: 80 09 00 00 [04:15:30]Write to MH i2c: E2 08 00 BF 16 80 09 00 00 00 00 00 00 47 [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [04:15:30]RAPDU: 90 00 [04:15:30]wFMCommunicate OK [04:15:30]SAM_PROTO_ClearQueue done [04:15:30]KKMCreateOFDPacket [04:15:30]OFDProtocolAddRootSTLVToBuf [04:15:30]FM_MakeSignedData [04:15:30]FM_MakeSignedData [04:15:30]SAM_PROTO_SignData [04:15:30]wFMCommunicate request_size=4 [04:15:30]MH_SAM_APDU [04:15:30]CAPDU: 80 0D 01 02 [04:15:30]Write to MH i2c: E2 08 00 C0 16 80 0D 01 02 00 00 00 00 4F [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [04:15:30]RAPDU: 90 00 [04:15:30]wFMCommunicate OK [04:15:30]wFMCommunicate request_size=255 [04:15:30]MH_SAM_APDU [04:15: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 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 12 00 00 00 F4 03 04 00 E3 6C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 25 01 00 35 04 06 00 60 [04:15:30]Write to MH i2c: E2 02 01 C1 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 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 12 00 00 00 F4 03 04 00 E3 6C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 25 01 00 35 04 06 00 60 00 00 A4 [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [04:15:30]RAPDU: 90 00 [04:15:30]wFMCommunicate OK [04:15:30]wFMCommunicate request_size=10 [04:15:30]MH_SAM_APDU [04:15:30]CAPDU: 80 0D 02 02 05 8D F9 A3 0D 4B [04:15:30]Write to MH i2c: E2 0D 00 C2 16 80 0D 02 02 05 00 8D F9 A3 0D 4B 00 00 DD [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 03 00 C2 16 00 90 00 4C [04:15:30]RAPDU: 90 00 [04:15:30]wFMCommunicate OK [04:15:30]wFMCommunicate request_size=4 [04:15:30]MH_SAM_APDU [04:15:30]CAPDU: 80 0D 03 02 [04:15:30]Write to MH i2c: E2 08 00 C3 16 80 0D 03 02 00 00 00 00 54 [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 0B 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 0B 00 C3 16 00 5F FA 49 2C 01 9A 16 F1 90 00 C5 [04:15:30]RAPDU: 5F FA 49 2C 01 9A 16 F1 90 00 [04:15:30]wFMCommunicate OK [04:15:30]SAM_PROTO_SignData done [04:15:30]FM_MakeSignedData done [04:15:30]CreateOFDProtocolMessage [04:15:30]wFMCommunicate request_size=4 [04:15:30]MH_SAM_APDU [04:15:30]CAPDU: 80 11 00 00 [04:15:30]Write to MH i2c: E2 08 00 C4 16 80 11 00 00 00 00 00 00 54 [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:30]Read from MH i2c: E2 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 17 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: E2 17 00 C4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AC [04:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [04:15:30]wFMCommunicate OK [04:15:30]CreateOFDProtocolMessage done [04:15:30]OFDSenderStorePacket 75026 [04:15:30]StoreOFDPacket docnum=75026 [04:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB E5 07 01 56 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 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 12 00 00 00 F4 03 04 00 E3 6C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 25 01 00 35 04 06 00 60 8D F9 A3 0D 4B 5F FA 49 2C 01 9A 16 F1 [04:15:30]CheckFolder [04:15:30]dirname=/storage/ofd_packets [04:15:30]CheckFolder done [04:15:30]ProducePacketName [04:15:30]name=ofd_packets/00075026 [04:15:30]NVStorageSaveData ofd_packets/00075026 [04:15:30]File name is /storage/ofd_packets/00075026 [04:15:30]Write 301 bytes [04:15:30]NVStorageSaveData done [04:15:30]OFDSenderStorePacket done [04:15:30]KKMCreateOFDPacket done [04:15:30]NVStorageSaveData kkm_last_timestamp [04:15:30]File name is /storage/kkm_last_timestamp [04:15:30]Write 4 bytes [04:15:30]NVStorageSaveData done [04:15:30]ExternCall_PrintAddStr [04:15:30]wPrintStart [04:15:30]Write to MH i2c: 01 00 00 C5 16 DB [04:15:30]Write i2c OK [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: 01 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: 01 07 00 [04:15:30]MH_I2C_Read... [04:15:30]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 FF 0F F0 [04:15:30]RasterBufferAndPrint [04:15:30]line Счет N : (1)190998 [04:15:30]line ИНН: 02508201610067 [04:15:30]line Контрольно-Кассовый Чек [04:15:30]line ПРОДАЖА [04:15:30]line ТРК (МРК, ГНК) : 21 [04:15:30]line Товар: 2710124130 [04:15:30]line Аи-92-К-5 [04:15:30]line 29.900 * 66.90 [04:15:30]line = 2000.31 [04:15:30]line НДС 12% НСП 1% [04:15:30]line > о реализуемом товаре [04:15:30]line ОКРУГЛЕНИЕ: -0.31 [04:15:30]line ИТОГО: 2000.00 [04:15:30]line Внесено: 2000.00 [04:15:30]line СДАЧА: 0.00 [04:15:30]line НСП 1% : 17.70 [04:15:30]line НДС 12% : 212.42 [04:15:30]line Наличными: 2000.00 [04:15:30]line Безнал.: 0.00 [04:15:30]line Место: АЗС № 142 "Партнер Нефть" [04:15:30]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [04:15:30]line СНО: Общий режим [04:15:30]line Чек 18 26.10.2024 04:15 [04:15:30]line Смена: 512 ФФД: 1.0 [04:15:30]line ЗНМ: 0300000089 [04:15:30]line РНМ: 0000000000091691 [04:15:30]line Версия ККМ: 001 [04:15:30]line ФМ: 0000000000871795 [04:15:30]line ФД: 75026 [04:15:30]line ФПД: 106162894867787 [04:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T041531&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75026&fm=106162894867787&tin=02508201610067®Number=0000000000091691&sum=200000 [04:15:30]OFD Sender: Processing packet 75026 [packets to send 13, broken 12] [04:15:30]ProducePacketName [04:15:30]name=ofd_packets/00075026 [04:15:30]OFD Sender: To server: pG, [04:15:30]CommunicateWithHost lk.salyk.kg:30040 [04:15:30]ConnectInit lk.salyk.kg [04:15:30]written 0, free lines is 4095 [04:15:31]Connected sock=10 [04:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB E5 07 01 56 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 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 12 00 00 00 F4 03 04 00 E3 6C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 25 01 00 35 04 06 00 60 8D F9 A3 0D 4B 5F FA 49 2C 01 9A 16 F1 [04:15:31]Write to MH i2c: 01 00 00 F0 16 06 [04:15:31]Write i2c OK [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: 01 [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: 01 07 00 [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: 01 07 00 F0 16 00 00 00 00 00 A2 0C BB [04:15:31]RasterBufferAndPrint [04:15:31]line [04:15:31]line [04:15:31]line [04:15:31]line [04:15:31]line [04:15:31]written 0, free lines is 3240 [04:15:31]MH_Cut [04:15:31]Write to MH i2c: D1 01 00 F7 16 01 DF [04:15:31]Write i2c OK [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: D1 [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: D1 01 00 [04:15:31]MH_I2C_Read... [04:15:31]Read from MH i2c: D1 01 00 F7 16 00 DE [04:15:31]Write to MH i2c: 01 00 00 F8 16 0E [04:15:31]Write i2c OK [04:15:31]MH_I2C_Read... [04:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BE BB 47 00 A0 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 12 25 01 00 F4 03 04 00 61 14 1C 67 B6 04 01 00 00 F8 41 43 0B 97 A0 A7 03 [04:15:31]CommunicateWithHost err = 0 [04:15:31]CheckOFDResponse [04:15:31]1017 (14) - 77093643461234 [04:15:31]1041 (16) - 0000000000871795 [04:15:31]1040 (4) - 75026 [04:15:31]1012 (4) - 25.10.2024 21:57 [04:15:31]1206 (1) - 0 [04:15:31]OFD Sender: Remove packet 75026 [04:15:31]ProducePacketName [04:15:31]name=ofd_packets/00075026 [04:15:31]NVStorageDeleteData [04:15:31]OFD Sender: No OFD packet to send [04:15:32]*** Cut start [04:15:32]*** Partial cut [04:15:32]*** CUTSNS_PIN = 1 [04:15:32]*** CUTSNS_PIN = 0 [04:15:32]*** Brake cut motor [04:15:32]Read from MH i2c: 01 [04:15:32]MH_I2C_Read... [04:15:32]*** Stop cut motor [04:15:32]*** Cut end [04:15:32]Read from MH i2c: 01 07 00 [04:15:32]MH_I2C_Read... [04:15:32]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 FF 0F 23 [04:15:32]process_action close_receipt done [04:15:32]requested_data is exist [04:15:32]produce_requested_data [04:15:32]requested_item fm.sn is exist - process it [04:15:32]wFMCommunicate request_size=4 [04:15:32]MH_SAM_APDU [04:15:32]CAPDU: 80 11 00 00 [04:15:32]Write to MH i2c: E2 08 00 F9 16 80 11 00 00 00 00 00 00 89 [04:15:32]Write i2c OK [04:15:32]MH_I2C_Read... [04:15:32]Read from MH i2c: E2 [04:15:32]MH_I2C_Read... [04:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:32]Read from MH i2c: E2 17 00 [04:15:32]MH_I2C_Read... [04:15:32]Read from MH i2c: E2 17 00 F9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E1 [04:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [04:15:32]wFMCommunicate OK [04:15:32]requested_item fd.num is exist - process it [04:15:32]SAM_PROTO_GetFieldsCounters [04:15:32]wFMCommunicate request_size=4 [04:15:32]MH_SAM_APDU [04:15:32]CAPDU: 80 13 00 00 [04:15:32]Write to MH i2c: E2 08 00 FA 16 80 13 00 00 00 00 00 00 8C [04:15:32]Write i2c OK [04:15:32]MH_I2C_Read... [04:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:15:33]Read from MH i2c: E2 [04:15:33]MH_I2C_Read... [04:15:33]Read from MH i2c: E2 62 00 [04:15:33]MH_I2C_Read... [04:15:33]Read from MH i2c: E2 62 00 FA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 12 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [04:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 12 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:15:33]wFMCommunicate OK [04:15:33]SAM_PROTO_GetFieldsCounters done [04:15:33]requested_item shift.num is exist - process it [04:15:33]requested_item shift.opened is exist - process it [04:15:33]req_shift_opened [04:15:33]FM_GetShiftState [04:15:33]SAM_PROTO_GetShiftState [04:15:33]wFMCommunicate request_size=4 [04:15:33]MH_SAM_APDU [04:15:33]CAPDU: 80 13 01 00 [04:15:33]Write to MH i2c: E2 08 00 FB 16 80 13 01 00 00 00 00 00 8E [04:15:33]Write i2c OK [04:15:33]MH_I2C_Read... [04:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:33]Read from MH i2c: E2 [04:15:33]MH_I2C_Read... [04:15:33]Read from MH i2c: E2 0E 00 [04:15:33]MH_I2C_Read... [04:15:33]Read from MH i2c: E2 0E 00 FB 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A9 [04:15:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [04:15:33]wFMCommunicate OK [04:15:33]SAM_PROTO_GetShiftState done [04:15:33]FM_GetShiftState done [04:15:33]req_shift_opened done [04:15:33]requested_item shift.open_date is exist - process it [04:15:33]req_shift_open_date [04:15:33]req_shift_open_date done [04:15:33]produce_requested_data done [04:15:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75026,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [04:15:33]process_action_free close_receipt [04:15:33]json_value_free [04:15:33]json_value_free done [04:15:33]process_json_proto returns [04:15:33]Send response to host [04:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75026,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [04:15:33]free response buf [04:15:33]execute_script done [04:15:33]execute_script returns [04:15:33]free content buf [04:15:33]Sock 8.Close socket [04:15:33]Sock 8.Thread stoped [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:23]accept exits with 9 [05:22:23]New connection [05:22:23]New thread 3066781028 created [05:22:23]Thread 3066924388 joined [05:22:23]Waiting for new connection... [05:22:23] Sock 9.Parse request [05:22:23]Sock 9.Check first char [05:22:23]Sock 9.First char is OK [05:22:23]request: POST /json_proto HTTP/1.0 [05:22:23]Method: POST [05:22:23]URL: /json_proto [05:22:23]Method is POST - this is cgi request [05:22:23]url: /json_proto [05:22:23]query_string will be loaded in cgi processing [05:22:23]execute_cgi json_proto POST (null) [05:22:23]execute_cgi path=json_proto method=POST [05:22:23]POST find Content-Length [05:22:23]Host: 172.17.39.131:8080 [05:22:23]Content-Length: 679 [05:22:23]Content-Type: application/json [05:22:23] [05:22:23]POST finish read [05:22:23]Found Content-Length = 679 [05:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [05:22:23]execute_script... [05:22: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)190999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [05:22:23]POST & json_proto [05:22:23]process_json_proto [05:22:23]json parsed OK: [05:22:23]protocol is kg_v1.0 [05:22:23]action value=close_receipt [05:22:23]process_action close_receipt [05:22:23]cmd_close_receipt [05:22:23]MH_GetDate [05:22:23]Write to MH i2c: F0 00 00 FC 16 01 [05:22:23]Write i2c OK [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: F0 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: F0 09 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: F0 09 00 FC 16 00 93 7C 1C 67 86 57 24 65 02 [05:22:23]GetLastDocTimeStamp 1729916131 [05:22:23]current date 1729920147 [05:22:23]FM_GetShiftState [05:22:23]SAM_PROTO_GetShiftState [05:22:23]wFMCommunicate request_size=4 [05:22:23]MH_SAM_APDU [05:22:23]CAPDU: 80 13 01 00 [05:22:23]Write to MH i2c: E2 08 00 FD 16 80 13 01 00 00 00 00 00 90 [05:22:23]Write i2c OK [05:22:23]MH_I2C_Read... [05:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:23]Read from MH i2c: E2 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 0E 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 0E 00 FD 16 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AB [05:22:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [05:22:23]wFMCommunicate OK [05:22:23]SAM_PROTO_GetShiftState done [05:22:23]FM_GetShiftState done [05:22:23]opened in 1729902166 [05:22:23]opened+sec_in_day 1729988566 [05:22:23]quantity*price = 200025 [05:22:23]sum+1 = 200026 [05:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 19 26.10.2024 05:22 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75027 ФПД: 14333985749914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T052227&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75027&fm=14333985749914&tin=02508201610067®Number=0000000000091691&sum=200000 [05:22:25]StoreToDocumentArchive [05:22:25]shift 512 fd 75027 [05:22:25]save to /storage/0512/doc_00075027 [05:22:25]save last doc name /storage/0512/doc_00075027 to /storage/kkm_last_doc_name [05:22:25]save OK [05:22:25]Clear old archive folders... [05:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:22:25]tlvbuf is B6EA1AC0 [05:22:25]SAM_PROTO_ClearQueue [05:22:25]wFMCommunicate request_size=4 [05:22:25]MH_SAM_APDU [05:22:25]CAPDU: 80 09 00 00 [05:22:25]Write to MH i2c: E2 08 00 0A 17 80 09 00 00 00 00 00 00 93 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 0A 17 00 90 00 95 [05:22:25]RAPDU: 90 00 [05:22:25]wFMCommunicate OK [05:22:25]SAM_PROTO_ClearQueue done [05:22:25]KKMCreateOFDPacket [05:22:25]OFDProtocolAddRootSTLVToBuf [05:22:25]FM_MakeSignedData [05:22:25]FM_MakeSignedData [05:22:25]SAM_PROTO_SignData [05:22:25]wFMCommunicate request_size=4 [05:22:25]MH_SAM_APDU [05:22:25]CAPDU: 80 0D 01 02 [05:22:25]Write to MH i2c: E2 08 00 0B 17 80 0D 01 02 00 00 00 00 9B [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:25]OFD Sender: No OFD packet to send [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [05:22:25]RAPDU: 90 00 [05:22:25]wFMCommunicate OK [05:22:25]wFMCommunicate request_size=255 [05:22:25]MH_SAM_APDU [05:22:25]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 34 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 13 00 00 00 F4 03 04 00 93 7C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 25 01 00 35 04 06 00 0D 09 64 20 [05:22:25]Write to MH i2c: E2 02 01 0C 17 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 34 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 13 00 00 00 F4 03 04 00 93 7C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 25 01 00 35 04 06 00 0D 09 64 20 00 00 8D [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [05:22:25]RAPDU: 90 00 [05:22:25]wFMCommunicate OK [05:22:25]wFMCommunicate request_size=7 [05:22:25]MH_SAM_APDU [05:22:25]CAPDU: 80 0D 02 02 02 FB 9A [05:22:25]Write to MH i2c: E2 0A 00 0D 17 80 0D 02 02 02 00 FB 9A 00 00 37 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [05:22:25]RAPDU: 90 00 [05:22:25]wFMCommunicate OK [05:22:25]wFMCommunicate request_size=4 [05:22:25]MH_SAM_APDU [05:22:25]CAPDU: 80 0D 03 02 [05:22:25]Write to MH i2c: E2 08 00 0E 17 80 0D 03 02 00 00 00 00 A0 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 0B 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 0B 00 0E 17 00 81 68 3C 34 23 DB BC F1 90 00 A5 [05:22:25]RAPDU: 81 68 3C 34 23 DB BC F1 90 00 [05:22:25]wFMCommunicate OK [05:22:25]SAM_PROTO_SignData done [05:22:25]FM_MakeSignedData done [05:22:25]CreateOFDProtocolMessage [05:22:25]wFMCommunicate request_size=4 [05:22:25]MH_SAM_APDU [05:22:25]CAPDU: 80 11 00 00 [05:22:25]Write to MH i2c: E2 08 00 0F 17 80 11 00 00 00 00 00 00 A0 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:25]Read from MH i2c: E2 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 17 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: E2 17 00 0F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F8 [05:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [05:22:25]wFMCommunicate OK [05:22:25]CreateOFDProtocolMessage done [05:22:25]OFDSenderStorePacket 75027 [05:22:25]StoreOFDPacket docnum=75027 [05:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 50 30 04 01 F1 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 34 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 13 00 00 00 F4 03 04 00 93 7C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 25 01 00 35 04 06 00 0D 09 64 20 FB 9A 81 68 3C 34 23 DB BC F1 [05:22:25]CheckFolder [05:22:25]dirname=/storage/ofd_packets [05:22:25]CheckFolder done [05:22:25]ProducePacketName [05:22:25]name=ofd_packets/00075027 [05:22:25]NVStorageSaveData ofd_packets/00075027 [05:22:25]File name is /storage/ofd_packets/00075027 [05:22:25]Write 298 bytes [05:22:25]NVStorageSaveData done [05:22:25]OFDSenderStorePacket done [05:22:25]KKMCreateOFDPacket done [05:22:25]NVStorageSaveData kkm_last_timestamp [05:22:25]File name is /storage/kkm_last_timestamp [05:22:25]Write 4 bytes [05:22:25]NVStorageSaveData done [05:22:25]ExternCall_PrintAddStr [05:22:25]wPrintStart [05:22:25]Write to MH i2c: 01 00 00 10 17 27 [05:22:25]Write i2c OK [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 07 00 [05:22:25]MH_I2C_Read... [05:22:25]Read from MH i2c: 01 07 00 10 17 00 00 00 00 00 FF 0F 3C [05:22:25]RasterBufferAndPrint [05:22:25]line Счет N : (1)190999 [05:22:25]line ИНН: 02508201610067 [05:22:25]line Контрольно-Кассовый Чек [05:22:25]line ПРОДАЖА [05:22:25]line ТРК (МРК, ГНК) : 41 [05:22:25]line Товар: 2710194210 [05:22:25]line ДТ-К-4 [05:22:25]line 26.250 * 76.20 [05:22:25]line = 2000.25 [05:22:25]line НДС 12% НСП 1% [05:22:25]line > о реализуемом товаре [05:22:25]line ОКРУГЛЕНИЕ: -0.25 [05:22:25]line ИТОГО: 2000.00 [05:22:25]line Внесено: 2000.00 [05:22:25]line СДАЧА: 0.00 [05:22:25]line НСП 1% : 17.70 [05:22:25]line НДС 12% : 212.42 [05:22:25]line Наличными: 2000.00 [05:22:25]line Безнал.: 0.00 [05:22:25]line Место: АЗС № 142 "Партнер Нефть" [05:22:25]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [05:22:25]line СНО: Общий режим [05:22:25]line Чек 19 26.10.2024 05:22 [05:22:25]line Смена: 512 ФФД: 1.0 [05:22:25]line ЗНМ: 0300000089 [05:22:25]line РНМ: 0000000000091691 [05:22:25]line Версия ККМ: 001 [05:22:25]line ФМ: 0000000000871795 [05:22:25]line ФД: 75027 [05:22:25]line ФПД: 14333985749914 [05:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T052227&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75027&fm=14333985749914&tin=02508201610067®Number=0000000000091691&sum=200000 [05:22:25]OFD Sender: Processing packet 75027 [packets to send 13, broken 12] [05:22:25]ProducePacketName [05:22:25]name=ofd_packets/00075027 [05:22:25]OFD Sender: To server: pG, [05:22:25]CommunicateWithHost lk.salyk.kg:30040 [05:22:25]ConnectInit lk.salyk.kg [05:22:25]written 0, free lines is 4095 [05:22:26]Write to MH i2c: 01 00 00 3B 17 52 [05:22:26]Write i2c OK [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: 01 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: 01 07 00 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: 01 07 00 3B 17 00 00 00 00 00 AB 0C 10 [05:22:26]RasterBufferAndPrint [05:22:26]line [05:22:26]line [05:22:26]line [05:22:26]line [05:22:26]line [05:22:26]written 0, free lines is 3249 [05:22:26]MH_Cut [05:22:26]Write to MH i2c: D1 01 00 42 17 01 2B [05:22:26]Write i2c OK [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: D1 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: D1 01 00 [05:22:26]MH_I2C_Read... [05:22:26]Read from MH i2c: D1 01 00 42 17 00 2A [05:22:26]Write to MH i2c: 01 00 00 43 17 5A [05:22:26]Write i2c OK [05:22:26]MH_I2C_Read... [05:22:27]*** Cut start [05:22:27]*** Partial cut [05:22:27]*** CUTSNS_PIN = 1 [05:22:27]*** CUTSNS_PIN = 0 [05:22:27]*** Brake cut motor [05:22:27]Read from MH i2c: 01 [05:22:27]MH_I2C_Read... [05:22:27]*** Stop cut motor [05:22:27]*** Cut end [05:22:27]Read from MH i2c: 01 07 00 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: 01 07 00 43 17 00 00 00 00 00 FF 0F 6F [05:22:27]process_action close_receipt done [05:22:27]requested_data is exist [05:22:27]produce_requested_data [05:22:27]requested_item fm.sn is exist - process it [05:22:27]wFMCommunicate request_size=4 [05:22:27]MH_SAM_APDU [05:22:27]CAPDU: 80 11 00 00 [05:22:27]Write to MH i2c: E2 08 00 44 17 80 11 00 00 00 00 00 00 D5 [05:22:27]Write i2c OK [05:22:27]MH_I2C_Read... [05:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:27]Read from MH i2c: E2 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 17 00 [05:22:27]MH_I2C_Read... [05:22:27]Read from MH i2c: E2 17 00 44 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2D [05:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [05:22:27]wFMCommunicate OK [05:22:27]requested_item fd.num is exist - process it [05:22:27]SAM_PROTO_GetFieldsCounters [05:22:27]wFMCommunicate request_size=4 [05:22:27]MH_SAM_APDU [05:22:27]CAPDU: 80 13 00 00 [05:22:27]Write to MH i2c: E2 08 00 45 17 80 13 00 00 00 00 00 00 D8 [05:22:27]Write i2c OK [05:22:27]MH_I2C_Read... [05:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:28]Read from MH i2c: E2 [05:22:28]MH_I2C_Read... [05:22:28]Read from MH i2c: E2 62 00 [05:22:28]MH_I2C_Read... [05:22:28]Read from MH i2c: E2 62 00 45 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 13 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [05:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 13 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:22:28]wFMCommunicate OK [05:22:28]SAM_PROTO_GetFieldsCounters done [05:22:28]requested_item shift.num is exist - process it [05:22:28]requested_item shift.opened is exist - process it [05:22:28]req_shift_opened [05:22:28]FM_GetShiftState [05:22:28]SAM_PROTO_GetShiftState [05:22:28]wFMCommunicate request_size=4 [05:22:28]MH_SAM_APDU [05:22:28]CAPDU: 80 13 01 00 [05:22:28]Write to MH i2c: E2 08 00 46 17 80 13 01 00 00 00 00 00 DA [05:22:28]Write i2c OK [05:22:28]MH_I2C_Read... [05:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:28]Read from MH i2c: E2 [05:22:28]MH_I2C_Read... [05:22:28]Read from MH i2c: E2 0E 00 [05:22:28]MH_I2C_Read... [05:22:28]Read from MH i2c: E2 0E 00 46 17 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F5 [05:22:28]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [05:22:28]wFMCommunicate OK [05:22:28]SAM_PROTO_GetShiftState done [05:22:28]FM_GetShiftState done [05:22:28]req_shift_opened done [05:22:28]requested_item shift.open_date is exist - process it [05:22:28]req_shift_open_date [05:22:28]req_shift_open_date done [05:22:28]produce_requested_data done [05:22:28]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75027,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [05:22:28]process_action_free close_receipt [05:22:28]json_value_free [05:22:28]json_value_free done [05:22:28]process_json_proto returns [05:22:28]Send response to host [05:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75027,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [05:22:28]free response buf [05:22:28]execute_script done [05:22:28]execute_script returns [05:22:28]free content buf [05:22:28]Sock 9.Close socket [05:22:28]Sock 9.Thread stoped [05:24:40]ConnectInit Can't connect to host [05:24:40]CommunicateWithHost connect error [05:24:40]CommunicateWithHost err = -1 [05:24:40]OFD Sender: Server communicate error [05:24:45]OFD Sender: Processing packet 75027 [packets to send 13, broken 12] [05:24:45]ProducePacketName [05:24:45]name=ofd_packets/00075027 [05:24:45]OFD Sender: To server: pG, [05:24:45]CommunicateWithHost lk.salyk.kg:30040 [05:24:45]ConnectInit lk.salyk.kg [05:24:45]Connected sock=9 [05:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 50 30 04 01 F1 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 34 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 13 00 00 00 F4 03 04 00 93 7C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 25 01 00 35 04 06 00 0D 09 64 20 FB 9A 81 68 3C 34 23 DB BC F1 [05:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 57 46 47 00 9B 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 13 25 01 00 F4 03 04 00 9B 24 1C 67 B6 04 01 00 00 33 4C CF A2 22 A5 5F 4E [05:24:45]CommunicateWithHost err = 0 [05:24:45]CheckOFDResponse [05:24:45]1017 (14) - 77093643461234 [05:24:45]1041 (16) - 0000000000871795 [05:24:45]1040 (4) - 75027 [05:24:45]1012 (4) - 25.10.2024 23:07 [05:24:45]1206 (1) - 0 [05:24:45]OFD Sender: Remove packet 75027 [05:24:45]ProducePacketName [05:24:45]name=ofd_packets/00075027 [05:24:45]NVStorageDeleteData [05:24:45]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28: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:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:43]accept exits with 8 [05:32:43]New connection [05:32:43]New thread 3066924388 created [05:32:43]Thread 3066781028 joined [05:32:43]Waiting for new connection... [05:32:43] Sock 8.Parse request [05:32:43]Sock 8.Check first char [05:32:43]Sock 8.First char is OK [05:32:43]request: POST /json_proto HTTP/1.0 [05:32:43]Method: POST [05:32:43]URL: /json_proto [05:32:43]Method is POST - this is cgi request [05:32:43]url: /json_proto [05:32:43]query_string will be loaded in cgi processing [05:32:43]execute_cgi json_proto POST (null) [05:32:43]execute_cgi path=json_proto method=POST [05:32:43]POST find Content-Length [05:32:43]Host: 172.17.39.131:8080 [05:32:43]Content-Length: 685 [05:32:43]Content-Type: application/json [05:32:43] [05:32:43]POST finish read [05:32:43]Found Content-Length = 685 [05:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 50.390, "sum" : 1960.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1960.00, "payments": [ { "type": 0, "sum" : 1960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:43]execute_script... [05:32: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)191000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 50.390, "sum" : 1960.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1960.00, "payments": [ { "type": 0, "sum" : 1960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:43]POST & json_proto [05:32:43]process_json_proto [05:32:43]json parsed OK: [05:32:43]protocol is kg_v1.0 [05:32:43]action value=close_receipt [05:32:43]process_action close_receipt [05:32:43]cmd_close_receipt [05:32:43]MH_GetDate [05:32:43]Write to MH i2c: F0 00 00 47 17 4D [05:32:43]Write i2c OK [05:32:43]MH_I2C_Read... [05:32:43]Read from MH i2c: F0 [05:32:43]MH_I2C_Read... [05:32:43]Read from MH i2c: F0 09 00 [05:32:43]MH_I2C_Read... [05:32:43]Read from MH i2c: F0 09 00 47 17 00 FE 7E 1C 67 86 57 24 65 BB [05:32:43]GetLastDocTimeStamp 1729920147 [05:32:43]current date 1729920766 [05:32:43]FM_GetShiftState [05:32:43]SAM_PROTO_GetShiftState [05:32:43]wFMCommunicate request_size=4 [05:32:43]MH_SAM_APDU [05:32:43]CAPDU: 80 13 01 00 [05:32:43]Write to MH i2c: E2 08 00 48 17 80 13 01 00 00 00 00 00 DC [05:32:43]Write i2c OK [05:32:43]MH_I2C_Read... [05:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:43]Read from MH i2c: E2 [05:32:43]MH_I2C_Read... [05:32:43]Read from MH i2c: E2 0E 00 [05:32:43]MH_I2C_Read... [05:32:43]Read from MH i2c: E2 0E 00 48 17 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F7 [05:32:43]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [05:32:43]wFMCommunicate OK [05:32:43]SAM_PROTO_GetShiftState done [05:32:43]FM_GetShiftState done [05:32:43]opened in 1729902166 [05:32:43]opened+sec_in_day 1729988566 [05:32:43]quantity*price = 196017 [05:32:43]sum+1 = 196018 [05:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1960.00 Внесено: 2000.00 СДАЧА: 40.00 НСП 1% : 17.35 НДС 12% : 208.16 Наличными: 1960.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 20 26.10.2024 05:32 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75028 ФПД: 10628362041954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T053246&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75028&fm=10628362041954&tin=02508201610067®Number=0000000000091691&sum=196000 [05:32:44]StoreToDocumentArchive [05:32:44]shift 512 fd 75028 [05:32:44]save to /storage/0512/doc_00075028 [05:32:44]save last doc name /storage/0512/doc_00075028 to /storage/kkm_last_doc_name [05:32:44]save OK [05:32:44]Clear old archive folders... [05:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:32:44]tlvbuf is 0084E750 [05:32:44]SAM_PROTO_ClearQueue [05:32:44]wFMCommunicate request_size=4 [05:32:44]MH_SAM_APDU [05:32:44]CAPDU: 80 09 00 00 [05:32:44]Write to MH i2c: E2 08 00 55 17 80 09 00 00 00 00 00 00 DE [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 55 17 00 90 00 E0 [05:32:44]RAPDU: 90 00 [05:32:44]wFMCommunicate OK [05:32:44]SAM_PROTO_ClearQueue done [05:32:44]KKMCreateOFDPacket [05:32:44]OFDProtocolAddRootSTLVToBuf [05:32:44]FM_MakeSignedData [05:32:44]FM_MakeSignedData [05:32:44]SAM_PROTO_SignData [05:32:44]wFMCommunicate request_size=4 [05:32:44]MH_SAM_APDU [05:32:44]CAPDU: 80 0D 01 02 [05:32:44]Write to MH i2c: E2 08 00 56 17 80 0D 01 02 00 00 00 00 E6 [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 56 17 00 90 00 E1 [05:32:44]RAPDU: 90 00 [05:32:44]wFMCommunicate OK [05:32:44]wFMCommunicate request_size=255 [05:32:44]MH_SAM_APDU [05:32: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 D6 C4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 A0 FD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE 7E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 25 01 00 35 04 06 00 09 AA [05:32:44]Write to MH i2c: E2 02 01 57 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 D6 C4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 A0 FD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE 7E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 25 01 00 35 04 06 00 09 AA 00 00 D4 [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 57 17 00 90 00 E2 [05:32:44]RAPDU: 90 00 [05:32:44]wFMCommunicate OK [05:32:44]wFMCommunicate request_size=9 [05:32:44]MH_SAM_APDU [05:32:44]CAPDU: 80 0D 02 02 04 9B BE 7A 62 [05:32:44]Write to MH i2c: E2 0C 00 58 17 80 0D 02 02 04 00 9B BE 7A 62 00 00 26 [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [05:32:44]RAPDU: 90 00 [05:32:44]wFMCommunicate OK [05:32:44]wFMCommunicate request_size=4 [05:32:44]MH_SAM_APDU [05:32:44]CAPDU: 80 0D 03 02 [05:32:44]Write to MH i2c: E2 08 00 59 17 80 0D 03 02 00 00 00 00 EB [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 0B 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 0B 00 59 17 00 78 2A 35 17 E0 AE 78 2F 90 00 0F [05:32:44]RAPDU: 78 2A 35 17 E0 AE 78 2F 90 00 [05:32:44]wFMCommunicate OK [05:32:44]SAM_PROTO_SignData done [05:32:44]FM_MakeSignedData done [05:32:44]CreateOFDProtocolMessage [05:32:44]wFMCommunicate request_size=4 [05:32:44]MH_SAM_APDU [05:32:44]CAPDU: 80 11 00 00 [05:32:44]Write to MH i2c: E2 08 00 5A 17 80 11 00 00 00 00 00 00 EB [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:44]Read from MH i2c: E2 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 17 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: E2 17 00 5A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 43 [05:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [05:32:44]wFMCommunicate OK [05:32:44]CreateOFDProtocolMessage done [05:32:44]OFDSenderStorePacket 75028 [05:32:44]StoreOFDPacket docnum=75028 [05:32:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 A9 FB 06 01 AC 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 D6 C4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 A0 FD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE 7E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 25 01 00 35 04 06 00 09 AA 9B BE 7A 62 78 2A 35 17 E0 AE 78 2F [05:32:44]CheckFolder [05:32:44]dirname=/storage/ofd_packets [05:32:44]CheckFolder done [05:32:44]ProducePacketName [05:32:44]name=ofd_packets/00075028 [05:32:44]NVStorageSaveData ofd_packets/00075028 [05:32:44]File name is /storage/ofd_packets/00075028 [05:32:44]Write 300 bytes [05:32:44]NVStorageSaveData done [05:32:44]OFDSenderStorePacket done [05:32:44]KKMCreateOFDPacket done [05:32:44]NVStorageSaveData kkm_last_timestamp [05:32:44]File name is /storage/kkm_last_timestamp [05:32:44]Write 4 bytes [05:32:44]NVStorageSaveData done [05:32:44]OFD Sender: Processing packet 75028 [packets to send 13, broken 12] [05:32:44]ProducePacketName [05:32:44]name=ofd_packets/00075028 [05:32:44]OFD Sender: To server: pG, [05:32:44]CommunicateWithHost lk.salyk.kg:30040 [05:32:44]ConnectInit lk.salyk.kg [05:32:44]ExternCall_PrintAddStr [05:32:44]wPrintStart [05:32:44]Write to MH i2c: 01 00 00 5B 17 72 [05:32:44]Write i2c OK [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: 01 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: 01 07 00 [05:32:44]MH_I2C_Read... [05:32:44]Read from MH i2c: 01 07 00 5B 17 00 00 00 00 00 FF 0F 87 [05:32:44]RasterBufferAndPrint [05:32:44]line Счет N : (1)191000 [05:32:44]line ИНН: 02508201610067 [05:32:44]line Контрольно-Кассовый Чек [05:32:44]line ПРОДАЖА [05:32:44]line ТРК (МРК, ГНК) : 51 [05:32:44]line Товар: 2711190000 [05:32:44]line ГАЗ-К-3 [05:32:44]line 50.390 * 38.90 [05:32:44]line = 1960.17 [05:32:44]line НДС 12% НСП 1% [05:32:44]line > о реализуемом товаре [05:32:44]line ОКРУГЛЕНИЕ: -0.17 [05:32:44]line ИТОГО: 1960.00 [05:32:44]line Внесено: 2000.00 [05:32:44]line СДАЧА: 40.00 [05:32:44]line НСП 1% : 17.35 [05:32:44]line НДС 12% : 208.16 [05:32:44]line Наличными: 1960.00 [05:32:44]line Безнал.: 0.00 [05:32:44]line Место: АЗС № 142 "Партнер Нефть" [05:32:44]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [05:32:44]line СНО: Общий режим [05:32:44]line Чек 20 26.10.2024 05:32 [05:32:44]line Смена: 512 ФФД: 1.0 [05:32:44]line ЗНМ: 0300000089 [05:32:44]line РНМ: 0000000000091691 [05:32:44]line Версия ККМ: 001 [05:32:44]line ФМ: 0000000000871795 [05:32:44]line ФД: 75028 [05:32:44]line ФПД: 10628362041954 [05:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T053246&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75028&fm=10628362041954&tin=02508201610067®Number=0000000000091691&sum=196000 [05:32:45]written 0, free lines is 4095 [05:32:45]Write to MH i2c: 01 00 00 86 17 9D [05:32:45]Write i2c OK [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: 01 [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: 01 07 00 [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 A3 0C 53 [05:32:45]RasterBufferAndPrint [05:32:45]line [05:32:45]line [05:32:45]line [05:32:45]line [05:32:45]line [05:32:45]written 0, free lines is 3240 [05:32:45]MH_Cut [05:32:45]Write to MH i2c: D1 01 00 8D 17 01 76 [05:32:45]Write i2c OK [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: D1 [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: D1 01 00 [05:32:45]MH_I2C_Read... [05:32:45]Read from MH i2c: D1 01 00 8D 17 00 75 [05:32:45]Write to MH i2c: 01 00 00 8E 17 A5 [05:32:45]Write i2c OK [05:32:45]MH_I2C_Read... [05:32:46]*** Cut start [05:32:46]*** Partial cut [05:32:46]*** CUTSNS_PIN = 1 [05:32:46]*** CUTSNS_PIN = 0 [05:32:46]*** Brake cut motor [05:32:47]Read from MH i2c: 01 [05:32:47]MH_I2C_Read... [05:32:47]*** Stop cut motor [05:32:47]*** Cut end [05:32:47]Read from MH i2c: 01 07 00 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 FF 0F BA [05:32:47]process_action close_receipt done [05:32:47]requested_data is exist [05:32:47]produce_requested_data [05:32:47]requested_item fm.sn is exist - process it [05:32:47]wFMCommunicate request_size=4 [05:32:47]MH_SAM_APDU [05:32:47]CAPDU: 80 11 00 00 [05:32:47]Write to MH i2c: E2 08 00 8F 17 80 11 00 00 00 00 00 00 20 [05:32:47]Write i2c OK [05:32:47]MH_I2C_Read... [05:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:47]Read from MH i2c: E2 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 17 00 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 17 00 8F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 78 [05:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [05:32:47]wFMCommunicate OK [05:32:47]requested_item fd.num is exist - process it [05:32:47]SAM_PROTO_GetFieldsCounters [05:32:47]wFMCommunicate request_size=4 [05:32:47]MH_SAM_APDU [05:32:47]CAPDU: 80 13 00 00 [05:32:47]Write to MH i2c: E2 08 00 90 17 80 13 00 00 00 00 00 00 23 [05:32:47]Write i2c OK [05:32:47]MH_I2C_Read... [05:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:47]Read from MH i2c: E2 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 62 00 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 62 00 90 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 14 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [05:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 14 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:47]wFMCommunicate OK [05:32:47]SAM_PROTO_GetFieldsCounters done [05:32:47]requested_item shift.num is exist - process it [05:32:47]requested_item shift.opened is exist - process it [05:32:47]req_shift_opened [05:32:47]FM_GetShiftState [05:32:47]SAM_PROTO_GetShiftState [05:32:47]wFMCommunicate request_size=4 [05:32:47]MH_SAM_APDU [05:32:47]CAPDU: 80 13 01 00 [05:32:47]Write to MH i2c: E2 08 00 91 17 80 13 01 00 00 00 00 00 25 [05:32:47]Write i2c OK [05:32:47]MH_I2C_Read... [05:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:47]Read from MH i2c: E2 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 0E 00 [05:32:47]MH_I2C_Read... [05:32:47]Read from MH i2c: E2 0E 00 91 17 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 40 [05:32:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [05:32:47]wFMCommunicate OK [05:32:47]SAM_PROTO_GetShiftState done [05:32:47]FM_GetShiftState done [05:32:47]req_shift_opened done [05:32:47]requested_item shift.open_date is exist - process it [05:32:47]req_shift_open_date [05:32:47]req_shift_open_date done [05:32:47]produce_requested_data done [05:32:47]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75028,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [05:32:47]process_action_free close_receipt [05:32:47]json_value_free [05:32:47]json_value_free done [05:32:47]process_json_proto returns [05:32:47]Send response to host [05:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75028,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [05:32:47]free response buf [05:32:47]execute_script done [05:32:47]execute_script returns [05:32:47]free content buf [05:32:47]Sock 8.Close socket [05:32:47]Sock 8.Thread stoped [05:34:54]ConnectInit Can't connect to host [05:34:54]CommunicateWithHost connect error [05:34:54]CommunicateWithHost err = -1 [05:34:54]OFD Sender: Server communicate error [05:34:59]OFD Sender: Processing packet 75028 [packets to send 13, broken 12] [05:34:59]ProducePacketName [05:34:59]name=ofd_packets/00075028 [05:34:59]OFD Sender: To server: pG, [05:34:59]CommunicateWithHost lk.salyk.kg:30040 [05:34:59]ConnectInit lk.salyk.kg [05:34:59]Connected sock=8 [05:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 A9 FB 06 01 AC 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 D6 C4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 A0 FD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE 7E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 14 25 01 00 35 04 06 00 09 AA 9B BE 7A 62 78 2A 35 17 E0 AE 78 2F [05:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B6 4C 47 00 BC 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 38 37 31 37 39 35 10 04 04 00 14 25 01 00 F4 03 04 00 01 27 1C 67 B6 04 01 00 00 87 FC 17 C1 AB D3 FF 14 [05:34:59]CommunicateWithHost err = 0 [05:34:59]CheckOFDResponse [05:34:59]1017 (14) - 77093643461234 [05:34:59]1041 (16) - 0000000000871795 [05:34:59]1040 (4) - 75028 [05:34:59]1012 (4) - 25.10.2024 23:17 [05:34:59]1206 (1) - 0 [05:34:59]OFD Sender: Remove packet 75028 [05:34:59]ProducePacketName [05:34:59]name=ofd_packets/00075028 [05:34:59]NVStorageDeleteData [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]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:41]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: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: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:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]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: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:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]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: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:30]ConnectInit Can't connect to host [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:47]OFD Sender: No OFD packet to send [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: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:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:19]accept exits with 9 [06:43:19]New connection [06:43:19]New thread 3066781028 created [06:43:19]Thread 3066924388 joined [06:43:19]Waiting for new connection... [06:43:19] Sock 9.Parse request [06:43:19]Sock 9.Check first char [06:43:19]Sock 9.First char is OK [06:43:19]request: POST /json_proto HTTP/1.0 [06:43:19]Method: POST [06:43:19]URL: /json_proto [06:43:19]Method is POST - this is cgi request [06:43:19]url: /json_proto [06:43:19]query_string will be loaded in cgi processing [06:43:19]execute_cgi json_proto POST (null) [06:43:19]execute_cgi path=json_proto method=POST [06:43:19]POST find Content-Length [06:43:19]Host: 172.17.39.131:8080 [06:43:19]Content-Length: 682 [06:43:19]Content-Type: application/json [06:43:19] [06:43:19]POST finish read [06:43:19]Found Content-Length = 682 [06:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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 }]} ], "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:43:19]execute_script... [06:43: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)191001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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 }]} ], "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:43:19]POST & json_proto [06:43:19]process_json_proto [06:43:19]json parsed OK: [06:43:19]protocol is kg_v1.0 [06:43:19]action value=close_receipt [06:43:19]process_action close_receipt [06:43:19]cmd_close_receipt [06:43:19]MH_GetDate [06:43:19]Write to MH i2c: F0 00 00 92 17 98 [06:43:19]Write i2c OK [06:43:19]MH_I2C_Read... [06:43:19]Read from MH i2c: F0 [06:43:19]MH_I2C_Read... [06:43:19]Read from MH i2c: F0 09 00 [06:43:19]MH_I2C_Read... [06:43:19]Read from MH i2c: F0 09 00 92 17 00 8B 8F 1C 67 86 57 24 65 A4 [06:43:19]GetLastDocTimeStamp 1729920766 [06:43:19]current date 1729925003 [06:43:19]FM_GetShiftState [06:43:19]SAM_PROTO_GetShiftState [06:43:19]wFMCommunicate request_size=4 [06:43:19]MH_SAM_APDU [06:43:19]CAPDU: 80 13 01 00 [06:43:19]Write to MH i2c: E2 08 00 93 17 80 13 01 00 00 00 00 00 27 [06:43:19]Write i2c OK [06:43:19]MH_I2C_Read... [06:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:19]Read from MH i2c: E2 [06:43:19]MH_I2C_Read... [06:43:19]Read from MH i2c: E2 0E 00 [06:43:19]MH_I2C_Read... [06:43:19]Read from MH i2c: E2 0E 00 93 17 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 42 [06:43:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [06:43:19]wFMCommunicate OK [06:43:19]SAM_PROTO_GetShiftState done [06:43:19]FM_GetShiftState done [06:43:19]opened in 1729902166 [06:43:19]opened+sec_in_day 1729988566 [06:43:19]quantity*price = 250005 [06:43:19]sum+1 = 250006 [06:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 21 26.10.2024 06:43 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75029 ФПД: 50129732911210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T064323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75029&fm=50129732911210&tin=02508201610067®Number=0000000000091691&sum=250000 [06:43:21]StoreToDocumentArchive [06:43:21]shift 512 fd 75029 [06:43:21]save to /storage/0512/doc_00075029 [06:43:21]save last doc name /storage/0512/doc_00075029 to /storage/kkm_last_doc_name [06:43:21]save OK [06:43:21]Clear old archive folders... [06:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:43:21]tlvbuf is B6EBAC80 [06:43:21]SAM_PROTO_ClearQueue [06:43:21]wFMCommunicate request_size=4 [06:43:21]MH_SAM_APDU [06:43:21]CAPDU: 80 09 00 00 [06:43:21]Write to MH i2c: E2 08 00 A0 17 80 09 00 00 00 00 00 00 29 [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 A0 17 00 90 00 2B [06:43:21]RAPDU: 90 00 [06:43:21]wFMCommunicate OK [06:43:21]SAM_PROTO_ClearQueue done [06:43:21]KKMCreateOFDPacket [06:43:21]OFDProtocolAddRootSTLVToBuf [06:43:21]FM_MakeSignedData [06:43:21]FM_MakeSignedData [06:43:21]SAM_PROTO_SignData [06:43:21]wFMCommunicate request_size=4 [06:43:21]MH_SAM_APDU [06:43:21]CAPDU: 80 0D 01 02 [06:43:21]Write to MH i2c: E2 08 00 A1 17 80 0D 01 02 00 00 00 00 31 [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [06:43:21]RAPDU: 90 00 [06:43:21]wFMCommunicate OK [06:43:21]wFMCommunicate request_size=255 [06:43:21]MH_SAM_APDU [06:43: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 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 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8B 8F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 25 01 00 35 04 06 00 2D [06:43:21]Write to MH i2c: E2 02 01 A2 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 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 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8B 8F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 25 01 00 35 04 06 00 2D 00 00 1A [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [06:43:21]RAPDU: 90 00 [06:43:21]wFMCommunicate OK [06:43:21]wFMCommunicate request_size=10 [06:43:21]MH_SAM_APDU [06:43:21]CAPDU: 80 0D 02 02 05 97 BC EC 40 6A [06:43:21]Write to MH i2c: E2 0D 00 A3 17 80 0D 02 02 05 00 97 BC EC 40 6A 00 00 27 [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [06:43:21]RAPDU: 90 00 [06:43:21]wFMCommunicate OK [06:43:21]wFMCommunicate request_size=4 [06:43:21]MH_SAM_APDU [06:43:21]CAPDU: 80 0D 03 02 [06:43:21]Write to MH i2c: E2 08 00 A4 17 80 0D 03 02 00 00 00 00 36 [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 0B 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 0B 00 A4 17 00 5F 31 E7 76 A8 51 B8 48 90 00 1D [06:43:21]RAPDU: 5F 31 E7 76 A8 51 B8 48 90 00 [06:43:21]wFMCommunicate OK [06:43:21]SAM_PROTO_SignData done [06:43:21]FM_MakeSignedData done [06:43:21]CreateOFDProtocolMessage [06:43:21]wFMCommunicate request_size=4 [06:43:21]MH_SAM_APDU [06:43:21]CAPDU: 80 11 00 00 [06:43:21]Write to MH i2c: E2 08 00 A5 17 80 11 00 00 00 00 00 00 36 [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:21]Read from MH i2c: E2 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 17 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: E2 17 00 A5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8E [06:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [06:43:21]wFMCommunicate OK [06:43:21]CreateOFDProtocolMessage done [06:43:21]OFDSenderStorePacket 75029 [06:43:21]StoreOFDPacket docnum=75029 [06:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0F 3F 07 01 78 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 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 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8B 8F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 25 01 00 35 04 06 00 2D 97 BC EC 40 6A 5F 31 E7 76 A8 51 B8 48 [06:43:21]CheckFolder [06:43:21]dirname=/storage/ofd_packets [06:43:21]CheckFolder done [06:43:21]ProducePacketName [06:43:21]name=ofd_packets/00075029 [06:43:21]NVStorageSaveData ofd_packets/00075029 [06:43:21]File name is /storage/ofd_packets/00075029 [06:43:21]Write 301 bytes [06:43:21]NVStorageSaveData done [06:43:21]OFDSenderStorePacket done [06:43:21]KKMCreateOFDPacket done [06:43:21]NVStorageSaveData kkm_last_timestamp [06:43:21]File name is /storage/kkm_last_timestamp [06:43:21]Write 4 bytes [06:43:21]OFD Sender: Processing packet 75029 [packets to send 13, broken 12] [06:43:21]ProducePacketName [06:43:21]name=ofd_packets/00075029 [06:43:21]OFD Sender: To server: pG, [06:43:21]CommunicateWithHost lk.salyk.kg:30040 [06:43:21]ConnectInit lk.salyk.kg [06:43:21]NVStorageSaveData done [06:43:21]ExternCall_PrintAddStr [06:43:21]wPrintStart [06:43:21]Write to MH i2c: 01 00 00 A6 17 BD [06:43:21]Write i2c OK [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: 01 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: 01 07 00 [06:43:21]MH_I2C_Read... [06:43:21]Read from MH i2c: 01 07 00 A6 17 00 00 00 00 00 FF 0F D2 [06:43:21]RasterBufferAndPrint [06:43:21]line Счет N : (1)191001 [06:43:21]line ИНН: 02508201610067 [06:43:21]line Контрольно-Кассовый Чек [06:43:21]line ПРОДАЖА [06:43:21]line ТРК (МРК, ГНК) : 21 [06:43:21]line Товар: 2710124130 [06:43:21]line Аи-92-К-5 [06:43:21]line 37.370 * 66.90 [06:43:21]line = 2500.05 [06:43:21]line НДС 12% НСП 1% [06:43:21]line > о реализуемом товаре [06:43:21]line ОКРУГЛЕНИЕ: -0.05 [06:43:21]line ИТОГО: 2500.00 [06:43:21]line Внесено: 2500.00 [06:43:21]line СДАЧА: 0.00 [06:43:21]line НСП 1% : 22.12 [06:43:21]line НДС 12% : 265.49 [06:43:21]line Наличными: 2500.00 [06:43:21]line Безнал.: 0.00 [06:43:21]line Место: АЗС № 142 "Партнер Нефть" [06:43:21]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [06:43:21]line СНО: Общий режим [06:43:21]line Чек 21 26.10.2024 06:43 [06:43:21]line Смена: 512 ФФД: 1.0 [06:43:21]line ЗНМ: 0300000089 [06:43:21]line РНМ: 0000000000091691 [06:43:21]line Версия ККМ: 001 [06:43:21]line ФМ: 0000000000871795 [06:43:21]line ФД: 75029 [06:43:21]line ФПД: 50129732911210 [06:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T064323&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75029&fm=50129732911210&tin=02508201610067®Number=0000000000091691&sum=250000 [06:43:21]Connected sock=11 [06:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0F 3F 07 01 78 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 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 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 8B 8F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 15 25 01 00 35 04 06 00 2D 97 BC EC 40 6A 5F 31 E7 76 A8 51 B8 48 [06:43:21]written 0, free lines is 4095 [06:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 52 07 47 00 F2 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 38 37 31 37 39 35 10 04 04 00 15 25 01 00 F4 03 04 00 08 37 1C 67 B6 04 01 00 00 7C E0 47 34 73 BB 39 E6 [06:43:22]CommunicateWithHost err = 0 [06:43:22]CheckOFDResponse [06:43:22]1017 (14) - 77093643461234 [06:43:22]1041 (16) - 0000000000871795 [06:43:22]1040 (4) - 75029 [06:43:22]1012 (4) - 26.10.2024 00:25 [06:43:22]1206 (1) - 0 [06:43:22]OFD Sender: Remove packet 75029 [06:43:22]ProducePacketName [06:43:22]name=ofd_packets/00075029 [06:43:22]NVStorageDeleteData [06:43:22]Write to MH i2c: 01 00 00 D1 17 E8 [06:43:22]Write i2c OK [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: 01 [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: 01 07 00 [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: 01 07 00 D1 17 00 00 00 00 00 AF 0C AA [06:43:22]RasterBufferAndPrint [06:43:22]line [06:43:22]line [06:43:22]line [06:43:22]line [06:43:22]line [06:43:22]written 0, free lines is 3253 [06:43:22]MH_Cut [06:43:22]Write to MH i2c: D1 01 00 D8 17 01 C1 [06:43:22]Write i2c OK [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: D1 [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: D1 01 00 [06:43:22]MH_I2C_Read... [06:43:22]Read from MH i2c: D1 01 00 D8 17 00 C0 [06:43:22]Write to MH i2c: 01 00 00 D9 17 F0 [06:43:22]Write i2c OK [06:43:22]MH_I2C_Read... [06:43:22]OFD Sender: No OFD packet to send [06:43:23]*** Cut start [06:43:23]*** Partial cut [06:43:23]*** CUTSNS_PIN = 1 [06:43:23]*** CUTSNS_PIN = 0 [06:43:23]*** Brake cut motor [06:43:23]Read from MH i2c: 01 [06:43:23]MH_I2C_Read... [06:43:23]*** Stop cut motor [06:43:23]*** Cut end [06:43:23]Read from MH i2c: 01 07 00 [06:43:23]MH_I2C_Read... [06:43:23]Read from MH i2c: 01 07 00 D9 17 00 00 00 00 00 FF 0F 05 [06:43:23]process_action close_receipt done [06:43:23]requested_data is exist [06:43:23]produce_requested_data [06:43:23]requested_item fm.sn is exist - process it [06:43:23]wFMCommunicate request_size=4 [06:43:23]MH_SAM_APDU [06:43:23]CAPDU: 80 11 00 00 [06:43:23]Write to MH i2c: E2 08 00 DA 17 80 11 00 00 00 00 00 00 6B [06:43:23]Write i2c OK [06:43:23]MH_I2C_Read... [06:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:24]Read from MH i2c: E2 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 17 00 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 17 00 DA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C3 [06:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [06:43:24]wFMCommunicate OK [06:43:24]requested_item fd.num is exist - process it [06:43:24]SAM_PROTO_GetFieldsCounters [06:43:24]wFMCommunicate request_size=4 [06:43:24]MH_SAM_APDU [06:43:24]CAPDU: 80 13 00 00 [06:43:24]Write to MH i2c: E2 08 00 DB 17 80 13 00 00 00 00 00 00 6E [06:43:24]Write i2c OK [06:43:24]MH_I2C_Read... [06:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:24]Read from MH i2c: E2 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 62 00 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 62 00 DB 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 15 25 01 00 0E 04 04 00 00 02 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 11 [06:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 15 25 01 00 0E 04 04 00 00 02 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 [06:43:24]wFMCommunicate OK [06:43:24]SAM_PROTO_GetFieldsCounters done [06:43:24]requested_item shift.num is exist - process it [06:43:24]requested_item shift.opened is exist - process it [06:43:24]req_shift_opened [06:43:24]FM_GetShiftState [06:43:24]SAM_PROTO_GetShiftState [06:43:24]wFMCommunicate request_size=4 [06:43:24]MH_SAM_APDU [06:43:24]CAPDU: 80 13 01 00 [06:43:24]Write to MH i2c: E2 08 00 DC 17 80 13 01 00 00 00 00 00 70 [06:43:24]Write i2c OK [06:43:24]MH_I2C_Read... [06:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:24]Read from MH i2c: E2 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 0E 00 [06:43:24]MH_I2C_Read... [06:43:24]Read from MH i2c: E2 0E 00 DC 17 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8B [06:43:24]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [06:43:24]wFMCommunicate OK [06:43:24]SAM_PROTO_GetShiftState done [06:43:24]FM_GetShiftState done [06:43:24]req_shift_opened done [06:43:24]requested_item shift.open_date is exist - process it [06:43:24]req_shift_open_date [06:43:24]req_shift_open_date done [06:43:24]produce_requested_data done [06:43:24]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75029,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [06:43:24]process_action_free close_receipt [06:43:24]json_value_free [06:43:24]json_value_free done [06:43:24]process_json_proto returns [06:43:24]Send response to host [06:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75029,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [06:43:24]free response buf [06:43:24]execute_script done [06:43:24]execute_script returns [06:43:24]free content buf [06:43:24]Sock 9.Close socket [06:43:24]Sock 9.Thread stoped [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:39]ConnectInit Can't connect to host [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: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]ConnectInit Can't connect to host [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:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send 17 00 F0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D9 [07:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:21:11]wFMCommunicate OK [07:21:11]CreateOFDProtocolMessage done [07:21:11]OFDSenderStorePacket 75030 [07:21:11]StoreOFDPacket docnum=75030 [07:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D7 F5 07 01 85 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 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 16 00 00 00 F4 03 04 00 69 98 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 25 01 00 35 04 06 00 5A D3 76 7C F0 6D 52 23 29 A6 A3 9B D8 63 [07:21:11]CheckFolder [07:21:11]dirname=/storage/ofd_packets [07:21:11]CheckFolder done [07:21:11]ProducePacketName [07:21:11]name=ofd_packets/00075030 [07:21:11]NVStorageSaveData ofd_packets/00075030 [07:21:11]File name is /storage/ofd_packets/00075030 [07:21:11]Write 301 bytes [07:21:11]NVStorageSaveData done [07:21:11]OFDSenderStorePacket done [07:21:11]KKMCreateOFDPacket done [07:21:11]NVStorageSaveData kkm_last_timestamp [07:21:11]File name is /storage/kkm_last_timestamp [07:21:11]Write 4 bytes [07:21:11]OFD Sender: Processing packet 75030 [packets to send 13, broken 12] [07:21:11]ProducePacketName [07:21:11]name=ofd_packets/00075030 [07:21:11]OFD Sender: To server: pG, [07:21:11]CommunicateWithHost lk.salyk.kg:30040 [07:21:11]ConnectInit lk.salyk.kg [07:21:11]NVStorageSaveData done [07:21:11]ExternCall_PrintAddStr [07:21:11]wPrintStart [07:21:11]Write to MH i2c: 01 00 00 F1 17 08 [07:21:11]Write i2c OK [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 07 00 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [07:21:11]RasterBufferAndPrint [07:21:11]line Счет N : (1)191002 [07:21:11]line ИНН: 02508201610067 [07:21:11]line Контрольно-Кассовый Чек [07:21:11]line ПРОДАЖА [07:21:11]line ТРК (МРК, ГНК) : 21 [07:21:11]line Товар: 2710124130 [07:21:11]line Аи-92-К-5 [07:21:11]line 14.950 * 66.90 [07:21:11]line = 1000.16 [07:21:11]line НДС 12% НСП 1% [07:21:11]line > о реализуемом товаре [07:21:11]line ОКРУГЛЕНИЕ: -0.16 [07:21:11]line ИТОГО: 1000.00 [07:21:11]line Внесено: 1000.00 [07:21:11]line СДАЧА: 0.00 [07:21:11]line НСП 1% : 8.85 [07:21:11]line НДС 12% : 106.21 [07:21:11]line Наличными: 1000.00 [07:21:11]line Безнал.: 0.00 [07:21:11]line Место: АЗС № 142 "Партнер Нефть" [07:21:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:21:11]line СНО: Общий режим [07:21:11]line Чек 22 26.10.2024 07:21 [07:21:11]line Смена: 512 ФФД: 1.0 [07:21:11]line ЗНМ: 0300000089 [07:21:11]line РНМ: 0000000000091691 [07:21:11]line Версия ККМ: 001 [07:21:11]line ФМ: 0000000000871795 [07:21:11]line ФД: 75030 [07:21:11]line ФПД: 99864272498797 [07:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072113&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75030&fm=99864272498797&tin=02508201610067®Number=0000000000091691&sum=100000 [07:21:12]Connected sock=12 [07:21:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D7 F5 07 01 85 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 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 16 00 00 00 F4 03 04 00 69 98 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 25 01 00 35 04 06 00 5A D3 76 7C F0 6D 52 23 29 A6 A3 9B D8 63 [07:21:12]written 0, free lines is 4095 [07:21:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 47 3F 47 00 D1 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 16 25 01 00 F4 03 04 00 E6 3F 1C 67 B6 04 01 00 00 E2 31 00 28 AF 2D 67 B8 [07:21:12]CommunicateWithHost err = 0 [07:21:12]CheckOFDResponse [07:21:12]1017 (14) - 77093643461234 [07:21:12]1041 (16) - 0000000000871795 [07:21:12]1040 (4) - 75030 [07:21:12]1012 (4) - 26.10.2024 01:03 [07:21:12]1206 (1) - 0 [07:21:12]OFD Sender: Remove packet 75030 [07:21:12]ProducePacketName [07:21:12]name=ofd_packets/00075030 [07:21:12]NVStorageDeleteData [07:21:12]Write to MH i2c: 01 00 00 1C 18 34 [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: 01 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: 01 07 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 AA 0C F1 [07:21:12]RasterBufferAndPrint [07:21:12]line [07:21:12]line [07:21:12]line [07:21:12]line [07:21:12]line [07:21:12]written 0, free lines is 3251 [07:21:12]MH_Cut [07:21:12]Write to MH i2c: D1 01 00 23 18 01 0D [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: D1 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: D1 01 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: D1 01 00 23 18 00 0C [07:21:12]Write to MH i2c: 01 00 00 24 18 3C [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]OFD Sender: No OFD packet to send [07:21:13]*** Cut start [07:21:13]*** Partial cut [07:21:13]*** CUTSNS_PIN = 1 [07:21:13]*** CUTSNS_PIN = 0 [07:21:13]*** Brake cut motor [07:21:14]Read from MH i2c: 01 [07:21:14]MH_I2C_Read... [07:21:14]*** Stop cut motor [07:21:14]*** Cut end [07:21:14]Read from MH i2c: 01 07 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: 01 07 00 24 18 00 00 00 00 00 FF 0F 51 [07:21:14]process_action close_receipt done [07:21:14]requested_data is exist [07:21:14]produce_requested_data [07:21:14]requested_item fm.sn is exist - process it [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 11 00 00 [07:21:14]Write to MH i2c: E2 08 00 25 18 80 11 00 00 00 00 00 00 B7 [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 17 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 17 00 25 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0F [07:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:21:14]wFMCommunicate OK [07:21:14]requested_item fd.num is exist - process it [07:21:14]SAM_PROTO_GetFieldsCounters [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 13 00 00 [07:21:14]Write to MH i2c: E2 08 00 26 18 80 13 00 00 00 00 00 00 BA [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 62 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 62 00 26 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 16 25 01 00 0E 04 04 00 00 02 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 61 [07:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 16 25 01 00 0E 04 04 00 00 02 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 [07:21:14]wFMCommunicate OK [07:21:14]SAM_PROTO_GetFieldsCounters done [07:21:14]requested_item shift.num is exist - process it [07:21:14]requested_item shift.opened is exist - process it [07:21:14]req_shift_opened [07:21:14]FM_GetShiftState [07:21:14]SAM_PROTO_GetShiftState [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 13 01 00 [07:21:14]Write to MH i2c: E2 08 00 27 18 80 13 01 00 00 00 00 00 BC [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 0E 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 0E 00 27 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D7 [07:21:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:21:14]wFMCommunicate OK [07:21:14]SAM_PROTO_GetShiftState done [07:21:14]FM_GetShiftState done [07:21:14]req_shift_opened done [07:21:14]requested_item shift.open_date is exist - process it [07:21:14]req_shift_open_date [07:21:14]req_shift_open_date done [07:21:14]produce_requested_data done [07:21:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75030,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:21:14]process_action_free close_receipt [07:21:14]json_value_free [07:21:14]json_value_free done [07:21:14]process_json_proto returns [07:21:14]Send response to host [07:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75030,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:21:14]free response buf [07:21:14]execute_script done [07:21:14]execute_script returns [07:21:14]free content buf [07:21:14]Sock 8.Close socket [07:21:14]Sock 8.Thread stoped [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21: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:25]ConnectInit Can't connect to host [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:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:43]ConnectInit Can't connect to host [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:08]accept exits with 10 [07:26:08]New connection [07:26:08]New thread 3066781028 created [07:26:08]Thread 3066924388 joined [07:26:08]Waiting for new connection... [07:26:08] Sock 10.Parse request [07:26:08]Sock 10.Check first char [07:26:08]Sock 10.First char is OK [07:26:08]request: POST /json_proto HTTP/1.0 [07:26:08]Method: POST [07:26:08]URL: /json_proto [07:26:08]Method is POST - this is cgi request [07:26:08]url: /json_proto [07:26:08]query_string will be loaded in cgi processing [07:26:08]execute_cgi json_proto POST (null) [07:26:08]execute_cgi path=json_proto method=POST [07:26:08]POST find Content-Length [07:26:08]Host: 172.17.39.131:8080 [07:26:08]Content-Length: 681 [07:26:08]Content-Type: application/json [07:26:08] [07:26:08]POST finish read [07:26:08]Found Content-Length = 681 [07:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.660, "sum" : 103.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 103.00, "payments": [ { "type": 0, "sum" : 103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:08]execute_script... [07:26: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)191003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.660, "sum" : 103.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 103.00, "payments": [ { "type": 0, "sum" : 103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:08]POST & json_proto [07:26:08]process_json_proto [07:26:08]json parsed OK: [07:26:08]protocol is kg_v1.0 [07:26:08]action value=close_receipt [07:26:08]process_action close_receipt [07:26:08]cmd_close_receipt [07:26:08]MH_GetDate [07:26:08]Write to MH i2c: F0 00 00 28 18 2F [07:26:08]Write i2c OK [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: F0 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: F0 09 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: F0 09 00 28 18 00 94 99 1C 67 86 57 24 65 4E [07:26:08]GetLastDocTimeStamp 1729927273 [07:26:08]current date 1729927572 [07:26:08]FM_GetShiftState [07:26:08]SAM_PROTO_GetShiftState [07:26:08]wFMCommunicate request_size=4 [07:26:08]MH_SAM_APDU [07:26:08]CAPDU: 80 13 01 00 [07:26:08]Write to MH i2c: E2 08 00 29 18 80 13 01 00 00 00 00 00 BE [07:26:08]Write i2c OK [07:26:08]MH_I2C_Read... [07:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:08]Read from MH i2c: E2 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 0E 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 0E 00 29 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D9 [07:26:08]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:26:08]wFMCommunicate OK [07:26:08]SAM_PROTO_GetShiftState done [07:26:08]FM_GetShiftState done [07:26:08]opened in 1729902166 [07:26:08]opened+sec_in_day 1729988566 [07:26:08]quantity*price = 10347 [07:26:08]sum+1 = 10348 [07:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 103.00 Внесено: 1500.00 СДАЧА: 1397.00 НСП 1% : 0.92 НДС 12% : 10.99 Наличными: 103.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 23 26.10.2024 07:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75031 ФПД: 276249628445366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072612&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75031&fm=276249628445366&tin=02508201610067®Number=0000000000091691&sum=10300 [07:26:09]StoreToDocumentArchive [07:26:09]shift 512 fd 75031 [07:26:09]save to /storage/0512/doc_00075031 [07:26:09]save last doc name /storage/0512/doc_00075031 to /storage/kkm_last_doc_name [07:26:09]save OK [07:26:09]Clear old archive folders... [07:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:26:09]tlvbuf is 0085F680 [07:26:09]SAM_PROTO_ClearQueue [07:26:09]wFMCommunicate request_size=4 [07:26:09]MH_SAM_APDU [07:26:09]CAPDU: 80 09 00 00 [07:26:09]Write to MH i2c: E2 08 00 36 18 80 09 00 00 00 00 00 00 C0 [07:26:09]Write i2c OK [07:26:09]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]SAM_PROTO_ClearQueue done [07:26:10]KKMCreateOFDPacket [07:26:10]OFDProtocolAddRootSTLVToBuf [07:26:10]FM_MakeSignedData [07:26:10]FM_MakeSignedData [07:26:10]SAM_PROTO_SignData [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 01 02 [07:26:10]Write to MH i2c: E2 08 00 37 18 80 0D 01 02 00 00 00 00 C8 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=255 [07:26:10]MH_SAM_APDU [07:26:10]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6B 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 04 00 00 00 00 07 04 06 00 3C 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 25 01 00 35 04 06 00 FB 3F [07:26:10]Write to MH i2c: E2 02 01 38 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6B 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 04 00 00 00 00 07 04 06 00 3C 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 25 01 00 35 04 06 00 FB 3F 00 00 72 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=9 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 02 02 04 60 F9 0A B6 [07:26:10]Write to MH i2c: E2 0C 00 39 18 80 0D 02 02 04 00 60 F9 0A B6 00 00 EC [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 03 02 [07:26:10]Write to MH i2c: E2 08 00 3A 18 80 0D 03 02 00 00 00 00 CD [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 0B 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 0B 00 3A 18 00 66 96 EA 3E EA F0 60 7C 90 00 A8 [07:26:10]RAPDU: 66 96 EA 3E EA F0 60 7C 90 00 [07:26:10]wFMCommunicate OK [07:26:10]SAM_PROTO_SignData done [07:26:10]FM_MakeSignedData done [07:26:10]CreateOFDProtocolMessage [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 11 00 00 [07:26:10]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 17 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 25 [07:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:26:10]wFMCommunicate OK [07:26:10]CreateOFDProtocolMessage done [07:26:10]OFDSenderStorePacket 75031 [07:26:10]StoreOFDPacket docnum=75031 [07:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B0 C0 06 01 F4 CA 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6B 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 04 00 00 00 00 07 04 06 00 3C 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 25 01 00 35 04 06 00 FB 3F 60 F9 0A B6 66 96 EA 3E EA F0 60 7C [07:26:10]CheckFolder [07:26:10]dirname=/storage/ofd_packets [07:26:10]CheckFolder done [07:26:10]ProducePacketName [07:26:10]name=ofd_packets/00075031 [07:26:10]NVStorageSaveData ofd_packets/00075031 [07:26:10]File name is /storage/ofd_packets/00075031 [07:26:10]Write 300 bytes [07:26:10]NVStorageSaveData done [07:26:10]OFDSenderStorePacket done [07:26:10]KKMCreateOFDPacket done [07:26:10]NVStorageSaveData kkm_last_timestamp [07:26:10]File name is /storage/kkm_last_timestamp [07:26:10]Write 4 bytes [07:26:10]NVStorageSaveData done [07:26:10]ExternCall_PrintAddStr [07:26:10]wPrintStart [07:26:10]Write to MH i2c: 01 00 00 3C 18 54 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 07 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [07:26:10]RasterBufferAndPrint [07:26:10]line Счет N : (1)191003 [07:26:10]line ИНН: 02508201610067 [07:26:10]line Контрольно-Кассовый Чек [07:26:10]line ПРОДАЖА [07:26:10]line ТРК (МРК, ГНК) : 51 [07:26:10]line Товар: 2711190000 [07:26:10]line ГАЗ-К-3 [07:26:10]line 2.660 * 38.90 [07:26:10]line = 103.47 [07:26:10]line НДС 12% НСП 1% [07:26:10]line > о реализуемом товаре [07:26:10]line ОКРУГЛЕНИЕ: -0.47 [07:26:10]line ИТОГО: 103.00 [07:26:10]line Внесено: 1500.00 [07:26:10]line СДАЧА: 1397.00 [07:26:10]line НСП 1% : 0.92 [07:26:10]line НДС 12% : 10.99 [07:26:10]line Наличными: 103.00 [07:26:10]line Безнал.: 0.00 [07:26:10]line Место: АЗС № 142 "Партнер Нефть" [07:26:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:26:10]line СНО: Общий режим [07:26:10]line Чек 23 26.10.2024 07:26 [07:26:10]line Смена: 512 ФФД: 1.0 [07:26:10]line ЗНМ: 0300000089 [07:26:10]line РНМ: 0000000000091691 [07:26:10]line Версия ККМ: 001 [07:26:10]line ФМ: 0000000000871795 [07:26:10]line ФД: 75031 [07:26:10]line ФПД: 276249628445366 [07:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072612&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75031&fm=276249628445366&tin=02508201610067®Number=0000000000091691&sum=10300 [07:26:10]written 0, free lines is 4095 [07:26:10]OFD Sender: Processing packet 75031 [packets to send 13, broken 12] [07:26:10]ProducePacketName [07:26:10]name=ofd_packets/00075031 [07:26:10]OFD Sender: To server: pG, [07:26:10]CommunicateWithHost lk.salyk.kg:30040 [07:26:10]ConnectInit lk.salyk.kg [07:26:10]Connected sock=11 [07:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B0 C0 06 01 F4 CA 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 6B 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 04 00 00 00 00 07 04 06 00 3C 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 25 01 00 35 04 06 00 FB 3F 60 F9 0A B6 66 96 EA 3E EA F0 60 7C [07:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0A 06 47 00 7F F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 17 25 01 00 F4 03 04 00 11 41 1C 67 B6 04 01 00 00 AE CA 77 50 44 FF F7 A6 [07:26:11]CommunicateWithHost err = 0 [07:26:11]CheckOFDResponse [07:26:11]1017 (14) - 77093643461234 [07:26:11]1041 (16) - 0000000000871795 [07:26:11]1040 (4) - 75031 [07:26:11]1012 (4) - 26.10.2024 01:08 [07:26:11]1206 (1) - 0 [07:26:11]OFD Sender: Remove packet 75031 [07:26:11]ProducePacketName [07:26:11]name=ofd_packets/00075031 [07:26:11]NVStorageDeleteData [07:26:11]Write to MH i2c: 01 00 00 67 18 7F [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 07 00 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 07 00 67 18 00 00 00 00 00 DE 0C 70 [07:26:11]RasterBufferAndPrint [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]written 0, free lines is 3302 [07:26:11]MH_Cut [07:26:11]Write to MH i2c: D1 01 00 6E 18 01 58 [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 01 00 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 01 00 6E 18 00 57 [07:26:11]Write to MH i2c: 01 00 00 6F 18 87 [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:11]OFD Sender: No OFD packet to send [07:26:11]*** Cut start [07:26:11]*** Partial cut [07:26:11]*** CUTSNS_PIN = 1 [07:26:11]*** CUTSNS_PIN = 0 [07:26:12]*** Brake cut motor [07:26:12]Read from MH i2c: 01 [07:26:12]MH_I2C_Read... [07:26:12]*** Stop cut motor [07:26:12]*** Cut end [07:26:12]Read from MH i2c: 01 07 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 FF 0F 9C [07:26:12]process_action close_receipt done [07:26:12]requested_data is exist [07:26:12]produce_requested_data [07:26:12]requested_item fm.sn is exist - process it [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 11 00 00 [07:26:12]Write to MH i2c: E2 08 00 70 18 80 11 00 00 00 00 00 00 02 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 70 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5A [07:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:26:12]wFMCommunicate OK [07:26:12]requested_item fd.num is exist - process it [07:26:12]SAM_PROTO_GetFieldsCounters [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 13 00 00 [07:26:12]Write to MH i2c: E2 08 00 71 18 80 13 00 00 00 00 00 00 05 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 62 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 62 00 71 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 17 25 01 00 0E 04 04 00 00 02 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 B0 [07:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 17 25 01 00 0E 04 04 00 00 02 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 [07:26:12]wFMCommunicate OK [07:26:12]SAM_PROTO_GetFieldsCounters done [07:26:12]requested_item shift.num is exist - process it [07:26:12]requested_item shift.opened is exist - process it [07:26:12]req_shift_opened [07:26:12]FM_GetShiftState [07:26:12]SAM_PROTO_GetShiftState [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 13 01 00 [07:26:12]Write to MH i2c: E2 08 00 72 18 80 13 01 00 00 00 00 00 07 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 0E 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 0E 00 72 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 22 [07:26:12]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:26:12]wFMCommunicate OK [07:26:12]SAM_PROTO_GetShiftState done [07:26:12]FM_GetShiftState done [07:26:12]req_shift_opened done [07:26:12]requested_item shift.open_date is exist - process it [07:26:12]req_shift_open_date [07:26:12]req_shift_open_date done [07:26:12]produce_requested_data done [07:26:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75031,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:26:12]process_action_free close_receipt [07:26:12]json_value_free [07:26:12]json_value_free done [07:26:12]process_json_proto returns [07:26:12]Send response to host [07:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75031,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:26:12]free response buf [07:26:12]execute_script done [07:26:12]execute_script returns [07:26:12]free content buf [07:26:12]Sock 10.Close socket [07:26:12]Sock 10.Thread stoped [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:33]accept exits with 9 [07:26:33]New connection [07:26:33]New thread 3066924388 created [07:26:33]Thread 3066781028 joined [07:26:33]Waiting for new connection... [07:26:33] Sock 9.Parse request [07:26:33]Sock 9.Check first char [07:26:33]Sock 9.First char is OK [07:26:33]request: POST /json_proto HTTP/1.0 [07:26:33]Method: POST [07:26:33]URL: /json_proto [07:26:33]Method is POST - this is cgi request [07:26:33]url: /json_proto [07:26:33]query_string will be loaded in cgi processing [07:26:33]execute_cgi json_proto POST (null) [07:26:33]execute_cgi path=json_proto method=POST [07:26:33]POST find Content-Length [07:26:33]Host: 172.17.39.131:8080 [07:26:33]Content-Length: 679 [07:26:33]Content-Type: application/json [07:26:33] [07:26:33]POST finish read [07:26:33]Found Content-Length = 679 [07:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [07:26:34]execute_script... [07:26: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)191004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [07:26:34]POST & json_proto [07:26:34]process_json_proto [07:26:34]json parsed OK: [07:26:34]protocol is kg_v1.0 [07:26:34]action value=close_receipt [07:26:34]process_action close_receipt [07:26:34]cmd_close_receipt [07:26:34]MH_GetDate [07:26:34]Write to MH i2c: F0 00 00 73 18 7A [07:26:34]Write i2c OK [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 09 00 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: F0 09 00 73 18 00 AD 99 1C 67 86 57 24 65 B2 [07:26:34]GetLastDocTimeStamp 1729927572 [07:26:34]current date 1729927597 [07:26:34]FM_GetShiftState [07:26:34]SAM_PROTO_GetShiftState [07:26:34]wFMCommunicate request_size=4 [07:26:34]MH_SAM_APDU [07:26:34]CAPDU: 80 13 01 00 [07:26:34]Write to MH i2c: E2 08 00 74 18 80 13 01 00 00 00 00 00 09 [07:26:34]Write i2c OK [07:26:34]MH_I2C_Read... [07:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:34]Read from MH i2c: E2 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: E2 0E 00 [07:26:34]MH_I2C_Read... [07:26:34]Read from MH i2c: E2 0E 00 74 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 24 [07:26:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:26:34]wFMCommunicate OK [07:26:34]SAM_PROTO_GetShiftState done [07:26:34]FM_GetShiftState done [07:26:34]opened in 1729902166 [07:26:34]opened+sec_in_day 1729988566 [07:26:34]quantity*price = 150037 [07:26:34]sum+1 = 150039 [07:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 24 26.10.2024 07:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75032 ФПД: 132273307142212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072637&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75032&fm=132273307142212&tin=02508201610067®Number=0000000000091691&sum=150000 [07:26:35]StoreToDocumentArchive [07:26:35]shift 512 fd 75032 [07:26:35]save to /storage/0512/doc_00075032 [07:26:35]save last doc name /storage/0512/doc_00075032 to /storage/kkm_last_doc_name [07:26:35]save OK [07:26:35]Clear old archive folders... [07:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:26:35]tlvbuf is 008A1380 [07:26:35]SAM_PROTO_ClearQueue [07:26:35]wFMCommunicate request_size=4 [07:26:35]MH_SAM_APDU [07:26:35]CAPDU: 80 09 00 00 [07:26:35]Write to MH i2c: E2 08 00 81 18 80 09 00 00 00 00 00 00 0B [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 81 18 00 90 00 0D [07:26:35]RAPDU: 90 00 [07:26:35]wFMCommunicate OK [07:26:35]SAM_PROTO_ClearQueue done [07:26:35]KKMCreateOFDPacket [07:26:35]OFDProtocolAddRootSTLVToBuf [07:26:35]FM_MakeSignedData [07:26:35]FM_MakeSignedData [07:26:35]SAM_PROTO_SignData [07:26:35]wFMCommunicate request_size=4 [07:26:35]MH_SAM_APDU [07:26:35]CAPDU: 80 0D 01 02 [07:26:35]Write to MH i2c: E2 08 00 82 18 80 0D 01 02 00 00 00 00 13 [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [07:26:35]RAPDU: 90 00 [07:26:35]wFMCommunicate OK [07:26:35]wFMCommunicate request_size=255 [07:26:35]MH_SAM_APDU [07:26: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 34 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 18 00 00 00 F4 03 04 00 AD 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 25 01 00 35 04 06 00 78 4D 47 7C [07:26:35]Write to MH i2c: E2 02 01 83 18 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 34 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 18 00 00 00 F4 03 04 00 AD 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 25 01 00 35 04 06 00 78 4D 47 7C 00 00 BD [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 83 18 00 90 00 0F [07:26:35]RAPDU: 90 00 [07:26:35]wFMCommunicate OK [07:26:35]wFMCommunicate request_size=7 [07:26:35]MH_SAM_APDU [07:26:35]CAPDU: 80 0D 02 02 02 48 44 [07:26:35]Write to MH i2c: E2 0A 00 84 18 80 0D 02 02 02 00 48 44 00 00 A6 [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [07:26:35]RAPDU: 90 00 [07:26:35]wFMCommunicate OK [07:26:35]wFMCommunicate request_size=4 [07:26:35]MH_SAM_APDU [07:26:35]CAPDU: 80 0D 03 02 [07:26:35]Write to MH i2c: E2 08 00 85 18 80 0D 03 02 00 00 00 00 18 [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 0B 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 0B 00 85 18 00 28 BB 6A 10 14 C7 E9 BA 90 00 F4 [07:26:35]RAPDU: 28 BB 6A 10 14 C7 E9 BA 90 00 [07:26:35]wFMCommunicate OK [07:26:35]SAM_PROTO_SignData done [07:26:35]FM_MakeSignedData done [07:26:35]CreateOFDProtocolMessage [07:26:35]wFMCommunicate request_size=4 [07:26:35]MH_SAM_APDU [07:26:35]CAPDU: 80 11 00 00 [07:26:35]Write to MH i2c: E2 08 00 86 18 80 11 00 00 00 00 00 00 18 [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:35]Read from MH i2c: E2 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 17 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: E2 17 00 86 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 70 [07:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:26:35]wFMCommunicate OK [07:26:35]CreateOFDProtocolMessage done [07:26:35]OFDSenderStorePacket 75032 [07:26:35]StoreOFDPacket docnum=75032 [07:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C CF 04 01 DC 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 AD 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 25 01 00 35 04 06 00 78 4D 47 7C 48 44 28 BB 6A 10 14 C7 E9 BA [07:26:35]CheckFolder [07:26:35]dirname=/storage/ofd_packets [07:26:35]CheckFolder done [07:26:35]ProducePacketName [07:26:35]name=ofd_packets/00075032 [07:26:35]NVStorageSaveData ofd_packets/00075032 [07:26:35]File name is /storage/ofd_packets/00075032 [07:26:35]Write 298 bytes [07:26:35]NVStorageSaveData done [07:26:35]OFDSenderStorePacket done [07:26:35]KKMCreateOFDPacket done [07:26:35]NVStorageSaveData kkm_last_timestamp [07:26:35]File name is /storage/kkm_last_timestamp [07:26:35]Write 4 bytes [07:26:35]NVStorageSaveData done [07:26:35]ExternCall_PrintAddStr [07:26:35]wPrintStart [07:26:35]Write to MH i2c: 01 00 00 87 18 9F [07:26:35]OFD Sender: Processing packet 75032 [packets to send 13, broken 12] [07:26:35]ProducePacketName [07:26:35]name=ofd_packets/00075032 [07:26:35]OFD Sender: To server: pG, [07:26:35]CommunicateWithHost lk.salyk.kg:30040 [07:26:35]ConnectInit lk.salyk.kg [07:26:35]Write i2c OK [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: 01 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: 01 07 00 [07:26:35]MH_I2C_Read... [07:26:35]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 FF 0F B4 [07:26:35]RasterBufferAndPrint [07:26:35]line Счет N : (1)191004 [07:26:35]line ИНН: 02508201610067 [07:26:35]line Контрольно-Кассовый Чек [07:26:35]line ПРОДАЖА [07:26:35]line ТРК (МРК, ГНК) : 41 [07:26:35]line Товар: 2710194210 [07:26:35]line ДТ-К-4 [07:26:35]line 19.690 * 76.20 [07:26:35]line = 1500.38 [07:26:35]line НДС 12% НСП 1% [07:26:35]line > о реализуемом товаре [07:26:35]line ОКРУГЛЕНИЕ: -0.38 [07:26:35]line ИТОГО: 1500.00 [07:26:35]line Внесено: 1500.00 [07:26:35]line СДАЧА: 0.00 [07:26:35]line НСП 1% : 13.28 [07:26:35]line НДС 12% : 159.33 [07:26:35]line Наличными: 1500.00 [07:26:35]line Безнал.: 0.00 [07:26:35]line Место: АЗС № 142 "Партнер Нефть" [07:26:35]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:26:35]line СНО: Общий режим [07:26:35]line Чек 24 26.10.2024 07:26 [07:26:35]line Смена: 512 ФФД: 1.0 [07:26:35]line ЗНМ: 0300000089 [07:26:35]line РНМ: 0000000000091691 [07:26:35]line Версия ККМ: 001 [07:26:35]line ФМ: 0000000000871795 [07:26:35]line ФД: 75032 [07:26:35]line ФПД: 132273307142212 [07:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072637&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75032&fm=132273307142212&tin=02508201610067®Number=0000000000091691&sum=150000 [07:26:35]written 0, free lines is 4095 [07:26:35]Connected sock=11 [07:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C CF 04 01 DC 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 18 00 00 00 F4 03 04 00 AD 99 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 25 01 00 35 04 06 00 78 4D 47 7C 48 44 28 BB 6A 10 14 C7 E9 BA [07:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7E 21 47 00 0F 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 18 25 01 00 F4 03 04 00 2A 41 1C 67 B6 04 01 00 00 BF 9D 92 A6 94 17 4B 6D [07:26:36]CommunicateWithHost err = 0 [07:26:36]CheckOFDResponse [07:26:36]1017 (14) - 77093643461234 [07:26:36]1041 (16) - 0000000000871795 [07:26:36]1040 (4) - 75032 [07:26:36]1012 (4) - 26.10.2024 01:08 [07:26:36]1206 (1) - 0 [07:26:36]OFD Sender: Remove packet 75032 [07:26:36]ProducePacketName [07:26:36]name=ofd_packets/00075032 [07:26:36]NVStorageDeleteData [07:26:36]Write to MH i2c: 01 00 00 B2 18 CA [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 07 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 10 0D EE [07:26:36]RasterBufferAndPrint [07:26:36]line [07:26:36]line [07:26:36]line [07:26:36]line [07:26:36]line [07:26:36]written 0, free lines is 3362 [07:26:36]MH_Cut [07:26:36]Write to MH i2c: D1 01 00 B9 18 01 A3 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: D1 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: D1 01 00 [07:26:36]MH_I2C_Read... [07:26:36]Read from MH i2c: D1 01 00 B9 18 00 A2 [07:26:36]Write to MH i2c: 01 00 00 BA 18 D2 [07:26:36]Write i2c OK [07:26:36]MH_I2C_Read... [07:26:36]OFD Sender: No OFD packet to send [07:26:37]*** Cut start [07:26:37]*** Partial cut [07:26:37]*** CUTSNS_PIN = 1 [07:26:37]*** CUTSNS_PIN = 0 [07:26:37]*** Brake cut motor [07:26:37]Read from MH i2c: 01 [07:26:37]MH_I2C_Read... [07:26:37]*** Stop cut motor [07:26:37]*** Cut end [07:26:37]Read from MH i2c: 01 07 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [07:26:37]process_action close_receipt done [07:26:37]requested_data is exist [07:26:37]produce_requested_data [07:26:37]requested_item fm.sn is exist - process it [07:26:37]wFMCommunicate request_size=4 [07:26:37]MH_SAM_APDU [07:26:37]CAPDU: 80 11 00 00 [07:26:37]Write to MH i2c: E2 08 00 BB 18 80 11 00 00 00 00 00 00 4D [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:37]Read from MH i2c: E2 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 17 00 [07:26:37]MH_I2C_Read... [07:26:37]Read from MH i2c: E2 17 00 BB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A5 [07:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:26:37]wFMCommunicate OK [07:26:37]requested_item fd.num is exist - process it [07:26:37]SAM_PROTO_GetFieldsCounters [07:26:37]wFMCommunicate request_size=4 [07:26:37]MH_SAM_APDU [07:26:37]CAPDU: 80 13 00 00 [07:26:37]Write to MH i2c: E2 08 00 BC 18 80 13 00 00 00 00 00 00 50 [07:26:37]Write i2c OK [07:26:37]MH_I2C_Read... [07:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:38]Read from MH i2c: E2 [07:26:38]MH_I2C_Read... [07:26:38]Read from MH i2c: E2 62 00 [07:26:38]MH_I2C_Read... [07:26:38]Read from MH i2c: E2 62 00 BC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 18 25 01 00 0E 04 04 00 00 02 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 FF [07:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 18 25 01 00 0E 04 04 00 00 02 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 [07:26:38]wFMCommunicate OK [07:26:38]SAM_PROTO_GetFieldsCounters done [07:26:38]requested_item shift.num is exist - process it [07:26:38]requested_item shift.opened is exist - process it [07:26:38]req_shift_opened [07:26:38]FM_GetShiftState [07:26:38]SAM_PROTO_GetShiftState [07:26:38]wFMCommunicate request_size=4 [07:26:38]MH_SAM_APDU [07:26:38]CAPDU: 80 13 01 00 [07:26:38]Write to MH i2c: E2 08 00 BD 18 80 13 01 00 00 00 00 00 52 [07:26:38]Write i2c OK [07:26:38]MH_I2C_Read... [07:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:38]Read from MH i2c: E2 [07:26:38]MH_I2C_Read... [07:26:38]Read from MH i2c: E2 0E 00 [07:26:38]MH_I2C_Read... [07:26:38]Read from MH i2c: E2 0E 00 BD 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6D [07:26:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:26:38]wFMCommunicate OK [07:26:38]SAM_PROTO_GetShiftState done [07:26:38]FM_GetShiftState done [07:26:38]req_shift_opened done [07:26:38]requested_item shift.open_date is exist - process it [07:26:38]req_shift_open_date [07:26:38]req_shift_open_date done [07:26:38]produce_requested_data done [07:26:38]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75032,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:26:38]process_action_free close_receipt [07:26:38]json_value_free [07:26:38]json_value_free done [07:26:38]process_json_proto returns [07:26:38]Send response to host [07:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75032,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:26:38]free response buf [07:26:38]execute_script done [07:26:38]execute_script returns [07:26:38]free content buf [07:26:38]Sock 9.Close socket [07:26:38]Sock 9.Thread stoped [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:02]ConnectInit Can't connect to host [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:02]accept exits with 10 [07:29:02]New connection [07:29:02]New thread 3066781028 created [07:29:02]Thread 3066924388 joined [07:29:02]Waiting for new connection... [07:29:02] Sock 10.Parse request [07:29:02]Sock 10.Check first char [07:29:02]Sock 10.First char is OK [07:29:02]request: POST /json_proto HTTP/1.0 [07:29:02]Method: POST [07:29:02]URL: /json_proto [07:29:02]Method is POST - this is cgi request [07:29:02]url: /json_proto [07:29:02]query_string will be loaded in cgi processing [07:29:02]execute_cgi json_proto POST (null) [07:29:02]execute_cgi path=json_proto method=POST [07:29:02]POST find Content-Length [07:29:02]Host: 172.17.39.131:8080 [07:29:02]Content-Length: 685 [07:29:02]Content-Type: application/json [07:29:02] [07:29:02]POST finish read [07:29:02]Found Content-Length = 685 [07:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 35.920, "sum" : 1397.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1397.00, "total" : 1397.00, "payments": [ { "type": 0, "sum" : 1397.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:02]execute_script... [07: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)191005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 35.920, "sum" : 1397.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1397.00, "total" : 1397.00, "payments": [ { "type": 0, "sum" : 1397.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:02]POST & json_proto [07:29:02]process_json_proto [07:29:02]json parsed OK: [07:29:02]protocol is kg_v1.0 [07:29:02]action value=close_receipt [07:29:02]process_action close_receipt [07:29:02]cmd_close_receipt [07:29:02]MH_GetDate [07:29:02]Write to MH i2c: F0 00 00 BE 18 C5 [07:29:02]Write i2c OK [07:29:02]MH_I2C_Read... [07:29:02]Read from MH i2c: F0 [07:29:02]MH_I2C_Read... [07:29:02]Read from MH i2c: F0 09 00 [07:29:02]MH_I2C_Read... [07:29:02]Read from MH i2c: F0 09 00 BE 18 00 41 9A 1C 67 86 57 24 65 92 [07:29:02]GetLastDocTimeStamp 1729927597 [07:29:02]current date 1729927745 [07:29:02]FM_GetShiftState [07:29:02]SAM_PROTO_GetShiftState [07:29:02]wFMCommunicate request_size=4 [07:29:02]MH_SAM_APDU [07:29:02]CAPDU: 80 13 01 00 [07:29:02]Write to MH i2c: E2 08 00 BF 18 80 13 01 00 00 00 00 00 54 [07:29:02]Write i2c OK [07:29:02]MH_I2C_Read... [07:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:02]Read from MH i2c: E2 [07:29:02]MH_I2C_Read... [07:29:02]Read from MH i2c: E2 0E 00 [07:29:02]MH_I2C_Read... [07:29:02]Read from MH i2c: E2 0E 00 BF 18 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6F [07:29:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:29:02]wFMCommunicate OK [07:29:02]SAM_PROTO_GetShiftState done [07:29:02]FM_GetShiftState done [07:29:02]opened in 1729902166 [07:29:02]opened+sec_in_day 1729988566 [07:29:02]quantity*price = 139728 [07:29:02]sum+1 = 139730 [07:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1397.00 Внесено: 1397.00 СДАЧА: 0.00 НСП 1% : 12.36 НДС 12% : 148.38 Наличными: 1397.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 25 26.10.2024 07:29 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75033 ФПД: 253580023753459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072905&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75033&fm=253580023753459&tin=02508201610067®Number=0000000000091691&sum=139700 [07:29:03]StoreToDocumentArchive [07:29:03]shift 512 fd 75033 [07:29:03]save to /storage/0512/doc_00075033 [07:29:03]save last doc name /storage/0512/doc_00075033 to /storage/kkm_last_doc_name [07:29:03]save OK [07:29:03]Clear old archive folders... [07:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:29:03]tlvbuf is 008368C0 [07:29:03]SAM_PROTO_ClearQueue [07:29:03]wFMCommunicate request_size=4 [07:29:03]MH_SAM_APDU [07:29:03]CAPDU: 80 09 00 00 [07:29:03]Write to MH i2c: E2 08 00 CC 18 80 09 00 00 00 00 00 00 56 [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 CC 18 00 90 00 58 [07:29:03]RAPDU: 90 00 [07:29:03]wFMCommunicate OK [07:29:03]SAM_PROTO_ClearQueue done [07:29:03]KKMCreateOFDPacket [07:29:03]OFDProtocolAddRootSTLVToBuf [07:29:03]FM_MakeSignedData [07:29:03]FM_MakeSignedData [07:29:03]SAM_PROTO_SignData [07:29:03]wFMCommunicate request_size=4 [07:29:03]MH_SAM_APDU [07:29:03]CAPDU: 80 0D 01 02 [07:29:03]Write to MH i2c: E2 08 00 CD 18 80 0D 01 02 00 00 00 00 5E [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [07:29:03]RAPDU: 90 00 [07:29:03]wFMCommunicate OK [07:29:03]wFMCommunicate request_size=255 [07:29:03]MH_SAM_APDU [07:29: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 39 00 00 00 00 07 04 06 00 B4 21 02 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 41 9A 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 25 01 00 35 04 06 00 E6 A1 [07:29:03]Write to MH i2c: E2 02 01 CE 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 39 00 00 00 00 07 04 06 00 B4 21 02 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 41 9A 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 25 01 00 35 04 06 00 E6 A1 00 00 18 [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [07:29:03]RAPDU: 90 00 [07:29:03]wFMCommunicate OK [07:29:03]wFMCommunicate request_size=9 [07:29:03]MH_SAM_APDU [07:29:03]CAPDU: 80 0D 02 02 04 33 3C EA F3 [07:29:03]Write to MH i2c: E2 0C 00 CF 18 80 0D 02 02 04 00 33 3C EA F3 00 00 B5 [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [07:29:03]RAPDU: 90 00 [07:29:03]wFMCommunicate OK [07:29:03]wFMCommunicate request_size=4 [07:29:03]MH_SAM_APDU [07:29:03]CAPDU: 80 0D 03 02 [07:29:03]Write to MH i2c: E2 08 00 D0 18 80 0D 03 02 00 00 00 00 63 [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 0B 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 0B 00 D0 18 00 1F AB 2B 15 93 B8 3C 16 90 00 0B [07:29:03]RAPDU: 1F AB 2B 15 93 B8 3C 16 90 00 [07:29:03]wFMCommunicate OK [07:29:03]SAM_PROTO_SignData done [07:29:03]FM_MakeSignedData done [07:29:03]CreateOFDProtocolMessage [07:29:03]wFMCommunicate request_size=4 [07:29:03]MH_SAM_APDU [07:29:03]CAPDU: 80 11 00 00 [07:29:03]Write to MH i2c: E2 08 00 D1 18 80 11 00 00 00 00 00 00 63 [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 [07:29:03]MH_I2C_Read... [07:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:03]Read from MH i2c: E2 17 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: E2 17 00 D1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BB [07:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:29:03]wFMCommunicate OK [07:29:03]CreateOFDProtocolMessage done [07:29:03]OFDSenderStorePacket 75033 [07:29:03]StoreOFDPacket docnum=75033 [07:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 3C BF 06 01 FD A6 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 39 00 00 00 00 07 04 06 00 B4 21 02 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 41 9A 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 25 01 00 35 04 06 00 E6 A1 33 3C EA F3 1F AB 2B 15 93 B8 3C 16 [07:29:03]CheckFolder [07:29:03]dirname=/storage/ofd_packets [07:29:03]CheckFolder done [07:29:03]ProducePacketName [07:29:03]name=ofd_packets/00075033 [07:29:03]NVStorageSaveData ofd_packets/00075033 [07:29:03]File name is /storage/ofd_packets/00075033 [07:29:03]Write 300 bytes [07:29:03]NVStorageSaveData done [07:29:03]OFDSenderStorePacket done [07:29:03]KKMCreateOFDPacket done [07:29:03]NVStorageSaveData kkm_last_timestamp [07:29:03]File name is /storage/kkm_last_timestamp [07:29:03]Write 4 bytes [07:29:03]NVStorageSaveData done [07:29:03]ExternCall_PrintAddStr [07:29:03]wPrintStart [07:29:03]Write to MH i2c: 01 00 00 D2 18 EA [07:29:03]Write i2c OK [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: 01 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: 01 07 00 [07:29:03]MH_I2C_Read... [07:29:03]Read from MH i2c: 01 07 00 D2 18 00 00 00 00 00 FF 0F FF [07:29:03]RasterBufferAndPrint [07:29:03]line Счет N : (1)191005 [07:29:03]line ИНН: 02508201610067 [07:29:03]line Контрольно-Кассовый Чек [07:29:03]line ПРОДАЖА [07:29:03]line ТРК (МРК, ГНК) : 51 [07:29:03]line Товар: 2711190000 [07:29:03]line ГАЗ-К-3 [07:29:03]line 35.920 * 38.90 [07:29:03]line = 1397.29 [07:29:03]line НДС 12% НСП 1% [07:29:03]line > о реализуемом товаре [07:29:03]line ОКРУГЛЕНИЕ: -0.29 [07:29:03]line ИТОГО: 1397.00 [07:29:03]line Внесено: 1397.00 [07:29:04]line СДАЧА: 0.00 [07:29:04]line НСП 1% : 12.36 [07:29:04]line НДС 12% : 148.38 [07:29:04]line Наличными: 1397.00 [07:29:04]line Безнал.: 0.00 [07:29:04]line Место: АЗС № 142 "Партнер Нефть" [07:29:04]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:29:04]line СНО: Общий режим [07:29:04]line Чек 25 26.10.2024 07:29 [07:29:04]line Смена: 512 ФФД: 1.0 [07:29:04]line ЗНМ: 0300000089 [07:29:04]line РНМ: 0000000000091691 [07:29:04]line Версия ККМ: 001 [07:29:04]line ФМ: 0000000000871795 [07:29:04]line ФД: 75033 [07:29:04]line ФПД: 253580023753459 [07:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T072905&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75033&fm=253580023753459&tin=02508201610067®Number=0000000000091691&sum=139700 [07:29:04]OFD Sender: Processing packet 75033 [packets to send 13, broken 12] [07:29:04]ProducePacketName [07:29:04]name=ofd_packets/00075033 [07:29:04]OFD Sender: To server: pG, [07:29:04]CommunicateWithHost lk.salyk.kg:30040 [07:29:04]ConnectInit lk.salyk.kg [07:29:04]written 0, free lines is 4095 [07:29:04]Connected sock=11 [07:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 3C BF 06 01 FD A6 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 21 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 39 00 00 00 00 07 04 06 00 B4 21 02 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 41 9A 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 25 01 00 35 04 06 00 E6 A1 33 3C EA F3 1F AB 2B 15 93 B8 3C 16 [07:29:04]Write to MH i2c: 01 00 00 FD 18 15 [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: 01 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: 01 07 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: 01 07 00 FD 18 00 00 00 00 00 B9 0C E1 [07:29:04]RasterBufferAndPrint [07:29:04]line [07:29:04]line [07:29:04]line [07:29:04]line [07:29:04]line [07:29:04]written 0, free lines is 3269 [07:29:04]MH_Cut [07:29:04]Write to MH i2c: D1 01 00 04 19 01 EF [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: D1 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: D1 01 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: D1 01 00 04 19 00 EE [07:29:04]Write to MH i2c: 01 00 00 05 19 1E [07:29:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 65 B7 47 00 AE CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 19 25 01 00 F4 03 04 00 BE 41 1C 67 B6 04 01 00 00 C8 9D 72 DA 10 81 9A 5D [07:29:04]CommunicateWithHost err = 0 [07:29:04]CheckOFDResponse [07:29:04]1017 (14) - 77093643461234 [07:29:04]1041 (16) - 0000000000871795 [07:29:04]1040 (4) - 75033 [07:29:04]1012 (4) - 26.10.2024 01:11 [07:29:04]1206 (1) - 0 [07:29:04]OFD Sender: Remove packet 75033 [07:29:04]ProducePacketName [07:29:04]name=ofd_packets/00075033 [07:29:04]NVStorageDeleteData [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:05]OFD Sender: No OFD packet to send [07:29:05]*** Cut start [07:29:05]*** Partial cut [07:29:05]*** CUTSNS_PIN = 1 [07:29:05]*** CUTSNS_PIN = 0 [07:29:05]*** Brake cut motor [07:29:05]Read from MH i2c: 01 [07:29:05]MH_I2C_Read... [07:29:05]*** Stop cut motor [07:29:05]*** Cut end [07:29:05]Read from MH i2c: 01 07 00 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 FF 0F 33 [07:29:06]process_action close_receipt done [07:29:06]requested_data is exist [07:29:06]produce_requested_data [07:29:06]requested_item fm.sn is exist - process it [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 11 00 00 [07:29:06]Write to MH i2c: E2 08 00 06 19 80 11 00 00 00 00 00 00 99 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 06 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F1 [07:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:29:06]wFMCommunicate OK [07:29:06]requested_item fd.num is exist - process it [07:29:06]SAM_PROTO_GetFieldsCounters [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 13 00 00 [07:29:06]Write to MH i2c: E2 08 00 07 19 80 13 00 00 00 00 00 00 9C [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 62 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 62 00 07 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 19 25 01 00 0E 04 04 00 00 02 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 4F [07:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 19 25 01 00 0E 04 04 00 00 02 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 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_GetFieldsCounters done [07:29:06]requested_item shift.num is exist - process it [07:29:06]requested_item shift.opened is exist - process it [07:29:06]req_shift_opened [07:29:06]FM_GetShiftState [07:29:06]SAM_PROTO_GetShiftState [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 13 01 00 [07:29:06]Write to MH i2c: E2 08 00 08 19 80 13 01 00 00 00 00 00 9E [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0E 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0E 00 08 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B9 [07:29:06]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_GetShiftState done [07:29:06]FM_GetShiftState done [07:29:06]req_shift_opened done [07:29:06]requested_item shift.open_date is exist - process it [07:29:06]req_shift_open_date [07:29:06]req_shift_open_date done [07:29:06]produce_requested_data done [07:29:06]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75033,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:29:06]process_action_free close_receipt [07:29:06]json_value_free [07:29:06]json_value_free done [07:29:06]process_json_proto returns [07:29:06]Send response to host [07:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75033,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:29:06]free response buf [07:29:06]execute_script done [07:29:06]execute_script returns [07:29:06]free content buf [07:29:06]Sock 10.Close socket [07:29:06]Sock 10.Thread stoped [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:21]int [07:29:21]Write to MH i2c: 01 00 00 09 19 22 [07:29:21]*** FLAG_PRN_KEY set [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 09 19 00 08 00 00 00 FF 0F 3F [07:29:21]state=0 [07:29:21]Key pressed [07:29:21]Feed [07:29:21]Write to MH i2c: D8 00 00 0A 19 FA [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: D8 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: D8 01 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: D8 01 00 0A 19 00 FB [07:29:21]int [07:29:21]Write to MH i2c: 01 00 00 0B 19 24 [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 0B 19 00 48 00 00 00 3C 00 AF [07:29:21]state=2 [07:29:21]Key pressed [07:29:21]int [07:29:21]Write to MH i2c: 01 00 00 0C 19 25 [07:29:21]*** FLAG_PRN_KEY reset [07:29:21]Write i2c OK [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 [07:29:21]MH_I2C_Read... [07:29:21]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 F9 0F 34 [07:29:21]state=2 [07:29:21]Stop feed [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:28]accept exits with 9 [07:36:28]New connection [07:36:28]New thread 3066924388 created [07:36:28]Thread 3066781028 joined [07:36:28]Waiting for new connection... [07:36:28] Sock 9.Parse request [07:36:28]Sock 9.Check first char [07:36:28]Sock 9.First char is OK [07:36:28]request: POST /json_proto HTTP/1.0 [07:36:28]Method: POST [07:36:28]URL: /json_proto [07:36:28]Method is POST - this is cgi request [07:36:28]url: /json_proto [07:36:28]query_string will be loaded in cgi processing [07:36:28]execute_cgi json_proto POST (null) [07:36:28]execute_cgi path=json_proto method=POST [07:36:28]POST find Content-Length [07:36:28]Host: 172.17.39.131:8080 [07:36:28]Content-Length: 682 [07:36:28]Content-Type: application/json [07:36:28] [07:36:28]POST finish read [07:36:28]Found Content-Length = 682 [07:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:36:28]execute_script... [07:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:36:28]POST & json_proto [07:36:28]process_json_proto [07:36:28]json parsed OK: [07:36:28]protocol is kg_v1.0 [07:36:28]action value=close_receipt [07:36:28]process_action close_receipt [07:36:28]cmd_close_receipt [07:36:28]MH_GetDate [07:36:28]Write to MH i2c: F0 00 00 0D 19 15 [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 09 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 09 00 0D 19 00 00 9C 1C 67 86 57 24 65 A3 [07:36:28]GetLastDocTimeStamp 1729927745 [07:36:28]current date 1729928192 [07:36:28]FM_GetShiftState [07:36:28]SAM_PROTO_GetShiftState [07:36:28]wFMCommunicate request_size=4 [07:36:28]MH_SAM_APDU [07:36:28]CAPDU: 80 13 01 00 [07:36:28]Write to MH i2c: E2 08 00 0E 19 80 13 01 00 00 00 00 00 A4 [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:28]Read from MH i2c: E2 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 0E 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 0E 00 0E 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BF [07:36:28]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:36:28]wFMCommunicate OK [07:36:28]SAM_PROTO_GetShiftState done [07:36:28]FM_GetShiftState done [07:36:28]opened in 1729902166 [07:36:28]opened+sec_in_day 1729988566 [07:36:28]quantity*price = 100015 [07:36:28]sum+1 = 100017 [07:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 26 26.10.2024 07:36 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75034 ФПД: 230210050549441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073632&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75034&fm=230210050549441&tin=02508201610067®Number=0000000000091691&sum=100000 [07:36:29]StoreToDocumentArchive [07:36:29]shift 512 fd 75034 [07:36:29]save to /storage/0512/doc_00075034 [07:36:29]save last doc name /storage/0512/doc_00075034 to /storage/kkm_last_doc_name [07:36:29]save OK [07:36:29]Clear old archive folders... [07:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:29]tlvbuf is 00836360 [07:36:29]SAM_PROTO_ClearQueue [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 09 00 00 [07:36:29]Write to MH i2c: E2 08 00 1B 19 80 09 00 00 00 00 00 00 A6 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]SAM_PROTO_ClearQueue done [07:36:29]KKMCreateOFDPacket [07:36:29]OFDProtocolAddRootSTLVToBuf [07:36:29]FM_MakeSignedData [07:36:29]FM_MakeSignedData [07:36:29]SAM_PROTO_SignData [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 01 02 [07:36:29]Write to MH i2c: E2 08 00 1C 19 80 0D 01 02 00 00 00 00 AE [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 1C 19 00 90 00 A9 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]wFMCommunicate request_size=255 [07:36:29]MH_SAM_APDU [07:36: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 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 1A 00 00 00 F4 03 04 00 00 9C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 25 01 00 35 04 06 00 D1 [07:36:29]Write to MH i2c: E2 02 01 1D 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 00 9C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 25 01 00 35 04 06 00 D1 00 00 89 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 1D 19 00 90 00 AA [07:36:30]RAPDU: 90 00 [07:36:30]wFMCommunicate OK [07:36:30]wFMCommunicate request_size=10 [07:36:30]MH_SAM_APDU [07:36:30]CAPDU: 80 0D 02 02 05 5F F4 49 66 C1 [07:36:30]Write to MH i2c: E2 0D 00 1E 19 80 0D 02 02 05 00 5F F4 49 66 C1 00 00 7E [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 1E 19 00 90 00 AB [07:36:30]RAPDU: 90 00 [07:36:30]wFMCommunicate OK [07:36:30]wFMCommunicate request_size=4 [07:36:30]MH_SAM_APDU [07:36:30]CAPDU: 80 0D 03 02 [07:36:30]Write to MH i2c: E2 08 00 1F 19 80 0D 03 02 00 00 00 00 B3 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 0B 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 0B 00 1F 19 00 AC 94 DF BA 1B 64 C9 97 90 00 6C [07:36:30]RAPDU: AC 94 DF BA 1B 64 C9 97 90 00 [07:36:30]wFMCommunicate OK [07:36:30]SAM_PROTO_SignData done [07:36:30]FM_MakeSignedData done [07:36:30]CreateOFDProtocolMessage [07:36:30]wFMCommunicate request_size=4 [07:36:30]MH_SAM_APDU [07:36:30]CAPDU: 80 11 00 00 [07:36:30]Write to MH i2c: E2 08 00 20 19 80 11 00 00 00 00 00 00 B3 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 17 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 17 00 20 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0B [07:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:36:30]wFMCommunicate OK [07:36:30]CreateOFDProtocolMessage done [07:36:30]OFDSenderStorePacket 75034 [07:36:30]StoreOFDPacket docnum=75034 [07:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B4 00 07 01 B5 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 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 1A 00 00 00 F4 03 04 00 00 9C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 25 01 00 35 04 06 00 D1 5F F4 49 66 C1 AC 94 DF BA 1B 64 C9 97 [07:36:30]CheckFolder [07:36:30]dirname=/storage/ofd_packets [07:36:30]CheckFolder done [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00075034 [07:36:30]NVStorageSaveData ofd_packets/00075034 [07:36:30]File name is /storage/ofd_packets/00075034 [07:36:30]Write 301 bytes [07:36:30]NVStorageSaveData done [07:36:30]OFDSenderStorePacket done [07:36:30]KKMCreateOFDPacket done [07:36:30]NVStorageSaveData kkm_last_timestamp [07:36:30]File name is /storage/kkm_last_timestamp [07:36:30]Write 4 bytes [07:36:30]NVStorageSaveData done [07:36:30]ExternCall_PrintAddStr [07:36:30]wPrintStart [07:36:30]Write to MH i2c: 01 00 00 21 19 3A [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 21 19 00 00 00 00 00 FF 0F 4F [07:36:30]RasterBufferAndPrint [07:36:30]line Счет N : (1)191006 [07:36:30]line ИНН: 02508201610067 [07:36:30]line Контрольно-Кассовый Чек [07:36:30]line ПРОДАЖА [07:36:30]line ТРК (МРК, ГНК) : 21 [07:36:30]line Товар: 2710124130 [07:36:30]line Аи-92-К-5 [07:36:30]line 14.950 * 66.90 [07:36:30]line = 1000.16 [07:36:30]line НДС 12% НСП 1% [07:36:30]line > о реализуемом товаре [07:36:30]line ОКРУГЛЕНИЕ: -0.16 [07:36:30]line ИТОГО: 1000.00 [07:36:30]line Внесено: 1000.00 [07:36:30]line СДАЧА: 0.00 [07:36:30]line НСП 1% : 8.85 [07:36:30]line НДС 12% : 106.21 [07:36:30]line Наличными: 1000.00 [07:36:30]line Безнал.: 0.00 [07:36:30]line Место: АЗС № 142 "Партнер Нефть" [07:36:30]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:36:30]line СНО: Общий режим [07:36:30]line Чек 26 26.10.2024 07:36 [07:36:30]line Смена: 512 ФФД: 1.0 [07:36:30]line ЗНМ: 0300000089 [07:36:30]line РНМ: 0000000000091691 [07:36:30]line Версия ККМ: 001 [07:36:30]line ФМ: 0000000000871795 [07:36:30]line ФД: 75034 [07:36:30]line ФПД: 230210050549441 [07:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073632&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75034&fm=230210050549441&tin=02508201610067®Number=0000000000091691&sum=100000 [07:36:30]OFD Sender: Processing packet 75034 [packets to send 13, broken 12] [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00075034 [07:36:30]OFD Sender: To server: pG, [07:36:30]CommunicateWithHost lk.salyk.kg:30040 [07:36:30]ConnectInit lk.salyk.kg [07:36:30]written 0, free lines is 4095 [07:36:30]Connected sock=10 [07:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B4 00 07 01 B5 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 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 1A 00 00 00 F4 03 04 00 00 9C 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1A 25 01 00 35 04 06 00 D1 5F F4 49 66 C1 AC 94 DF BA 1B 64 C9 97 [07:36:31]Write to MH i2c: 01 00 00 4C 19 65 [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: 01 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: 01 07 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: 01 07 00 4C 19 00 00 00 00 00 AA 0C 22 [07:36:31]RasterBufferAndPrint [07:36:31]line [07:36:31]line [07:36:31]line [07:36:31]line [07:36:31]line [07:36:31]written 0, free lines is 3248 [07:36:31]MH_Cut [07:36:31]Write to MH i2c: D1 01 00 53 19 01 3E [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: D1 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: D1 01 00 [07:36:31]MH_I2C_Read... [07:36:31]Read from MH i2c: D1 01 00 53 19 00 3D [07:36:31]Write to MH i2c: 01 00 00 54 19 6D [07:36:31]Write i2c OK [07:36:31]MH_I2C_Read... [07:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 70 3D 47 00 03 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 38 37 31 37 39 35 10 04 04 00 1A 25 01 00 F4 03 04 00 7D 43 1C 67 B6 04 01 00 00 B4 89 95 60 59 DE E6 05 [07:36:31]CommunicateWithHost err = 0 [07:36:31]CheckOFDResponse [07:36:31]1017 (14) - 77093643461234 [07:36:31]1041 (16) - 0000000000871795 [07:36:31]1040 (4) - 75034 [07:36:31]1012 (4) - 26.10.2024 01:18 [07:36:31]1206 (1) - 0 [07:36:31]OFD Sender: Remove packet 75034 [07:36:31]ProducePacketName [07:36:31]name=ofd_packets/00075034 [07:36:31]NVStorageDeleteData [07:36:31]OFD Sender: No OFD packet to send [07:36:31]*** Cut start [07:36:31]*** Partial cut [07:36:31]*** CUTSNS_PIN = 1 [07:36:32]*** CUTSNS_PIN = 0 [07:36:32]*** Brake cut motor [07:36:32]Read from MH i2c: 01 [07:36:32]MH_I2C_Read... [07:36:32]*** Stop cut motor [07:36:32]*** Cut end [07:36:32]Read from MH i2c: 01 07 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: 01 07 00 54 19 00 00 00 00 00 FF 0F 82 [07:36:32]process_action close_receipt done [07:36:32]requested_data is exist [07:36:32]produce_requested_data [07:36:32]requested_item fm.sn is exist - process it [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 11 00 00 [07:36:32]Write to MH i2c: E2 08 00 55 19 80 11 00 00 00 00 00 00 E8 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 17 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 17 00 55 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [07:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:36:32]wFMCommunicate OK [07:36:32]requested_item fd.num is exist - process it [07:36:32]SAM_PROTO_GetFieldsCounters [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 13 00 00 [07:36:32]Write to MH i2c: E2 08 00 56 19 80 13 00 00 00 00 00 00 EB [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 62 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 62 00 56 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1A 25 01 00 0E 04 04 00 00 02 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 A2 [07:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1A 25 01 00 0E 04 04 00 00 02 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 [07:36:32]wFMCommunicate OK [07:36:32]SAM_PROTO_GetFieldsCounters done [07:36:32]requested_item shift.num is exist - process it [07:36:32]requested_item shift.opened is exist - process it [07:36:32]req_shift_opened [07:36:32]FM_GetShiftState [07:36:32]SAM_PROTO_GetShiftState [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 13 01 00 [07:36:32]Write to MH i2c: E2 08 00 57 19 80 13 01 00 00 00 00 00 ED [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 57 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 08 [07:36:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:36:32]wFMCommunicate OK [07:36:32]SAM_PROTO_GetShiftState done [07:36:32]FM_GetShiftState done [07:36:32]req_shift_opened done [07:36:32]requested_item shift.open_date is exist - process it [07:36:32]req_shift_open_date [07:36:32]req_shift_open_date done [07:36:32]produce_requested_data done [07:36:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75034,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:36:32]process_action_free close_receipt [07:36:32]json_value_free [07:36:32]json_value_free done [07:36:32]process_json_proto returns [07:36:32]Send response to host [07:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75034,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:36:32]free response buf [07:36:32]execute_script done [07:36:32]execute_script returns [07:36:32]free content buf [07:36:32]Sock 9.Close socket [07:36:32]Sock 9.Thread stoped [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]recv_with_timeout no data received [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [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:01]accept exits with 8 [07:49:01]New connection [07:49:01]New thread 3066781028 created [07:49:01]Thread 3066924388 joined [07:49:01]Waiting for new connection... [07:49:01] Sock 8.Parse request [07:49:01]Sock 8.Check first char [07:49:01]Sock 8.First char is OK [07:49:01]request: POST /json_proto HTTP/1.0 [07:49:01]Method: POST [07:49:01]URL: /json_proto [07:49:01]Method is POST - this is cgi request [07:49:01]url: /json_proto [07:49:01]query_string will be loaded in cgi processing [07:49:01]execute_cgi json_proto POST (null) [07:49:01]execute_cgi path=json_proto method=POST [07:49:01]POST find Content-Length [07:49:01]Host: 172.17.39.131:8080 [07:49:01]Content-Length: 677 [07:49:01]Content-Type: application/json [07:49:01] [07:49:01]POST finish read [07:49:01]Found Content-Length = 677 [07:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:49:01]execute_script... [07:49:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:49:01]POST & json_proto [07:49:01]process_json_proto [07:49:01]json parsed OK: [07:49:01]protocol is kg_v1.0 [07:49:01]action value=close_receipt [07:49:01]process_action close_receipt [07:49:01]cmd_close_receipt [07:49:01]MH_GetDate [07:49:01]Write to MH i2c: F0 00 00 58 19 60 [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: F0 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: F0 09 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: F0 09 00 58 19 00 F1 9E 1C 67 86 57 24 65 E1 [07:49:01]GetLastDocTimeStamp 1729928192 [07:49:01]current date 1729928945 [07:49:01]FM_GetShiftState [07:49:01]SAM_PROTO_GetShiftState [07:49:01]wFMCommunicate request_size=4 [07:49:01]MH_SAM_APDU [07:49:01]CAPDU: 80 13 01 00 [07:49:01]Write to MH i2c: E2 08 00 59 19 80 13 01 00 00 00 00 00 EF [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:01]Read from MH i2c: E2 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 0E 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 0E 00 59 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0A [07:49:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:49:01]wFMCommunicate OK [07:49:01]SAM_PROTO_GetShiftState done [07:49:01]FM_GetShiftState done [07:49:01]opened in 1729902166 [07:49:01]opened+sec_in_day 1729988566 [07:49:01]quantity*price = 40006 [07:49:01]sum+1 = 40007 [07:49:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 27 26.10.2024 07:49 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75035 ФПД: 200450794827038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074905&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75035&fm=200450794827038&tin=02508201610067®Number=0000000000091691&sum=40000 [07:49:02]StoreToDocumentArchive [07:49:02]shift 512 fd 75035 [07:49:02]save to /storage/0512/doc_00075035 [07:49:02]save last doc name /storage/0512/doc_00075035 to /storage/kkm_last_doc_name [07:49:02]save OK [07:49:02]Clear old archive folders... [07:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:02]tlvbuf is 007DBE20 [07:49:02]SAM_PROTO_ClearQueue [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 09 00 00 [07:49:02]Write to MH i2c: E2 08 00 66 19 80 09 00 00 00 00 00 00 F1 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 03 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 03 00 66 19 00 90 00 F3 [07:49:02]RAPDU: 90 00 [07:49:02]wFMCommunicate OK [07:49:02]SAM_PROTO_ClearQueue done [07:49:02]KKMCreateOFDPacket [07:49:02]OFDProtocolAddRootSTLVToBuf [07:49:02]FM_MakeSignedData [07:49:02]FM_MakeSignedData [07:49:02]SAM_PROTO_SignData [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 0D 01 02 [07:49:02]Write to MH i2c: E2 08 00 67 19 80 0D 01 02 00 00 00 00 F9 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 03 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 03 00 67 19 00 90 00 F4 [07:49:02]RAPDU: 90 00 [07:49:02]wFMCommunicate OK [07:49:02]wFMCommunicate request_size=255 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 F1 9E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 25 01 00 35 04 06 00 B6 [07:49:02]Write to MH i2c: E2 02 01 68 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 F1 9E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 25 01 00 35 04 06 00 B6 00 00 83 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:03]Read from MH i2c: E2 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 03 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 03 00 68 19 00 90 00 F5 [07:49:03]RAPDU: 90 00 [07:49:03]wFMCommunicate OK [07:49:03]wFMCommunicate request_size=10 [07:49:03]MH_SAM_APDU [07:49:03]CAPDU: 80 0D 02 02 05 4F 16 6B AD 1E [07:49:03]Write to MH i2c: E2 0D 00 69 19 80 0D 02 02 05 00 4F 16 6B AD 1E 00 00 A1 [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:03]Read from MH i2c: E2 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 03 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 03 00 69 19 00 90 00 F6 [07:49:03]RAPDU: 90 00 [07:49:03]wFMCommunicate OK [07:49:03]wFMCommunicate request_size=4 [07:49:03]MH_SAM_APDU [07:49:03]CAPDU: 80 0D 03 02 [07:49:03]Write to MH i2c: E2 08 00 6A 19 80 0D 03 02 00 00 00 00 FE [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:03]Read from MH i2c: E2 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 0B 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 0B 00 6A 19 00 F1 C8 3C 13 5E 38 DF 4A 90 00 C6 [07:49:03]RAPDU: F1 C8 3C 13 5E 38 DF 4A 90 00 [07:49:03]wFMCommunicate OK [07:49:03]SAM_PROTO_SignData done [07:49:03]FM_MakeSignedData done [07:49:03]CreateOFDProtocolMessage [07:49:03]wFMCommunicate request_size=4 [07:49:03]MH_SAM_APDU [07:49:03]CAPDU: 80 11 00 00 [07:49:03]Write to MH i2c: E2 08 00 6B 19 80 11 00 00 00 00 00 00 FE [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:03]Read from MH i2c: E2 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 17 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: E2 17 00 6B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 56 [07:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:49:03]wFMCommunicate OK [07:49:03]CreateOFDProtocolMessage done [07:49:03]OFDSenderStorePacket 75035 [07:49:03]StoreOFDPacket docnum=75035 [07:49:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 EB 07 01 2E 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 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 1B 00 00 00 F4 03 04 00 F1 9E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 25 01 00 35 04 06 00 B6 4F 16 6B AD 1E F1 C8 3C 13 5E 38 DF 4A [07:49:03]CheckFolder [07:49:03]dirname=/storage/ofd_packets [07:49:03]CheckFolder done [07:49:03]ProducePacketName [07:49:03]name=ofd_packets/00075035 [07:49:03]NVStorageSaveData ofd_packets/00075035 [07:49:03]File name is /storage/ofd_packets/00075035 [07:49:03]Write 301 bytes [07:49:03]NVStorageSaveData done [07:49:03]OFDSenderStorePacket done [07:49:03]KKMCreateOFDPacket done [07:49:03]NVStorageSaveData kkm_last_timestamp [07:49:03]File name is /storage/kkm_last_timestamp [07:49:03]Write 4 bytes [07:49:03]NVStorageSaveData done [07:49:03]ExternCall_PrintAddStr [07:49:03]wPrintStart [07:49:03]Write to MH i2c: 01 00 00 6C 19 85 [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 07 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 07 00 6C 19 00 00 00 00 00 FF 0F 9A [07:49:03]RasterBufferAndPrint [07:49:03]line Счет N : (1)191007 [07:49:03]line ИНН: 02508201610067 [07:49:03]line Контрольно-Кассовый Чек [07:49:03]line ПРОДАЖА [07:49:03]line ТРК (МРК, ГНК) : 21 [07:49:03]line Товар: 2710124130 [07:49:03]line Аи-92-К-5 [07:49:03]line 5.980 * 66.90 [07:49:03]line = 400.06 [07:49:03]line НДС 12% НСП 1% [07:49:03]line > о реализуемом товаре [07:49:03]line ОКРУГЛЕНИЕ: -0.06 [07:49:03]line ИТОГО: 400.00 [07:49:03]line Внесено: 400.00 [07:49:03]line СДАЧА: 0.00 [07:49:03]line НСП 1% : 3.54 [07:49:03]line НДС 12% : 42.48 [07:49:03]line Наличными: 400.00 [07:49:03]line Безнал.: 0.00 [07:49:03]line Место: АЗС № 142 "Партнер Нефть" [07:49:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:49:03]line СНО: Общий режим [07:49:03]line Чек 27 26.10.2024 07:49 [07:49:03]line Смена: 512 ФФД: 1.0 [07:49:03]line ЗНМ: 0300000089 [07:49:03]line РНМ: 0000000000091691 [07:49:03]line Версия ККМ: 001 [07:49:03]line ФМ: 0000000000871795 [07:49:03]line ФД: 75035 [07:49:03]line ФПД: 200450794827038 [07:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074905&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75035&fm=200450794827038&tin=02508201610067®Number=0000000000091691&sum=40000 [07:49:03]written 0, free lines is 4095 [07:49:03]OFD Sender: Processing packet 75035 [packets to send 13, broken 12] [07:49:03]ProducePacketName [07:49:03]name=ofd_packets/00075035 [07:49:03]OFD Sender: To server: pG, [07:49:03]CommunicateWithHost lk.salyk.kg:30040 [07:49:03]ConnectInit lk.salyk.kg [07:49:03]Connected sock=11 [07:49:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 EB 07 01 2E 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 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 1B 00 00 00 F4 03 04 00 F1 9E 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 25 01 00 35 04 06 00 B6 4F 16 6B AD 1E F1 C8 3C 13 5E 38 DF 4A [07:49:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D3 D6 47 00 5C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1B 25 01 00 F4 03 04 00 6E 46 1C 67 B6 04 01 00 00 6D 4A 9F C6 06 27 A8 9B [07:49:03]CommunicateWithHost err = 0 [07:49:03]CheckOFDResponse [07:49:03]1017 (14) - 77093643461234 [07:49:03]1041 (16) - 0000000000871795 [07:49:03]1040 (4) - 75035 [07:49:03]1012 (4) - 26.10.2024 01:31 [07:49:03]1206 (1) - 0 [07:49:03]OFD Sender: Remove packet 75035 [07:49:03]ProducePacketName [07:49:03]name=ofd_packets/00075035 [07:49:03]NVStorageDeleteData [07:49:03]Write to MH i2c: 01 00 00 97 19 B0 [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 07 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: 01 07 00 97 19 00 00 00 00 00 9D 0C 60 [07:49:03]RasterBufferAndPrint [07:49:03]line [07:49:03]line [07:49:03]line [07:49:03]line [07:49:03]line [07:49:03]written 0, free lines is 3235 [07:49:03]MH_Cut [07:49:03]Write to MH i2c: D1 01 00 9E 19 01 89 [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: D1 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: D1 01 00 [07:49:03]MH_I2C_Read... [07:49:03]Read from MH i2c: D1 01 00 9E 19 00 88 [07:49:03]Write to MH i2c: 01 00 00 9F 19 B8 [07:49:03]Write i2c OK [07:49:03]MH_I2C_Read... [07:49:04]OFD Sender: No OFD packet to send [07:49:04]*** Cut start [07:49:04]*** Partial cut [07:49:04]*** CUTSNS_PIN = 1 [07:49:04]*** CUTSNS_PIN = 0 [07:49:05]*** Brake cut motor [07:49:05]Read from MH i2c: 01 [07:49:05]MH_I2C_Read... [07:49:05]*** Stop cut motor [07:49:05]*** Cut end [07:49:05]Read from MH i2c: 01 07 00 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: 01 07 00 9F 19 00 00 00 00 00 FF 0F CD [07:49:05]process_action close_receipt done [07:49:05]requested_data is exist [07:49:05]produce_requested_data [07:49:05]requested_item fm.sn is exist - process it [07:49:05]wFMCommunicate request_size=4 [07:49:05]MH_SAM_APDU [07:49:05]CAPDU: 80 11 00 00 [07:49:05]Write to MH i2c: E2 08 00 A0 19 80 11 00 00 00 00 00 00 33 [07:49:05]Write i2c OK [07:49:05]MH_I2C_Read... [07:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:05]Read from MH i2c: E2 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 17 00 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 17 00 A0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [07:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:49:05]wFMCommunicate OK [07:49:05]requested_item fd.num is exist - process it [07:49:05]SAM_PROTO_GetFieldsCounters [07:49:05]wFMCommunicate request_size=4 [07:49:05]MH_SAM_APDU [07:49:05]CAPDU: 80 13 00 00 [07:49:05]Write to MH i2c: E2 08 00 A1 19 80 13 00 00 00 00 00 00 36 [07:49:05]Write i2c OK [07:49:05]MH_I2C_Read... [07:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:05]Read from MH i2c: E2 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 62 00 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 62 00 A1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1B 25 01 00 0E 04 04 00 00 02 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 F1 [07:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1B 25 01 00 0E 04 04 00 00 02 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 [07:49:05]wFMCommunicate OK [07:49:05]SAM_PROTO_GetFieldsCounters done [07:49:05]requested_item shift.num is exist - process it [07:49:05]requested_item shift.opened is exist - process it [07:49:05]req_shift_opened [07:49:05]FM_GetShiftState [07:49:05]SAM_PROTO_GetShiftState [07:49:05]wFMCommunicate request_size=4 [07:49:05]MH_SAM_APDU [07:49:05]CAPDU: 80 13 01 00 [07:49:05]Write to MH i2c: E2 08 00 A2 19 80 13 01 00 00 00 00 00 38 [07:49:05]Write i2c OK [07:49:05]MH_I2C_Read... [07:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:05]Read from MH i2c: E2 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 0E 00 [07:49:05]MH_I2C_Read... [07:49:05]Read from MH i2c: E2 0E 00 A2 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 53 [07:49:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:49:05]wFMCommunicate OK [07:49:05]SAM_PROTO_GetShiftState done [07:49:05]FM_GetShiftState done [07:49:05]req_shift_opened done [07:49:05]requested_item shift.open_date is exist - process it [07:49:05]req_shift_open_date [07:49:05]req_shift_open_date done [07:49:05]produce_requested_data done [07:49:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75035,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:49:05]process_action_free close_receipt [07:49:05]json_value_free [07:49:05]json_value_free done [07:49:05]process_json_proto returns [07:49:05]Send response to host [07:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75035,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:49:05]free response buf [07:49:05]execute_script done [07:49:05]execute_script returns [07:49:05]free content buf [07:49:05]Sock 8.Close socket [07:49:05]Sock 8.Thread stoped [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:58]recv_with_timeout no data received [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:17]accept exits with 9 [07:53:17]New connection [07:53:17]New thread 3066924388 created [07:53:17]Thread 3066781028 joined [07:53:17]Waiting for new connection... [07:53:17] Sock 9.Parse request [07:53:17]Sock 9.Check first char [07:53:17]Sock 9.First char is OK [07:53:17]request: POST /json_proto HTTP/1.0 [07:53:17]Method: POST [07:53:17]URL: /json_proto [07:53:17]Method is POST - this is cgi request [07:53:17]url: /json_proto [07:53:17]query_string will be loaded in cgi processing [07:53:17]execute_cgi json_proto POST (null) [07:53:17]execute_cgi path=json_proto method=POST [07:53:17]POST find Content-Length [07:53:17]Host: 172.17.39.131:8080 [07:53:17]Content-Length: 677 [07:53:17]Content-Type: application/json [07:53:17] [07:53:17]POST finish read [07:53:17]Found Content-Length = 677 [07:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:53:17]execute_script... [07:53: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)191008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:53:17]POST & json_proto [07:53:17]process_json_proto [07:53:17]json parsed OK: [07:53:17]protocol is kg_v1.0 [07:53:17]action value=close_receipt [07:53:17]process_action close_receipt [07:53:17]cmd_close_receipt [07:53:17]MH_GetDate [07:53:17]Write to MH i2c: F0 00 00 A3 19 AB [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: F0 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: F0 09 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: F0 09 00 A3 19 00 F1 9F 1C 67 86 57 24 65 2D [07:53:17]GetLastDocTimeStamp 1729928945 [07:53:17]current date 1729929201 [07:53:17]FM_GetShiftState [07:53:17]SAM_PROTO_GetShiftState [07:53:17]wFMCommunicate request_size=4 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 13 01 00 [07:53:17]Write to MH i2c: E2 08 00 A4 19 80 13 01 00 00 00 00 00 3A [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:17]Read from MH i2c: E2 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 0E 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 0E 00 A4 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 55 [07:53:17]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:53:17]wFMCommunicate OK [07:53:17]SAM_PROTO_GetShiftState done [07:53:17]FM_GetShiftState done [07:53:17]opened in 1729902166 [07:53:17]opened+sec_in_day 1729988566 [07:53:17]quantity*price = 50041 [07:53:17]sum+1 = 50042 [07:53: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 28 26.10.2024 07:53 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75036 ФПД: 200733668623260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075321&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75036&fm=200733668623260&tin=02508201610067®Number=0000000000091691&sum=50000 [07:53:18]StoreToDocumentArchive [07:53:18]shift 512 fd 75036 [07:53:18]save to /storage/0512/doc_00075036 [07:53:18]save last doc name /storage/0512/doc_00075036 to /storage/kkm_last_doc_name [07:53:18]save OK [07:53:18]Clear old archive folders... [07:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:18]tlvbuf is 007FAEB0 [07:53:18]SAM_PROTO_ClearQueue [07:53:18]wFMCommunicate request_size=4 [07:53:18]MH_SAM_APDU [07:53:18]CAPDU: 80 09 00 00 [07:53:18]Write to MH i2c: E2 08 00 B1 19 80 09 00 00 00 00 00 00 3C [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:18]Read from MH i2c: E2 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 B1 19 00 90 00 3E [07:53:18]RAPDU: 90 00 [07:53:18]wFMCommunicate OK [07:53:18]SAM_PROTO_ClearQueue done [07:53:18]KKMCreateOFDPacket [07:53:18]OFDProtocolAddRootSTLVToBuf [07:53:18]FM_MakeSignedData [07:53:18]FM_MakeSignedData [07:53:18]SAM_PROTO_SignData [07:53:18]wFMCommunicate request_size=4 [07:53:18]MH_SAM_APDU [07:53:18]CAPDU: 80 0D 01 02 [07:53:18]Write to MH i2c: E2 08 00 B2 19 80 0D 01 02 00 00 00 00 44 [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:18]Read from MH i2c: E2 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 B2 19 00 90 00 3F [07:53:18]RAPDU: 90 00 [07:53:18]wFMCommunicate OK [07:53:18]wFMCommunicate request_size=255 [07:53:18]MH_SAM_APDU [07:53: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 1C 00 00 00 F4 03 04 00 F1 9F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 25 01 00 35 04 06 00 B6 [07:53:18]Write to MH i2c: E2 02 01 B3 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 F1 9F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 25 01 00 35 04 06 00 B6 00 00 02 [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:18]Read from MH i2c: E2 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 03 00 B3 19 00 90 00 40 [07:53:18]RAPDU: 90 00 [07:53:18]wFMCommunicate OK [07:53:18]wFMCommunicate request_size=10 [07:53:18]MH_SAM_APDU [07:53:18]CAPDU: 80 0D 02 02 05 90 F3 03 43 9C [07:53:18]Write to MH i2c: E2 0D 00 B4 19 80 0D 02 02 05 00 90 F3 03 43 9C 00 00 B6 [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:19]Read from MH i2c: E2 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 03 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 03 00 B4 19 00 90 00 41 [07:53:19]RAPDU: 90 00 [07:53:19]wFMCommunicate OK [07:53:19]wFMCommunicate request_size=4 [07:53:19]MH_SAM_APDU [07:53:19]CAPDU: 80 0D 03 02 [07:53:19]Write to MH i2c: E2 08 00 B5 19 80 0D 03 02 00 00 00 00 49 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:19]Read from MH i2c: E2 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 0B 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 0B 00 B5 19 00 3B 00 BA 58 AE 8F 72 1A 90 00 60 [07:53:19]RAPDU: 3B 00 BA 58 AE 8F 72 1A 90 00 [07:53:19]wFMCommunicate OK [07:53:19]SAM_PROTO_SignData done [07:53:19]FM_MakeSignedData done [07:53:19]CreateOFDProtocolMessage [07:53:19]wFMCommunicate request_size=4 [07:53:19]MH_SAM_APDU [07:53:19]CAPDU: 80 11 00 00 [07:53:19]Write to MH i2c: E2 08 00 B6 19 80 11 00 00 00 00 00 00 49 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:19]Read from MH i2c: E2 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 17 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: E2 17 00 B6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [07:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:53:19]wFMCommunicate OK [07:53:19]CreateOFDProtocolMessage done [07:53:19]OFDSenderStorePacket 75036 [07:53:19]StoreOFDPacket docnum=75036 [07:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4B 21 07 01 88 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 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 1C 00 00 00 F4 03 04 00 F1 9F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 25 01 00 35 04 06 00 B6 90 F3 03 43 9C 3B 00 BA 58 AE 8F 72 1A [07:53:19]CheckFolder [07:53:19]dirname=/storage/ofd_packets [07:53:19]CheckFolder done [07:53:19]ProducePacketName [07:53:19]name=ofd_packets/00075036 [07:53:19]NVStorageSaveData ofd_packets/00075036 [07:53:19]File name is /storage/ofd_packets/00075036 [07:53:19]Write 301 bytes [07:53:19]NVStorageSaveData done [07:53:19]OFDSenderStorePacket done [07:53:19]KKMCreateOFDPacket done [07:53:19]NVStorageSaveData kkm_last_timestamp [07:53:19]File name is /storage/kkm_last_timestamp [07:53:19]Write 4 bytes [07:53:19]NVStorageSaveData done [07:53:19]ExternCall_PrintAddStr [07:53:19]wPrintStart [07:53:19]Write to MH i2c: 01 00 00 B7 19 D0 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 07 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 07 00 B7 19 00 00 00 00 00 FF 0F E5 [07:53:19]RasterBufferAndPrint [07:53:19]line Счет N : (1)191008 [07:53:19]line ИНН: 02508201610067 [07:53:19]line Контрольно-Кассовый Чек [07:53:19]line ПРОДАЖА [07:53:19]line ТРК (МРК, ГНК) : 21 [07:53:19]line Товар: 2710124130 [07:53:19]line Аи-92-К-5 [07:53:19]line 7.480 * 66.90 [07:53:19]line = 500.41 [07:53:19]line НДС 12% НСП 1% [07:53:19]line > о реализуемом товаре [07:53:19]line ОКРУГЛЕНИЕ: -0.41 [07:53:19]line ИТОГО: 500.00 [07:53:19]line Внесено: 500.00 [07:53:19]line СДАЧА: 0.00 [07:53:19]line НСП 1% : 4.43 [07:53:19]line НДС 12% : 53.14 [07:53:19]line Наличными: 500.00 [07:53:19]line Безнал.: 0.00 [07:53:19]line Место: АЗС № 142 "Партнер Нефть" [07:53:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:53:19]line СНО: Общий режим [07:53:19]line Чек 28 26.10.2024 07:53 [07:53:19]line Смена: 512 ФФД: 1.0 [07:53:19]line ЗНМ: 0300000089 [07:53:19]line РНМ: 0000000000091691 [07:53:19]line Версия ККМ: 001 [07:53:19]line ФМ: 0000000000871795 [07:53:19]line ФД: 75036 [07:53:19]line ФПД: 200733668623260 [07:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075321&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75036&fm=200733668623260&tin=02508201610067®Number=0000000000091691&sum=50000 [07:53:19]OFD Sender: Processing packet 75036 [packets to send 13, broken 12] [07:53:19]ProducePacketName [07:53:19]name=ofd_packets/00075036 [07:53:19]OFD Sender: To server: pG, [07:53:19]CommunicateWithHost lk.salyk.kg:30040 [07:53:19]ConnectInit lk.salyk.kg [07:53:19]written 0, free lines is 4095 [07:53:19]Connected sock=10 [07:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4B 21 07 01 88 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 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 1C 00 00 00 F4 03 04 00 F1 9F 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 25 01 00 35 04 06 00 B6 90 F3 03 43 9C 3B 00 BA 58 AE 8F 72 1A [07:53:19]Write to MH i2c: 01 00 00 E2 19 FB [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 07 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 07 00 E2 19 00 00 00 00 00 A9 0C B7 [07:53:19]RasterBufferAndPrint [07:53:19]line [07:53:19]line [07:53:19]line [07:53:19]line [07:53:19]line [07:53:19]written 0, free lines is 3246 [07:53:19]MH_Cut [07:53:19]Write to MH i2c: D1 01 00 E9 19 01 D4 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: D1 [07:53:19]MH_I2C_Read... [07:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8E 0C 47 00 4F B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1C 25 01 00 F4 03 04 00 6E 47 1C 67 B6 04 01 00 00 AA 86 1B A1 94 42 3B EC [07:53:19]CommunicateWithHost err = 0 [07:53:19]CheckOFDResponse [07:53:19]1017 (14) - 77093643461234 [07:53:19]1041 (16) - 0000000000871795 [07:53:19]1040 (4) - 75036 [07:53:19]1012 (4) - 26.10.2024 01:35 [07:53:19]1206 (1) - 0 [07:53:19]OFD Sender: Remove packet 75036 [07:53:19]ProducePacketName [07:53:19]name=ofd_packets/00075036 [07:53:19]NVStorageDeleteData [07:53:19]Read from MH i2c: D1 01 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: D1 01 00 E9 19 00 D3 [07:53:19]Write to MH i2c: 01 00 00 EA 19 03 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:20]OFD Sender: No OFD packet to send [07:53:20]*** Cut start [07:53:20]*** Partial cut [07:53:20]*** CUTSNS_PIN = 1 [07:53:20]*** CUTSNS_PIN = 0 [07:53:21]*** Brake cut motor [07:53:21]Read from MH i2c: 01 [07:53:21]MH_I2C_Read... [07:53:21]*** Stop cut motor [07:53:21]*** Cut end [07:53:21]Read from MH i2c: 01 07 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 FF 0F 18 [07:53:21]process_action close_receipt done [07:53:21]requested_data is exist [07:53:21]produce_requested_data [07:53:21]requested_item fm.sn is exist - process it [07:53:21]wFMCommunicate request_size=4 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 11 00 00 [07:53:21]Write to MH i2c: E2 08 00 EB 19 80 11 00 00 00 00 00 00 7E [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:21]Read from MH i2c: E2 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 17 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 17 00 EB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [07:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:53:21]wFMCommunicate OK [07:53:21]requested_item fd.num is exist - process it [07:53:21]SAM_PROTO_GetFieldsCounters [07:53:21]wFMCommunicate request_size=4 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 13 00 00 [07:53:21]Write to MH i2c: E2 08 00 EC 19 80 13 00 00 00 00 00 00 81 [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:21]Read from MH i2c: E2 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 62 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 62 00 EC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1C 25 01 00 0E 04 04 00 00 02 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 40 [07:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1C 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:21]wFMCommunicate OK [07:53:21]SAM_PROTO_GetFieldsCounters done [07:53:21]requested_item shift.num is exist - process it [07:53:21]requested_item shift.opened is exist - process it [07:53:21]req_shift_opened [07:53:21]FM_GetShiftState [07:53:21]SAM_PROTO_GetShiftState [07:53:21]wFMCommunicate request_size=4 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 13 01 00 [07:53:21]Write to MH i2c: E2 08 00 ED 19 80 13 01 00 00 00 00 00 83 [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:21]Read from MH i2c: E2 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 0E 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 0E 00 ED 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9E [07:53:21]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:53:21]wFMCommunicate OK [07:53:21]SAM_PROTO_GetShiftState done [07:53:21]FM_GetShiftState done [07:53:21]req_shift_opened done [07:53:21]requested_item shift.open_date is exist - process it [07:53:21]req_shift_open_date [07:53:21]req_shift_open_date done [07:53:21]produce_requested_data done [07:53:21]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75036,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:53:21]process_action_free close_receipt [07:53:21]json_value_free [07:53:21]json_value_free done [07:53:21]process_json_proto returns [07:53:21]Send response to host [07:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75036,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:53:21]free response buf [07:53:21]execute_script done [07:53:21]execute_script returns [07:53:21]free content buf [07:53:21]Sock 9.Close socket [07:53:21]Sock 9.Thread stoped [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:49]accept exits with 8 [07:57:49]New connection [07:57:49]New thread 3066781028 created [07:57:49]Thread 3066924388 joined [07:57:49]Waiting for new connection... [07:57:49] Sock 8.Parse request [07:57:49]Sock 8.Check first char [07:57:49]Sock 8.First char is OK [07:57:49]request: POST /json_proto HTTP/1.0 [07:57:49]Method: POST [07:57:49]URL: /json_proto [07:57:49]Method is POST - this is cgi request [07:57:49]url: /json_proto [07:57:49]query_string will be loaded in cgi processing [07:57:49]execute_cgi json_proto POST (null) [07:57:49]execute_cgi path=json_proto method=POST [07:57:49]POST find Content-Length [07:57:49]Host: 172.17.39.131:8080 [07:57:49]Content-Length: 677 [07:57:49]Content-Type: application/json [07:57:49] [07:57:49]POST finish read [07:57:49]Found Content-Length = 677 [07:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:57:49]execute_script... [07:57: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)191009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [07:57:49]POST & json_proto [07:57:49]process_json_proto [07:57:49]json parsed OK: [07:57:49]protocol is kg_v1.0 [07:57:49]action value=close_receipt [07:57:49]process_action close_receipt [07:57:49]cmd_close_receipt [07:57:49]MH_GetDate [07:57:49]Write to MH i2c: F0 00 00 EE 19 F6 [07:57:49]Write i2c OK [07:57:49]MH_I2C_Read... [07:57:49]Read from MH i2c: F0 [07:57:49]MH_I2C_Read... [07:57:49]Read from MH i2c: F0 09 00 [07:57:49]MH_I2C_Read... [07:57:49]Read from MH i2c: F0 09 00 EE 19 00 00 A1 1C 67 86 57 24 65 89 [07:57:49]GetLastDocTimeStamp 1729929201 [07:57:49]current date 1729929472 [07:57:49]FM_GetShiftState [07:57:49]SAM_PROTO_GetShiftState [07:57:49]wFMCommunicate request_size=4 [07:57:49]MH_SAM_APDU [07:57:49]CAPDU: 80 13 01 00 [07:57:49]Write to MH i2c: E2 08 00 EF 19 80 13 01 00 00 00 00 00 85 [07:57:49]Write i2c OK [07:57:49]MH_I2C_Read... [07:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:49]Read from MH i2c: E2 [07:57:49]MH_I2C_Read... [07:57:49]Read from MH i2c: E2 0E 00 [07:57:49]MH_I2C_Read... [07:57:49]Read from MH i2c: E2 0E 00 EF 19 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A0 [07:57:49]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:57:49]wFMCommunicate OK [07:57:49]SAM_PROTO_GetShiftState done [07:57:49]FM_GetShiftState done [07:57:49]opened in 1729902166 [07:57:49]opened+sec_in_day 1729988566 [07:57:49]quantity*price = 30038 [07:57:49]sum+1 = 30039 [07:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 29 26.10.2024 07:57 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75037 ФПД: 179032482106864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075752&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75037&fm=179032482106864&tin=02508201610067®Number=0000000000091691&sum=30000 [07:57:50]StoreToDocumentArchive [07:57:50]shift 512 fd 75037 [07:57:50]save to /storage/0512/doc_00075037 [07:57:50]save last doc name /storage/0512/doc_00075037 to /storage/kkm_last_doc_name [07:57:50]save OK [07:57:50]Clear old archive folders... [07:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:50]tlvbuf is 00845530 [07:57:50]SAM_PROTO_ClearQueue [07:57:50]wFMCommunicate request_size=4 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 09 00 00 [07:57:50]Write to MH i2c: E2 08 00 FC 19 80 09 00 00 00 00 00 00 87 [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 FC 19 00 90 00 89 [07:57:50]RAPDU: 90 00 [07:57:50]wFMCommunicate OK [07:57:50]SAM_PROTO_ClearQueue done [07:57:50]KKMCreateOFDPacket [07:57:50]OFDProtocolAddRootSTLVToBuf [07:57:50]FM_MakeSignedData [07:57:50]FM_MakeSignedData [07:57:50]SAM_PROTO_SignData [07:57:50]wFMCommunicate request_size=4 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 0D 01 02 [07:57:50]Write to MH i2c: E2 08 00 FD 19 80 0D 01 02 00 00 00 00 8F [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 FD 19 00 90 00 8A [07:57:50]RAPDU: 90 00 [07:57:50]wFMCommunicate OK [07:57:50]wFMCommunicate request_size=255 [07:57:50]MH_SAM_APDU [07:57: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 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 1D 00 00 00 F4 03 04 00 00 A1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 25 01 00 35 04 06 00 A2 [07:57:50]Write to MH i2c: E2 02 01 FE 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 00 A1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 25 01 00 35 04 06 00 A2 00 00 40 [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]OFD Sender: No OFD packet to send [07:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 FE 19 00 90 00 8B [07:57:50]RAPDU: 90 00 [07:57:50]wFMCommunicate OK [07:57:50]wFMCommunicate request_size=10 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 0D 02 02 05 D4 3F 7F CD F0 [07:57:50]Write to MH i2c: E2 0D 00 FF 19 80 0D 02 02 05 00 D4 3F 7F CD F0 00 00 EB [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 03 00 FF 19 00 90 00 8C [07:57:50]RAPDU: 90 00 [07:57:50]wFMCommunicate OK [07:57:50]wFMCommunicate request_size=4 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 0D 03 02 [07:57:50]Write to MH i2c: E2 08 00 00 1A 80 0D 03 02 00 00 00 00 95 [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 0B 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 0B 00 00 1A 00 55 6E 7F 86 43 AA 9D F0 90 00 D8 [07:57:50]RAPDU: 55 6E 7F 86 43 AA 9D F0 90 00 [07:57:50]wFMCommunicate OK [07:57:50]SAM_PROTO_SignData done [07:57:50]FM_MakeSignedData done [07:57:50]CreateOFDProtocolMessage [07:57:50]wFMCommunicate request_size=4 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 11 00 00 [07:57:50]Write to MH i2c: E2 08 00 01 1A 80 11 00 00 00 00 00 00 95 [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 17 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 17 00 01 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 ED [07:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:57:50]wFMCommunicate OK [07:57:50]CreateOFDProtocolMessage done [07:57:50]OFDSenderStorePacket 75037 [07:57:50]StoreOFDPacket docnum=75037 [07:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 08 8C 07 01 87 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 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 1D 00 00 00 F4 03 04 00 00 A1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 25 01 00 35 04 06 00 A2 D4 3F 7F CD F0 55 6E 7F 86 43 AA 9D F0 [07:57:50]CheckFolder [07:57:50]dirname=/storage/ofd_packets [07:57:50]CheckFolder done [07:57:50]ProducePacketName [07:57:50]name=ofd_packets/00075037 [07:57:50]NVStorageSaveData ofd_packets/00075037 [07:57:50]File name is /storage/ofd_packets/00075037 [07:57:50]Write 301 bytes [07:57:50]NVStorageSaveData done [07:57:50]OFDSenderStorePacket done [07:57:50]KKMCreateOFDPacket done [07:57:50]NVStorageSaveData kkm_last_timestamp [07:57:50]File name is /storage/kkm_last_timestamp [07:57:50]Write 4 bytes [07:57:50]NVStorageSaveData done [07:57:50]ExternCall_PrintAddStr [07:57:50]wPrintStart [07:57:50]Write to MH i2c: 01 00 00 02 1A 1C [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: 01 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: 01 07 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: 01 07 00 02 1A 00 00 00 00 00 FF 0F 31 [07:57:50]RasterBufferAndPrint [07:57:50]line Счет N : (1)191009 [07:57:50]line ИНН: 02508201610067 [07:57:50]line Контрольно-Кассовый Чек [07:57:50]line ПРОДАЖА [07:57:50]line ТРК (МРК, ГНК) : 21 [07:57:50]line Товар: 2710124130 [07:57:50]line Аи-92-К-5 [07:57:50]line 4.490 * 66.90 [07:57:50]line = 300.38 [07:57:50]line НДС 12% НСП 1% [07:57:50]line > о реализуемом товаре [07:57:50]line ОКРУГЛЕНИЕ: -0.38 [07:57:50]line ИТОГО: 300.00 [07:57:50]line Внесено: 300.00 [07:57:50]line СДАЧА: 0.00 [07:57:50]line НСП 1% : 2.66 [07:57:50]line НДС 12% : 31.90 [07:57:50]line Наличными: 300.00 [07:57:50]line Безнал.: 0.00 [07:57:50]line Место: АЗС № 142 "Партнер Нефть" [07:57:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [07:57:50]line СНО: Общий режим [07:57:50]line Чек 29 26.10.2024 07:57 [07:57:50]line Смена: 512 ФФД: 1.0 [07:57:50]line ЗНМ: 0300000089 [07:57:50]line РНМ: 0000000000091691 [07:57:50]line Версия ККМ: 001 [07:57:50]line ФМ: 0000000000871795 [07:57:50]line ФД: 75037 [07:57:50]line ФПД: 179032482106864 [07:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T075752&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75037&fm=179032482106864&tin=02508201610067®Number=0000000000091691&sum=30000 [07:57:51]OFD Sender: Processing packet 75037 [packets to send 13, broken 12] [07:57:51]ProducePacketName [07:57:51]name=ofd_packets/00075037 [07:57:51]OFD Sender: To server: pG, [07:57:51]CommunicateWithHost lk.salyk.kg:30040 [07:57:51]ConnectInit lk.salyk.kg [07:57:51]written 0, free lines is 4095 [07:57:51]Connected sock=10 [07:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 08 8C 07 01 87 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 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 1D 00 00 00 F4 03 04 00 00 A1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 25 01 00 35 04 06 00 A2 D4 3F 7F CD F0 55 6E 7F 86 43 AA 9D F0 [07:57:51]Write to MH i2c: 01 00 00 2D 1A 47 [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 07 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 07 00 2D 1A 00 00 00 00 00 9A 0C F4 [07:57:51]RasterBufferAndPrint [07:57:51]line [07:57:51]line [07:57:51]line [07:57:51]line [07:57:51]line [07:57:51]written 0, free lines is 3233 [07:57:51]MH_Cut [07:57:51]Write to MH i2c: D1 01 00 34 1A 01 20 [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: D1 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: D1 01 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: D1 01 00 34 1A 00 1F [07:57:51]Write to MH i2c: 01 00 00 35 1A 4F [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 18 59 47 00 37 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1D 25 01 00 F4 03 04 00 7D 48 1C 67 B6 04 01 00 00 65 C9 0A FB E3 52 88 19 [07:57:51]CommunicateWithHost err = 0 [07:57:51]CheckOFDResponse [07:57:51]1017 (14) - 77093643461234 [07:57:51]1041 (16) - 0000000000871795 [07:57:51]1040 (4) - 75037 [07:57:51]1012 (4) - 26.10.2024 01:40 [07:57:51]1206 (1) - 0 [07:57:51]OFD Sender: Remove packet 75037 [07:57:51]ProducePacketName [07:57:51]name=ofd_packets/00075037 [07:57:51]NVStorageDeleteData [07:57:52]OFD Sender: No OFD packet to send [07:57:52]*** Cut start [07:57:52]*** Partial cut [07:57:52]*** CUTSNS_PIN = 1 [07:57:52]*** CUTSNS_PIN = 0 [07:57:52]*** Brake cut motor [07:57:53]Read from MH i2c: 01 [07:57:53]MH_I2C_Read... [07:57:53]*** Stop cut motor [07:57:53]*** Cut end [07:57:53]Read from MH i2c: 01 07 00 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 FF 0F 64 [07:57:53]process_action close_receipt done [07:57:53]requested_data is exist [07:57:53]produce_requested_data [07:57:53]requested_item fm.sn is exist - process it [07:57:53]wFMCommunicate request_size=4 [07:57:53]MH_SAM_APDU [07:57:53]CAPDU: 80 11 00 00 [07:57:53]Write to MH i2c: E2 08 00 36 1A 80 11 00 00 00 00 00 00 CA [07:57:53]Write i2c OK [07:57:53]MH_I2C_Read... [07:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:53]Read from MH i2c: E2 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 17 00 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 17 00 36 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 22 [07:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [07:57:53]wFMCommunicate OK [07:57:53]requested_item fd.num is exist - process it [07:57:53]SAM_PROTO_GetFieldsCounters [07:57:53]wFMCommunicate request_size=4 [07:57:53]MH_SAM_APDU [07:57:53]CAPDU: 80 13 00 00 [07:57:53]Write to MH i2c: E2 08 00 37 1A 80 13 00 00 00 00 00 00 CD [07:57:53]Write i2c OK [07:57:53]MH_I2C_Read... [07:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:53]Read from MH i2c: E2 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 62 00 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 62 00 37 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1D 25 01 00 0E 04 04 00 00 02 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 90 [07:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1D 25 01 00 0E 04 04 00 00 02 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 [07:57:53]wFMCommunicate OK [07:57:53]SAM_PROTO_GetFieldsCounters done [07:57:53]requested_item shift.num is exist - process it [07:57:53]requested_item shift.opened is exist - process it [07:57:53]req_shift_opened [07:57:53]FM_GetShiftState [07:57:53]SAM_PROTO_GetShiftState [07:57:53]wFMCommunicate request_size=4 [07:57:53]MH_SAM_APDU [07:57:53]CAPDU: 80 13 01 00 [07:57:53]Write to MH i2c: E2 08 00 38 1A 80 13 01 00 00 00 00 00 CF [07:57:53]Write i2c OK [07:57:53]MH_I2C_Read... [07:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:53]Read from MH i2c: E2 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 0E 00 [07:57:53]MH_I2C_Read... [07:57:53]Read from MH i2c: E2 0E 00 38 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EA [07:57:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [07:57:53]wFMCommunicate OK [07:57:53]SAM_PROTO_GetShiftState done [07:57:53]FM_GetShiftState done [07:57:53]req_shift_opened done [07:57:53]requested_item shift.open_date is exist - process it [07:57:53]req_shift_open_date [07:57:53]req_shift_open_date done [07:57:53]produce_requested_data done [07:57:53]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75037,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [07:57:53]process_action_free close_receipt [07:57:53]json_value_free [07:57:53]json_value_free done [07:57:53]process_json_proto returns [07:57:53]Send response to host [07:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75037,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [07:57:53]free response buf [07:57:53]execute_script done [07:57:53]execute_script returns [07:57:53]free content buf [07:57:53]Sock 8.Close socket [07:57:53]Sock 8.Thread stoped [07:57:57]OFD Sender: No OFD packet to send [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: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:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [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: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: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:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:32]accept exits with 9 [08:25:32]New connection [08:25:32]New thread 3066924388 created [08:25:32]Thread 3066781028 joined [08:25:32]Waiting for new connection... [08:25:32] Sock 9.Parse request [08:25:32]Sock 9.Check first char [08:25:32]Sock 9.First char is OK [08:25:32]request: POST /json_proto HTTP/1.0 [08:25:32]Method: POST [08:25:32]URL: /json_proto [08:25:32]Method is POST - this is cgi request [08:25:32]url: /json_proto [08:25:32]query_string will be loaded in cgi processing [08:25:32]execute_cgi json_proto POST (null) [08:25:32]execute_cgi path=json_proto method=POST [08:25:32]POST find Content-Length [08:25:32]Host: 172.17.39.131:8080 [08:25:32]Content-Length: 685 [08:25:32]Content-Type: application/json [08:25:32] [08:25:32]POST finish read [08:25:32]Found Content-Length = 685 [08:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [08:25:32]execute_script... [08:25:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [08:25:32]POST & json_proto [08:25:32]process_json_proto [08:25:32]json parsed OK: [08:25:32]protocol is kg_v1.0 [08:25:32]action value=close_receipt [08:25:32]process_action close_receipt [08:25:32]cmd_close_receipt [08:25:32]MH_GetDate [08:25:32]Write to MH i2c: F0 00 00 39 1A 42 [08:25:32]Write i2c OK [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 09 00 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 09 00 39 1A 00 80 A7 1C 67 86 57 24 65 5B [08:25:32]GetLastDocTimeStamp 1729929472 [08:25:32]current date 1729931136 [08:25:32]FM_GetShiftState [08:25:32]SAM_PROTO_GetShiftState [08:25:32]wFMCommunicate request_size=4 [08:25:32]MH_SAM_APDU [08:25:32]CAPDU: 80 13 01 00 [08:25:32]Write to MH i2c: E2 08 00 3A 1A 80 13 01 00 00 00 00 00 D1 [08:25:32]Write i2c OK [08:25:32]MH_I2C_Read... [08:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:32]Read from MH i2c: E2 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: E2 0E 00 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: E2 0E 00 3A 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EC [08:25:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:25:32]wFMCommunicate OK [08:25:32]SAM_PROTO_GetShiftState done [08:25:32]FM_GetShiftState done [08:25:32]opened in 1729902166 [08:25:32]opened+sec_in_day 1729988566 [08:25:32]quantity*price = 200023 [08:25:32]sum+1 = 200025 [08:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 30 26.10.2024 08:25 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75038 ФПД: 227575614012978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082536&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75038&fm=227575614012978&tin=02508201610067®Number=0000000000091691&sum=200000 [08:25:33]StoreToDocumentArchive [08:25:33]shift 512 fd 75038 [08:25:33]save to /storage/0512/doc_00075038 [08:25:33]save last doc name /storage/0512/doc_00075038 to /storage/kkm_last_doc_name [08:25:33]save OK [08:25:33]Clear old archive folders... [08:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:25:33]tlvbuf is 007F29E0 [08:25:33]SAM_PROTO_ClearQueue [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 09 00 00 [08:25:33]Write to MH i2c: E2 08 00 47 1A 80 09 00 00 00 00 00 00 D3 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 47 1A 00 90 00 D5 [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]SAM_PROTO_ClearQueue done [08:25:33]KKMCreateOFDPacket [08:25:33]OFDProtocolAddRootSTLVToBuf [08:25:33]FM_MakeSignedData [08:25:33]FM_MakeSignedData [08:25:33]SAM_PROTO_SignData [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 0D 01 02 [08:25:33]Write to MH i2c: E2 08 00 48 1A 80 0D 01 02 00 00 00 00 DB [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:33]OFD Sender: No OFD packet to send [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 48 1A 00 90 00 D6 [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]wFMCommunicate request_size=255 [08:25:33]MH_SAM_APDU [08:25:33]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 39 30 30 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 1E 00 00 00 F4 03 04 00 80 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 25 01 00 35 04 06 00 CE FA [08:25:33]Write to MH i2c: E2 02 01 49 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 39 30 30 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 1E 00 00 00 F4 03 04 00 80 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 25 01 00 35 04 06 00 CE FA 00 00 8E [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 49 1A 00 90 00 D7 [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]wFMCommunicate request_size=9 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 0D 02 02 04 93 A1 FE 32 [08:25:33]Write to MH i2c: E2 0C 00 4A 1A 80 0D 02 02 04 00 93 A1 FE 32 00 00 4A [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 0D 03 02 [08:25:33]Write to MH i2c: E2 08 00 4B 1A 80 0D 03 02 00 00 00 00 E0 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0B 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0B 00 4B 1A 00 B1 01 C0 45 57 EF 5B 29 90 00 62 [08:25:33]RAPDU: B1 01 C0 45 57 EF 5B 29 90 00 [08:25:33]wFMCommunicate OK [08:25:33]SAM_PROTO_SignData done [08:25:33]FM_MakeSignedData done [08:25:33]CreateOFDProtocolMessage [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 11 00 00 [08:25:33]Write to MH i2c: E2 08 00 4C 1A 80 11 00 00 00 00 00 00 E0 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 17 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 17 00 4C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 38 [08:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:25:34]wFMCommunicate OK [08:25:34]CreateOFDProtocolMessage done [08:25:34]OFDSenderStorePacket 75038 [08:25:34]StoreOFDPacket docnum=75038 [08:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 2E A4 06 01 15 B1 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 39 30 30 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 1E 00 00 00 F4 03 04 00 80 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 25 01 00 35 04 06 00 CE FA 93 A1 FE 32 B1 01 C0 45 57 EF 5B 29 [08:25:34]CheckFolder [08:25:34]dirname=/storage/ofd_packets [08:25:34]CheckFolder done [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00075038 [08:25:34]NVStorageSaveData ofd_packets/00075038 [08:25:34]File name is /storage/ofd_packets/00075038 [08:25:34]Write 300 bytes [08:25:34]NVStorageSaveData done [08:25:34]OFDSenderStorePacket done [08:25:34]KKMCreateOFDPacket done [08:25:34]NVStorageSaveData kkm_last_timestamp [08:25:34]File name is /storage/kkm_last_timestamp [08:25:34]Write 4 bytes [08:25:34]NVStorageSaveData done [08:25:34]ExternCall_PrintAddStr [08:25:34]wPrintStart [08:25:34]Write to MH i2c: 01 00 00 4D 1A 67 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 4D 1A 00 00 00 00 00 FF 0F 7C [08:25:34]RasterBufferAndPrint [08:25:34]line Счет N : (1)191010 [08:25:34]line ИНН: 02508201610067 [08:25:34]line Контрольно-Кассовый Чек [08:25:34]line ПРОДАЖА [08:25:34]line ТРК (МРК, ГНК) : 51 [08:25:34]line Товар: 2711190000 [08:25:34]line ГАЗ-К-3 [08:25:34]line 51.420 * 38.90 [08:25:34]line = 2000.24 [08:25:34]line НДС 12% НСП 1% [08:25:34]line > о реализуемом товаре [08:25:34]line ОКРУГЛЕНИЕ: -0.24 [08:25:34]line ИТОГО: 2000.00 [08:25:34]line Внесено: 2000.00 [08:25:34]line СДАЧА: 0.00 [08:25:34]line НСП 1% : 17.70 [08:25:34]line НДС 12% : 212.41 [08:25:34]line Наличными: 2000.00 [08:25:34]line Безнал.: 0.00 [08:25:34]line Место: АЗС № 142 "Партнер Нефть" [08:25:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:25:34]line СНО: Общий режим [08:25:34]line Чек 30 26.10.2024 08:25 [08:25:34]line Смена: 512 ФФД: 1.0 [08:25:34]line ЗНМ: 0300000089 [08:25:34]line РНМ: 0000000000091691 [08:25:34]line Версия ККМ: 001 [08:25:34]line ФМ: 0000000000871795 [08:25:34]line ФД: 75038 [08:25:34]line ФПД: 227575614012978 [08:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082536&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75038&fm=227575614012978&tin=02508201610067®Number=0000000000091691&sum=200000 [08:25:34]written 0, free lines is 4095 [08:25:34]OFD Sender: Processing packet 75038 [packets to send 13, broken 12] [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00075038 [08:25:34]OFD Sender: To server: pG, [08:25:34]CommunicateWithHost lk.salyk.kg:30040 [08:25:34]ConnectInit lk.salyk.kg [08:25:34]Connected sock=8 [08:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 2E A4 06 01 15 B1 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 39 30 30 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 1E 00 00 00 F4 03 04 00 80 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 25 01 00 35 04 06 00 CE FA 93 A1 FE 32 B1 01 C0 45 57 EF 5B 29 [08:25:34]Write to MH i2c: 01 00 00 78 1A 92 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 A5 0C 4A [08:25:34]RasterBufferAndPrint [08:25:34]line [08:25:34]line [08:25:34]line [08:25:34]line [08:25:34]line [08:25:34]written 0, free lines is 3242 [08:25:34]MH_Cut [08:25:34]Write to MH i2c: D1 01 00 7F 1A 01 6B [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: D1 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: D1 01 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: D1 01 00 7F 1A 00 6A [08:25:34]Write to MH i2c: 01 00 00 80 1A 9A [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2E 4D 47 00 0C D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1E 25 01 00 F4 03 04 00 FC 4E 1C 67 B6 04 01 00 00 3C 38 33 27 66 39 40 61 [08:25:34]CommunicateWithHost err = 0 [08:25:34]CheckOFDResponse [08:25:34]1017 (14) - 77093643461234 [08:25:34]1041 (16) - 0000000000871795 [08:25:34]1040 (4) - 75038 [08:25:34]1012 (4) - 26.10.2024 02:07 [08:25:34]1206 (1) - 0 [08:25:34]OFD Sender: Remove packet 75038 [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00075038 [08:25:34]NVStorageDeleteData [08:25:35]OFD Sender: No OFD packet to send [08:25:35]*** Cut start [08:25:35]*** Partial cut [08:25:35]*** CUTSNS_PIN = 1 [08:25:35]*** CUTSNS_PIN = 0 [08:25:35]*** Brake cut motor [08:25:36]Read from MH i2c: 01 [08:25:36]MH_I2C_Read... [08:25:36]*** Stop cut motor [08:25:36]*** Cut end [08:25:36]Read from MH i2c: 01 07 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [08:25:36]process_action close_receipt done [08:25:36]requested_data is exist [08:25:36]produce_requested_data [08:25:36]requested_item fm.sn is exist - process it [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 11 00 00 [08:25:36]Write to MH i2c: E2 08 00 81 1A 80 11 00 00 00 00 00 00 15 [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 17 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 17 00 81 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6D [08:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:25:36]wFMCommunicate OK [08:25:36]requested_item fd.num is exist - process it [08:25:36]SAM_PROTO_GetFieldsCounters [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 13 00 00 [08:25:36]Write to MH i2c: E2 08 00 82 1A 80 13 00 00 00 00 00 00 18 [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 62 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 62 00 82 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1E 25 01 00 0E 04 04 00 00 02 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 DF [08:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1E 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:36]wFMCommunicate OK [08:25:36]SAM_PROTO_GetFieldsCounters done [08:25:36]requested_item shift.num is exist - process it [08:25:36]requested_item shift.opened is exist - process it [08:25:36]req_shift_opened [08:25:36]FM_GetShiftState [08:25:36]SAM_PROTO_GetShiftState [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 13 01 00 [08:25:36]Write to MH i2c: E2 08 00 83 1A 80 13 01 00 00 00 00 00 1A [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 0E 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 0E 00 83 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 35 [08:25:36]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:25:36]wFMCommunicate OK [08:25:36]SAM_PROTO_GetShiftState done [08:25:36]FM_GetShiftState done [08:25:36]req_shift_opened done [08:25:36]requested_item shift.open_date is exist - process it [08:25:36]req_shift_open_date [08:25:36]req_shift_open_date done [08:25:36]produce_requested_data done [08:25:36]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75038,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:25:36]process_action_free close_receipt [08:25:36]json_value_free [08:25:36]json_value_free done [08:25:36]process_json_proto returns [08:25:36]Send response to host [08:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75038,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:25:36]free response buf [08:25:36]execute_script done [08:25:36]execute_script returns [08:25:36]free content buf [08:25:36]Sock 9.Close socket [08:25:36]Sock 9.Thread stoped [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:27]accept exits with 10 [08:26:27]New connection [08:26:27]New thread 3066781028 created [08:26:27]Thread 3066924388 joined [08:26:27]Waiting for new connection... [08:26:27] Sock 10.Parse request [08:26:27]Sock 10.Check first char [08:26:27]Sock 10.First char is OK [08:26:27]request: POST /json_proto HTTP/1.0 [08:26:27]Method: POST [08:26:27]URL: /json_proto [08:26:27]Method is POST - this is cgi request [08:26:27]url: /json_proto [08:26:27]query_string will be loaded in cgi processing [08:26:27]execute_cgi json_proto POST (null) [08:26:27]execute_cgi path=json_proto method=POST [08:26:27]POST find Content-Length [08:26:27]Host: 172.17.39.131:8080 [08:26:27]Content-Length: 682 [08:26:27]Content-Type: application/json [08:26:27] [08:26:27]POST finish read [08:26:27]Found Content-Length = 682 [08:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:26:27]execute_script... [08: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)191011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:26:27]POST & json_proto [08:26:27]process_json_proto [08:26:27]json parsed OK: [08:26:27]protocol is kg_v1.0 [08:26:27]action value=close_receipt [08:26:27]process_action close_receipt [08:26:27]cmd_close_receipt [08:26:27]MH_GetDate [08:26:27]Write to MH i2c: F0 00 00 84 1A 8D [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: F0 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: F0 09 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: F0 09 00 84 1A 00 B7 A7 1C 67 86 57 24 65 DD [08:26:27]GetLastDocTimeStamp 1729931136 [08:26:27]current date 1729931191 [08:26:27]FM_GetShiftState [08:26:27]SAM_PROTO_GetShiftState [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 13 01 00 [08:26:27]Write to MH i2c: E2 08 00 85 1A 80 13 01 00 00 00 00 00 1C [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 0E 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 0E 00 85 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 37 [08:26:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:26:27]wFMCommunicate OK [08:26:27]SAM_PROTO_GetShiftState done [08:26:27]FM_GetShiftState done [08:26:27]opened in 1729902166 [08:26:27]opened+sec_in_day 1729988566 [08:26:27]quantity*price = 100015 [08:26:27]sum+1 = 100017 [08:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 31 26.10.2024 08:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75039 ФПД: 87457561809742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082631&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75039&fm=87457561809742&tin=02508201610067®Number=0000000000091691&sum=100000 [08:26:28]StoreToDocumentArchive [08:26:28]shift 512 fd 75039 [08:26:28]save to /storage/0512/doc_00075039 [08:26:28]save last doc name /storage/0512/doc_00075039 to /storage/kkm_last_doc_name [08:26:28]save OK [08:26:28]Clear old archive folders... [08:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:28]tlvbuf is B6EA1C10 [08:26:28]SAM_PROTO_ClearQueue [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 09 00 00 [08:26:28]Write to MH i2c: E2 08 00 92 1A 80 09 00 00 00 00 00 00 1E [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 92 1A 00 90 00 20 [08:26:28]RAPDU: 90 00 [08:26:28]wFMCommunicate OK [08:26:28]SAM_PROTO_ClearQueue done [08:26:28]KKMCreateOFDPacket [08:26:28]OFDProtocolAddRootSTLVToBuf [08:26:28]FM_MakeSignedData [08:26:28]FM_MakeSignedData [08:26:28]SAM_PROTO_SignData [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 0D 01 02 [08:26:28]Write to MH i2c: E2 08 00 93 1A 80 0D 01 02 00 00 00 00 26 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 93 1A 00 90 00 21 [08:26:28]RAPDU: 90 00 [08:26:28]wFMCommunicate OK [08:26:28]wFMCommunicate request_size=255 [08:26:28]MH_SAM_APDU [08:26: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 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 1F 00 00 00 F4 03 04 00 B7 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 25 01 00 35 04 06 00 4F [08:26:28]Write to MH i2c: E2 02 01 94 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 B7 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 25 01 00 35 04 06 00 4F 00 00 4B [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 94 1A 00 90 00 22 [08:26:28]RAPDU: 90 00 [08:26:28]wFMCommunicate OK [08:26:28]wFMCommunicate request_size=10 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 0D 02 02 05 8A CC E7 93 4E [08:26:28]Write to MH i2c: E2 0D 00 95 1A 80 0D 02 02 05 00 8A CC E7 93 4E 00 00 51 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [08:26:28]RAPDU: 90 00 [08:26:28]wFMCommunicate OK [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 0D 03 02 [08:26:28]Write to MH i2c: E2 08 00 96 1A 80 0D 03 02 00 00 00 00 2B [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 0B 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 0B 00 96 1A 00 33 78 5B BD 36 EB 37 2B 90 00 72 [08:26:28]RAPDU: 33 78 5B BD 36 EB 37 2B 90 00 [08:26:28]wFMCommunicate OK [08:26:28]SAM_PROTO_SignData done [08:26:28]FM_MakeSignedData done [08:26:28]CreateOFDProtocolMessage [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 11 00 00 [08:26:28]Write to MH i2c: E2 08 00 97 1A 80 11 00 00 00 00 00 00 2B [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:29]Read from MH i2c: E2 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 17 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 17 00 97 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [08:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:26:29]wFMCommunicate OK [08:26:29]CreateOFDProtocolMessage done [08:26:29]OFDSenderStorePacket 75039 [08:26:29]StoreOFDPacket docnum=75039 [08:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A9 6C 07 01 D8 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 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 1F 00 00 00 F4 03 04 00 B7 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 25 01 00 35 04 06 00 4F 8A CC E7 93 4E 33 78 5B BD 36 EB 37 2B [08:26:29]CheckFolder [08:26:29]dirname=/storage/ofd_packets [08:26:29]CheckFolder done [08:26:29]ProducePacketName [08:26:29]name=ofd_packets/00075039 [08:26:29]NVStorageSaveData ofd_packets/00075039 [08:26:29]File name is /storage/ofd_packets/00075039 [08:26:29]Write 301 bytes [08:26:29]NVStorageSaveData done [08:26:29]OFDSenderStorePacket done [08:26:29]KKMCreateOFDPacket done [08:26:29]NVStorageSaveData kkm_last_timestamp [08:26:29]File name is /storage/kkm_last_timestamp [08:26:29]Write 4 bytes [08:26:29]NVStorageSaveData done [08:26:29]ExternCall_PrintAddStr [08:26:29]wPrintStart [08:26:29]Write to MH i2c: 01 00 00 98 1A B2 [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 07 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 07 00 98 1A 00 00 00 00 00 FF 0F C7 [08:26:29]RasterBufferAndPrint [08:26:29]line Счет N : (1)191011 [08:26:29]line ИНН: 02508201610067 [08:26:29]line Контрольно-Кассовый Чек [08:26:29]line ПРОДАЖА [08:26:29]line ТРК (МРК, ГНК) : 21 [08:26:29]line Товар: 2710124130 [08:26:29]line Аи-92-К-5 [08:26:29]line 14.950 * 66.90 [08:26:29]line = 1000.16 [08:26:29]line НДС 12% НСП 1% [08:26:29]line > о реализуемом товаре [08:26:29]line ОКРУГЛЕНИЕ: -0.16 [08:26:29]line ИТОГО: 1000.00 [08:26:29]line Внесено: 1000.00 [08:26:29]line СДАЧА: 0.00 [08:26:29]line НСП 1% : 8.85 [08:26:29]line НДС 12% : 106.21 [08:26:29]line Наличными: 1000.00 [08:26:29]line Безнал.: 0.00 [08:26:29]line Место: АЗС № 142 "Партнер Нефть" [08:26:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:26:29]line СНО: Общий режим [08:26:29]line Чек 31 26.10.2024 08:26 [08:26:29]line Смена: 512 ФФД: 1.0 [08:26:29]line ЗНМ: 0300000089 [08:26:29]line РНМ: 0000000000091691 [08:26:29]line Версия ККМ: 001 [08:26:29]line ФМ: 0000000000871795 [08:26:29]line ФД: 75039 [08:26:29]line ФПД: 87457561809742 [08:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082631&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75039&fm=87457561809742&tin=02508201610067®Number=0000000000091691&sum=100000 [08:26:29]OFD Sender: Processing packet 75039 [packets to send 13, broken 12] [08:26:29]ProducePacketName [08:26:29]name=ofd_packets/00075039 [08:26:29]OFD Sender: To server: pG, [08:26:29]CommunicateWithHost lk.salyk.kg:30040 [08:26:29]ConnectInit lk.salyk.kg [08:26:29]written 0, free lines is 4095 [08:26:29]Connected sock=9 [08:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A9 6C 07 01 D8 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 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 1F 00 00 00 F4 03 04 00 B7 A7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 25 01 00 35 04 06 00 4F 8A CC E7 93 4E 33 78 5B BD 36 EB 37 2B [08:26:29]Write to MH i2c: 01 00 00 C3 1A DD [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 07 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: 01 07 00 C3 1A 00 00 00 00 00 A4 0C 94 [08:26:29]RasterBufferAndPrint [08:26:29]line [08:26:29]line [08:26:29]line [08:26:29]line [08:26:29]line [08:26:29]written 0, free lines is 3240 [08:26:29]MH_Cut [08:26:29]Write to MH i2c: D1 01 00 CA 1A 01 B6 [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: D1 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: D1 01 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: D1 01 00 CA 1A 00 B5 [08:26:29]Write to MH i2c: 01 00 00 CB 1A E5 [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FF 59 47 00 88 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 1F 25 01 00 F4 03 04 00 34 4F 1C 67 B6 04 01 00 00 B9 55 9C 9D AB A0 21 C6 [08:26:29]CommunicateWithHost err = 0 [08:26:29]CheckOFDResponse [08:26:29]1017 (14) - 77093643461234 [08:26:29]1041 (16) - 0000000000871795 [08:26:29]1040 (4) - 75039 [08:26:29]1012 (4) - 26.10.2024 02:08 [08:26:29]1206 (1) - 0 [08:26:29]OFD Sender: Remove packet 75039 [08:26:29]ProducePacketName [08:26:29]name=ofd_packets/00075039 [08:26:29]NVStorageDeleteData [08:26:30]OFD Sender: No OFD packet to send [08:26:30]*** Cut start [08:26:30]*** Partial cut [08:26:30]*** CUTSNS_PIN = 1 [08:26:30]*** CUTSNS_PIN = 0 [08:26:31]*** Brake cut motor [08:26:31]Read from MH i2c: 01 [08:26:31]MH_I2C_Read... [08:26:31]*** Stop cut motor [08:26:31]*** Cut end [08:26:31]Read from MH i2c: 01 07 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 FF 0F FA [08:26:31]process_action close_receipt done [08:26:31]requested_data is exist [08:26:31]produce_requested_data [08:26:31]requested_item fm.sn is exist - process it [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 11 00 00 [08:26:31]Write to MH i2c: E2 08 00 CC 1A 80 11 00 00 00 00 00 00 60 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 17 00 CC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B8 [08:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:26:31]wFMCommunicate OK [08:26:31]requested_item fd.num is exist - process it [08:26:31]SAM_PROTO_GetFieldsCounters [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 13 00 00 [08:26:31]Write to MH i2c: E2 08 00 CD 1A 80 13 00 00 00 00 00 00 63 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 62 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 62 00 CD 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 25 01 00 0E 04 04 00 00 02 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 2E [08:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 1F 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_GetFieldsCounters done [08:26:31]requested_item shift.num is exist - process it [08:26:31]requested_item shift.opened is exist - process it [08:26:31]req_shift_opened [08:26:31]FM_GetShiftState [08:26:31]SAM_PROTO_GetShiftState [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 13 01 00 [08:26:31]Write to MH i2c: E2 08 00 CE 1A 80 13 01 00 00 00 00 00 65 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0E 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 0E 00 CE 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 80 [08:26:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_GetShiftState done [08:26:31]FM_GetShiftState done [08:26:31]req_shift_opened done [08:26:31]requested_item shift.open_date is exist - process it [08:26:31]req_shift_open_date [08:26:31]req_shift_open_date done [08:26:31]produce_requested_data done [08:26:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75039,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:26:31]process_action_free close_receipt [08:26:31]json_value_free [08:26:31]json_value_free done [08:26:31]process_json_proto returns [08:26:31]Send response to host [08:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75039,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:26:31]free response buf [08:26:31]execute_script done [08:26:31]execute_script returns [08:26:31]free content buf [08:26:31]Sock 10.Close socket [08:26:31]Sock 10.Thread stoped [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]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:47]accept exits with 8 [08:30:47]New connection [08:30:47]New thread 3066924388 created [08:30:47]Thread 3066781028 joined [08:30:47]Waiting for new connection... [08:30:47] Sock 8.Parse request [08:30:47]Sock 8.Check first char [08:30:47]Sock 8.First char is OK [08:30:47]request: POST /json_proto HTTP/1.0 [08:30:47]Method: POST [08:30:47]URL: /json_proto [08:30:47]Method is POST - this is cgi request [08:30:47]url: /json_proto [08:30:47]query_string will be loaded in cgi processing [08:30:47]execute_cgi json_proto POST (null) [08:30:47]execute_cgi path=json_proto method=POST [08:30:47]POST find Content-Length [08:30:47]Host: 172.17.39.131:8080 [08:30:47]Content-Length: 679 [08:30:47]Content-Type: application/json [08:30:47] [08:30:47]POST finish read [08:30:47]Found Content-Length = 679 [08:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [08:30:47]execute_script... [08:30: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)191012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [08:30:47]POST & json_proto [08:30:47]process_json_proto [08:30:47]json parsed OK: [08:30:47]protocol is kg_v1.0 [08:30:47]action value=close_receipt [08:30:47]process_action close_receipt [08:30:47]cmd_close_receipt [08:30:47]MH_GetDate [08:30:47]Write to MH i2c: F0 00 00 CF 1A D8 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: F0 09 00 CF 1A 00 BB A8 1C 67 86 57 24 65 2D [08:30:47]GetLastDocTimeStamp 1729931191 [08:30:47]current date 1729931451 [08:30:47]FM_GetShiftState [08:30:47]SAM_PROTO_GetShiftState [08:30:47]wFMCommunicate request_size=4 [08:30:47]MH_SAM_APDU [08:30:47]CAPDU: 80 13 01 00 [08:30:47]Write to MH i2c: E2 08 00 D0 1A 80 13 01 00 00 00 00 00 67 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:47]Read from MH i2c: E2 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 0E 00 D0 1A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 82 [08:30:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:30:47]wFMCommunicate OK [08:30:47]SAM_PROTO_GetShiftState done [08:30:47]FM_GetShiftState done [08:30:47]opened in 1729902166 [08:30:47]opened+sec_in_day 1729988566 [08:30:47]quantity*price = 200025 [08:30:47]sum+1 = 200026 [08:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 32 26.10.2024 08:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75040 ФПД: 109542888361597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083051&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75040&fm=109542888361597&tin=02508201610067®Number=0000000000091691&sum=200000 [08:30:48]StoreToDocumentArchive [08:30:48]shift 512 fd 75040 [08:30:48]save to /storage/0512/doc_00075040 [08:30:48]save last doc name /storage/0512/doc_00075040 to /storage/kkm_last_doc_name [08:30:48]save OK [08:30:48]Clear old archive folders... [08:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:30:48]tlvbuf is B6F51B40 [08:30:48]SAM_PROTO_ClearQueue [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 09 00 00 [08:30:48]Write to MH i2c: E2 08 00 DD 1A 80 09 00 00 00 00 00 00 69 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 DD 1A 00 90 00 6B [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_ClearQueue done [08:30:48]KKMCreateOFDPacket [08:30:48]OFDProtocolAddRootSTLVToBuf [08:30:48]FM_MakeSignedData [08:30:48]FM_MakeSignedData [08:30:48]SAM_PROTO_SignData [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 01 02 [08:30:48]Write to MH i2c: E2 08 00 DE 1A 80 0D 01 02 00 00 00 00 71 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=255 [08:30:48]MH_SAM_APDU [08:30: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 34 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 20 00 00 00 F4 03 04 00 BB A8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 25 01 00 35 04 06 00 63 A0 F0 F2 [08:30:48]Write to MH i2c: E2 02 01 DF 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 34 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 20 00 00 00 F4 03 04 00 BB A8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 25 01 00 35 04 06 00 63 A0 F0 F2 00 00 1C [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=7 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 02 CE 7D [08:30:48]Write to MH i2c: E2 0A 00 E0 1A 80 0D 02 02 02 00 CE 7D 00 00 C3 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 03 02 [08:30:48]Write to MH i2c: E2 08 00 E1 1A 80 0D 03 02 00 00 00 00 76 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 0B 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 0B 00 E1 1A 00 B0 CC 5A 57 E5 61 C2 EF 90 00 9B [08:30:48]RAPDU: B0 CC 5A 57 E5 61 C2 EF 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_SignData done [08:30:48]FM_MakeSignedData done [08:30:48]CreateOFDProtocolMessage [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 11 00 00 [08:30:48]Write to MH i2c: E2 08 00 E2 1A 80 11 00 00 00 00 00 00 76 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 17 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 17 00 E2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [08:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:30:48]wFMCommunicate OK [08:30:48]CreateOFDProtocolMessage done [08:30:48]OFDSenderStorePacket 75040 [08:30:48]StoreOFDPacket docnum=75040 [08:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 89 43 04 01 44 47 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 34 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 20 00 00 00 F4 03 04 00 BB A8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 25 01 00 35 04 06 00 63 A0 F0 F2 CE 7D B0 CC 5A 57 E5 61 C2 EF [08:30:48]CheckFolder [08:30:48]dirname=/storage/ofd_packets [08:30:48]CheckFolder done [08:30:48]ProducePacketName [08:30:48]name=ofd_packets/00075040 [08:30:48]NVStorageSaveData ofd_packets/00075040 [08:30:48]File name is /storage/ofd_packets/00075040 [08:30:48]Write 298 bytes [08:30:48]NVStorageSaveData done [08:30:48]OFDSenderStorePacket done [08:30:48]KKMCreateOFDPacket done [08:30:48]NVStorageSaveData kkm_last_timestamp [08:30:48]File name is /storage/kkm_last_timestamp [08:30:48]Write 4 bytes [08:30:48]NVStorageSaveData done [08:30:48]ExternCall_PrintAddStr [08:30:48]wPrintStart [08:30:48]Write to MH i2c: 01 00 00 E3 1A FD [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 07 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 07 00 E3 1A 00 00 00 00 00 FF 0F 12 [08:30:48]RasterBufferAndPrint [08:30:48]line Счет N : (1)191012 [08:30:48]line ИНН: 02508201610067 [08:30:48]line Контрольно-Кассовый Чек [08:30:48]line ПРОДАЖА [08:30:48]line ТРК (МРК, ГНК) : 41 [08:30:48]line Товар: 2710194210 [08:30:48]line ДТ-К-4 [08:30:48]line 26.250 * 76.20 [08:30:48]line = 2000.25 [08:30:48]line НДС 12% НСП 1% [08:30:48]line > о реализуемом товаре [08:30:48]line ОКРУГЛЕНИЕ: -0.25 [08:30:48]line ИТОГО: 2000.00 [08:30:48]line Внесено: 2000.00 [08:30:48]line СДАЧА: 0.00 [08:30:48]line НСП 1% : 17.70 [08:30:48]line НДС 12% : 212.42 [08:30:48]line Наличными: 2000.00 [08:30:48]line Безнал.: 0.00 [08:30:48]line Место: АЗС № 142 "Партнер Нефть" [08:30:48]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:30:48]line СНО: Общий режим [08:30:48]line Чек 32 26.10.2024 08:30 [08:30:48]line Смена: 512 ФФД: 1.0 [08:30:48]line ЗНМ: 0300000089 [08:30:48]line РНМ: 0000000000091691 [08:30:48]line Версия ККМ: 001 [08:30:48]line ФМ: 0000000000871795 [08:30:48]line ФД: 75040 [08:30:48]line ФПД: 109542888361597 [08:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083051&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75040&fm=109542888361597&tin=02508201610067®Number=0000000000091691&sum=200000 [08:30:49]OFD Sender: Processing packet 75040 [packets to send 13, broken 12] [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00075040 [08:30:49]OFD Sender: To server: pG, [08:30:49]CommunicateWithHost lk.salyk.kg:30040 [08:30:49]ConnectInit lk.salyk.kg [08:30:49]written 0, free lines is 4095 [08:30:49]Connected sock=9 [08:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 89 43 04 01 44 47 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 34 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 20 00 00 00 F4 03 04 00 BB A8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 25 01 00 35 04 06 00 63 A0 F0 F2 CE 7D B0 CC 5A 57 E5 61 C2 EF [08:30:49]Write to MH i2c: 01 00 00 0E 1B 29 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 AB 0C E7 [08:30:49]RasterBufferAndPrint [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]written 0, free lines is 3249 [08:30:49]MH_Cut [08:30:49]Write to MH i2c: D1 01 00 15 1B 01 02 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 15 1B 00 01 [08:30:49]Write to MH i2c: 01 00 00 16 1B 31 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A4 E6 47 00 34 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 20 25 01 00 F4 03 04 00 37 50 1C 67 B6 04 01 00 00 88 2F 78 29 F7 D6 6D 46 [08:30:49]CommunicateWithHost err = 0 [08:30:49]CheckOFDResponse [08:30:49]1017 (14) - 77093643461234 [08:30:49]1041 (16) - 0000000000871795 [08:30:49]1040 (4) - 75040 [08:30:49]1012 (4) - 26.10.2024 02:13 [08:30:49]1206 (1) - 0 [08:30:49]OFD Sender: Remove packet 75040 [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00075040 [08:30:49]NVStorageDeleteData [08:30:50]OFD Sender: No OFD packet to send [08:30:50]*** Cut start [08:30:50]*** Partial cut [08:30:50]*** CUTSNS_PIN = 1 [08:30:50]*** CUTSNS_PIN = 0 [08:30:50]*** Brake cut motor [08:30:51]Read from MH i2c: 01 [08:30:51]MH_I2C_Read... [08:30:51]*** Stop cut motor [08:30:51]*** Cut end [08:30:51]Read from MH i2c: 01 07 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 FF 0F 46 [08:30:51]process_action close_receipt done [08:30:51]requested_data is exist [08:30:51]produce_requested_data [08:30:51]requested_item fm.sn is exist - process it [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 11 00 00 [08:30:51]Write to MH i2c: E2 08 00 17 1B 80 11 00 00 00 00 00 00 AC [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 17 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 17 00 17 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 04 [08:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:30:51]wFMCommunicate OK [08:30:51]requested_item fd.num is exist - process it [08:30:51]SAM_PROTO_GetFieldsCounters [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 13 00 00 [08:30:51]Write to MH i2c: E2 08 00 18 1B 80 13 00 00 00 00 00 00 AF [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 62 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 62 00 18 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 25 01 00 0E 04 04 00 00 02 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 7E [08:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 20 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:51]wFMCommunicate OK [08:30:51]SAM_PROTO_GetFieldsCounters done [08:30:51]requested_item shift.num is exist - process it [08:30:51]requested_item shift.opened is exist - process it [08:30:51]req_shift_opened [08:30:51]FM_GetShiftState [08:30:51]SAM_PROTO_GetShiftState [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 13 01 00 [08:30:51]Write to MH i2c: E2 08 00 19 1B 80 13 01 00 00 00 00 00 B1 [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:51]Read from MH i2c: E2 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 0E 00 [08:30:51]MH_I2C_Read... [08:30:51]Read from MH i2c: E2 0E 00 19 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CC [08:30:51]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:30:51]wFMCommunicate OK [08:30:51]SAM_PROTO_GetShiftState done [08:30:51]FM_GetShiftState done [08:30:51]req_shift_opened done [08:30:51]requested_item shift.open_date is exist - process it [08:30:51]req_shift_open_date [08:30:51]req_shift_open_date done [08:30:51]produce_requested_data done [08:30:51]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75040,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:30:51]process_action_free close_receipt [08:30:51]json_value_free [08:30:51]json_value_free done [08:30:51]process_json_proto returns [08:30:51]Send response to host [08:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75040,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:30:51]free response buf [08:30:51]execute_script done [08:30:51]execute_script returns [08:30:51]free content buf [08:30:51]Sock 8.Close socket [08:30:51]Sock 8.Thread stoped [08:30:55]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:47]accept exits with 10 [08:41:47]New connection [08:41:47]New thread 3066781028 created [08:41:47]Thread 3066924388 joined [08:41:47]Waiting for new connection... [08:41:47] Sock 10.Parse request [08:41:47]Sock 10.Check first char [08:41:47]Sock 10.First char is OK [08:41:47]request: POST /json_proto HTTP/1.0 [08:41:47]Method: POST [08:41:47]URL: /json_proto [08:41:47]Method is POST - this is cgi request [08:41:47]url: /json_proto [08:41:47]query_string will be loaded in cgi processing [08:41:47]execute_cgi json_proto POST (null) [08:41:47]execute_cgi path=json_proto method=POST [08:41:47]POST find Content-Length [08:41:47]Host: 172.17.39.131:8080 [08:41:47]Content-Length: 677 [08:41:47]Content-Type: application/json [08:41:47] [08:41:47]POST finish read [08:41:47]Found Content-Length = 677 [08:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:41:47]execute_script... [08:41: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)191014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:41:47]POST & json_proto [08:41:47]process_json_proto [08:41:47]json parsed OK: [08:41:47]protocol is kg_v1.0 [08:41:47]action value=close_receipt [08:41:47]process_action close_receipt [08:41:47]cmd_close_receipt [08:41:47]MH_GetDate [08:41:47]Write to MH i2c: F0 00 00 1A 1B 24 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: F0 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: F0 09 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: F0 09 00 1A 1B 00 4F AB 1C 67 86 57 24 65 10 [08:41:47]GetLastDocTimeStamp 1729931451 [08:41:47]current date 1729932111 [08:41:47]FM_GetShiftState [08:41:47]SAM_PROTO_GetShiftState [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 13 01 00 [08:41:47]Write to MH i2c: E2 08 00 1B 1B 80 13 01 00 00 00 00 00 B3 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0E 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0E 00 1B 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CE [08:41:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:41:47]wFMCommunicate OK [08:41:47]SAM_PROTO_GetShiftState done [08:41:47]FM_GetShiftState done [08:41:47]opened in 1729902166 [08:41:47]opened+sec_in_day 1729988566 [08:41:47]quantity*price = 20003 [08:41:47]sum+1 = 20004 [08:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 33 26.10.2024 08:41 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75041 ФПД: 80125086589199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084151&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75041&fm=80125086589199&tin=02508201610067®Number=0000000000091691&sum=20000 [08:41:48]StoreToDocumentArchive [08:41:48]shift 512 fd 75041 [08:41:48]save to /storage/0512/doc_00075041 [08:41:48]save last doc name /storage/0512/doc_00075041 to /storage/kkm_last_doc_name [08:41:48]save OK [08:41:48]Clear old archive folders... [08:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:48]tlvbuf is B6EBABD0 [08:41:48]SAM_PROTO_ClearQueue [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 09 00 00 [08:41:48]Write to MH i2c: E2 08 00 28 1B 80 09 00 00 00 00 00 00 B5 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 28 1B 00 90 00 B7 [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]SAM_PROTO_ClearQueue done [08:41:48]KKMCreateOFDPacket [08:41:48]OFDProtocolAddRootSTLVToBuf [08:41:48]FM_MakeSignedData [08:41:48]FM_MakeSignedData [08:41:48]SAM_PROTO_SignData [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 0D 01 02 [08:41:48]Write to MH i2c: E2 08 00 29 1B 80 0D 01 02 00 00 00 00 BD [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 29 1B 00 90 00 B8 [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]wFMCommunicate request_size=255 [08:41:48]MH_SAM_APDU [08:41: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 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 21 00 00 00 F4 03 04 00 4F AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 25 01 00 35 04 06 00 48 [08:41:48]Write to MH i2c: E2 02 01 2A 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 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 21 00 00 00 F4 03 04 00 4F AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 25 01 00 35 04 06 00 48 00 00 43 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 2A 1B 00 90 00 B9 [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]wFMCommunicate request_size=10 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 0D 02 02 05 DF 93 52 E1 0F [08:41:48]Write to MH i2c: E2 0D 00 2B 1B 80 0D 02 02 05 00 DF 93 52 E1 0F 00 00 7E [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 2B 1B 00 90 00 BA [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 0D 03 02 [08:41:48]Write to MH i2c: E2 08 00 2C 1B 80 0D 03 02 00 00 00 00 C2 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 0B 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 0B 00 2C 1B 00 CC 43 31 55 16 3F D0 ED 90 00 6A [08:41:48]RAPDU: CC 43 31 55 16 3F D0 ED 90 00 [08:41:48]wFMCommunicate OK [08:41:48]SAM_PROTO_SignData done [08:41:48]FM_MakeSignedData done [08:41:48]CreateOFDProtocolMessage [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 11 00 00 [08:41:48]Write to MH i2c: E2 08 00 2D 1B 80 11 00 00 00 00 00 00 C2 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 17 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 17 00 2D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [08:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:41:48]wFMCommunicate OK [08:41:48]CreateOFDProtocolMessage done [08:41:48]OFDSenderStorePacket 75041 [08:41:48]StoreOFDPacket docnum=75041 [08:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1A A4 07 01 2E 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 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 21 00 00 00 F4 03 04 00 4F AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 25 01 00 35 04 06 00 48 DF 93 52 E1 0F CC 43 31 55 16 3F D0 ED [08:41:48]CheckFolder [08:41:48]dirname=/storage/ofd_packets [08:41:48]CheckFolder done [08:41:48]ProducePacketName [08:41:48]name=ofd_packets/00075041 [08:41:48]NVStorageSaveData ofd_packets/00075041 [08:41:48]File name is /storage/ofd_packets/00075041 [08:41:48]Write 301 bytes [08:41:48]NVStorageSaveData done [08:41:48]OFDSenderStorePacket done [08:41:48]KKMCreateOFDPacket done [08:41:48]NVStorageSaveData kkm_last_timestamp [08:41:48]File name is /storage/kkm_last_timestamp [08:41:48]Write 4 bytes [08:41:48]NVStorageSaveData done [08:41:48]ExternCall_PrintAddStr [08:41:48]wPrintStart [08:41:48]Write to MH i2c: 01 00 00 2E 1B 49 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [08:41:48]RasterBufferAndPrint [08:41:48]line Счет N : (1)191014 [08:41:48]line ИНН: 02508201610067 [08:41:48]line Контрольно-Кассовый Чек [08:41:48]line ПРОДАЖА [08:41:48]line ТРК (МРК, ГНК) : 21 [08:41:48]line Товар: 2710124130 [08:41:48]line Аи-92-К-5 [08:41:48]line 2.990 * 66.90 [08:41:48]line = 200.03 [08:41:48]line НДС 12% НСП 1% [08:41:48]line > о реализуемом товаре [08:41:48]line ОКРУГЛЕНИЕ: -0.03 [08:41:48]line ИТОГО: 200.00 [08:41:48]line Внесено: 200.00 [08:41:48]line СДАЧА: 0.00 [08:41:48]line НСП 1% : 1.77 [08:41:48]line НДС 12% : 21.24 [08:41:48]line Наличными: 200.00 [08:41:48]line Безнал.: 0.00 [08:41:48]line Место: АЗС № 142 "Партнер Нефть" [08:41:48]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:41:48]line СНО: Общий режим [08:41:48]line Чек 33 26.10.2024 08:41 [08:41:48]line Смена: 512 ФФД: 1.0 [08:41:48]line ЗНМ: 0300000089 [08:41:48]line РНМ: 0000000000091691 [08:41:48]line Версия ККМ: 001 [08:41:48]line ФМ: 0000000000871795 [08:41:48]line ФД: 75041 [08:41:48]line ФПД: 80125086589199 [08:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084151&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75041&fm=80125086589199&tin=02508201610067®Number=0000000000091691&sum=20000 [08:41:49]OFD Sender: Processing packet 75041 [packets to send 13, broken 12] [08:41:49]ProducePacketName [08:41:49]name=ofd_packets/00075041 [08:41:49]OFD Sender: To server: pG, [08:41:49]CommunicateWithHost lk.salyk.kg:30040 [08:41:49]ConnectInit lk.salyk.kg [08:41:49]written 0, free lines is 4095 [08:41:49]Write to MH i2c: 01 00 00 59 1B 74 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 91 0C 18 [08:41:49]RasterBufferAndPrint [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]written 0, free lines is 3223 [08:41:49]MH_Cut [08:41:49]Write to MH i2c: D1 01 00 60 1B 01 4D [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: D1 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: D1 01 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: D1 01 00 60 1B 00 4C [08:41:49]Write to MH i2c: 01 00 00 61 1B 7C [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:50]*** Cut start [08:41:50]*** Partial cut [08:41:50]*** CUTSNS_PIN = 1 [08:41:50]*** CUTSNS_PIN = 0 [08:41:50]*** Brake cut motor [08:41:51]Read from MH i2c: 01 [08:41:51]MH_I2C_Read... [08:41:51]*** Stop cut motor [08:41:51]*** Cut end [08:41:51]Read from MH i2c: 01 07 00 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 FF 0F 91 [08:41:51]process_action close_receipt done [08:41:51]requested_data is exist [08:41:51]produce_requested_data [08:41:51]requested_item fm.sn is exist - process it [08:41:51]wFMCommunicate request_size=4 [08:41:51]MH_SAM_APDU [08:41:51]CAPDU: 80 11 00 00 [08:41:51]Write to MH i2c: E2 08 00 62 1B 80 11 00 00 00 00 00 00 F7 [08:41:51]Write i2c OK [08:41:51]MH_I2C_Read... [08:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:51]Read from MH i2c: E2 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 17 00 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 17 00 62 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4F [08:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:41:51]wFMCommunicate OK [08:41:51]requested_item fd.num is exist - process it [08:41:51]SAM_PROTO_GetFieldsCounters [08:41:51]wFMCommunicate request_size=4 [08:41:51]MH_SAM_APDU [08:41:51]CAPDU: 80 13 00 00 [08:41:51]Write to MH i2c: E2 08 00 63 1B 80 13 00 00 00 00 00 00 FA [08:41:51]Write i2c OK [08:41:51]MH_I2C_Read... [08:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:51]Read from MH i2c: E2 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 62 00 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 62 00 63 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 25 01 00 0E 04 04 00 00 02 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 CD [08:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 21 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:51]wFMCommunicate OK [08:41:51]SAM_PROTO_GetFieldsCounters done [08:41:51]requested_item shift.num is exist - process it [08:41:51]requested_item shift.opened is exist - process it [08:41:51]req_shift_opened [08:41:51]FM_GetShiftState [08:41:51]SAM_PROTO_GetShiftState [08:41:51]wFMCommunicate request_size=4 [08:41:51]MH_SAM_APDU [08:41:51]CAPDU: 80 13 01 00 [08:41:51]Write to MH i2c: E2 08 00 64 1B 80 13 01 00 00 00 00 00 FC [08:41:51]Write i2c OK [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 [08:41:51]MH_I2C_Read... [08:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:51]Read from MH i2c: E2 0E 00 [08:41:51]MH_I2C_Read... [08:41:51]Read from MH i2c: E2 0E 00 64 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 17 [08:41:51]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:41:51]wFMCommunicate OK [08:41:51]SAM_PROTO_GetShiftState done [08:41:51]FM_GetShiftState done [08:41:51]req_shift_opened done [08:41:51]requested_item shift.open_date is exist - process it [08:41:51]req_shift_open_date [08:41:51]req_shift_open_date done [08:41:51]produce_requested_data done [08:41:51]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75041,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:41:51]process_action_free close_receipt [08:41:51]json_value_free [08:41:51]json_value_free done [08:41:51]process_json_proto returns [08:41:51]Send response to host [08:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75041,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:41:51]free response buf [08:41:51]execute_script done [08:41:51]execute_script returns [08:41:51]free content buf [08:41:51]Sock 10.Close socket [08:41:51]Sock 10.Thread stoped [08:41:53]Connected sock=11 [08:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1A A4 07 01 2E 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 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 21 00 00 00 F4 03 04 00 4F AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 25 01 00 35 04 06 00 48 DF 93 52 E1 0F CC 43 31 55 16 3F D0 ED [08:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 65 AC 47 00 09 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 21 25 01 00 F4 03 04 00 D0 52 1C 67 B6 04 01 00 00 CA 5C 4A BA 6D 0F 67 90 [08:41:54]CommunicateWithHost err = 0 [08:41:54]CheckOFDResponse [08:41:54]1017 (14) - 77093643461234 [08:41:54]1041 (16) - 0000000000871795 [08:41:54]1040 (4) - 75041 [08:41:54]1012 (4) - 26.10.2024 02:24 [08:41:54]1206 (1) - 0 [08:41:54]OFD Sender: Remove packet 75041 [08:41:54]ProducePacketName [08:41:54]name=ofd_packets/00075041 [08:41:54]NVStorageDeleteData [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:15]accept exits with 9 [08:42:15]New connection [08:42:15]New thread 3066924388 created [08:42:15]Thread 3066781028 joined [08:42:15]Waiting for new connection... [08:42:15] Sock 9.Parse request [08:42:15]Sock 9.Check first char [08:42:15]Sock 9.First char is OK [08:42:15]request: POST /json_proto HTTP/1.0 [08:42:15]Method: POST [08:42:15]URL: /json_proto [08:42:15]Method is POST - this is cgi request [08:42:15]url: /json_proto [08:42:15]query_string will be loaded in cgi processing [08:42:15]execute_cgi json_proto POST (null) [08:42:15]execute_cgi path=json_proto method=POST [08:42:15]POST find Content-Length [08:42:15]Host: 172.17.39.131:8080 [08:42:15]Content-Length: 685 [08:42:15]Content-Type: application/json [08:42:15] [08:42:15]POST finish read [08:42:15]Found Content-Length = 685 [08:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [08:42:15]execute_script... [08:42: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)191013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [08:42:15]POST & json_proto [08:42:15]process_json_proto [08:42:15]json parsed OK: [08:42:15]protocol is kg_v1.0 [08:42:15]action value=close_receipt [08:42:15]process_action close_receipt [08:42:15]cmd_close_receipt [08:42:15]MH_GetDate [08:42:15]Write to MH i2c: F0 00 00 65 1B 6F [08:42:15]Write i2c OK [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: F0 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: F0 09 00 [08:42:15]MH_I2C_Read... [08:42:15]Read from MH i2c: F0 09 00 65 1B 00 6B AB 1C 67 86 57 24 65 77 [08:42:15]GetLastDocTimeStamp 1729932111 [08:42:15]current date 1729932139 [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 66 1B 80 13 01 00 00 00 00 00 FE [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 66 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [08:42:15]RAPDU: 09 00 01 56 36 1C 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]opened in 1729902166 [08:42:15]opened+sec_in_day 1729988566 [08:42:15]quantity*price = 100011 [08:42:15]sum+1 = 100013 [08:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 34 26.10.2024 08:42 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75042 ФПД: 174001896041848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084219&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75042&fm=174001896041848&tin=02508201610067®Number=0000000000091691&sum=100000 [08:42:16]StoreToDocumentArchive [08:42:16]shift 512 fd 75042 [08:42:16]save to /storage/0512/doc_00075042 [08:42:16]save last doc name /storage/0512/doc_00075042 to /storage/kkm_last_doc_name [08:42:16]save OK [08:42:16]Clear old archive folders... [08:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:42:16]tlvbuf is B6F51C40 [08:42:16]SAM_PROTO_ClearQueue [08:42:16]wFMCommunicate request_size=4 [08:42:16]MH_SAM_APDU [08:42:16]CAPDU: 80 09 00 00 [08:42:16]Write to MH i2c: E2 08 00 73 1B 80 09 00 00 00 00 00 00 00 [08:42:16]Write i2c OK [08:42:16]MH_I2C_Read... [08:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:16]Read from MH i2c: E2 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [08:42:16]RAPDU: 90 00 [08:42:16]wFMCommunicate OK [08:42:16]SAM_PROTO_ClearQueue done [08:42:16]KKMCreateOFDPacket [08:42:16]OFDProtocolAddRootSTLVToBuf [08:42:16]FM_MakeSignedData [08:42:16]FM_MakeSignedData [08:42:16]SAM_PROTO_SignData [08:42:16]wFMCommunicate request_size=4 [08:42:16]MH_SAM_APDU [08:42:16]CAPDU: 80 0D 01 02 [08:42:16]Write to MH i2c: E2 08 00 74 1B 80 0D 01 02 00 00 00 00 08 [08:42:16]Write i2c OK [08:42:16]MH_I2C_Read... [08:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:16]Read from MH i2c: E2 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [08:42:16]RAPDU: 90 00 [08:42:16]wFMCommunicate OK [08:42:16]wFMCommunicate request_size=255 [08:42:16]MH_SAM_APDU [08:42:16]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 39 30 30 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 22 00 00 00 F4 03 04 00 6B AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 25 01 00 35 04 06 00 9E 40 [08:42:16]Write to MH i2c: E2 02 01 75 1B 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 39 30 30 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 22 00 00 00 F4 03 04 00 6B AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 25 01 00 35 04 06 00 9E 40 00 00 52 [08:42:16]Write i2c OK [08:42:16]MH_I2C_Read... [08:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:16]Read from MH i2c: E2 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [08:42:16]RAPDU: 90 00 [08:42:16]wFMCommunicate OK [08:42:16]wFMCommunicate request_size=9 [08:42:16]MH_SAM_APDU [08:42:16]CAPDU: 80 0D 02 02 04 F9 34 2D 78 [08:42:16]Write to MH i2c: E2 0C 00 76 1B 80 0D 02 02 04 00 F9 34 2D 78 00 00 E5 [08:42:16]Write i2c OK [08:42:16]MH_I2C_Read... [08:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:16]Read from MH i2c: E2 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 [08:42:16]MH_I2C_Read... [08:42:16]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [08:42:16]RAPDU: 90 00 [08:42:16]wFMCommunicate OK [08:42:16]wFMCommunicate request_size=4 [08:42:16]MH_SAM_APDU [08:42:16]CAPDU: 80 0D 03 02 [08:42:16]Write to MH i2c: E2 08 00 77 1B 80 0D 03 02 00 00 00 00 0D [08:42:16]Write i2c OK [08:42:16]MH_I2C_Read... [08:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:17]Read from MH i2c: E2 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 0B 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 0B 00 77 1B 00 88 A1 BA 5D CE 01 31 0F 90 00 5D [08:42:17]RAPDU: 88 A1 BA 5D CE 01 31 0F 90 00 [08:42:17]wFMCommunicate OK [08:42:17]SAM_PROTO_SignData done [08:42:17]FM_MakeSignedData done [08:42:17]CreateOFDProtocolMessage [08:42:17]wFMCommunicate request_size=4 [08:42:17]MH_SAM_APDU [08:42:17]CAPDU: 80 11 00 00 [08:42:17]Write to MH i2c: E2 08 00 78 1B 80 11 00 00 00 00 00 00 0D [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:17]Read from MH i2c: E2 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 17 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 17 00 78 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [08:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:42:17]wFMCommunicate OK [08:42:17]CreateOFDProtocolMessage done [08:42:17]OFDSenderStorePacket 75042 [08:42:17]StoreOFDPacket docnum=75042 [08:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 9C 79 06 01 18 39 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 39 30 30 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 22 00 00 00 F4 03 04 00 6B AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 25 01 00 35 04 06 00 9E 40 F9 34 2D 78 88 A1 BA 5D CE 01 31 0F [08:42:17]CheckFolder [08:42:17]dirname=/storage/ofd_packets [08:42:17]CheckFolder done [08:42:17]ProducePacketName [08:42:17]name=ofd_packets/00075042 [08:42:17]NVStorageSaveData ofd_packets/00075042 [08:42:17]File name is /storage/ofd_packets/00075042 [08:42:17]Write 300 bytes [08:42:17]NVStorageSaveData done [08:42:17]OFDSenderStorePacket done [08:42:17]KKMCreateOFDPacket done [08:42:17]NVStorageSaveData kkm_last_timestamp [08:42:17]File name is /storage/kkm_last_timestamp [08:42:17]Write 4 bytes [08:42:17]NVStorageSaveData done [08:42:17]ExternCall_PrintAddStr [08:42:17]wPrintStart [08:42:17]Write to MH i2c: 01 00 00 79 1B 94 [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 07 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [08:42:17]RasterBufferAndPrint [08:42:17]line Счет N : (1)191013 [08:42:17]line ИНН: 02508201610067 [08:42:17]line Контрольно-Кассовый Чек [08:42:17]line ПРОДАЖА [08:42:17]line ТРК (МРК, ГНК) : 51 [08:42:17]line Товар: 2711190000 [08:42:17]line ГАЗ-К-3 [08:42:17]line 25.710 * 38.90 [08:42:17]line = 1000.12 [08:42:17]line НДС 12% НСП 1% [08:42:17]line > о реализуемом товаре [08:42:17]line ОКРУГЛЕНИЕ: -0.12 [08:42:17]line ИТОГО: 1000.00 [08:42:17]line Внесено: 1000.00 [08:42:17]line СДАЧА: 0.00 [08:42:17]line НСП 1% : 8.85 [08:42:17]line НДС 12% : 106.21 [08:42:17]line Наличными: 1000.00 [08:42:17]line Безнал.: 0.00 [08:42:17]line Место: АЗС № 142 "Партнер Нефть" [08:42:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:42:17]line СНО: Общий режим [08:42:17]line Чек 34 26.10.2024 08:42 [08:42:17]line Смена: 512 ФФД: 1.0 [08:42:17]line ЗНМ: 0300000089 [08:42:17]line РНМ: 0000000000091691 [08:42:17]line Версия ККМ: 001 [08:42:17]line ФМ: 0000000000871795 [08:42:17]line ФД: 75042 [08:42:17]line ФПД: 174001896041848 [08:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084219&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75042&fm=174001896041848&tin=02508201610067®Number=0000000000091691&sum=100000 [08:42:17]OFD Sender: Processing packet 75042 [packets to send 13, broken 12] [08:42:17]ProducePacketName [08:42:17]name=ofd_packets/00075042 [08:42:17]OFD Sender: To server: pG, [08:42:17]CommunicateWithHost lk.salyk.kg:30040 [08:42:17]ConnectInit lk.salyk.kg [08:42:17]written 0, free lines is 4095 [08:42:17]Connected sock=10 [08:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 9C 79 06 01 18 39 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 39 30 30 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 22 00 00 00 F4 03 04 00 6B AB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 25 01 00 35 04 06 00 9E 40 F9 34 2D 78 88 A1 BA 5D CE 01 31 0F [08:42:17]Write to MH i2c: 01 00 00 A4 1B BF [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 07 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 99 0C 6B [08:42:17]RasterBufferAndPrint [08:42:17]line [08:42:17]line [08:42:17]line [08:42:17]line [08:42:17]line [08:42:17]written 0, free lines is 3232 [08:42:17]MH_Cut [08:42:17]Write to MH i2c: D1 01 00 AB 1B 01 98 [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: D1 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: D1 01 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: D1 01 00 AB 1B 00 97 [08:42:17]Write to MH i2c: 01 00 00 AC 1B C7 [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 06 33 47 00 9E 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 22 25 01 00 F4 03 04 00 E8 52 1C 67 B6 04 01 00 00 57 2F 89 9F 2A 0B CB 46 [08:42:17]CommunicateWithHost err = 0 [08:42:17]CheckOFDResponse [08:42:17]1017 (14) - 77093643461234 [08:42:17]1041 (16) - 0000000000871795 [08:42:17]1040 (4) - 75042 [08:42:17]1012 (4) - 26.10.2024 02:24 [08:42:17]1206 (1) - 0 [08:42:17]OFD Sender: Remove packet 75042 [08:42:17]ProducePacketName [08:42:17]name=ofd_packets/00075042 [08:42:17]NVStorageDeleteData [08:42:18]OFD Sender: No OFD packet to send [08:42:18]*** Cut start [08:42:18]*** Partial cut [08:42:18]*** CUTSNS_PIN = 1 [08:42:18]*** CUTSNS_PIN = 0 [08:42:19]*** Brake cut motor [08:42:19]Read from MH i2c: 01 [08:42:19]MH_I2C_Read... [08:42:19]*** Stop cut motor [08:42:19]*** Cut end [08:42:19]Read from MH i2c: 01 07 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [08:42:19]process_action close_receipt done [08:42:19]requested_data is exist [08:42:19]produce_requested_data [08:42:19]requested_item fm.sn is exist - process it [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 11 00 00 [08:42:19]Write to MH i2c: E2 08 00 AD 1B 80 11 00 00 00 00 00 00 42 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 17 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 17 00 AD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9A [08:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:42:19]wFMCommunicate OK [08:42:19]requested_item fd.num is exist - process it [08:42:19]SAM_PROTO_GetFieldsCounters [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 13 00 00 [08:42:19]Write to MH i2c: E2 08 00 AE 1B 80 13 00 00 00 00 00 00 45 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 62 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 62 00 AE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 22 25 01 00 0E 04 04 00 00 02 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 1C [08:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 22 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:19]wFMCommunicate OK [08:42:19]SAM_PROTO_GetFieldsCounters done [08:42:19]requested_item shift.num is exist - process it [08:42:19]requested_item shift.opened is exist - process it [08:42:19]req_shift_opened [08:42:19]FM_GetShiftState [08:42:19]SAM_PROTO_GetShiftState [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 13 01 00 [08:42:19]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 0E 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 62 [08:42:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:42:19]wFMCommunicate OK [08:42:19]SAM_PROTO_GetShiftState done [08:42:19]FM_GetShiftState done [08:42:19]req_shift_opened done [08:42:19]requested_item shift.open_date is exist - process it [08:42:19]req_shift_open_date [08:42:19]req_shift_open_date done [08:42:19]produce_requested_data done [08:42:19]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75042,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:42:19]process_action_free close_receipt [08:42:19]json_value_free [08:42:19]json_value_free done [08:42:19]process_json_proto returns [08:42:19]Send response to host [08:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75042,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:42:19]free response buf [08:42:19]execute_script done [08:42:19]execute_script returns [08:42:19]free content buf [08:42:19]Sock 9.Close socket [08:42:19]Sock 9.Thread stoped [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:22]accept exits with 8 [08:54:22]New connection [08:54:22]New thread 3066781028 created [08:54:22]Thread 3066924388 joined [08:54:22]Waiting for new connection... [08:54:22] Sock 8.Parse request [08:54:22]Sock 8.Check first char [08:54:22]Sock 8.First char is OK [08:54:22]request: POST /json_proto HTTP/1.0 [08:54:22]Method: POST [08:54:22]URL: /json_proto [08:54:22]Method is POST - this is cgi request [08:54:22]url: /json_proto [08:54:22]query_string will be loaded in cgi processing [08:54:22]execute_cgi json_proto POST (null) [08:54:22]execute_cgi path=json_proto method=POST [08:54:22]POST find Content-Length [08:54:22]Host: 172.17.39.131:8080 [08:54:22]Content-Length: 674 [08:54:22]Content-Type: application/json [08:54:22] [08:54:22]POST finish read [08:54:22]Found Content-Length = 674 [08:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.220, "sum" : 14.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 14.00, "payments": [ { "type": 0, "sum" : 14.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:22]execute_script... [08:54: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)191015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.220, "sum" : 14.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 14.00, "payments": [ { "type": 0, "sum" : 14.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:22]POST & json_proto [08:54:22]process_json_proto [08:54:22]json parsed OK: [08:54:22]protocol is kg_v1.0 [08:54:22]action value=close_receipt [08:54:22]process_action close_receipt [08:54:22]cmd_close_receipt [08:54:22]MH_GetDate [08:54:22]Write to MH i2c: F0 00 00 B0 1B BA [08:54:22]Write i2c OK [08:54:22]MH_I2C_Read... [08:54:22]Read from MH i2c: F0 [08:54:22]MH_I2C_Read... [08:54:22]Read from MH i2c: F0 09 00 [08:54:22]MH_I2C_Read... [08:54:22]Read from MH i2c: F0 09 00 B0 1B 00 42 AE 1C 67 86 57 24 65 9C [08:54:22]GetLastDocTimeStamp 1729932139 [08:54:22]current date 1729932866 [08:54:22]FM_GetShiftState [08:54:22]SAM_PROTO_GetShiftState [08:54:22]wFMCommunicate request_size=4 [08:54:22]MH_SAM_APDU [08:54:22]CAPDU: 80 13 01 00 [08:54:22]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [08:54:22]Write i2c OK [08:54:22]MH_I2C_Read... [08:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:22]Read from MH i2c: E2 [08:54:22]MH_I2C_Read... [08:54:22]Read from MH i2c: E2 0E 00 [08:54:22]MH_I2C_Read... [08:54:22]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 64 [08:54:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:54:22]wFMCommunicate OK [08:54:22]SAM_PROTO_GetShiftState done [08:54:22]FM_GetShiftState done [08:54:22]opened in 1729902166 [08:54:22]opened+sec_in_day 1729988566 [08:54:22]quantity*price = 1471 [08:54:22]sum+1 = 1473 [08:54:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 14.00 Внесено: 300.00 СДАЧА: 286.00 НСП 1% : 0.13 НДС 12% : 1.56 Наличными: 14.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 35 26.10.2024 08:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75043 ФПД: 165185400887846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085426&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75043&fm=165185400887846&tin=02508201610067®Number=0000000000091691&sum=1400 [08:54:23]StoreToDocumentArchive [08:54:23]shift 512 fd 75043 [08:54:23]save to /storage/0512/doc_00075043 [08:54:23]save last doc name /storage/0512/doc_00075043 to /storage/kkm_last_doc_name [08:54:23]save OK [08:54:23]Clear old archive folders... [08:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:23]tlvbuf is B6EA19D0 [08:54:23]SAM_PROTO_ClearQueue [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 09 00 00 [08:54:23]Write to MH i2c: E2 08 00 BE 1B 80 09 00 00 00 00 00 00 4B [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:23]Read from MH i2c: E2 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 03 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [08:54:23]RAPDU: 90 00 [08:54:23]wFMCommunicate OK [08:54:23]SAM_PROTO_ClearQueue done [08:54:23]KKMCreateOFDPacket [08:54:23]OFDProtocolAddRootSTLVToBuf [08:54:23]FM_MakeSignedData [08:54:23]FM_MakeSignedData [08:54:23]SAM_PROTO_SignData [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 0D 01 02 [08:54:23]Write to MH i2c: E2 08 00 BF 1B 80 0D 01 02 00 00 00 00 53 [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:24]OFD Sender: No OFD packet to send [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [08:54:24]RAPDU: 90 00 [08:54:24]wFMCommunicate OK [08:54:24]wFMCommunicate request_size=255 [08:54:24]MH_SAM_APDU [08:54: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 DC 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 42 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 25 01 00 35 04 06 00 96 [08:54:24]Write to MH i2c: E2 02 01 C0 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 DC 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 42 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 25 01 00 35 04 06 00 96 00 00 5A [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [08:54:24]RAPDU: 90 00 [08:54:24]wFMCommunicate OK [08:54:24]wFMCommunicate request_size=10 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 0D 02 02 05 3C 39 24 5A 26 [08:54:24]Write to MH i2c: E2 0D 00 C1 1B 80 0D 02 02 05 00 3C 39 24 5A 26 00 00 79 [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [08:54:24]RAPDU: 90 00 [08:54:24]wFMCommunicate OK [08:54:24]wFMCommunicate request_size=4 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 0D 03 02 [08:54:24]Write to MH i2c: E2 08 00 C2 1B 80 0D 03 02 00 00 00 00 58 [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 0B 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 0B 00 C2 1B 00 67 29 C3 22 BA 6E 32 46 90 00 6E [08:54:24]RAPDU: 67 29 C3 22 BA 6E 32 46 90 00 [08:54:24]wFMCommunicate OK [08:54:24]SAM_PROTO_SignData done [08:54:24]FM_MakeSignedData done [08:54:24]CreateOFDProtocolMessage [08:54:24]wFMCommunicate request_size=4 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 11 00 00 [08:54:24]Write to MH i2c: E2 08 00 C3 1B 80 11 00 00 00 00 00 00 58 [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 17 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 17 00 C3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B0 [08:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:54:24]wFMCommunicate OK [08:54:24]CreateOFDProtocolMessage done [08:54:24]OFDSenderStorePacket 75043 [08:54:24]StoreOFDPacket docnum=75043 [08:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A5 C0 07 01 08 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 42 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 25 01 00 35 04 06 00 96 3C 39 24 5A 26 67 29 C3 22 BA 6E 32 46 [08:54:24]CheckFolder [08:54:24]dirname=/storage/ofd_packets [08:54:24]CheckFolder done [08:54:24]ProducePacketName [08:54:24]name=ofd_packets/00075043 [08:54:24]NVStorageSaveData ofd_packets/00075043 [08:54:24]File name is /storage/ofd_packets/00075043 [08:54:24]Write 301 bytes [08:54:24]NVStorageSaveData done [08:54:24]OFDSenderStorePacket done [08:54:24]KKMCreateOFDPacket done [08:54:24]NVStorageSaveData kkm_last_timestamp [08:54:24]File name is /storage/kkm_last_timestamp [08:54:24]Write 4 bytes [08:54:24]NVStorageSaveData done [08:54:24]ExternCall_PrintAddStr [08:54:24]wPrintStart [08:54:24]Write to MH i2c: 01 00 00 C4 1B DF [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: 01 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: 01 07 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 FF 0F F4 [08:54:24]RasterBufferAndPrint [08:54:24]line Счет N : (1)191015 [08:54:24]line ИНН: 02508201610067 [08:54:24]line Контрольно-Кассовый Чек [08:54:24]line ПРОДАЖА [08:54:24]line ТРК (МРК, ГНК) : 21 [08:54:24]line Товар: 2710124130 [08:54:24]line Аи-92-К-5 [08:54:24]line 0.220 * 66.90 [08:54:24]line = 14.72 [08:54:24]line НДС 12% НСП 1% [08:54:24]line > о реализуемом товаре [08:54:24]line ОКРУГЛЕНИЕ: -0.72 [08:54:24]line ИТОГО: 14.00 [08:54:24]line Внесено: 300.00 [08:54:24]line СДАЧА: 286.00 [08:54:24]line НСП 1% : 0.13 [08:54:24]line НДС 12% : 1.56 [08:54:24]line Наличными: 14.00 [08:54:24]line Безнал.: 0.00 [08:54:24]line Место: АЗС № 142 "Партнер Нефть" [08:54:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:54:24]line СНО: Общий режим [08:54:24]line Чек 35 26.10.2024 08:54 [08:54:24]line Смена: 512 ФФД: 1.0 [08:54:24]line ЗНМ: 0300000089 [08:54:24]line РНМ: 0000000000091691 [08:54:24]line Версия ККМ: 001 [08:54:24]line ФМ: 0000000000871795 [08:54:24]line ФД: 75043 [08:54:24]line ФПД: 165185400887846 [08:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085426&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75043&fm=165185400887846&tin=02508201610067®Number=0000000000091691&sum=1400 [08:54:24]OFD Sender: Processing packet 75043 [packets to send 13, broken 12] [08:54:24]ProducePacketName [08:54:24]name=ofd_packets/00075043 [08:54:24]OFD Sender: To server: pG, [08:54:24]CommunicateWithHost lk.salyk.kg:30040 [08:54:24]ConnectInit lk.salyk.kg [08:54:24]written 0, free lines is 4095 [08:54:25]Connected sock=10 [08:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A5 C0 07 01 08 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C0 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 42 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 25 01 00 35 04 06 00 96 3C 39 24 5A 26 67 29 C3 22 BA 6E 32 46 [08:54:25]Write to MH i2c: 01 00 00 EF 1B 0A [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 EF 1B 00 00 00 00 00 A1 0C BE [08:54:25]RasterBufferAndPrint [08:54:25]line [08:54:25]line [08:54:25]line [08:54:25]line [08:54:25]line [08:54:25]written 0, free lines is 3240 [08:54:25]MH_Cut [08:54:25]Write to MH i2c: D1 01 00 F6 1B 01 E3 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: D1 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: D1 01 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: D1 01 00 F6 1B 00 E2 [08:54:25]Write to MH i2c: 01 00 00 F7 1B 12 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B2 95 47 00 83 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 23 25 01 00 F4 03 04 00 BF 55 1C 67 B6 04 01 00 00 39 2A 3D 88 FD 9D A4 98 [08:54:25]CommunicateWithHost err = 0 [08:54:25]CheckOFDResponse [08:54:25]1017 (14) - 77093643461234 [08:54:25]1041 (16) - 0000000000871795 [08:54:25]1040 (4) - 75043 [08:54:25]1012 (4) - 26.10.2024 02:36 [08:54:25]1206 (1) - 0 [08:54:25]OFD Sender: Remove packet 75043 [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00075043 [08:54:25]NVStorageDeleteData [08:54:25]OFD Sender: No OFD packet to send [08:54:26]*** Cut start [08:54:26]*** Partial cut [08:54:26]*** CUTSNS_PIN = 1 [08:54:26]*** CUTSNS_PIN = 0 [08:54:26]*** Brake cut motor [08:54:26]Read from MH i2c: 01 [08:54:26]MH_I2C_Read... [08:54:26]*** Stop cut motor [08:54:26]*** Cut end [08:54:26]Read from MH i2c: 01 07 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 FF 0F 27 [08:54:26]process_action close_receipt done [08:54:26]requested_data is exist [08:54:26]produce_requested_data [08:54:26]requested_item fm.sn is exist - process it [08:54:26]wFMCommunicate request_size=4 [08:54:26]MH_SAM_APDU [08:54:26]CAPDU: 80 11 00 00 [08:54:26]Write to MH i2c: E2 08 00 F8 1B 80 11 00 00 00 00 00 00 8D [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:26]Read from MH i2c: E2 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: E2 17 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: E2 17 00 F8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [08:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:54:26]wFMCommunicate OK [08:54:26]requested_item fd.num is exist - process it [08:54:26]SAM_PROTO_GetFieldsCounters [08:54:26]wFMCommunicate request_size=4 [08:54:26]MH_SAM_APDU [08:54:26]CAPDU: 80 13 00 00 [08:54:26]Write to MH i2c: E2 08 00 F9 1B 80 13 00 00 00 00 00 00 90 [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 F9 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 23 25 01 00 0E 04 04 00 00 02 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 6B [08:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 23 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetFieldsCounters done [08:54:27]requested_item shift.num is exist - process it [08:54:27]requested_item shift.opened is exist - process it [08:54:27]req_shift_opened [08:54:27]FM_GetShiftState [08:54:27]SAM_PROTO_GetShiftState [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 13 01 00 [08:54:27]Write to MH i2c: E2 08 00 FA 1B 80 13 01 00 00 00 00 00 92 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 FA 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AD [08:54:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetShiftState done [08:54:27]FM_GetShiftState done [08:54:27]req_shift_opened done [08:54:27]requested_item shift.open_date is exist - process it [08:54:27]req_shift_open_date [08:54:27]req_shift_open_date done [08:54:27]produce_requested_data done [08:54:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75043,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:54:27]process_action_free close_receipt [08:54:27]json_value_free [08:54:27]json_value_free done [08:54:27]process_json_proto returns [08:54:27]Send response to host [08:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75043,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:54:27]free response buf [08:54:27]execute_script done [08:54:27]execute_script returns [08:54:27]free content buf [08:54:27]Sock 8.Close socket [08:54:27]Sock 8.Thread stoped [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:11]accept exits with 9 [08:55:11]New connection [08:55:11]New thread 3066924388 created [08:55:11]Thread 3066781028 joined [08:55:11]Waiting for new connection... [08:55:11] Sock 9.Parse request [08:55:11]Sock 9.Check first char [08:55:11]Sock 9.First char is OK [08:55:11]request: POST /json_proto HTTP/1.0 [08:55:11]Method: POST [08:55:11]URL: /json_proto [08:55:11]Method is POST - this is cgi request [08:55:11]url: /json_proto [08:55:11]query_string will be loaded in cgi processing [08:55:11]execute_cgi json_proto POST (null) [08:55:11]execute_cgi path=json_proto method=POST [08:55:11]POST find Content-Length [08:55:11]Host: 172.17.39.131:8080 [08:55:11]Content-Length: 677 [08:55:11]Content-Type: application/json [08:55:11] [08:55:11]POST finish read [08:55:11]Found Content-Length = 677 [08:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:11]execute_script... [08:55: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)191016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:11]POST & json_proto [08:55:11]process_json_proto [08:55:11]json parsed OK: [08:55:11]protocol is kg_v1.0 [08:55:11]action value=close_receipt [08:55:11]process_action close_receipt [08:55:11]cmd_close_receipt [08:55:11]MH_GetDate [08:55:11]Write to MH i2c: F0 00 00 FB 1B 05 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: F0 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: F0 09 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: F0 09 00 FB 1B 00 73 AE 1C 67 86 57 24 65 18 [08:55:11]GetLastDocTimeStamp 1729932866 [08:55:11]current date 1729932915 [08:55:11]FM_GetShiftState [08:55:11]SAM_PROTO_GetShiftState [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 13 01 00 [08:55:11]Write to MH i2c: E2 08 00 FC 1B 80 13 01 00 00 00 00 00 94 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0E 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0E 00 FC 1B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AF [08:55:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_GetShiftState done [08:55:11]FM_GetShiftState done [08:55:11]opened in 1729902166 [08:55:11]opened+sec_in_day 1729988566 [08:55:11]quantity*price = 49037 [08:55:11]sum+1 = 49039 [08:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 36 26.10.2024 08:55 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75044 ФПД: 161670615711231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085515&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75044&fm=161670615711231&tin=02508201610067®Number=0000000000091691&sum=49000 [08:55:12]StoreToDocumentArchive [08:55:12]shift 512 fd 75044 [08:55:12]save to /storage/0512/doc_00075044 [08:55:12]save last doc name /storage/0512/doc_00075044 to /storage/kkm_last_doc_name [08:55:12]save OK [08:55:12]Clear old archive folders... [08:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:12]tlvbuf is B6EBAAA0 [08:55:12]SAM_PROTO_ClearQueue [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 09 00 00 [08:55:12]Write to MH i2c: E2 08 00 09 1C 80 09 00 00 00 00 00 00 97 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [08:55:12]RAPDU: 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_ClearQueue done [08:55:12]KKMCreateOFDPacket [08:55:12]OFDProtocolAddRootSTLVToBuf [08:55:12]FM_MakeSignedData [08:55:12]FM_MakeSignedData [08:55:12]SAM_PROTO_SignData [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 0D 01 02 [08:55:12]Write to MH i2c: E2 08 00 0A 1C 80 0D 01 02 00 00 00 00 9F [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [08:55:12]RAPDU: 90 00 [08:55:12]wFMCommunicate OK [08:55:12]wFMCommunicate request_size=255 [08:55:12]MH_SAM_APDU [08:55: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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 73 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 25 01 00 35 04 06 00 93 [08:55:12]Write to MH i2c: E2 02 01 0B 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 73 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 25 01 00 35 04 06 00 93 00 00 0A [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [08:55:12]RAPDU: 90 00 [08:55:12]wFMCommunicate OK [08:55:12]wFMCommunicate request_size=10 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 0D 02 02 05 09 DF 9E BD FF [08:55:12]Write to MH i2c: E2 0D 00 0C 1C 80 0D 02 02 05 00 09 DF 9E BD FF 00 00 EE [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [08:55:12]RAPDU: 90 00 [08:55:12]wFMCommunicate OK [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 0D 03 02 [08:55:12]Write to MH i2c: E2 08 00 0D 1C 80 0D 03 02 00 00 00 00 A4 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0B 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0B 00 0D 1C 00 F3 FC 23 57 46 E1 8D A9 90 00 6B [08:55:12]RAPDU: F3 FC 23 57 46 E1 8D A9 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_SignData done [08:55:12]FM_MakeSignedData done [08:55:12]CreateOFDProtocolMessage [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 11 00 00 [08:55:12]Write to MH i2c: E2 08 00 0E 1C 80 11 00 00 00 00 00 00 A4 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 0E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FC [08:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:55:12]wFMCommunicate OK [08:55:12]CreateOFDProtocolMessage done [08:55:12]OFDSenderStorePacket 75044 [08:55:12]StoreOFDPacket docnum=75044 [08:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 18 55 07 01 2F C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 73 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 25 01 00 35 04 06 00 93 09 DF 9E BD FF F3 FC 23 57 46 E1 8D A9 [08:55:12]CheckFolder [08:55:12]dirname=/storage/ofd_packets [08:55:12]CheckFolder done [08:55:12]ProducePacketName [08:55:12]name=ofd_packets/00075044 [08:55:12]NVStorageSaveData ofd_packets/00075044 [08:55:12]File name is /storage/ofd_packets/00075044 [08:55:12]Write 301 bytes [08:55:12]NVStorageSaveData done [08:55:12]OFDSenderStorePacket done [08:55:12]KKMCreateOFDPacket done [08:55:12]NVStorageSaveData kkm_last_timestamp [08:55:12]File name is /storage/kkm_last_timestamp [08:55:12]Write 4 bytes [08:55:12]NVStorageSaveData done [08:55:12]ExternCall_PrintAddStr [08:55:12]wPrintStart [08:55:12]Write to MH i2c: 01 00 00 0F 1C 2B [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 0F 1C 00 00 00 00 00 FF 0F 40 [08:55:12]RasterBufferAndPrint [08:55:12]line Счет N : (1)191016 [08:55:12]line ИНН: 02508201610067 [08:55:12]line Контрольно-Кассовый Чек [08:55:12]line ПРОДАЖА [08:55:12]line ТРК (МРК, ГНК) : 21 [08:55:12]line Товар: 2710124130 [08:55:12]line Аи-92-К-5 [08:55:12]line 7.330 * 66.90 [08:55:12]line = 490.38 [08:55:12]line НДС 12% НСП 1% [08:55:12]line > о реализуемом товаре [08:55:12]line ОКРУГЛЕНИЕ: -0.38 [08:55:12]line ИТОГО: 490.00 [08:55:12]line Внесено: 490.00 [08:55:12]line СДАЧА: 0.00 [08:55:12]line НСП 1% : 4.34 [08:55:12]line НДС 12% : 52.08 [08:55:12]line Наличными: 490.00 [08:55:12]line Безнал.: 0.00 [08:55:12]line Место: АЗС № 142 "Партнер Нефть" [08:55:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:55:12]line СНО: Общий режим [08:55:12]line Чек 36 26.10.2024 08:55 [08:55:12]line Смена: 512 ФФД: 1.0 [08:55:12]line ЗНМ: 0300000089 [08:55:12]line РНМ: 0000000000091691 [08:55:12]line Версия ККМ: 001 [08:55:12]line ФМ: 0000000000871795 [08:55:12]line ФД: 75044 [08:55:12]line ФПД: 161670615711231 [08:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085515&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75044&fm=161670615711231&tin=02508201610067®Number=0000000000091691&sum=49000 [08:55:13]written 0, free lines is 4095 [08:55:13]OFD Sender: Processing packet 75044 [packets to send 13, broken 12] [08:55:13]ProducePacketName [08:55:13]name=ofd_packets/00075044 [08:55:13]OFD Sender: To server: pG, [08:55:13]CommunicateWithHost lk.salyk.kg:30040 [08:55:13]ConnectInit lk.salyk.kg [08:55:13]Connected sock=10 [08:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 18 55 07 01 2F C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 73 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 24 25 01 00 35 04 06 00 93 09 DF 9E BD FF F3 FC 23 57 46 E1 8D A9 [08:55:13]Write to MH i2c: 01 00 00 3A 1C 56 [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: 01 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: 01 07 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 9D 0C 06 [08:55:13]RasterBufferAndPrint [08:55:13]line [08:55:13]line [08:55:13]line [08:55:13]line [08:55:13]line [08:55:13]written 0, free lines is 3238 [08:55:13]MH_Cut [08:55:13]Write to MH i2c: D1 01 00 41 1C 01 2F [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: D1 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: D1 01 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: D1 01 00 41 1C 00 2E [08:55:13]Write to MH i2c: 01 00 00 42 1C 5E [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 36 7D 47 00 89 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 38 37 31 37 39 35 10 04 04 00 24 25 01 00 F4 03 04 00 EF 55 1C 67 B6 04 01 00 00 BE FA A8 74 FD 5A C6 FC [08:55:13]CommunicateWithHost err = 0 [08:55:13]CheckOFDResponse [08:55:13]1017 (14) - 77093643461234 [08:55:13]1041 (16) - 0000000000871795 [08:55:13]1040 (4) - 75044 [08:55:13]1012 (4) - 26.10.2024 02:37 [08:55:13]1206 (1) - 0 [08:55:13]OFD Sender: Remove packet 75044 [08:55:13]ProducePacketName [08:55:13]name=ofd_packets/00075044 [08:55:13]NVStorageDeleteData [08:55:14]OFD Sender: No OFD packet to send [08:55:14]*** Cut start [08:55:14]*** Partial cut [08:55:14]*** CUTSNS_PIN = 1 [08:55:14]*** CUTSNS_PIN = 0 [08:55:14]*** Brake cut motor [08:55:15]Read from MH i2c: 01 [08:55:15]MH_I2C_Read... [08:55:15]*** Stop cut motor [08:55:15]*** Cut end [08:55:15]Read from MH i2c: 01 07 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [08:55:15]process_action close_receipt done [08:55:15]requested_data is exist [08:55:15]produce_requested_data [08:55:15]requested_item fm.sn is exist - process it [08:55:15]wFMCommunicate request_size=4 [08:55:15]MH_SAM_APDU [08:55:15]CAPDU: 80 11 00 00 [08:55:15]Write to MH i2c: E2 08 00 43 1C 80 11 00 00 00 00 00 00 D9 [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:15]Read from MH i2c: E2 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 17 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 17 00 43 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [08:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:55:15]wFMCommunicate OK [08:55:15]requested_item fd.num is exist - process it [08:55:15]SAM_PROTO_GetFieldsCounters [08:55:15]wFMCommunicate request_size=4 [08:55:15]MH_SAM_APDU [08:55:15]CAPDU: 80 13 00 00 [08:55:15]Write to MH i2c: E2 08 00 44 1C 80 13 00 00 00 00 00 00 DC [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:15]Read from MH i2c: E2 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 62 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 62 00 44 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 24 25 01 00 0E 04 04 00 00 02 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 BB [08:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 24 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:15]wFMCommunicate OK [08:55:15]SAM_PROTO_GetFieldsCounters done [08:55:15]requested_item shift.num is exist - process it [08:55:15]requested_item shift.opened is exist - process it [08:55:15]req_shift_opened [08:55:15]FM_GetShiftState [08:55:15]SAM_PROTO_GetShiftState [08:55:15]wFMCommunicate request_size=4 [08:55:15]MH_SAM_APDU [08:55:15]CAPDU: 80 13 01 00 [08:55:15]Write to MH i2c: E2 08 00 45 1C 80 13 01 00 00 00 00 00 DE [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:15]Read from MH i2c: E2 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 0E 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 0E 00 45 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F9 [08:55:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:55:15]wFMCommunicate OK [08:55:15]SAM_PROTO_GetShiftState done [08:55:15]FM_GetShiftState done [08:55:15]req_shift_opened done [08:55:15]requested_item shift.open_date is exist - process it [08:55:15]req_shift_open_date [08:55:15]req_shift_open_date done [08:55:15]produce_requested_data done [08:55:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75044,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:55:15]process_action_free close_receipt [08:55:15]json_value_free [08:55:15]json_value_free done [08:55:15]process_json_proto returns [08:55:15]Send response to host [08:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75044,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:55:15]free response buf [08:55:15]execute_script done [08:55:15]execute_script returns [08:55:15]free content buf [08:55:15]Sock 9.Close socket [08:55:15]Sock 9.Thread stoped [08:55:19]OFD Sender: No OFD packet to send [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:45]accept exits with 8 [08:55:45]New connection [08:55:45]New thread 3066781028 created [08:55:45]Thread 3066924388 joined [08:55:45]Waiting for new connection... [08:55:45] Sock 8.Parse request [08:55:45]Sock 8.Check first char [08:55:45]Sock 8.First char is OK [08:55:45]request: POST /json_proto HTTP/1.0 [08:55:45]Method: POST [08:55:45]URL: /json_proto [08:55:45]Method is POST - this is cgi request [08:55:45]url: /json_proto [08:55:45]query_string will be loaded in cgi processing [08:55:45]execute_cgi json_proto POST (null) [08:55:45]execute_cgi path=json_proto method=POST [08:55:45]POST find Content-Length [08:55:45]Host: 172.17.39.131:8080 [08:55:45]Content-Length: 677 [08:55:45]Content-Type: application/json [08:55:45] [08:55:45]POST finish read [08:55:45]Found Content-Length = 677 [08:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:55:45]execute_script... [08:55: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)191017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:55:45]POST & json_proto [08:55:45]process_json_proto [08:55:45]json parsed OK: [08:55:45]protocol is kg_v1.0 [08:55:45]action value=close_receipt [08:55:45]process_action close_receipt [08:55:45]cmd_close_receipt [08:55:45]MH_GetDate [08:55:45]Write to MH i2c: F0 00 00 46 1C 51 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 09 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: F0 09 00 46 1C 00 95 AE 1C 67 86 57 24 65 86 [08:55:45]GetLastDocTimeStamp 1729932915 [08:55:45]current date 1729932949 [08:55:45]FM_GetShiftState [08:55:45]SAM_PROTO_GetShiftState [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 13 01 00 [08:55:45]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0E 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FB [08:55:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:55:45]wFMCommunicate OK [08:55:45]SAM_PROTO_GetShiftState done [08:55:45]FM_GetShiftState done [08:55:45]opened in 1729902166 [08:55:45]opened+sec_in_day 1729988566 [08:55:45]quantity*price = 30038 [08:55:45]sum+1 = 30039 [08:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 37 26.10.2024 08:55 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75045 ФПД: 251908379416022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085549&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75045&fm=251908379416022&tin=02508201610067®Number=0000000000091691&sum=30000 [08:55:47]StoreToDocumentArchive [08:55:47]shift 512 fd 75045 [08:55:47]save to /storage/0512/doc_00075045 [08:55:47]save last doc name /storage/0512/doc_00075045 to /storage/kkm_last_doc_name [08:55:47]save OK [08:55:47]Clear old archive folders... [08:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:47]tlvbuf is B6EA1B80 [08:55:47]SAM_PROTO_ClearQueue [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 09 00 00 [08:55:47]Write to MH i2c: E2 08 00 54 1C 80 09 00 00 00 00 00 00 E2 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]SAM_PROTO_ClearQueue done [08:55:47]KKMCreateOFDPacket [08:55:47]OFDProtocolAddRootSTLVToBuf [08:55:47]FM_MakeSignedData [08:55:47]FM_MakeSignedData [08:55:47]SAM_PROTO_SignData [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 01 02 [08:55:47]Write to MH i2c: E2 08 00 55 1C 80 0D 01 02 00 00 00 00 EA [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=255 [08:55:47]MH_SAM_APDU [08:55: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 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 25 00 00 00 F4 03 04 00 95 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 25 01 00 35 04 06 00 E5 [08:55:47]Write to MH i2c: E2 02 01 56 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 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 25 00 00 00 F4 03 04 00 95 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 25 01 00 35 04 06 00 E5 00 00 90 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=10 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 02 02 05 1B FD 78 95 D6 [08:55:47]Write to MH i2c: E2 0D 00 57 1C 80 0D 02 02 05 00 1B FD 78 95 D6 00 00 F2 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [08:55:47]RAPDU: 90 00 [08:55:47]wFMCommunicate OK [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 0D 03 02 [08:55:47]Write to MH i2c: E2 08 00 58 1C 80 0D 03 02 00 00 00 00 EF [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0B 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 0B 00 58 1C 00 49 D1 D0 2E 02 FB FB 1A 90 00 1A [08:55:47]RAPDU: 49 D1 D0 2E 02 FB FB 1A 90 00 [08:55:47]wFMCommunicate OK [08:55:47]SAM_PROTO_SignData done [08:55:47]FM_MakeSignedData done [08:55:47]CreateOFDProtocolMessage [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 11 00 00 [08:55:47]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:47]Read from MH i2c: E2 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 17 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 47 [08:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:55:47]wFMCommunicate OK [08:55:47]CreateOFDProtocolMessage done [08:55:47]OFDSenderStorePacket 75045 [08:55:47]StoreOFDPacket docnum=75045 [08:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 22 63 07 01 A1 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 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 25 00 00 00 F4 03 04 00 95 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 25 01 00 35 04 06 00 E5 1B FD 78 95 D6 49 D1 D0 2E 02 FB FB 1A [08:55:47]CheckFolder [08:55:47]dirname=/storage/ofd_packets [08:55:47]CheckFolder done [08:55:47]ProducePacketName [08:55:47]name=ofd_packets/00075045 [08:55:47]NVStorageSaveData ofd_packets/00075045 [08:55:47]File name is /storage/ofd_packets/00075045 [08:55:47]Write 301 bytes [08:55:47]NVStorageSaveData done [08:55:47]OFDSenderStorePacket done [08:55:47]KKMCreateOFDPacket done [08:55:47]NVStorageSaveData kkm_last_timestamp [08:55:47]File name is /storage/kkm_last_timestamp [08:55:47]Write 4 bytes [08:55:47]NVStorageSaveData done [08:55:47]ExternCall_PrintAddStr [08:55:47]wPrintStart [08:55:47]Write to MH i2c: 01 00 00 5A 1C 76 [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 07 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 07 00 5A 1C 00 00 00 00 00 FF 0F 8B [08:55:47]RasterBufferAndPrint [08:55:47]line Счет N : (1)191017 [08:55:47]line ИНН: 02508201610067 [08:55:47]line Контрольно-Кассовый Чек [08:55:47]line ПРОДАЖА [08:55:47]line ТРК (МРК, ГНК) : 21 [08:55:47]line Товар: 2710124130 [08:55:47]line Аи-92-К-5 [08:55:47]line 4.490 * 66.90 [08:55:47]line = 300.38 [08:55:47]line НДС 12% НСП 1% [08:55:47]line > о реализуемом товаре [08:55:47]line ОКРУГЛЕНИЕ: -0.38 [08:55:47]line ИТОГО: 300.00 [08:55:47]line Внесено: 300.00 [08:55:47]line СДАЧА: 0.00 [08:55:47]line НСП 1% : 2.66 [08:55:47]line НДС 12% : 31.90 [08:55:47]line Наличными: 300.00 [08:55:47]line Безнал.: 0.00 [08:55:47]line Место: АЗС № 142 "Партнер Нефть" [08:55:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:55:47]line СНО: Общий режим [08:55:47]line Чек 37 26.10.2024 08:55 [08:55:47]line Смена: 512 ФФД: 1.0 [08:55:47]line ЗНМ: 0300000089 [08:55:47]line РНМ: 0000000000091691 [08:55:47]line Версия ККМ: 001 [08:55:47]line ФМ: 0000000000871795 [08:55:47]line ФД: 75045 [08:55:47]line ФПД: 251908379416022 [08:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085549&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75045&fm=251908379416022&tin=02508201610067®Number=0000000000091691&sum=30000 [08:55:47]OFD Sender: Processing packet 75045 [packets to send 13, broken 12] [08:55:47]ProducePacketName [08:55:47]name=ofd_packets/00075045 [08:55:47]OFD Sender: To server: pG, [08:55:47]CommunicateWithHost lk.salyk.kg:30040 [08:55:47]ConnectInit lk.salyk.kg [08:55:47]written 0, free lines is 4095 [08:55:48]Connected sock=10 [08:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 22 63 07 01 A1 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 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 25 00 00 00 F4 03 04 00 95 AE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 25 25 01 00 35 04 06 00 E5 1B FD 78 95 D6 49 D1 D0 2E 02 FB FB 1A [08:55:48]Write to MH i2c: 01 00 00 85 1C A1 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 07 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 C6 0C 7A [08:55:48]RasterBufferAndPrint [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]line [08:55:48]written 0, free lines is 3276 [08:55:48]MH_Cut [08:55:48]Write to MH i2c: D1 01 00 8C 1C 01 7A [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 01 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: D1 01 00 8C 1C 00 79 [08:55:48]Write to MH i2c: 01 00 00 8D 1C A9 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0E D3 47 00 5B 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 38 37 31 37 39 35 10 04 04 00 25 25 01 00 F4 03 04 00 12 56 1C 67 B6 04 01 00 00 37 85 FA F0 EE 2A 31 A0 [08:55:48]CommunicateWithHost err = 0 [08:55:48]CheckOFDResponse [08:55:48]1017 (14) - 77093643461234 [08:55:48]1041 (16) - 0000000000871795 [08:55:48]1040 (4) - 75045 [08:55:48]1012 (4) - 26.10.2024 02:38 [08:55:48]1206 (1) - 0 [08:55:48]OFD Sender: Remove packet 75045 [08:55:48]ProducePacketName [08:55:48]name=ofd_packets/00075045 [08:55:48]NVStorageDeleteData [08:55:49]OFD Sender: No OFD packet to send [08:55:49]*** Cut start [08:55:49]*** Partial cut [08:55:49]*** CUTSNS_PIN = 1 [08:55:49]*** CUTSNS_PIN = 0 [08:55:49]*** Brake cut motor [08:55:49]Read from MH i2c: 01 [08:55:49]*** Stop cut motor [08:55:49]*** Cut end [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [08:55:49]process_action close_receipt done [08:55:49]requested_data is exist [08:55:49]produce_requested_data [08:55:49]requested_item fm.sn is exist - process it [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 11 00 00 [08:55:49]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [08:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:55:49]wFMCommunicate OK [08:55:49]requested_item fd.num is exist - process it [08:55:49]SAM_PROTO_GetFieldsCounters [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 13 00 00 [08:55:49]Write to MH i2c: E2 08 00 8F 1C 80 13 00 00 00 00 00 00 27 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 62 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 62 00 8F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 25 25 01 00 0E 04 04 00 00 02 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 0A [08:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 25 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:50]wFMCommunicate OK [08:55:50]SAM_PROTO_GetFieldsCounters done [08:55:50]requested_item shift.num is exist - process it [08:55:50]requested_item shift.opened is exist - process it [08:55:50]req_shift_opened [08:55:50]FM_GetShiftState [08:55:50]SAM_PROTO_GetShiftState [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 13 01 00 [08:55:50]Write to MH i2c: E2 08 00 90 1C 80 13 01 00 00 00 00 00 29 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0E 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0E 00 90 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 44 [08:55:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:55:50]wFMCommunicate OK [08:55:50]SAM_PROTO_GetShiftState done [08:55:50]FM_GetShiftState done [08:55:50]req_shift_opened done [08:55:50]requested_item shift.open_date is exist - process it [08:55:50]req_shift_open_date [08:55:50]req_shift_open_date done [08:55:50]produce_requested_data done [08:55:50]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75045,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:55:50]process_action_free close_receipt [08:55:50]json_value_free [08:55:50]json_value_free done [08:55:50]process_json_proto returns [08:55:50]Send response to host [08:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75045,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:55:50]free response buf [08:55:50]execute_script done [08:55:50]execute_script returns [08:55:50]free content buf [08:55:50]Sock 8.Close socket [08:55:50]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:56]accept exits with 9 [08:57:56]New connection [08:57:56]New thread 3066924388 created [08:57:56]Thread 3066781028 joined [08:57:56]Waiting for new connection... [08:57:56] Sock 9.Parse request [08:57:56]Sock 9.Check first char [08:57:56]Sock 9.First char is OK [08:57:56]request: POST /json_proto HTTP/1.0 [08:57:56]Method: POST [08:57:56]URL: /json_proto [08:57:56]Method is POST - this is cgi request [08:57:56]url: /json_proto [08:57:56]query_string will be loaded in cgi processing [08:57:56]execute_cgi json_proto POST (null) [08:57:56]execute_cgi path=json_proto method=POST [08:57:56]POST find Content-Length [08:57:56]Host: 172.17.39.131:8080 [08:57:56]Content-Length: 677 [08:57:56]Content-Type: application/json [08:57:56] [08:57:56]POST finish read [08:57:56]Found Content-Length = 677 [08:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:57:56]execute_script... [08:57: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)191019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [08:57:56]POST & json_proto [08:57:56]process_json_proto [08:57:56]json parsed OK: [08:57:56]protocol is kg_v1.0 [08:57:56]action value=close_receipt [08:57:56]process_action close_receipt [08:57:56]cmd_close_receipt [08:57:56]MH_GetDate [08:57:56]Write to MH i2c: F0 00 00 91 1C 9C [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 09 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: F0 09 00 91 1C 00 18 AF 1C 67 86 57 24 65 55 [08:57:56]GetLastDocTimeStamp 1729932949 [08:57:56]current date 1729933080 [08:57:56]FM_GetShiftState [08:57:56]SAM_PROTO_GetShiftState [08:57:56]wFMCommunicate request_size=4 [08:57:56]MH_SAM_APDU [08:57:56]CAPDU: 80 13 01 00 [08:57:56]Write to MH i2c: E2 08 00 92 1C 80 13 01 00 00 00 00 00 2B [08:57:56]Write i2c OK [08:57:56]MH_I2C_Read... [08:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:56]Read from MH i2c: E2 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 [08:57:56]MH_I2C_Read... [08:57:56]Read from MH i2c: E2 0E 00 92 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 46 [08:57:56]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:57:56]wFMCommunicate OK [08:57:56]SAM_PROTO_GetShiftState done [08:57:56]FM_GetShiftState done [08:57:56]opened in 1729902166 [08:57:56]opened+sec_in_day 1729988566 [08:57:56]quantity*price = 30038 [08:57:56]sum+1 = 30039 [08:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 38 26.10.2024 08:58 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75046 ФПД: 195488312630244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085800&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75046&fm=195488312630244&tin=02508201610067®Number=0000000000091691&sum=30000 [08:57:57]StoreToDocumentArchive [08:57:57]shift 512 fd 75046 [08:57:57]save to /storage/0512/doc_00075046 [08:57:57]save last doc name /storage/0512/doc_00075046 to /storage/kkm_last_doc_name [08:57:57]save OK [08:57:57]Clear old archive folders... [08:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:57]tlvbuf is 008000C0 [08:57:57]SAM_PROTO_ClearQueue [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 09 00 00 [08:57:57]Write to MH i2c: E2 08 00 9F 1C 80 09 00 00 00 00 00 00 2D [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_ClearQueue done [08:57:57]KKMCreateOFDPacket [08:57:57]OFDProtocolAddRootSTLVToBuf [08:57:57]FM_MakeSignedData [08:57:57]FM_MakeSignedData [08:57:57]SAM_PROTO_SignData [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 01 02 [08:57:57]Write to MH i2c: E2 08 00 A0 1C 80 0D 01 02 00 00 00 00 35 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=255 [08:57:57]MH_SAM_APDU [08:57: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 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 26 00 00 00 F4 03 04 00 18 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 25 01 00 35 04 06 00 B1 [08:57:57]Write to MH i2c: E2 02 01 A1 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 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 26 00 00 00 F4 03 04 00 18 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 25 01 00 35 04 06 00 B1 00 00 2D [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=10 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 02 02 05 CB AB 6E 9B E4 [08:57:57]Write to MH i2c: E2 0D 00 A2 1C 80 0D 02 02 05 00 CB AB 6E 9B E4 00 00 A5 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [08:57:57]RAPDU: 90 00 [08:57:57]wFMCommunicate OK [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 0D 03 02 [08:57:57]Write to MH i2c: E2 08 00 A3 1C 80 0D 03 02 00 00 00 00 3A [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0B 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0B 00 A3 1C 00 5B 29 11 4F 8E BA 96 67 90 00 64 [08:57:57]RAPDU: 5B 29 11 4F 8E BA 96 67 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_SignData done [08:57:57]FM_MakeSignedData done [08:57:57]CreateOFDProtocolMessage [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 11 00 00 [08:57:57]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 92 [08:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:57:57]wFMCommunicate OK [08:57:57]CreateOFDProtocolMessage done [08:57:57]OFDSenderStorePacket 75046 [08:57:57]StoreOFDPacket docnum=75046 [08:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 52 D3 07 01 19 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 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 26 00 00 00 F4 03 04 00 18 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 25 01 00 35 04 06 00 B1 CB AB 6E 9B E4 5B 29 11 4F 8E BA 96 67 [08:57:57]CheckFolder [08:57:57]dirname=/storage/ofd_packets [08:57:57]CheckFolder done [08:57:57]ProducePacketName [08:57:57]name=ofd_packets/00075046 [08:57:57]NVStorageSaveData ofd_packets/00075046 [08:57:57]File name is /storage/ofd_packets/00075046 [08:57:57]Write 301 bytes [08:57:57]NVStorageSaveData done [08:57:57]OFDSenderStorePacket done [08:57:57]KKMCreateOFDPacket done [08:57:57]NVStorageSaveData kkm_last_timestamp [08:57:57]File name is /storage/kkm_last_timestamp [08:57:57]Write 4 bytes [08:57:57]NVStorageSaveData done [08:57:58]ExternCall_PrintAddStr [08:57:58]wPrintStart [08:57:58]Write to MH i2c: 01 00 00 A5 1C C1 [08:57:58]OFD Sender: Processing packet 75046 [packets to send 13, broken 12] [08:57:58]ProducePacketName [08:57:58]name=ofd_packets/00075046 [08:57:58]OFD Sender: To server: pG, [08:57:58]CommunicateWithHost lk.salyk.kg:30040 [08:57:58]ConnectInit lk.salyk.kg [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 FF 0F D6 [08:57:58]RasterBufferAndPrint [08:57:58]line Счет N : (1)191019 [08:57:58]line ИНН: 02508201610067 [08:57:58]line Контрольно-Кассовый Чек [08:57:58]line ПРОДАЖА [08:57:58]line ТРК (МРК, ГНК) : 21 [08:57:58]line Товар: 2710124130 [08:57:58]line Аи-92-К-5 [08:57:58]line 4.490 * 66.90 [08:57:58]line = 300.38 [08:57:58]line НДС 12% НСП 1% [08:57:58]line > о реализуемом товаре [08:57:58]line ОКРУГЛЕНИЕ: -0.38 [08:57:58]line ИТОГО: 300.00 [08:57:58]line Внесено: 300.00 [08:57:58]line СДАЧА: 0.00 [08:57:58]line НСП 1% : 2.66 [08:57:58]line НДС 12% : 31.90 [08:57:58]line Наличными: 300.00 [08:57:58]line Безнал.: 0.00 [08:57:58]line Место: АЗС № 142 "Партнер Нефть" [08:57:58]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:57:58]line СНО: Общий режим [08:57:58]line Чек 38 26.10.2024 08:58 [08:57:58]line Смена: 512 ФФД: 1.0 [08:57:58]line ЗНМ: 0300000089 [08:57:58]line РНМ: 0000000000091691 [08:57:58]line Версия ККМ: 001 [08:57:58]line ФМ: 0000000000871795 [08:57:58]line ФД: 75046 [08:57:58]line ФПД: 195488312630244 [08:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085800&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75046&fm=195488312630244&tin=02508201610067®Number=0000000000091691&sum=30000 [08:57:58]Connected sock=10 [08:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 52 D3 07 01 19 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 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 26 00 00 00 F4 03 04 00 18 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 26 25 01 00 35 04 06 00 B1 CB AB 6E 9B E4 5B 29 11 4F 8E BA 96 67 [08:57:58]written 0, free lines is 4095 [08:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F9 A5 47 00 24 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 38 37 31 37 39 35 10 04 04 00 26 25 01 00 F4 03 04 00 94 56 1C 67 B6 04 01 00 00 35 2D 5B 0B B7 D9 89 8A [08:57:58]CommunicateWithHost err = 0 [08:57:58]CheckOFDResponse [08:57:58]1017 (14) - 77093643461234 [08:57:58]1041 (16) - 0000000000871795 [08:57:58]1040 (4) - 75046 [08:57:58]1012 (4) - 26.10.2024 02:40 [08:57:58]1206 (1) - 0 [08:57:58]OFD Sender: Remove packet 75046 [08:57:58]ProducePacketName [08:57:58]name=ofd_packets/00075046 [08:57:58]NVStorageDeleteData [08:57:58]Write to MH i2c: 01 00 00 D0 1C EC [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 A7 0C A6 [08:57:58]RasterBufferAndPrint [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]line [08:57:58]written 0, free lines is 3246 [08:57:58]MH_Cut [08:57:58]Write to MH i2c: D1 01 00 D7 1C 01 C5 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 01 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: D1 01 00 D7 1C 00 C4 [08:57:58]Write to MH i2c: 01 00 00 D8 1C F4 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:59]OFD Sender: No OFD packet to send [08:57:59]*** Cut start [08:57:59]*** Partial cut [08:57:59]*** CUTSNS_PIN = 1 [08:57:59]*** CUTSNS_PIN = 0 [08:57:59]*** Brake cut motor [08:58:00]Read from MH i2c: 01 [08:58:00]MH_I2C_Read... [08:58:00]*** Stop cut motor [08:58:00]*** Cut end [08:58:00]Read from MH i2c: 01 07 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [08:58:00]process_action close_receipt done [08:58:00]requested_data is exist [08:58:00]produce_requested_data [08:58:00]requested_item fm.sn is exist - process it [08:58:00]wFMCommunicate request_size=4 [08:58:00]MH_SAM_APDU [08:58:00]CAPDU: 80 11 00 00 [08:58:00]Write to MH i2c: E2 08 00 D9 1C 80 11 00 00 00 00 00 00 6F [08:58:00]Write i2c OK [08:58:00]MH_I2C_Read... [08:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:00]Read from MH i2c: E2 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 17 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 17 00 D9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [08:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:58:00]wFMCommunicate OK [08:58:00]requested_item fd.num is exist - process it [08:58:00]SAM_PROTO_GetFieldsCounters [08:58:00]wFMCommunicate request_size=4 [08:58:00]MH_SAM_APDU [08:58:00]CAPDU: 80 13 00 00 [08:58:00]Write to MH i2c: E2 08 00 DA 1C 80 13 00 00 00 00 00 00 72 [08:58:00]Write i2c OK [08:58:00]MH_I2C_Read... [08:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:00]Read from MH i2c: E2 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 62 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 62 00 DA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 26 25 01 00 0E 04 04 00 00 02 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 59 [08:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 26 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:00]wFMCommunicate OK [08:58:00]SAM_PROTO_GetFieldsCounters done [08:58:00]requested_item shift.num is exist - process it [08:58:00]requested_item shift.opened is exist - process it [08:58:00]req_shift_opened [08:58:00]FM_GetShiftState [08:58:00]SAM_PROTO_GetShiftState [08:58:00]wFMCommunicate request_size=4 [08:58:00]MH_SAM_APDU [08:58:00]CAPDU: 80 13 01 00 [08:58:00]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [08:58:00]Write i2c OK [08:58:00]MH_I2C_Read... [08:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:00]Read from MH i2c: E2 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 0E 00 [08:58:00]MH_I2C_Read... [08:58:00]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8F [08:58:00]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:58:00]wFMCommunicate OK [08:58:00]SAM_PROTO_GetShiftState done [08:58:00]FM_GetShiftState done [08:58:00]req_shift_opened done [08:58:00]requested_item shift.open_date is exist - process it [08:58:00]req_shift_open_date [08:58:00]req_shift_open_date done [08:58:00]produce_requested_data done [08:58:00]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75046,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:58:00]process_action_free close_receipt [08:58:00]json_value_free [08:58:00]json_value_free done [08:58:00]process_json_proto returns [08:58:00]Send response to host [08:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75046,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:58:00]free response buf [08:58:00]execute_script done [08:58:00]execute_script returns [08:58:00]free content buf [08:58:00]Sock 9.Close socket [08:58:00]Sock 9.Thread stoped [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:57]accept exits with 8 [08:58:57]New connection [08:58:57]New thread 3066781028 created [08:58:57]Thread 3066924388 joined [08:58:57]Waiting for new connection... [08:58:57] Sock 8.Parse request [08:58:57]Sock 8.Check first char [08:58:57]Sock 8.First char is OK [08:58:57]request: POST /json_proto HTTP/1.0 [08:58:57]Method: POST [08:58:57]URL: /json_proto [08:58:57]Method is POST - this is cgi request [08:58:57]url: /json_proto [08:58:57]query_string will be loaded in cgi processing [08:58:57]execute_cgi json_proto POST (null) [08:58:57]execute_cgi path=json_proto method=POST [08:58:57]POST find Content-Length [08:58:57]Host: 172.17.39.131:8080 [08:58:57]Content-Length: 685 [08:58:57]Content-Type: application/json [08:58:57] [08:58:57]POST finish read [08:58:57]Found Content-Length = 685 [08:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.370, "sum" : 1725.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1725.00, "payments": [ { "type": 0, "sum" : 1725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:57]execute_script... [08:58: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)191018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.370, "sum" : 1725.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1725.00, "payments": [ { "type": 0, "sum" : 1725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:57]POST & json_proto [08:58:57]process_json_proto [08:58:57]json parsed OK: [08:58:57]protocol is kg_v1.0 [08:58:57]action value=close_receipt [08:58:57]process_action close_receipt [08:58:57]cmd_close_receipt [08:58:57]MH_GetDate [08:58:57]Write to MH i2c: F0 00 00 DC 1C E7 [08:58:57]Write i2c OK [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: F0 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: F0 09 00 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: F0 09 00 DC 1C 00 55 AF 1C 67 86 57 24 65 DD [08:58:57]GetLastDocTimeStamp 1729933080 [08:58:57]current date 1729933141 [08:58:57]FM_GetShiftState [08:58:57]SAM_PROTO_GetShiftState [08:58:57]wFMCommunicate request_size=4 [08:58:57]MH_SAM_APDU [08:58:57]CAPDU: 80 13 01 00 [08:58:57]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [08:58:57]Write i2c OK [08:58:57]MH_I2C_Read... [08:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:57]Read from MH i2c: E2 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: E2 0E 00 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 91 [08:58:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:58:57]wFMCommunicate OK [08:58:57]SAM_PROTO_GetShiftState done [08:58:57]FM_GetShiftState done [08:58:57]opened in 1729902166 [08:58:57]opened+sec_in_day 1729988566 [08:58:57]quantity*price = 172599 [08:58:57]sum+1 = 172600 [08:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1725.00 Внесено: 2000.00 СДАЧА: 275.00 НСП 1% : 15.27 НДС 12% : 183.29 Наличными: 1725.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 39 26.10.2024 08:59 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75047 ФПД: 178527852453022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085901&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75047&fm=178527852453022&tin=02508201610067®Number=0000000000091691&sum=172500 [08:58:58]StoreToDocumentArchive [08:58:58]shift 512 fd 75047 [08:58:58]save to /storage/0512/doc_00075047 [08:58:58]save last doc name /storage/0512/doc_00075047 to /storage/kkm_last_doc_name [08:58:58]save OK [08:58:58]Clear old archive folders... [08:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:58:58]tlvbuf is B6EA11A0 [08:58:58]SAM_PROTO_ClearQueue [08:58:58]wFMCommunicate request_size=4 [08:58:58]MH_SAM_APDU [08:58:58]CAPDU: 80 09 00 00 [08:58:58]Write to MH i2c: E2 08 00 EA 1C 80 09 00 00 00 00 00 00 78 [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:58]Read from MH i2c: E2 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 03 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [08:58:58]RAPDU: 90 00 [08:58:58]wFMCommunicate OK [08:58:58]SAM_PROTO_ClearQueue done [08:58:58]KKMCreateOFDPacket [08:58:58]OFDProtocolAddRootSTLVToBuf [08:58:58]FM_MakeSignedData [08:58:58]FM_MakeSignedData [08:58:58]SAM_PROTO_SignData [08:58:58]wFMCommunicate request_size=4 [08:58:58]MH_SAM_APDU [08:58:58]CAPDU: 80 0D 01 02 [08:58:58]Write to MH i2c: E2 08 00 EB 1C 80 0D 01 02 00 00 00 00 80 [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:58]Read from MH i2c: E2 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 03 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [08:58:58]RAPDU: 90 00 [08:58:58]wFMCommunicate OK [08:58:58]wFMCommunicate request_size=255 [08:58:58]MH_SAM_APDU [08:58: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 37 A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 A1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 47 00 00 00 00 07 04 06 00 D4 A1 02 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 55 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 25 01 00 35 04 06 00 A2 5E [08:58:58]Write to MH i2c: E2 02 01 EC 1C 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 37 A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 A1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 47 00 00 00 00 07 04 06 00 D4 A1 02 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 55 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 25 01 00 35 04 06 00 A2 5E 00 00 17 [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:59]Read from MH i2c: E2 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 03 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [08:58:59]RAPDU: 90 00 [08:58:59]wFMCommunicate OK [08:58:59]wFMCommunicate request_size=9 [08:58:59]MH_SAM_APDU [08:58:59]CAPDU: 80 0D 02 02 04 C1 3A 5C 9E [08:58:59]Write to MH i2c: E2 0C 00 ED 1C 80 0D 02 02 04 00 C1 3A 5C 9E 00 00 80 [08:58:59]OFD Sender: No OFD packet to send [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:59]Read from MH i2c: E2 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 03 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [08:58:59]RAPDU: 90 00 [08:58:59]wFMCommunicate OK [08:58:59]wFMCommunicate request_size=4 [08:58:59]MH_SAM_APDU [08:58:59]CAPDU: 80 0D 03 02 [08:58:59]Write to MH i2c: E2 08 00 EE 1C 80 0D 03 02 00 00 00 00 85 [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:59]Read from MH i2c: E2 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 0B 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 0B 00 EE 1C 00 35 4A 11 F4 3F 53 82 25 90 00 43 [08:58:59]RAPDU: 35 4A 11 F4 3F 53 82 25 90 00 [08:58:59]wFMCommunicate OK [08:58:59]SAM_PROTO_SignData done [08:58:59]FM_MakeSignedData done [08:58:59]CreateOFDProtocolMessage [08:58:59]wFMCommunicate request_size=4 [08:58:59]MH_SAM_APDU [08:58:59]CAPDU: 80 11 00 00 [08:58:59]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:59]Read from MH i2c: E2 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 17 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DD [08:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:58:59]wFMCommunicate OK [08:58:59]CreateOFDProtocolMessage done [08:58:59]OFDSenderStorePacket 75047 [08:58:59]StoreOFDPacket docnum=75047 [08:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 99 29 06 01 AF 72 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 37 A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 A1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 47 00 00 00 00 07 04 06 00 D4 A1 02 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 55 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 25 01 00 35 04 06 00 A2 5E C1 3A 5C 9E 35 4A 11 F4 3F 53 82 25 [08:58:59]CheckFolder [08:58:59]dirname=/storage/ofd_packets [08:58:59]CheckFolder done [08:58:59]ProducePacketName [08:58:59]name=ofd_packets/00075047 [08:58:59]NVStorageSaveData ofd_packets/00075047 [08:58:59]File name is /storage/ofd_packets/00075047 [08:58:59]Write 300 bytes [08:58:59]NVStorageSaveData done [08:58:59]OFDSenderStorePacket done [08:58:59]KKMCreateOFDPacket done [08:58:59]NVStorageSaveData kkm_last_timestamp [08:58:59]File name is /storage/kkm_last_timestamp [08:58:59]Write 4 bytes [08:58:59]NVStorageSaveData done [08:58:59]ExternCall_PrintAddStr [08:58:59]wPrintStart [08:58:59]Write to MH i2c: 01 00 00 F0 1C 0C [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: 01 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: 01 07 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [08:58:59]RasterBufferAndPrint [08:58:59]line Счет N : (1)191018 [08:58:59]line ИНН: 02508201610067 [08:58:59]line Контрольно-Кассовый Чек [08:58:59]line ПРОДАЖА [08:58:59]line ТРК (МРК, ГНК) : 51 [08:58:59]line Товар: 2711190000 [08:58:59]line ГАЗ-К-3 [08:58:59]line 44.370 * 38.90 [08:58:59]line = 1725.99 [08:58:59]line НДС 12% НСП 1% [08:58:59]line > о реализуемом товаре [08:58:59]line ОКРУГЛЕНИЕ: -0.99 [08:58:59]line ИТОГО: 1725.00 [08:58:59]line Внесено: 2000.00 [08:58:59]line СДАЧА: 275.00 [08:58:59]line НСП 1% : 15.27 [08:58:59]line НДС 12% : 183.29 [08:58:59]line Наличными: 1725.00 [08:58:59]line Безнал.: 0.00 [08:58:59]line Место: АЗС № 142 "Партнер Нефть" [08:58:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [08:58:59]line СНО: Общий режим [08:58:59]line Чек 39 26.10.2024 08:59 [08:58:59]line Смена: 512 ФФД: 1.0 [08:58:59]line ЗНМ: 0300000089 [08:58:59]line РНМ: 0000000000091691 [08:58:59]line Версия ККМ: 001 [08:58:59]line ФМ: 0000000000871795 [08:58:59]line ФД: 75047 [08:58:59]line ФПД: 178527852453022 [08:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085901&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75047&fm=178527852453022&tin=02508201610067®Number=0000000000091691&sum=172500 [08:58:59]OFD Sender: Processing packet 75047 [packets to send 13, broken 12] [08:58:59]ProducePacketName [08:58:59]name=ofd_packets/00075047 [08:58:59]OFD Sender: To server: pG, [08:58:59]CommunicateWithHost lk.salyk.kg:30040 [08:58:59]ConnectInit lk.salyk.kg [08:58:59]written 0, free lines is 4095 [08:58:59]Connected sock=10 [08:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 99 29 06 01 AF 72 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 AD 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 37 A2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 A1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 47 00 00 00 00 07 04 06 00 D4 A1 02 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 55 AF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 25 01 00 35 04 06 00 A2 5E C1 3A 5C 9E 35 4A 11 F4 3F 53 82 25 [08:59:00]Write to MH i2c: 01 00 00 1B 1D 38 [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: 01 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: 01 07 00 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 A2 0C ED [08:59:00]RasterBufferAndPrint [08:59:00]line [08:59:00]line [08:59:00]line [08:59:00]line [08:59:00]line [08:59:00]written 0, free lines is 3238 [08:59:00]MH_Cut [08:59:00]Write to MH i2c: D1 01 00 22 1D 01 11 [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: D1 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: D1 01 00 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: D1 01 00 22 1D 00 10 [08:59:00]Write to MH i2c: 01 00 00 23 1D 40 [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 54 E3 47 00 4B 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 27 25 01 00 F4 03 04 00 D2 56 1C 67 B6 04 01 00 00 69 51 24 DE 16 22 8D E9 [08:59:00]CommunicateWithHost err = 0 [08:59:00]CheckOFDResponse [08:59:00]1017 (14) - 77093643461234 [08:59:00]1041 (16) - 0000000000871795 [08:59:00]1040 (4) - 75047 [08:59:00]1012 (4) - 26.10.2024 02:41 [08:59:00]1206 (1) - 0 [08:59:00]OFD Sender: Remove packet 75047 [08:59:00]ProducePacketName [08:59:00]name=ofd_packets/00075047 [08:59:00]NVStorageDeleteData [08:59:00]OFD Sender: No OFD packet to send [08:59:01]*** Cut start [08:59:01]*** Partial cut [08:59:01]*** CUTSNS_PIN = 1 [08:59:01]*** CUTSNS_PIN = 0 [08:59:01]*** Brake cut motor [08:59:01]Read from MH i2c: 01 [08:59:01]MH_I2C_Read... [08:59:01]*** Stop cut motor [08:59:01]*** Cut end [08:59:01]Read from MH i2c: 01 07 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 FF 0F 55 [08:59:01]process_action close_receipt done [08:59:01]requested_data is exist [08:59:01]produce_requested_data [08:59:01]requested_item fm.sn is exist - process it [08:59:01]wFMCommunicate request_size=4 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 11 00 00 [08:59:01]Write to MH i2c: E2 08 00 24 1D 80 11 00 00 00 00 00 00 BB [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 17 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 17 00 24 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 13 [08:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [08:59:01]wFMCommunicate OK [08:59:01]requested_item fd.num is exist - process it [08:59:01]SAM_PROTO_GetFieldsCounters [08:59:01]wFMCommunicate request_size=4 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 13 00 00 [08:59:01]Write to MH i2c: E2 08 00 25 1D 80 13 00 00 00 00 00 00 BE [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 62 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 62 00 25 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 27 25 01 00 0E 04 04 00 00 02 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 A9 [08:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 27 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:01]wFMCommunicate OK [08:59:01]SAM_PROTO_GetFieldsCounters done [08:59:01]requested_item shift.num is exist - process it [08:59:01]requested_item shift.opened is exist - process it [08:59:01]req_shift_opened [08:59:01]FM_GetShiftState [08:59:01]SAM_PROTO_GetShiftState [08:59:01]wFMCommunicate request_size=4 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 13 01 00 [08:59:01]Write to MH i2c: E2 08 00 26 1D 80 13 01 00 00 00 00 00 C0 [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 0E 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 0E 00 26 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DB [08:59:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [08:59:01]wFMCommunicate OK [08:59:01]SAM_PROTO_GetShiftState done [08:59:01]FM_GetShiftState done [08:59:01]req_shift_opened done [08:59:01]requested_item shift.open_date is exist - process it [08:59:01]req_shift_open_date [08:59:01]req_shift_open_date done [08:59:01]produce_requested_data done [08:59:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75047,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [08:59:01]process_action_free close_receipt [08:59:01]json_value_free [08:59:01]json_value_free done [08:59:01]process_json_proto returns [08:59:01]Send response to host [08:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75047,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [08:59:01]free response buf [08:59:01]execute_script done [08:59:01]execute_script returns [08:59:01]free content buf [08:59:01]Sock 8.Close socket [08:59:01]Sock 8.Thread stoped [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:40]accept exits with 9 [09:08:40]New connection [09:08:40]New thread 3066924388 created [09:08:40]Thread 3066781028 joined [09:08:40]Waiting for new connection... [09:08:40] Sock 9.Parse request [09:08:40]Sock 9.Check first char [09:08:40]Sock 9.First char is OK [09:08:40]request: POST /json_proto HTTP/1.0 [09:08:40]Method: POST [09:08:40]URL: /json_proto [09:08:40]Method is POST - this is cgi request [09:08:40]url: /json_proto [09:08:40]query_string will be loaded in cgi processing [09:08:40]execute_cgi json_proto POST (null) [09:08:40]execute_cgi path=json_proto method=POST [09:08:40]POST find Content-Length [09:08:40]Host: 172.17.39.131:8080 [09:08:40]Content-Length: 677 [09:08:40]Content-Type: application/json [09:08:40] [09:08:40]POST finish read [09:08:40]Found Content-Length = 677 [09:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:40]execute_script... [09:08: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)191021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:40]POST & json_proto [09:08:40]process_json_proto [09:08:40]json parsed OK: [09:08:40]protocol is kg_v1.0 [09:08:40]action value=close_receipt [09:08:40]process_action close_receipt [09:08:40]cmd_close_receipt [09:08:40]MH_GetDate [09:08:40]Write to MH i2c: F0 00 00 27 1D 33 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: F0 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: F0 09 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: F0 09 00 27 1D 00 9C B1 1C 67 86 57 24 65 72 [09:08:40]GetLastDocTimeStamp 1729933141 [09:08:40]current date 1729933724 [09:08:40]FM_GetShiftState [09:08:40]SAM_PROTO_GetShiftState [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 13 01 00 [09:08:40]Write to MH i2c: E2 08 00 28 1D 80 13 01 00 00 00 00 00 C2 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0E 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0E 00 28 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DD [09:08:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:08:40]wFMCommunicate OK [09:08:40]SAM_PROTO_GetShiftState done [09:08:40]FM_GetShiftState done [09:08:40]opened in 1729902166 [09:08:40]opened+sec_in_day 1729988566 [09:08:40]quantity*price = 20003 [09:08:40]sum+1 = 20004 [09:08:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 40 26.10.2024 09:08 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75048 ФПД: 171415426411826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090844&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75048&fm=171415426411826&tin=02508201610067®Number=0000000000091691&sum=20000 [09:08:41]StoreToDocumentArchive [09:08:41]shift 512 fd 75048 [09:08:41]save to /storage/0512/doc_00075048 [09:08:41]save last doc name /storage/0512/doc_00075048 to /storage/kkm_last_doc_name [09:08:41]save OK [09:08:41]Clear old archive folders... [09:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:41]tlvbuf is B6EA11A0 [09:08:41]SAM_PROTO_ClearQueue [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 09 00 00 [09:08:41]Write to MH i2c: E2 08 00 35 1D 80 09 00 00 00 00 00 00 C4 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [09:08:41]RAPDU: 90 00 [09:08:41]wFMCommunicate OK [09:08:41]SAM_PROTO_ClearQueue done [09:08:41]KKMCreateOFDPacket [09:08:41]OFDProtocolAddRootSTLVToBuf [09:08:41]FM_MakeSignedData [09:08:41]FM_MakeSignedData [09:08:41]SAM_PROTO_SignData [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 0D 01 02 [09:08:41]Write to MH i2c: E2 08 00 36 1D 80 0D 01 02 00 00 00 00 CC [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [09:08:41]RAPDU: 90 00 [09:08:41]wFMCommunicate OK [09:08:41]wFMCommunicate request_size=255 [09:08:41]MH_SAM_APDU [09:08: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 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 28 00 00 00 F4 03 04 00 9C B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 25 01 00 35 04 06 00 9B [09:08:41]Write to MH i2c: E2 02 01 37 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 F4 03 04 00 9C B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 25 01 00 35 04 06 00 9B 00 00 06 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [09:08:41]RAPDU: 90 00 [09:08:41]wFMCommunicate OK [09:08:41]wFMCommunicate request_size=10 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 0D 02 02 05 E6 C3 99 AD 32 [09:08:41]Write to MH i2c: E2 0D 00 38 1D 80 0D 02 02 05 00 E6 C3 99 AD 32 00 00 FA [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [09:08:41]RAPDU: 90 00 [09:08:41]wFMCommunicate OK [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 0D 03 02 [09:08:41]Write to MH i2c: E2 08 00 39 1D 80 0D 03 02 00 00 00 00 D1 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 0B 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 0B 00 39 1D 00 D8 0B 54 56 DB 34 29 46 90 00 DD [09:08:41]RAPDU: D8 0B 54 56 DB 34 29 46 90 00 [09:08:41]wFMCommunicate OK [09:08:41]SAM_PROTO_SignData done [09:08:41]FM_MakeSignedData done [09:08:41]CreateOFDProtocolMessage [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 11 00 00 [09:08:41]Write to MH i2c: E2 08 00 3A 1D 80 11 00 00 00 00 00 00 D1 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:42]Read from MH i2c: E2 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: E2 17 00 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: E2 17 00 3A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 29 [09:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:08:42]wFMCommunicate OK [09:08:42]CreateOFDProtocolMessage done [09:08:42]OFDSenderStorePacket 75048 [09:08:42]StoreOFDPacket docnum=75048 [09:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 95 44 07 01 BD 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 F4 03 04 00 9C B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 25 01 00 35 04 06 00 9B E6 C3 99 AD 32 D8 0B 54 56 DB 34 29 46 [09:08:42]CheckFolder [09:08:42]dirname=/storage/ofd_packets [09:08:42]CheckFolder done [09:08:42]ProducePacketName [09:08:42]name=ofd_packets/00075048 [09:08:42]NVStorageSaveData ofd_packets/00075048 [09:08:42]File name is /storage/ofd_packets/00075048 [09:08:42]Write 301 bytes [09:08:42]NVStorageSaveData done [09:08:42]OFDSenderStorePacket done [09:08:42]KKMCreateOFDPacket done [09:08:42]NVStorageSaveData kkm_last_timestamp [09:08:42]File name is /storage/kkm_last_timestamp [09:08:42]Write 4 bytes [09:08:42]NVStorageSaveData done [09:08:42]ExternCall_PrintAddStr [09:08:42]wPrintStart [09:08:42]Write to MH i2c: 01 00 00 3B 1D 58 [09:08:42]Write i2c OK [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 07 00 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 FF 0F 6D [09:08:42]RasterBufferAndPrint [09:08:42]line Счет N : (1)191021 [09:08:42]line ИНН: 02508201610067 [09:08:42]line Контрольно-Кассовый Чек [09:08:42]line ПРОДАЖА [09:08:42]line ТРК (МРК, ГНК) : 21 [09:08:42]line Товар: 2710124130 [09:08:42]line Аи-92-К-5 [09:08:42]line 2.990 * 66.90 [09:08:42]line = 200.03 [09:08:42]line НДС 12% НСП 1% [09:08:42]line > о реализуемом товаре [09:08:42]line ОКРУГЛЕНИЕ: -0.03 [09:08:42]line ИТОГО: 200.00 [09:08:42]line Внесено: 200.00 [09:08:42]line СДАЧА: 0.00 [09:08:42]line НСП 1% : 1.77 [09:08:42]line НДС 12% : 21.24 [09:08:42]line Наличными: 200.00 [09:08:42]line Безнал.: 0.00 [09:08:42]line Место: АЗС № 142 "Партнер Нефть" [09:08:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:08:42]line СНО: Общий режим [09:08:42]line Чек 40 26.10.2024 09:08 [09:08:42]line Смена: 512 ФФД: 1.0 [09:08:42]line ЗНМ: 0300000089 [09:08:42]line РНМ: 0000000000091691 [09:08:42]line Версия ККМ: 001 [09:08:42]line ФМ: 0000000000871795 [09:08:42]line ФД: 75048 [09:08:42]line ФПД: 171415426411826 [09:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090844&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75048&fm=171415426411826&tin=02508201610067®Number=0000000000091691&sum=20000 [09:08:42]written 0, free lines is 4095 [09:08:42]OFD Sender: Processing packet 75048 [packets to send 13, broken 12] [09:08:42]ProducePacketName [09:08:42]name=ofd_packets/00075048 [09:08:42]OFD Sender: To server: pG, [09:08:42]CommunicateWithHost lk.salyk.kg:30040 [09:08:42]ConnectInit lk.salyk.kg [09:08:42]Connected sock=10 [09:08:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 95 44 07 01 BD 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 F4 03 04 00 9C B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 25 01 00 35 04 06 00 9B E6 C3 99 AD 32 D8 0B 54 56 DB 34 29 46 [09:08:42]Write to MH i2c: 01 00 00 66 1D 83 [09:08:42]Write i2c OK [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 07 00 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 9B 0C 31 [09:08:42]RasterBufferAndPrint [09:08:42]line [09:08:42]line [09:08:42]line [09:08:42]line [09:08:42]line [09:08:42]written 0, free lines is 3232 [09:08:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F5 11 47 00 F0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 28 25 01 00 F4 03 04 00 19 59 1C 67 B6 04 01 00 00 77 2C 8C B0 59 65 6B D5 [09:08:42]CommunicateWithHost err = 0 [09:08:42]CheckOFDResponse [09:08:42]1017 (14) - 77093643461234 [09:08:42]1041 (16) - 0000000000871795 [09:08:42]1040 (4) - 75048 [09:08:42]1012 (4) - 26.10.2024 02:51 [09:08:42]1206 (1) - 0 [09:08:42]OFD Sender: Remove packet 75048 [09:08:42]ProducePacketName [09:08:42]name=ofd_packets/00075048 [09:08:42]NVStorageDeleteData [09:08:42]MH_Cut [09:08:42]Write to MH i2c: D1 01 00 6D 1D 01 5C [09:08:42]Write i2c OK [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: D1 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: D1 01 00 [09:08:42]MH_I2C_Read... [09:08:42]Read from MH i2c: D1 01 00 6D 1D 00 5B [09:08:42]Write to MH i2c: 01 00 00 6E 1D 8B [09:08:42]Write i2c OK [09:08:42]MH_I2C_Read... [09:08:43]OFD Sender: No OFD packet to send [09:08:43]*** Cut start [09:08:43]*** Partial cut [09:08:43]*** CUTSNS_PIN = 1 [09:08:43]*** CUTSNS_PIN = 0 [09:08:44]*** Brake cut motor [09:08:44]Read from MH i2c: 01 [09:08:44]MH_I2C_Read... [09:08:44]*** Stop cut motor [09:08:44]*** Cut end [09:08:44]Read from MH i2c: 01 07 00 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [09:08:44]process_action close_receipt done [09:08:44]requested_data is exist [09:08:44]produce_requested_data [09:08:44]requested_item fm.sn is exist - process it [09:08:44]wFMCommunicate request_size=4 [09:08:44]MH_SAM_APDU [09:08:44]CAPDU: 80 11 00 00 [09:08:44]Write to MH i2c: E2 08 00 6F 1D 80 11 00 00 00 00 00 00 06 [09:08:44]Write i2c OK [09:08:44]MH_I2C_Read... [09:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:44]Read from MH i2c: E2 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 17 00 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 17 00 6F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5E [09:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:08:44]wFMCommunicate OK [09:08:44]requested_item fd.num is exist - process it [09:08:44]SAM_PROTO_GetFieldsCounters [09:08:44]wFMCommunicate request_size=4 [09:08:44]MH_SAM_APDU [09:08:44]CAPDU: 80 13 00 00 [09:08:44]Write to MH i2c: E2 08 00 70 1D 80 13 00 00 00 00 00 00 09 [09:08:44]Write i2c OK [09:08:44]MH_I2C_Read... [09:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:44]Read from MH i2c: E2 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 62 00 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 62 00 70 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 28 25 01 00 0E 04 04 00 00 02 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 F8 [09:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 28 25 01 00 0E 04 04 00 00 02 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 [09:08:44]wFMCommunicate OK [09:08:44]SAM_PROTO_GetFieldsCounters done [09:08:44]requested_item shift.num is exist - process it [09:08:44]requested_item shift.opened is exist - process it [09:08:44]req_shift_opened [09:08:44]FM_GetShiftState [09:08:44]SAM_PROTO_GetShiftState [09:08:44]wFMCommunicate request_size=4 [09:08:44]MH_SAM_APDU [09:08:44]CAPDU: 80 13 01 00 [09:08:44]Write to MH i2c: E2 08 00 71 1D 80 13 01 00 00 00 00 00 0B [09:08:44]Write i2c OK [09:08:44]MH_I2C_Read... [09:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:44]Read from MH i2c: E2 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 0E 00 [09:08:44]MH_I2C_Read... [09:08:44]Read from MH i2c: E2 0E 00 71 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 26 [09:08:44]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:08:44]wFMCommunicate OK [09:08:44]SAM_PROTO_GetShiftState done [09:08:44]FM_GetShiftState done [09:08:44]req_shift_opened done [09:08:44]requested_item shift.open_date is exist - process it [09:08:44]req_shift_open_date [09:08:44]req_shift_open_date done [09:08:44]produce_requested_data done [09:08:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75048,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:08:44]process_action_free close_receipt [09:08:44]json_value_free [09:08:44]json_value_free done [09:08:44]process_json_proto returns [09:08:44]Send response to host [09:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75048,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:08:44]free response buf [09:08:44]execute_script done [09:08:44]execute_script returns [09:08:44]free content buf [09:08:44]Sock 9.Close socket [09:08:44]Sock 9.Thread stoped [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:11]accept exits with 8 [09:10:11]New connection [09:10:11]New thread 3066781028 created [09:10:11]Thread 3066924388 joined [09:10:11]Waiting for new connection... [09:10:11] Sock 8.Parse request [09:10:11]Sock 8.Check first char [09:10:11]Sock 8.First char is OK [09:10:11]request: POST /json_proto HTTP/1.0 [09:10:11]Method: POST [09:10:11]URL: /json_proto [09:10:11]Method is POST - this is cgi request [09:10:11]url: /json_proto [09:10:11]query_string will be loaded in cgi processing [09:10:11]execute_cgi json_proto POST (null) [09:10:11]execute_cgi path=json_proto method=POST [09:10:11]POST find Content-Length [09:10:11]Host: 172.17.39.131:8080 [09:10:11]Content-Length: 685 [09:10:11]Content-Type: application/json [09:10:11] [09:10:11]POST finish read [09:10:11]Found Content-Length = 685 [09:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [09:10:11]execute_script... [09:10: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)191020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [09:10:11]POST & json_proto [09:10:11]process_json_proto [09:10:11]json parsed OK: [09:10:11]protocol is kg_v1.0 [09:10:11]action value=close_receipt [09:10:11]process_action close_receipt [09:10:11]cmd_close_receipt [09:10:11]MH_GetDate [09:10:11]Write to MH i2c: F0 00 00 72 1D 7E [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: F0 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: F0 09 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: F0 09 00 72 1D 00 F7 B1 1C 67 86 57 24 65 18 [09:10:11]GetLastDocTimeStamp 1729933724 [09:10:11]current date 1729933815 [09:10:11]FM_GetShiftState [09:10:11]SAM_PROTO_GetShiftState [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 13 01 00 [09:10:11]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0E 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 28 [09:10:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:10:11]wFMCommunicate OK [09:10:11]SAM_PROTO_GetShiftState done [09:10:11]FM_GetShiftState done [09:10:11]opened in 1729902166 [09:10:11]opened+sec_in_day 1729988566 [09:10:11]quantity*price = 100011 [09:10:11]sum+1 = 100013 [09:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 41 26.10.2024 09:10 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75049 ФПД: 118191962459446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091015&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75049&fm=118191962459446&tin=02508201610067®Number=0000000000091691&sum=100000 [09:10:13]StoreToDocumentArchive [09:10:13]shift 512 fd 75049 [09:10:13]save to /storage/0512/doc_00075049 [09:10:13]save last doc name /storage/0512/doc_00075049 to /storage/kkm_last_doc_name [09:10:13]save OK [09:10:13]Clear old archive folders... [09:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:10:13]tlvbuf is B6EBAA50 [09:10:13]SAM_PROTO_ClearQueue [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 09 00 00 [09:10:13]Write to MH i2c: E2 08 00 80 1D 80 09 00 00 00 00 00 00 0F [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_ClearQueue done [09:10:13]KKMCreateOFDPacket [09:10:13]OFDProtocolAddRootSTLVToBuf [09:10:13]FM_MakeSignedData [09:10:13]FM_MakeSignedData [09:10:13]SAM_PROTO_SignData [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 0D 01 02 [09:10:13]Write to MH i2c: E2 08 00 81 1D 80 0D 01 02 00 00 00 00 17 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]wFMCommunicate request_size=255 [09:10:13]MH_SAM_APDU [09:10: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 39 30 30 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 29 00 00 00 F4 03 04 00 F7 B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 25 01 00 35 04 06 00 6B 7E [09:10:13]Write to MH i2c: E2 02 01 82 1D 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 39 30 30 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 29 00 00 00 F4 03 04 00 F7 B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 25 01 00 35 04 06 00 6B 7E 00 00 0C [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]wFMCommunicate request_size=9 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 0D 02 02 04 B5 F0 0D 36 [09:10:13]Write to MH i2c: E2 0C 00 83 1D 80 0D 02 02 04 00 B5 F0 0D 36 00 00 0A [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]OFD Sender: No OFD packet to send [09:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 0D 03 02 [09:10:13]Write to MH i2c: E2 08 00 84 1D 80 0D 03 02 00 00 00 00 1C [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0B 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0B 00 84 1D 00 88 FA 64 6E 0A 67 A7 B4 90 00 3D [09:10:13]RAPDU: 88 FA 64 6E 0A 67 A7 B4 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_SignData done [09:10:13]FM_MakeSignedData done [09:10:13]CreateOFDProtocolMessage [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 11 00 00 [09:10:13]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 17 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 74 [09:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:10:13]wFMCommunicate OK [09:10:13]CreateOFDProtocolMessage done [09:10:13]OFDSenderStorePacket 75049 [09:10:13]StoreOFDPacket docnum=75049 [09:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 16 1D 06 01 68 5F 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 39 30 30 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 29 00 00 00 F4 03 04 00 F7 B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 25 01 00 35 04 06 00 6B 7E B5 F0 0D 36 88 FA 64 6E 0A 67 A7 B4 [09:10:13]CheckFolder [09:10:13]dirname=/storage/ofd_packets [09:10:13]CheckFolder done [09:10:13]ProducePacketName [09:10:13]name=ofd_packets/00075049 [09:10:13]NVStorageSaveData ofd_packets/00075049 [09:10:13]File name is /storage/ofd_packets/00075049 [09:10:13]Write 300 bytes [09:10:13]NVStorageSaveData done [09:10:13]OFDSenderStorePacket done [09:10:13]KKMCreateOFDPacket done [09:10:13]NVStorageSaveData kkm_last_timestamp [09:10:13]File name is /storage/kkm_last_timestamp [09:10:13]Write 4 bytes [09:10:13]NVStorageSaveData done [09:10:13]ExternCall_PrintAddStr [09:10:13]wPrintStart [09:10:13]Write to MH i2c: 01 00 00 86 1D A3 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: 01 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: 01 07 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: 01 07 00 86 1D 00 00 00 00 00 FF 0F B8 [09:10:13]RasterBufferAndPrint [09:10:13]line Счет N : (1)191020 [09:10:13]line ИНН: 02508201610067 [09:10:13]line Контрольно-Кассовый Чек [09:10:13]line ПРОДАЖА [09:10:13]line ТРК (МРК, ГНК) : 51 [09:10:13]line Товар: 2711190000 [09:10:13]line ГАЗ-К-3 [09:10:13]line 25.710 * 38.90 [09:10:13]line = 1000.12 [09:10:13]line НДС 12% НСП 1% [09:10:13]line > о реализуемом товаре [09:10:13]line ОКРУГЛЕНИЕ: -0.12 [09:10:13]line ИТОГО: 1000.00 [09:10:13]line Внесено: 1000.00 [09:10:13]line СДАЧА: 0.00 [09:10:13]line НСП 1% : 8.85 [09:10:13]line НДС 12% : 106.21 [09:10:13]line Наличными: 1000.00 [09:10:13]line Безнал.: 0.00 [09:10:13]line Место: АЗС № 142 "Партнер Нефть" [09:10:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:10:13]line СНО: Общий режим [09:10:13]line Чек 41 26.10.2024 09:10 [09:10:13]line Смена: 512 ФФД: 1.0 [09:10:13]line ЗНМ: 0300000089 [09:10:13]line РНМ: 0000000000091691 [09:10:13]line Версия ККМ: 001 [09:10:13]line ФМ: 0000000000871795 [09:10:13]line ФД: 75049 [09:10:13]line ФПД: 118191962459446 [09:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091015&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75049&fm=118191962459446&tin=02508201610067®Number=0000000000091691&sum=100000 [09:10:13]written 0, free lines is 4095 [09:10:13]OFD Sender: Processing packet 75049 [packets to send 13, broken 12] [09:10:13]ProducePacketName [09:10:13]name=ofd_packets/00075049 [09:10:13]OFD Sender: To server: pG, [09:10:13]CommunicateWithHost lk.salyk.kg:30040 [09:10:13]ConnectInit lk.salyk.kg [09:10:14]Connected sock=10 [09:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 16 1D 06 01 68 5F 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 39 30 30 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 29 00 00 00 F4 03 04 00 F7 B1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 29 25 01 00 35 04 06 00 6B 7E B5 F0 0D 36 88 FA 64 6E 0A 67 A7 B4 [09:10:14]Write to MH i2c: 01 00 00 B1 1D CE [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 07 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 A0 0C 81 [09:10:14]RasterBufferAndPrint [09:10:14]line [09:10:14]line [09:10:14]line [09:10:14]line [09:10:14]line [09:10:14]written 0, free lines is 3239 [09:10:14]MH_Cut [09:10:14]Write to MH i2c: D1 01 00 B8 1D 01 A7 [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: D1 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: D1 01 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: D1 01 00 B8 1D 00 A6 [09:10:14]Write to MH i2c: 01 00 00 B9 1D D6 [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:15]*** Cut start [09:10:15]*** Partial cut [09:10:15]*** CUTSNS_PIN = 1 [09:10:15]*** CUTSNS_PIN = 0 [09:10:15]*** Brake cut motor [09:10:15]Read from MH i2c: 01 [09:10:15]MH_I2C_Read... [09:10:15]*** Stop cut motor [09:10:15]*** Cut end [09:10:15]Read from MH i2c: 01 07 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [09:10:15]process_action close_receipt done [09:10:15]requested_data is exist [09:10:15]produce_requested_data [09:10:15]requested_item fm.sn is exist - process it [09:10:15]wFMCommunicate request_size=4 [09:10:15]MH_SAM_APDU [09:10:15]CAPDU: 80 11 00 00 [09:10:15]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:15]Read from MH i2c: E2 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 17 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A9 [09:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:10:15]wFMCommunicate OK [09:10:15]requested_item fd.num is exist - process it [09:10:15]SAM_PROTO_GetFieldsCounters [09:10:15]wFMCommunicate request_size=4 [09:10:15]MH_SAM_APDU [09:10:15]CAPDU: 80 13 00 00 [09:10:15]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B2 27 47 00 68 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 38 37 31 37 39 35 10 04 04 00 29 25 01 00 F4 03 04 00 76 59 1C 67 B6 04 01 00 00 F2 9D B5 C1 6A 58 B7 D9 [09:10:15]CommunicateWithHost err = 0 [09:10:15]CheckOFDResponse [09:10:15]1017 (14) - 77093643461234 [09:10:15]1041 (16) - 0000000000871795 [09:10:15]1040 (4) - 75049 [09:10:15]1012 (4) - 26.10.2024 02:52 [09:10:15]1206 (1) - 0 [09:10:15]OFD Sender: Remove packet 75049 [09:10:15]ProducePacketName [09:10:15]name=ofd_packets/00075049 [09:10:15]NVStorageDeleteData [09:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 62 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 62 00 BB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 29 25 01 00 0E 04 04 00 00 02 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 47 [09:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 29 25 01 00 0E 04 04 00 00 02 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 [09:10:16]wFMCommunicate OK [09:10:16]SAM_PROTO_GetFieldsCounters done [09:10:16]requested_item shift.num is exist - process it [09:10:16]requested_item shift.opened is exist - process it [09:10:16]req_shift_opened [09:10:16]FM_GetShiftState [09:10:16]SAM_PROTO_GetShiftState [09:10:16]wFMCommunicate request_size=4 [09:10:16]MH_SAM_APDU [09:10:16]CAPDU: 80 13 01 00 [09:10:16]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 71 [09:10:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:10:16]wFMCommunicate OK [09:10:16]SAM_PROTO_GetShiftState done [09:10:16]FM_GetShiftState done [09:10:16]req_shift_opened done [09:10:16]requested_item shift.open_date is exist - process it [09:10:16]req_shift_open_date [09:10:16]req_shift_open_date done [09:10:16]produce_requested_data done [09:10:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75049,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:10:16]process_action_free close_receipt [09:10:16]json_value_free [09:10:16]json_value_free done [09:10:16]process_json_proto returns [09:10:16]Send response to host [09:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75049,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:10:16]free response buf [09:10:16]execute_script done [09:10:16]execute_script returns [09:10:16]free content buf [09:10:16]Sock 8.Close socket [09:10:16]Sock 8.Thread stoped [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:38]accept exits with 9 [09:12:38]New connection [09:12:38]New thread 3066924388 created [09:12:38]Thread 3066781028 joined [09:12:38]Waiting for new connection... [09:12:38] Sock 9.Parse request [09:12:38]Sock 9.Check first char [09:12:38]Sock 9.First char is OK [09:12:38]request: POST /json_proto HTTP/1.0 [09:12:38]Method: POST [09:12:38]URL: /json_proto [09:12:38]Method is POST - this is cgi request [09:12:38]url: /json_proto [09:12:38]query_string will be loaded in cgi processing [09:12:38]execute_cgi json_proto POST (null) [09:12:38]execute_cgi path=json_proto method=POST [09:12:38]POST find Content-Length [09:12:38]Host: 172.17.39.131:8080 [09:12:38]Content-Length: 682 [09:12:38]Content-Type: application/json [09:12:38] [09:12:38]POST finish read [09:12:38]Found Content-Length = 682 [09:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.470, "sum" : 1971.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1971.00, "payments": [ { "type": 0, "sum" : 1971.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:38]execute_script... [09:12: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)191022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.470, "sum" : 1971.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1971.00, "payments": [ { "type": 0, "sum" : 1971.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:38]POST & json_proto [09:12:38]process_json_proto [09:12:38]json parsed OK: [09:12:38]protocol is kg_v1.0 [09:12:38]action value=close_receipt [09:12:38]process_action close_receipt [09:12:38]cmd_close_receipt [09:12:38]MH_GetDate [09:12:38]Write to MH i2c: F0 00 00 BD 1D C9 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: F0 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: F0 09 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: F0 09 00 BD 1D 00 8A B2 1C 67 86 57 24 65 F7 [09:12:38]GetLastDocTimeStamp 1729933815 [09:12:38]current date 1729933962 [09:12:38]FM_GetShiftState [09:12:38]SAM_PROTO_GetShiftState [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 13 01 00 [09:12:38]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 0E 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 73 [09:12:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:12:38]wFMCommunicate OK [09:12:38]SAM_PROTO_GetShiftState done [09:12:38]FM_GetShiftState done [09:12:38]opened in 1729902166 [09:12:38]opened+sec_in_day 1729988566 [09:12:38]quantity*price = 197154 [09:12:38]sum+1 = 197155 [09:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1971.00 Внесено: 2000.00 СДАЧА: 29.00 НСП 1% : 17.45 НДС 12% : 209.37 Наличными: 1971.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 42 26.10.2024 09:12 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75050 ФПД: 49857348873777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091242&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75050&fm=49857348873777&tin=02508201610067®Number=0000000000091691&sum=197100 [09:12:39]StoreToDocumentArchive [09:12:39]shift 512 fd 75050 [09:12:39]save to /storage/0512/doc_00075050 [09:12:39]save last doc name /storage/0512/doc_00075050 to /storage/kkm_last_doc_name [09:12:39]save OK [09:12:39]Clear old archive folders... [09:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:39]tlvbuf is 0085A800 [09:12:39]SAM_PROTO_ClearQueue [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 09 00 00 [09:12:39]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [09:12:39]RAPDU: 90 00 [09:12:39]wFMCommunicate OK [09:12:39]SAM_PROTO_ClearQueue done [09:12:39]KKMCreateOFDPacket [09:12:39]OFDProtocolAddRootSTLVToBuf [09:12:39]FM_MakeSignedData [09:12:39]FM_MakeSignedData [09:12:39]SAM_PROTO_SignData [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 0D 01 02 [09:12:39]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [09:12:39]RAPDU: 90 00 [09:12:39]wFMCommunicate OK [09:12:39]wFMCommunicate request_size=255 [09:12:39]MH_SAM_APDU [09:12: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 1E 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 02 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 01 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 51 00 00 00 00 07 04 06 00 EC 01 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 8A B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 25 01 00 35 04 06 00 2D [09:12:39]Write to MH i2c: E2 02 01 CD 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 02 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 01 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 51 00 00 00 00 07 04 06 00 EC 01 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 8A B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 25 01 00 35 04 06 00 2D 00 00 9F [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [09:12:39]RAPDU: 90 00 [09:12:39]wFMCommunicate OK [09:12:39]wFMCommunicate request_size=10 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 0D 02 02 05 58 51 91 AE 31 [09:12:39]Write to MH i2c: E2 0D 00 CE 1D 80 0D 02 02 05 00 58 51 91 AE 31 00 00 88 [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [09:12:39]RAPDU: 90 00 [09:12:39]wFMCommunicate OK [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 0D 03 02 [09:12:39]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0B 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 0B 00 CF 1D 00 C1 CE 5A 1A 17 F9 FF 66 90 00 E0 [09:12:40]RAPDU: C1 CE 5A 1A 17 F9 FF 66 90 00 [09:12:40]wFMCommunicate OK [09:12:40]SAM_PROTO_SignData done [09:12:40]FM_MakeSignedData done [09:12:40]CreateOFDProtocolMessage [09:12:40]wFMCommunicate request_size=4 [09:12:40]MH_SAM_APDU [09:12:40]CAPDU: 80 11 00 00 [09:12:40]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:40]Read from MH i2c: E2 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 17 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BF [09:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:12:40]wFMCommunicate OK [09:12:40]CreateOFDProtocolMessage done [09:12:40]OFDSenderStorePacket 75050 [09:12:40]StoreOFDPacket docnum=75050 [09:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7C 57 07 01 21 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 02 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 01 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 51 00 00 00 00 07 04 06 00 EC 01 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 8A B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 25 01 00 35 04 06 00 2D 58 51 91 AE 31 C1 CE 5A 1A 17 F9 FF 66 [09:12:40]CheckFolder [09:12:40]dirname=/storage/ofd_packets [09:12:40]CheckFolder done [09:12:40]ProducePacketName [09:12:40]name=ofd_packets/00075050 [09:12:40]NVStorageSaveData ofd_packets/00075050 [09:12:40]File name is /storage/ofd_packets/00075050 [09:12:40]Write 301 bytes [09:12:40]NVStorageSaveData done [09:12:40]OFDSenderStorePacket done [09:12:40]KKMCreateOFDPacket done [09:12:40]NVStorageSaveData kkm_last_timestamp [09:12:40]File name is /storage/kkm_last_timestamp [09:12:40]Write 4 bytes [09:12:40]NVStorageSaveData done [09:12:40]ExternCall_PrintAddStr [09:12:40]wPrintStart [09:12:40]Write to MH i2c: 01 00 00 D1 1D EE [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 07 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [09:12:40]RasterBufferAndPrint [09:12:40]line Счет N : (1)191022 [09:12:40]line ИНН: 02508201610067 [09:12:40]line Контрольно-Кассовый Чек [09:12:40]line ПРОДАЖА [09:12:40]line ТРК (МРК, ГНК) : 21 [09:12:40]line Товар: 2710124130 [09:12:40]line Аи-92-К-5 [09:12:40]line 29.470 * 66.90 [09:12:40]line = 1971.54 [09:12:40]line НДС 12% НСП 1% [09:12:40]line > о реализуемом товаре [09:12:40]line ОКРУГЛЕНИЕ: -0.54 [09:12:40]line ИТОГО: 1971.00 [09:12:40]line Внесено: 2000.00 [09:12:40]line СДАЧА: 29.00 [09:12:40]line НСП 1% : 17.45 [09:12:40]line НДС 12% : 209.37 [09:12:40]line Наличными: 1971.00 [09:12:40]line Безнал.: 0.00 [09:12:40]line Место: АЗС № 142 "Партнер Нефть" [09:12:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:12:40]line СНО: Общий режим [09:12:40]line Чек 42 26.10.2024 09:12 [09:12:40]line Смена: 512 ФФД: 1.0 [09:12:40]line ЗНМ: 0300000089 [09:12:40]line РНМ: 0000000000091691 [09:12:40]line Версия ККМ: 001 [09:12:40]line ФМ: 0000000000871795 [09:12:40]line ФД: 75050 [09:12:40]line ФПД: 49857348873777 [09:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091242&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75050&fm=49857348873777&tin=02508201610067®Number=0000000000091691&sum=197100 [09:12:40]OFD Sender: Processing packet 75050 [packets to send 13, broken 12] [09:12:40]ProducePacketName [09:12:40]name=ofd_packets/00075050 [09:12:40]OFD Sender: To server: pG, [09:12:40]CommunicateWithHost lk.salyk.kg:30040 [09:12:40]ConnectInit lk.salyk.kg [09:12:40]written 0, free lines is 4095 [09:12:40]Connected sock=10 [09:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7C 57 07 01 21 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 02 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 01 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 51 00 00 00 00 07 04 06 00 EC 01 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 8A B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 25 01 00 35 04 06 00 2D 58 51 91 AE 31 C1 CE 5A 1A 17 F9 FF 66 [09:12:40]Write to MH i2c: 01 00 00 FC 1D 19 [09:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 24 B4 47 00 6B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2A 25 01 00 F4 03 04 00 07 5A 1C 67 B6 04 01 00 00 82 6C D8 AA A8 09 F1 35 [09:12:40]CommunicateWithHost err = 0 [09:12:40]CheckOFDResponse [09:12:40]1017 (14) - 77093643461234 [09:12:40]1041 (16) - 0000000000871795 [09:12:40]1040 (4) - 75050 [09:12:40]1012 (4) - 26.10.2024 02:55 [09:12:40]1206 (1) - 0 [09:12:40]OFD Sender: Remove packet 75050 [09:12:40]ProducePacketName [09:12:40]name=ofd_packets/00075050 [09:12:40]NVStorageDeleteData [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 07 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: 01 07 00 FC 1D 00 00 00 00 00 A6 0C D2 [09:12:40]RasterBufferAndPrint [09:12:40]line [09:12:40]line [09:12:40]line [09:12:40]line [09:12:40]line [09:12:40]written 0, free lines is 3248 [09:12:40]MH_Cut [09:12:40]Write to MH i2c: D1 01 00 03 1E 01 F3 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: D1 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: D1 01 00 [09:12:40]MH_I2C_Read... [09:12:40]Read from MH i2c: D1 01 00 03 1E 00 F2 [09:12:40]Write to MH i2c: 01 00 00 04 1E 22 [09:12:40]Write i2c OK [09:12:40]MH_I2C_Read... [09:12:41]OFD Sender: No OFD packet to send [09:12:41]*** Cut start [09:12:41]*** Partial cut [09:12:41]*** CUTSNS_PIN = 1 [09:12:41]*** CUTSNS_PIN = 0 [09:12:42]*** Brake cut motor [09:12:42]Read from MH i2c: 01 [09:12:42]MH_I2C_Read... [09:12:42]*** Stop cut motor [09:12:42]*** Cut end [09:12:42]Read from MH i2c: 01 07 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: 01 07 00 04 1E 00 00 00 00 00 FF 0F 37 [09:12:42]process_action close_receipt done [09:12:42]requested_data is exist [09:12:42]produce_requested_data [09:12:42]requested_item fm.sn is exist - process it [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 11 00 00 [09:12:42]Write to MH i2c: E2 08 00 05 1E 80 11 00 00 00 00 00 00 9D [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 17 00 05 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [09:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:12:42]wFMCommunicate OK [09:12:42]requested_item fd.num is exist - process it [09:12:42]SAM_PROTO_GetFieldsCounters [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 13 00 00 [09:12:42]Write to MH i2c: E2 08 00 06 1E 80 13 00 00 00 00 00 00 A0 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 62 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 62 00 06 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2A 25 01 00 0E 04 04 00 00 02 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 97 [09:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2A 25 01 00 0E 04 04 00 00 02 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 [09:12:42]wFMCommunicate OK [09:12:42]SAM_PROTO_GetFieldsCounters done [09:12:42]requested_item shift.num is exist - process it [09:12:42]requested_item shift.opened is exist - process it [09:12:42]req_shift_opened [09:12:42]FM_GetShiftState [09:12:42]SAM_PROTO_GetShiftState [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 13 01 00 [09:12:42]Write to MH i2c: E2 08 00 07 1E 80 13 01 00 00 00 00 00 A2 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0E 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0E 00 07 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BD [09:12:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:12:42]wFMCommunicate OK [09:12:42]SAM_PROTO_GetShiftState done [09:12:42]FM_GetShiftState done [09:12:42]req_shift_opened done [09:12:42]requested_item shift.open_date is exist - process it [09:12:42]req_shift_open_date [09:12:42]req_shift_open_date done [09:12:42]produce_requested_data done [09:12:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75050,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:12:42]process_action_free close_receipt [09:12:42]json_value_free [09:12:42]json_value_free done [09:12:42]process_json_proto returns [09:12:42]Send response to host [09:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75050,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:12:42]free response buf [09:12:42]execute_script done [09:12:42]execute_script returns [09:12:42]free content buf [09:12:42]Sock 9.Close socket [09:12:42]Sock 9.Thread stoped [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:18]accept exits with 8 [09:13:18]New connection [09:13:18]New thread 3066781028 created [09:13:18]Thread 3066924388 joined [09:13:18]Waiting for new connection... [09:13:18] Sock 8.Parse request [09:13:18]Sock 8.Check first char [09:13:18]Sock 8.First char is OK [09:13:18]request: POST /json_proto HTTP/1.0 [09:13:18]Method: POST [09:13:18]URL: /json_proto [09:13:18]Method is POST - this is cgi request [09:13:18]url: /json_proto [09:13:18]query_string will be loaded in cgi processing [09:13:18]execute_cgi json_proto POST (null) [09:13:18]execute_cgi path=json_proto method=POST [09:13:18]POST find Content-Length [09:13:18]Host: 172.17.39.131:8080 [09:13:18]Content-Length: 677 [09:13:18]Content-Type: application/json [09:13:18] [09:13:18]POST finish read [09:13:18]Found Content-Length = 677 [09:13:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:18]execute_script... [09:13: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)191023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:18]POST & json_proto [09:13:18]process_json_proto [09:13:18]json parsed OK: [09:13:18]protocol is kg_v1.0 [09:13:18]action value=close_receipt [09:13:18]process_action close_receipt [09:13:18]cmd_close_receipt [09:13:18]MH_GetDate [09:13:18]Write to MH i2c: F0 00 00 08 1E 15 [09:13:18]Write i2c OK [09:13:18]MH_I2C_Read... [09:13:18]Read from MH i2c: F0 [09:13:18]MH_I2C_Read... [09:13:18]Read from MH i2c: F0 09 00 [09:13:18]MH_I2C_Read... [09:13:18]Read from MH i2c: F0 09 00 08 1E 00 B2 B2 1C 67 86 57 24 65 6B [09:13:18]GetLastDocTimeStamp 1729933962 [09:13:18]current date 1729934002 [09:13:18]FM_GetShiftState [09:13:18]SAM_PROTO_GetShiftState [09:13:18]wFMCommunicate request_size=4 [09:13:18]MH_SAM_APDU [09:13:18]CAPDU: 80 13 01 00 [09:13:18]Write to MH i2c: E2 08 00 09 1E 80 13 01 00 00 00 00 00 A4 [09:13:18]Write i2c OK [09:13:18]MH_I2C_Read... [09:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:18]Read from MH i2c: E2 [09:13:18]MH_I2C_Read... [09:13:18]Read from MH i2c: E2 0E 00 [09:13:18]MH_I2C_Read... [09:13:18]Read from MH i2c: E2 0E 00 09 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BF [09:13:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:13:18]wFMCommunicate OK [09:13:18]SAM_PROTO_GetShiftState done [09:13:18]FM_GetShiftState done [09:13:18]opened in 1729902166 [09:13:18]opened+sec_in_day 1729988566 [09:13:18]quantity*price = 50041 [09:13:18]sum+1 = 50042 [09:13: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 43 26.10.2024 09:13 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75051 ФПД: 171077548421298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091322&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75051&fm=171077548421298&tin=02508201610067®Number=0000000000091691&sum=50000 [09:13:19]StoreToDocumentArchive [09:13:19]shift 512 fd 75051 [09:13:19]save to /storage/0512/doc_00075051 [09:13:19]save last doc name /storage/0512/doc_00075051 to /storage/kkm_last_doc_name [09:13:19]save OK [09:13:19]Clear old archive folders... [09:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:19]tlvbuf is B6EBA1B0 [09:13:19]SAM_PROTO_ClearQueue [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 09 00 00 [09:13:19]Write to MH i2c: E2 08 00 16 1E 80 09 00 00 00 00 00 00 A6 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]SAM_PROTO_ClearQueue done [09:13:19]KKMCreateOFDPacket [09:13:19]OFDProtocolAddRootSTLVToBuf [09:13:19]FM_MakeSignedData [09:13:19]FM_MakeSignedData [09:13:19]SAM_PROTO_SignData [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 01 02 [09:13:19]Write to MH i2c: E2 08 00 17 1E 80 0D 01 02 00 00 00 00 AE [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=255 [09:13:19]MH_SAM_APDU [09:13: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 2B 00 00 00 F4 03 04 00 B2 B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 25 01 00 35 04 06 00 9B [09:13:19]Write to MH i2c: E2 02 01 18 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 2B 00 00 00 F4 03 04 00 B2 B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 25 01 00 35 04 06 00 9B 00 00 43 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=10 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 02 02 05 98 18 80 B0 B2 [09:13:19]Write to MH i2c: E2 0D 00 19 1E 80 0D 02 02 05 00 98 18 80 B0 B2 00 00 4D [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [09:13:19]RAPDU: 90 00 [09:13:19]wFMCommunicate OK [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 0D 03 02 [09:13:19]Write to MH i2c: E2 08 00 1A 1E 80 0D 03 02 00 00 00 00 B3 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0B 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 0B 00 1A 1E 00 A6 6B 89 68 45 5F E0 66 90 00 A0 [09:13:19]RAPDU: A6 6B 89 68 45 5F E0 66 90 00 [09:13:19]wFMCommunicate OK [09:13:19]SAM_PROTO_SignData done [09:13:19]FM_MakeSignedData done [09:13:19]CreateOFDProtocolMessage [09:13:19]wFMCommunicate request_size=4 [09:13:19]MH_SAM_APDU [09:13:19]CAPDU: 80 11 00 00 [09:13:19]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:19]Read from MH i2c: E2 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 17 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0B [09:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:13:19]wFMCommunicate OK [09:13:19]CreateOFDProtocolMessage done [09:13:19]OFDSenderStorePacket 75051 [09:13:19]StoreOFDPacket docnum=75051 [09:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 2E 07 01 2C 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 25 01 00 35 04 06 00 9B 98 18 80 B0 B2 A6 6B 89 68 45 5F E0 66 [09:13:19]CheckFolder [09:13:19]dirname=/storage/ofd_packets [09:13:19]CheckFolder done [09:13:19]ProducePacketName [09:13:19]name=ofd_packets/00075051 [09:13:19]NVStorageSaveData ofd_packets/00075051 [09:13:19]File name is /storage/ofd_packets/00075051 [09:13:19]Write 301 bytes [09:13:19]NVStorageSaveData done [09:13:19]OFDSenderStorePacket done [09:13:19]KKMCreateOFDPacket done [09:13:19]NVStorageSaveData kkm_last_timestamp [09:13:19]File name is /storage/kkm_last_timestamp [09:13:19]Write 4 bytes [09:13:19]NVStorageSaveData done [09:13:19]ExternCall_PrintAddStr [09:13:19]wPrintStart [09:13:19]Write to MH i2c: 01 00 00 1C 1E 3A [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 1C 1E 00 00 00 00 00 FF 0F 4F [09:13:19]RasterBufferAndPrint [09:13:19]line Счет N : (1)191023 [09:13:19]line ИНН: 02508201610067 [09:13:19]line Контрольно-Кассовый Чек [09:13:19]line ПРОДАЖА [09:13:19]line ТРК (МРК, ГНК) : 21 [09:13:19]line Товар: 2710124130 [09:13:19]line Аи-92-К-5 [09:13:19]line 7.480 * 66.90 [09:13:19]line = 500.41 [09:13:19]line НДС 12% НСП 1% [09:13:19]line > о реализуемом товаре [09:13:19]line ОКРУГЛЕНИЕ: -0.41 [09:13:19]line ИТОГО: 500.00 [09:13:19]line Внесено: 500.00 [09:13:19]line СДАЧА: 0.00 [09:13:19]line НСП 1% : 4.43 [09:13:19]line НДС 12% : 53.14 [09:13:19]line Наличными: 500.00 [09:13:19]line Безнал.: 0.00 [09:13:19]line Место: АЗС № 142 "Партнер Нефть" [09:13:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:13:19]line СНО: Общий режим [09:13:19]line Чек 43 26.10.2024 09:13 [09:13:19]line Смена: 512 ФФД: 1.0 [09:13:19]line ЗНМ: 0300000089 [09:13:19]line РНМ: 0000000000091691 [09:13:19]line Версия ККМ: 001 [09:13:19]line ФМ: 0000000000871795 [09:13:19]line ФД: 75051 [09:13:19]line ФПД: 171077548421298 [09:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091322&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75051&fm=171077548421298&tin=02508201610067®Number=0000000000091691&sum=50000 [09:13:20]written 0, free lines is 4095 [09:13:20]OFD Sender: Processing packet 75051 [packets to send 13, broken 12] [09:13:20]ProducePacketName [09:13:20]name=ofd_packets/00075051 [09:13:20]OFD Sender: To server: pG, [09:13:20]CommunicateWithHost lk.salyk.kg:30040 [09:13:20]ConnectInit lk.salyk.kg [09:13:20]Connected sock=9 [09:13:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 2E 07 01 2C 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 25 01 00 35 04 06 00 9B 98 18 80 B0 B2 A6 6B 89 68 45 5F E0 66 [09:13:20]Write to MH i2c: 01 00 00 47 1E 65 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 47 1E 00 00 00 00 00 A1 0C 19 [09:13:20]RasterBufferAndPrint [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]line [09:13:20]written 0, free lines is 3240 [09:13:20]MH_Cut [09:13:20]Write to MH i2c: D1 01 00 4E 1E 01 3E [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 01 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: D1 01 00 4E 1E 00 3D [09:13:20]Write to MH i2c: 01 00 00 4F 1E 6D [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 07 80 47 00 66 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2B 25 01 00 F4 03 04 00 2E 5A 1C 67 B6 04 01 00 00 B7 FE 2F A8 47 2C 8A 30 [09:13:20]CommunicateWithHost err = 0 [09:13:20]CheckOFDResponse [09:13:20]1017 (14) - 77093643461234 [09:13:20]1041 (16) - 0000000000871795 [09:13:20]1040 (4) - 75051 [09:13:20]1012 (4) - 26.10.2024 02:55 [09:13:20]1206 (1) - 0 [09:13:20]OFD Sender: Remove packet 75051 [09:13:20]ProducePacketName [09:13:20]name=ofd_packets/00075051 [09:13:20]NVStorageDeleteData [09:13:21]OFD Sender: No OFD packet to send [09:13:21]*** Cut start [09:13:21]*** Partial cut [09:13:21]*** CUTSNS_PIN = 1 [09:13:21]*** CUTSNS_PIN = 0 [09:13:21]*** Brake cut motor [09:13:22]Read from MH i2c: 01 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: 01 07 00 [09:13:22]MH_I2C_Read... [09:13:22]*** Stop cut motor [09:13:22]Read from MH i2c: 01 07 00 4F 1E 00 00 00 00 00 FF 0F 82 [09:13:22]process_action close_receipt done [09:13:22]requested_data is exist [09:13:22]produce_requested_data [09:13:22]requested_item fm.sn is exist - process it [09:13:22]wFMCommunicate request_size=4 [09:13:22]MH_SAM_APDU [09:13:22]CAPDU: 80 11 00 00 [09:13:22]Write to MH i2c: E2 08 00 50 1E 80 11 00 00 00 00 00 00 E8 [09:13:22]*** Cut end [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 17 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 17 00 50 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [09:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:13:22]wFMCommunicate OK [09:13:22]requested_item fd.num is exist - process it [09:13:22]SAM_PROTO_GetFieldsCounters [09:13:22]wFMCommunicate request_size=4 [09:13:22]MH_SAM_APDU [09:13:22]CAPDU: 80 13 00 00 [09:13:22]Write to MH i2c: E2 08 00 51 1E 80 13 00 00 00 00 00 00 EB [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 62 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 62 00 51 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2B 25 01 00 0E 04 04 00 00 02 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 E6 [09:13:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2B 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:22]wFMCommunicate OK [09:13:22]SAM_PROTO_GetFieldsCounters done [09:13:22]requested_item shift.num is exist - process it [09:13:22]requested_item shift.opened is exist - process it [09:13:22]req_shift_opened [09:13:22]FM_GetShiftState [09:13:22]SAM_PROTO_GetShiftState [09:13:22]wFMCommunicate request_size=4 [09:13:22]MH_SAM_APDU [09:13:22]CAPDU: 80 13 01 00 [09:13:22]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [09:13:22]Write i2c OK [09:13:22]MH_I2C_Read... [09:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:22]Read from MH i2c: E2 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 [09:13:22]MH_I2C_Read... [09:13:22]Read from MH i2c: E2 0E 00 52 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 08 [09:13:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:13:22]wFMCommunicate OK [09:13:22]SAM_PROTO_GetShiftState done [09:13:22]FM_GetShiftState done [09:13:22]req_shift_opened done [09:13:22]requested_item shift.open_date is exist - process it [09:13:22]req_shift_open_date [09:13:22]req_shift_open_date done [09:13:22]produce_requested_data done [09:13:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75051,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:13:22]process_action_free close_receipt [09:13:22]json_value_free [09:13:22]json_value_free done [09:13:22]process_json_proto returns [09:13:22]Send response to host [09:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75051,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:13:22]free response buf [09:13:22]execute_script done [09:13:22]execute_script returns [09:13:22]free content buf [09:13:22]Sock 8.Close socket [09:13:22]Sock 8.Thread stoped [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:31]accept exits with 10 [09:14:31]New connection [09:14:31]New thread 3066924388 created [09:14:31]Thread 3066781028 joined [09:14:31]Waiting for new connection... [09:14:31] Sock 10.Parse request [09:14:31]Sock 10.Check first char [09:14:31]Sock 10.First char is OK [09:14:31]request: POST /json_proto HTTP/1.0 [09:14:31]Method: POST [09:14:31]URL: /json_proto [09:14:31]Method is POST - this is cgi request [09:14:31]url: /json_proto [09:14:31]query_string will be loaded in cgi processing [09:14:31]execute_cgi json_proto POST (null) [09:14:31]execute_cgi path=json_proto method=POST [09:14:31]POST find Content-Length [09:14:31]Host: 172.17.39.131:8080 [09:14:31]Content-Length: 677 [09:14:31]Content-Type: application/json [09:14:31] [09:14:31]POST finish read [09:14:31]Found Content-Length = 677 [09:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:14:31]execute_script... [09:14: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)191024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:14:31]POST & json_proto [09:14:31]process_json_proto [09:14:31]json parsed OK: [09:14:31]protocol is kg_v1.0 [09:14:31]action value=close_receipt [09:14:31]process_action close_receipt [09:14:31]cmd_close_receipt [09:14:31]MH_GetDate [09:14:31]Write to MH i2c: F0 00 00 53 1E 60 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: F0 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: F0 09 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: F0 09 00 53 1E 00 FB B2 1C 67 86 57 24 65 FF [09:14:31]GetLastDocTimeStamp 1729934002 [09:14:31]current date 1729934075 [09:14:31]FM_GetShiftState [09:14:31]SAM_PROTO_GetShiftState [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 13 01 00 [09:14:31]Write to MH i2c: E2 08 00 54 1E 80 13 01 00 00 00 00 00 EF [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0E 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0E 00 54 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0A [09:14:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_GetShiftState done [09:14:31]FM_GetShiftState done [09:14:31]opened in 1729902166 [09:14:31]opened+sec_in_day 1729988566 [09:14:31]quantity*price = 50041 [09:14:31]sum+1 = 50042 [09:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 44 26.10.2024 09:14 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75052 ФПД: 216989055828769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75052&fm=216989055828769&tin=02508201610067®Number=0000000000091691&sum=50000 [09:14:32]StoreToDocumentArchive [09:14:32]shift 512 fd 75052 [09:14:32]save to /storage/0512/doc_00075052 [09:14:32]save last doc name /storage/0512/doc_00075052 to /storage/kkm_last_doc_name [09:14:32]save OK [09:14:32]Clear old archive folders... [09:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:32]tlvbuf is B6EBA1F0 [09:14:32]SAM_PROTO_ClearQueue [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 09 00 00 [09:14:32]Write to MH i2c: E2 08 00 61 1E 80 09 00 00 00 00 00 00 F1 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 03 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 03 00 61 1E 00 90 00 F3 [09:14:32]RAPDU: 90 00 [09:14:32]wFMCommunicate OK [09:14:32]SAM_PROTO_ClearQueue done [09:14:32]KKMCreateOFDPacket [09:14:32]OFDProtocolAddRootSTLVToBuf [09:14:32]FM_MakeSignedData [09:14:32]FM_MakeSignedData [09:14:32]SAM_PROTO_SignData [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 0D 01 02 [09:14:32]Write to MH i2c: E2 08 00 62 1E 80 0D 01 02 00 00 00 00 F9 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 03 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [09:14:32]RAPDU: 90 00 [09:14:32]wFMCommunicate OK [09:14:32]wFMCommunicate request_size=255 [09:14:32]MH_SAM_APDU [09:14: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 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 2C 00 00 00 F4 03 04 00 FB B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2C 25 01 00 35 04 06 00 C5 [09:14:32]Write to MH i2c: E2 02 01 63 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 2C 00 00 00 F4 03 04 00 FB B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2C 25 01 00 35 04 06 00 C5 00 00 03 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 03 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 03 00 63 1E 00 90 00 F5 [09:14:33]RAPDU: 90 00 [09:14:33]wFMCommunicate OK [09:14:33]wFMCommunicate request_size=10 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 0D 02 02 05 59 B3 97 C3 21 [09:14:33]Write to MH i2c: E2 0D 00 64 1E 80 0D 02 02 05 00 59 B3 97 C3 21 00 00 8D [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 03 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [09:14:33]RAPDU: 90 00 [09:14:33]wFMCommunicate OK [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 0D 03 02 [09:14:33]Write to MH i2c: E2 08 00 65 1E 80 0D 03 02 00 00 00 00 FE [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0B 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0B 00 65 1E 00 44 DF 8F 11 4A A2 1C BF 90 00 89 [09:14:33]RAPDU: 44 DF 8F 11 4A A2 1C BF 90 00 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_SignData done [09:14:33]FM_MakeSignedData done [09:14:33]CreateOFDProtocolMessage [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 11 00 00 [09:14:33]Write to MH i2c: E2 08 00 66 1E 80 11 00 00 00 00 00 00 FE [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 66 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 56 [09:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:14:33]wFMCommunicate OK [09:14:33]CreateOFDProtocolMessage done [09:14:33]OFDSenderStorePacket 75052 [09:14:33]StoreOFDPacket docnum=75052 [09:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 0A 07 01 2D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 FB B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2C 25 01 00 35 04 06 00 C5 59 B3 97 C3 21 44 DF 8F 11 4A A2 1C BF [09:14:33]CheckFolder [09:14:33]dirname=/storage/ofd_packets [09:14:33]CheckFolder done [09:14:33]ProducePacketName [09:14:33]name=ofd_packets/00075052 [09:14:33]NVStorageSaveData ofd_packets/00075052 [09:14:33]File name is /storage/ofd_packets/00075052 [09:14:33]Write 301 bytes [09:14:33]NVStorageSaveData done [09:14:33]OFDSenderStorePacket done [09:14:33]KKMCreateOFDPacket done [09:14:33]NVStorageSaveData kkm_last_timestamp [09:14:33]File name is /storage/kkm_last_timestamp [09:14:33]Write 4 bytes [09:14:33]NVStorageSaveData done [09:14:33]ExternCall_PrintAddStr [09:14:33]wPrintStart [09:14:33]Write to MH i2c: 01 00 00 67 1E 85 [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 07 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 07 00 67 1E 00 00 00 00 00 FF 0F 9A [09:14:33]RasterBufferAndPrint [09:14:33]line Счет N : (1)191024 [09:14:33]line ИНН: 02508201610067 [09:14:33]line Контрольно-Кассовый Чек [09:14:33]line ПРОДАЖА [09:14:33]line ТРК (МРК, ГНК) : 21 [09:14:33]line Товар: 2710124130 [09:14:33]line Аи-92-К-5 [09:14:33]line 7.480 * 66.90 [09:14:33]line = 500.41 [09:14:33]line НДС 12% НСП 1% [09:14:33]line > о реализуемом товаре [09:14:33]line ОКРУГЛЕНИЕ: -0.41 [09:14:33]line ИТОГО: 500.00 [09:14:33]line Внесено: 500.00 [09:14:33]line СДАЧА: 0.00 [09:14:33]line НСП 1% : 4.43 [09:14:33]line НДС 12% : 53.14 [09:14:33]line Наличными: 500.00 [09:14:33]line Безнал.: 0.00 [09:14:33]line Место: АЗС № 142 "Партнер Нефть" [09:14:33]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:14:33]line СНО: Общий режим [09:14:33]line Чек 44 26.10.2024 09:14 [09:14:33]line Смена: 512 ФФД: 1.0 [09:14:33]line ЗНМ: 0300000089 [09:14:33]line РНМ: 0000000000091691 [09:14:33]line Версия ККМ: 001 [09:14:33]line ФМ: 0000000000871795 [09:14:33]line ФД: 75052 [09:14:33]line ФПД: 216989055828769 [09:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75052&fm=216989055828769&tin=02508201610067®Number=0000000000091691&sum=50000 [09:14:33]written 0, free lines is 4095 [09:14:33]OFD Sender: Processing packet 75052 [packets to send 13, broken 12] [09:14:33]ProducePacketName [09:14:33]name=ofd_packets/00075052 [09:14:33]OFD Sender: To server: pG, [09:14:33]CommunicateWithHost lk.salyk.kg:30040 [09:14:33]ConnectInit lk.salyk.kg [09:14:33]Connected sock=9 [09:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 0A 07 01 2D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 FB B2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2C 25 01 00 35 04 06 00 C5 59 B3 97 C3 21 44 DF 8F 11 4A A2 1C BF [09:14:34]Write to MH i2c: 01 00 00 92 1E B0 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 07 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 07 00 92 1E 00 00 00 00 00 A4 0C 67 [09:14:34]RasterBufferAndPrint [09:14:34]line [09:14:34]line [09:14:34]line [09:14:34]line [09:14:34]line [09:14:34]written 0, free lines is 3243 [09:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7F 8A 47 00 C1 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2C 25 01 00 F4 03 04 00 78 5A 1C 67 B6 04 01 00 00 1A 26 33 74 D9 44 AA B2 [09:14:34]CommunicateWithHost err = 0 [09:14:34]CheckOFDResponse [09:14:34]1017 (14) - 77093643461234 [09:14:34]1041 (16) - 0000000000871795 [09:14:34]1040 (4) - 75052 [09:14:34]1012 (4) - 26.10.2024 02:56 [09:14:34]1206 (1) - 0 [09:14:34]OFD Sender: Remove packet 75052 [09:14:34]ProducePacketName [09:14:34]name=ofd_packets/00075052 [09:14:34]NVStorageDeleteData [09:14:34]MH_Cut [09:14:34]Write to MH i2c: D1 01 00 99 1E 01 89 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: D1 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: D1 01 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: D1 01 00 99 1E 00 88 [09:14:34]Write to MH i2c: 01 00 00 9A 1E B8 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]OFD Sender: No OFD packet to send [09:14:34]*** Cut start [09:14:34]*** Partial cut [09:14:34]*** CUTSNS_PIN = 1 [09:14:35]*** CUTSNS_PIN = 0 [09:14:35]*** Brake cut motor [09:14:35]Read from MH i2c: 01 [09:14:35]MH_I2C_Read... [09:14:35]*** Stop cut motor [09:14:35]Read from MH i2c: 01 07 00 [09:14:35]MH_I2C_Read... [09:14:35]*** Cut end [09:14:35]Read from MH i2c: 01 07 00 9A 1E 00 00 00 00 00 FF 0F CD [09:14:35]process_action close_receipt done [09:14:35]requested_data is exist [09:14:35]produce_requested_data [09:14:35]requested_item fm.sn is exist - process it [09:14:35]wFMCommunicate request_size=4 [09:14:35]MH_SAM_APDU [09:14:35]CAPDU: 80 11 00 00 [09:14:35]Write to MH i2c: E2 08 00 9B 1E 80 11 00 00 00 00 00 00 33 [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:35]Read from MH i2c: E2 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 17 00 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 17 00 9B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [09:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:14:35]wFMCommunicate OK [09:14:35]requested_item fd.num is exist - process it [09:14:35]SAM_PROTO_GetFieldsCounters [09:14:35]wFMCommunicate request_size=4 [09:14:35]MH_SAM_APDU [09:14:35]CAPDU: 80 13 00 00 [09:14:35]Write to MH i2c: E2 08 00 9C 1E 80 13 00 00 00 00 00 00 36 [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:35]Read from MH i2c: E2 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 62 00 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 62 00 9C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2C 25 01 00 0E 04 04 00 00 02 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 35 [09:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2C 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:35]wFMCommunicate OK [09:14:35]SAM_PROTO_GetFieldsCounters done [09:14:35]requested_item shift.num is exist - process it [09:14:35]requested_item shift.opened is exist - process it [09:14:35]req_shift_opened [09:14:35]FM_GetShiftState [09:14:35]SAM_PROTO_GetShiftState [09:14:35]wFMCommunicate request_size=4 [09:14:35]MH_SAM_APDU [09:14:35]CAPDU: 80 13 01 00 [09:14:35]Write to MH i2c: E2 08 00 9D 1E 80 13 01 00 00 00 00 00 38 [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:35]Read from MH i2c: E2 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 0E 00 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: E2 0E 00 9D 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 53 [09:14:35]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:14:35]wFMCommunicate OK [09:14:35]SAM_PROTO_GetShiftState done [09:14:35]FM_GetShiftState done [09:14:35]req_shift_opened done [09:14:35]requested_item shift.open_date is exist - process it [09:14:35]req_shift_open_date [09:14:35]req_shift_open_date done [09:14:35]produce_requested_data done [09:14:35]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75052,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:14:35]process_action_free close_receipt [09:14:35]json_value_free [09:14:35]json_value_free done [09:14:35]process_json_proto returns [09:14:35]Send response to host [09:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75052,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:14:35]free response buf [09:14:35]execute_script done [09:14:35]execute_script returns [09:14:35]free content buf [09:14:35]Sock 10.Close socket [09:14:35]Sock 10.Thread stoped [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:22]accept exits with 8 [09:17:22]New connection [09:17:22]New thread 3066781028 created [09:17:22]Thread 3066924388 joined [09:17:22]Waiting for new connection... [09:17:22] Sock 8.Parse request [09:17:22]Sock 8.Check first char [09:17:22]Sock 8.First char is OK [09:17:22]request: POST /json_proto HTTP/1.0 [09:17:22]Method: POST [09:17:22]URL: /json_proto [09:17:22]Method is POST - this is cgi request [09:17:22]url: /json_proto [09:17:22]query_string will be loaded in cgi processing [09:17:22]execute_cgi json_proto POST (null) [09:17:22]execute_cgi path=json_proto method=POST [09:17:22]POST find Content-Length [09:17:22]Host: 172.17.39.131:8080 [09:17:22]Content-Length: 682 [09:17:22]Content-Type: application/json [09:17:22] [09:17:22]POST finish read [09:17:22]Found Content-Length = 682 [09:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:17:22]execute_script... [09:17: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)191025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:17:22]POST & json_proto [09:17:22]process_json_proto [09:17:22]json parsed OK: [09:17:22]protocol is kg_v1.0 [09:17:22]action value=close_receipt [09:17:22]process_action close_receipt [09:17:22]cmd_close_receipt [09:17:22]MH_GetDate [09:17:22]Write to MH i2c: F0 00 00 9E 1E AB [09:17:22]Write i2c OK [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: F0 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: F0 09 00 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: F0 09 00 9E 1E 00 A6 B3 1C 67 86 57 24 65 F6 [09:17:22]GetLastDocTimeStamp 1729934075 [09:17:22]current date 1729934246 [09:17:22]FM_GetShiftState [09:17:22]SAM_PROTO_GetShiftState [09:17:22]wFMCommunicate request_size=4 [09:17:22]MH_SAM_APDU [09:17:22]CAPDU: 80 13 01 00 [09:17:22]Write to MH i2c: E2 08 00 9F 1E 80 13 01 00 00 00 00 00 3A [09:17:22]Write i2c OK [09:17:22]MH_I2C_Read... [09:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:22]Read from MH i2c: E2 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: E2 0E 00 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: E2 0E 00 9F 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 55 [09:17:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:17:22]wFMCommunicate OK [09:17:22]SAM_PROTO_GetShiftState done [09:17:22]FM_GetShiftState done [09:17:22]opened in 1729902166 [09:17:22]opened+sec_in_day 1729988566 [09:17:22]quantity*price = 100015 [09:17:22]sum+1 = 100017 [09:17: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 45 26.10.2024 09:17 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75053 ФПД: 185600506560342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091727&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75053&fm=185600506560342&tin=02508201610067®Number=0000000000091691&sum=100000 [09:17:24]StoreToDocumentArchive [09:17:24]shift 512 fd 75053 [09:17:24]save to /storage/0512/doc_00075053 [09:17:24]save last doc name /storage/0512/doc_00075053 to /storage/kkm_last_doc_name [09:17:24]save OK [09:17:24]Clear old archive folders... [09:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:24]tlvbuf is B6EA19E0 [09:17:24]SAM_PROTO_ClearQueue [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 09 00 00 [09:17:24]Write to MH i2c: E2 08 00 AC 1E 80 09 00 00 00 00 00 00 3C [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:24]Read from MH i2c: E2 03 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [09:17:24]RAPDU: 90 00 [09:17:24]wFMCommunicate OK [09:17:24]SAM_PROTO_ClearQueue done [09:17:24]KKMCreateOFDPacket [09:17:24]OFDProtocolAddRootSTLVToBuf [09:17:24]FM_MakeSignedData [09:17:24]FM_MakeSignedData [09:17:24]SAM_PROTO_SignData [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 0D 01 02 [09:17:24]Write to MH i2c: E2 08 00 AD 1E 80 0D 01 02 00 00 00 00 44 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [09:17:24]RAPDU: 90 00 [09:17:24]wFMCommunicate OK [09:17:24]wFMCommunicate request_size=255 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A7 B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2D 25 01 00 35 04 06 00 A8 [09:17:24]Write to MH i2c: E2 02 01 AE 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 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 2D 00 00 00 F4 03 04 00 A7 B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2D 25 01 00 35 04 06 00 A8 00 00 DA [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [09:17:24]RAPDU: 90 00 [09:17:24]wFMCommunicate OK [09:17:24]wFMCommunicate request_size=10 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 0D 02 02 05 CD 7C 43 7F 56 [09:17:24]Write to MH i2c: E2 0D 00 AF 1E 80 0D 02 02 05 00 CD 7C 43 7F 56 00 00 B2 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [09:17:24]RAPDU: 90 00 [09:17:24]wFMCommunicate OK [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 0D 03 02 [09:17:24]Write to MH i2c: E2 08 00 B0 1E 80 0D 03 02 00 00 00 00 49 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 0B 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 0B 00 B0 1E 00 75 33 B1 84 DF 97 2A FB 90 00 C2 [09:17:24]RAPDU: 75 33 B1 84 DF 97 2A FB 90 00 [09:17:24]wFMCommunicate OK [09:17:24]SAM_PROTO_SignData done [09:17:24]FM_MakeSignedData done [09:17:24]CreateOFDProtocolMessage [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 11 00 00 [09:17:24]Write to MH i2c: E2 08 00 B1 1E 80 11 00 00 00 00 00 00 49 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 17 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 17 00 B1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A1 [09:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:17:24]wFMCommunicate OK [09:17:24]CreateOFDProtocolMessage done [09:17:24]OFDSenderStorePacket 75053 [09:17:24]StoreOFDPacket docnum=75053 [09:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9F 72 07 01 72 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 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 2D 00 00 00 F4 03 04 00 A7 B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2D 25 01 00 35 04 06 00 A8 CD 7C 43 7F 56 75 33 B1 84 DF 97 2A FB [09:17:24]CheckFolder [09:17:24]dirname=/storage/ofd_packets [09:17:24]CheckFolder done [09:17:24]ProducePacketName [09:17:24]name=ofd_packets/00075053 [09:17:24]NVStorageSaveData ofd_packets/00075053 [09:17:24]File name is /storage/ofd_packets/00075053 [09:17:24]Write 301 bytes [09:17:24]NVStorageSaveData done [09:17:24]OFDSenderStorePacket done [09:17:24]KKMCreateOFDPacket done [09:17:24]NVStorageSaveData kkm_last_timestamp [09:17:24]File name is /storage/kkm_last_timestamp [09:17:24]Write 4 bytes [09:17:24]NVStorageSaveData done [09:17:24]ExternCall_PrintAddStr [09:17:24]wPrintStart [09:17:24]Write to MH i2c: 01 00 00 B2 1E D0 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: 01 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: 01 07 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 FF 0F E5 [09:17:24]RasterBufferAndPrint [09:17:24]line Счет N : (1)191025 [09:17:24]line ИНН: 02508201610067 [09:17:24]line Контрольно-Кассовый Чек [09:17:24]line ПРОДАЖА [09:17:24]line ТРК (МРК, ГНК) : 21 [09:17:24]line Товар: 2710124130 [09:17:24]line Аи-92-К-5 [09:17:24]line 14.950 * 66.90 [09:17:24]line = 1000.16 [09:17:24]line НДС 12% НСП 1% [09:17:24]line > о реализуемом товаре [09:17:24]line ОКРУГЛЕНИЕ: -0.16 [09:17:24]line ИТОГО: 1000.00 [09:17:24]line Внесено: 1000.00 [09:17:24]line СДАЧА: 0.00 [09:17:24]line НСП 1% : 8.85 [09:17:24]line НДС 12% : 106.21 [09:17:24]line Наличными: 1000.00 [09:17:24]line Безнал.: 0.00 [09:17:24]line Место: АЗС № 142 "Партнер Нефть" [09:17:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:17:24]line СНО: Общий режим [09:17:24]line Чек 45 26.10.2024 09:17 [09:17:24]line Смена: 512 ФФД: 1.0 [09:17:24]line ЗНМ: 0300000089 [09:17:24]line РНМ: 0000000000091691 [09:17:24]line Версия ККМ: 001 [09:17:24]line ФМ: 0000000000871795 [09:17:24]line ФД: 75053 [09:17:24]line ФПД: 185600506560342 [09:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091727&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75053&fm=185600506560342&tin=02508201610067®Number=0000000000091691&sum=100000 [09:17:24]OFD Sender: Processing packet 75053 [packets to send 13, broken 12] [09:17:24]ProducePacketName [09:17:24]name=ofd_packets/00075053 [09:17:24]OFD Sender: To server: pG, [09:17:24]CommunicateWithHost lk.salyk.kg:30040 [09:17:24]ConnectInit lk.salyk.kg [09:17:24]written 0, free lines is 4095 [09:17:25]Connected sock=10 [09:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9F 72 07 01 72 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 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 2D 00 00 00 F4 03 04 00 A7 B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2D 25 01 00 35 04 06 00 A8 CD 7C 43 7F 56 75 33 B1 84 DF 97 2A FB [09:17:25]Write to MH i2c: 01 00 00 DD 1E FB [09:17:25]Write i2c OK [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: 01 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: 01 07 00 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 A2 0C B0 [09:17:25]RasterBufferAndPrint [09:17:25]line [09:17:25]line [09:17:25]line [09:17:25]line [09:17:25]line [09:17:25]written 0, free lines is 3239 [09:17:25]MH_Cut [09:17:25]Write to MH i2c: D1 01 00 E4 1E 01 D4 [09:17:25]Write i2c OK [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: D1 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: D1 01 00 [09:17:25]MH_I2C_Read... [09:17:25]Read from MH i2c: D1 01 00 E4 1E 00 D3 [09:17:25]Write to MH i2c: 01 00 00 E5 1E 03 [09:17:25]Write i2c OK [09:17:25]MH_I2C_Read... [09:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 62 46 47 00 6F 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 38 37 31 37 39 35 10 04 04 00 2D 25 01 00 F4 03 04 00 23 5B 1C 67 B6 04 01 00 00 77 81 E8 C7 E0 E8 5A 38 [09:17:25]CommunicateWithHost err = 0 [09:17:25]CheckOFDResponse [09:17:25]1017 (14) - 77093643461234 [09:17:25]1041 (16) - 0000000000871795 [09:17:25]1040 (4) - 75053 [09:17:25]1012 (4) - 26.10.2024 02:59 [09:17:25]1206 (1) - 0 [09:17:25]OFD Sender: Remove packet 75053 [09:17:25]ProducePacketName [09:17:25]name=ofd_packets/00075053 [09:17:25]NVStorageDeleteData [09:17:26]OFD Sender: No OFD packet to send [09:17:26]*** Cut start [09:17:26]*** Partial cut [09:17:26]*** CUTSNS_PIN = 1 [09:17:26]*** CUTSNS_PIN = 0 [09:17:26]*** Brake cut motor [09:17:26]Read from MH i2c: 01 [09:17:26]MH_I2C_Read... [09:17:26]*** Stop cut motor [09:17:26]*** Cut end [09:17:26]Read from MH i2c: 01 07 00 [09:17:26]MH_I2C_Read... [09:17:26]Read from MH i2c: 01 07 00 E5 1E 00 00 00 00 00 FF 0F 18 [09:17:26]process_action close_receipt done [09:17:26]requested_data is exist [09:17:26]produce_requested_data [09:17:26]requested_item fm.sn is exist - process it [09:17:26]wFMCommunicate request_size=4 [09:17:26]MH_SAM_APDU [09:17:26]CAPDU: 80 11 00 00 [09:17:26]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [09:17:26]Write i2c OK [09:17:26]MH_I2C_Read... [09:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:27]Read from MH i2c: E2 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 17 00 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [09:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:17:27]wFMCommunicate OK [09:17:27]requested_item fd.num is exist - process it [09:17:27]SAM_PROTO_GetFieldsCounters [09:17:27]wFMCommunicate request_size=4 [09:17:27]MH_SAM_APDU [09:17:27]CAPDU: 80 13 00 00 [09:17:27]Write to MH i2c: E2 08 00 E7 1E 80 13 00 00 00 00 00 00 81 [09:17:27]Write i2c OK [09:17:27]MH_I2C_Read... [09:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:27]Read from MH i2c: E2 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 62 00 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 62 00 E7 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2D 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [09:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2D 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:27]wFMCommunicate OK [09:17:27]SAM_PROTO_GetFieldsCounters done [09:17:27]requested_item shift.num is exist - process it [09:17:27]requested_item shift.opened is exist - process it [09:17:27]req_shift_opened [09:17:27]FM_GetShiftState [09:17:27]SAM_PROTO_GetShiftState [09:17:27]wFMCommunicate request_size=4 [09:17:27]MH_SAM_APDU [09:17:27]CAPDU: 80 13 01 00 [09:17:27]Write to MH i2c: E2 08 00 E8 1E 80 13 01 00 00 00 00 00 83 [09:17:27]Write i2c OK [09:17:27]MH_I2C_Read... [09:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:27]Read from MH i2c: E2 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 0E 00 [09:17:27]MH_I2C_Read... [09:17:27]Read from MH i2c: E2 0E 00 E8 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9E [09:17:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:17:27]wFMCommunicate OK [09:17:27]SAM_PROTO_GetShiftState done [09:17:27]FM_GetShiftState done [09:17:27]req_shift_opened done [09:17:27]requested_item shift.open_date is exist - process it [09:17:27]req_shift_open_date [09:17:27]req_shift_open_date done [09:17:27]produce_requested_data done [09:17:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75053,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:17:27]process_action_free close_receipt [09:17:27]json_value_free [09:17:27]json_value_free done [09:17:27]process_json_proto returns [09:17:27]Send response to host [09:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75053,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:17:27]free response buf [09:17:27]execute_script done [09:17:27]execute_script returns [09:17:27]free content buf [09:17:27]Sock 8.Close socket [09:17:27]Sock 8.Thread stoped [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:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:48]accept exits with 9 [09:18:48]New connection [09:18:48]New thread 3066924388 created [09:18:48]Thread 3066781028 joined [09:18:48]Waiting for new connection... [09:18:48] Sock 9.Parse request [09:18:48]Sock 9.Check first char [09:18:48]Sock 9.First char is OK [09:18:48]request: POST /json_proto HTTP/1.0 [09:18:48]Method: POST [09:18:48]URL: /json_proto [09:18:48]Method is POST - this is cgi request [09:18:48]url: /json_proto [09:18:48]query_string will be loaded in cgi processing [09:18:48]execute_cgi json_proto POST (null) [09:18:48]execute_cgi path=json_proto method=POST [09:18:48]POST find Content-Length [09:18:48]Host: 172.17.39.131:8080 [09:18:48]Content-Length: 679 [09:18:48]Content-Type: application/json [09:18:48] [09:18:48]POST finish read [09:18:48]Found Content-Length = 679 [09:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:18:48]execute_script... [09:18: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)191026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:18:48]POST & json_proto [09:18:48]process_json_proto [09:18:48]json parsed OK: [09:18:48]protocol is kg_v1.0 [09:18:48]action value=close_receipt [09:18:48]process_action close_receipt [09:18:48]cmd_close_receipt [09:18:48]MH_GetDate [09:18:48]Write to MH i2c: F0 00 00 E9 1E F6 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 09 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 09 00 E9 1E 00 FC B3 1C 67 86 57 24 65 97 [09:18:48]GetLastDocTimeStamp 1729934247 [09:18:48]current date 1729934332 [09:18:48]FM_GetShiftState [09:18:48]SAM_PROTO_GetShiftState [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 13 01 00 [09:18:48]Write to MH i2c: E2 08 00 EA 1E 80 13 01 00 00 00 00 00 85 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 EA 1E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A0 [09:18:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:18:48]wFMCommunicate OK [09:18:48]SAM_PROTO_GetShiftState done [09:18:48]FM_GetShiftState done [09:18:48]opened in 1729902166 [09:18:48]opened+sec_in_day 1729988566 [09:18:48]quantity*price = 100050 [09:18:48]sum+1 = 100052 [09:18: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 46 26.10.2024 09:18 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75054 ФПД: 36735874697610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091852&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75054&fm=36735874697610&tin=02508201610067®Number=0000000000091691&sum=100000 [09:18:49]StoreToDocumentArchive [09:18:49]shift 512 fd 75054 [09:18:49]save to /storage/0512/doc_00075054 [09:18:49]save last doc name /storage/0512/doc_00075054 to /storage/kkm_last_doc_name [09:18:49]save OK [09:18:49]Clear old archive folders... [09:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:49]tlvbuf is B6EA1110 [09:18:49]SAM_PROTO_ClearQueue [09:18:49]wFMCommunicate request_size=4 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 09 00 00 [09:18:49]Write to MH i2c: E2 08 00 F7 1E 80 09 00 00 00 00 00 00 87 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 F7 1E 00 90 00 89 [09:18:49]RAPDU: 90 00 [09:18:49]wFMCommunicate OK [09:18:49]SAM_PROTO_ClearQueue done [09:18:49]KKMCreateOFDPacket [09:18:49]OFDProtocolAddRootSTLVToBuf [09:18:49]FM_MakeSignedData [09:18:49]FM_MakeSignedData [09:18:49]SAM_PROTO_SignData [09:18:49]wFMCommunicate request_size=4 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 0D 01 02 [09:18:49]Write to MH i2c: E2 08 00 F8 1E 80 0D 01 02 00 00 00 00 8F [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 F8 1E 00 90 00 8A [09:18:49]RAPDU: 90 00 [09:18:49]wFMCommunicate OK [09:18:49]wFMCommunicate request_size=255 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 2E 00 00 00 F4 03 04 00 FC B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2E 25 01 00 35 04 06 00 21 69 3C C3 [09:18:49]Write to MH i2c: E2 02 01 F9 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 34 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 2E 00 00 00 F4 03 04 00 FC B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2E 25 01 00 35 04 06 00 21 69 3C C3 00 00 58 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 F9 1E 00 90 00 8B [09:18:49]RAPDU: 90 00 [09:18:49]wFMCommunicate OK [09:18:49]wFMCommunicate request_size=7 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 0D 02 02 02 09 8A [09:18:49]Write to MH i2c: E2 0A 00 FA 1E 80 0D 02 02 02 00 09 8A 00 00 29 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [09:18:49]RAPDU: 90 00 [09:18:49]wFMCommunicate OK [09:18:49]wFMCommunicate request_size=4 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 0D 03 02 [09:18:49]Write to MH i2c: E2 08 00 FB 1E 80 0D 03 02 00 00 00 00 94 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0B 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0B 00 FB 1E 00 BF DB 00 EC C3 7A 68 8B 90 00 4B [09:18:50]RAPDU: BF DB 00 EC C3 7A 68 8B 90 00 [09:18:50]wFMCommunicate OK [09:18:50]SAM_PROTO_SignData done [09:18:50]FM_MakeSignedData done [09:18:50]CreateOFDProtocolMessage [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 11 00 00 [09:18:50]Write to MH i2c: E2 08 00 FC 1E 80 11 00 00 00 00 00 00 94 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 17 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 17 00 FC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EC [09:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:18:50]wFMCommunicate OK [09:18:50]CreateOFDProtocolMessage done [09:18:50]OFDSenderStorePacket 75054 [09:18:50]StoreOFDPacket docnum=75054 [09:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E6 52 04 01 1F 53 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 34 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 2E 00 00 00 F4 03 04 00 FC B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2E 25 01 00 35 04 06 00 21 69 3C C3 09 8A BF DB 00 EC C3 7A 68 8B [09:18:50]CheckFolder [09:18:50]dirname=/storage/ofd_packets [09:18:50]CheckFolder done [09:18:50]ProducePacketName [09:18:50]name=ofd_packets/00075054 [09:18:50]NVStorageSaveData ofd_packets/00075054 [09:18:50]File name is /storage/ofd_packets/00075054 [09:18:50]Write 298 bytes [09:18:50]NVStorageSaveData done [09:18:50]OFDSenderStorePacket done [09:18:50]KKMCreateOFDPacket done [09:18:50]NVStorageSaveData kkm_last_timestamp [09:18:50]File name is /storage/kkm_last_timestamp [09:18:50]Write 4 bytes [09:18:50]NVStorageSaveData done [09:18:50]ExternCall_PrintAddStr [09:18:50]wPrintStart [09:18:50]Write to MH i2c: 01 00 00 FD 1E 1B [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 FD 1E 00 00 00 00 00 FF 0F 30 [09:18:50]RasterBufferAndPrint [09:18:50]line Счет N : (1)191026 [09:18:50]line ИНН: 02508201610067 [09:18:50]line Контрольно-Кассовый Чек [09:18:50]line ПРОДАЖА [09:18:50]line ТРК (МРК, ГНК) : 31 [09:18:50]line Товар: 2710194210 [09:18:50]line ДТ-К-4 [09:18:50]line 13.130 * 76.20 [09:18:50]line = 1000.51 [09:18:50]line НДС 12% НСП 1% [09:18:50]line > о реализуемом товаре [09:18:50]line ОКРУГЛЕНИЕ: -0.51 [09:18:50]line ИТОГО: 1000.00 [09:18:50]line Внесено: 1000.00 [09:18:50]line СДАЧА: 0.00 [09:18:50]line НСП 1% : 8.85 [09:18:50]line НДС 12% : 106.25 [09:18:50]line Наличными: 1000.00 [09:18:50]line Безнал.: 0.00 [09:18:50]line Место: АЗС № 142 "Партнер Нефть" [09:18:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:18:50]line СНО: Общий режим [09:18:50]line Чек 46 26.10.2024 09:18 [09:18:50]line Смена: 512 ФФД: 1.0 [09:18:50]line ЗНМ: 0300000089 [09:18:50]line РНМ: 0000000000091691 [09:18:50]line Версия ККМ: 001 [09:18:50]line ФМ: 0000000000871795 [09:18:50]line ФД: 75054 [09:18:50]line ФПД: 36735874697610 [09:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091852&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75054&fm=36735874697610&tin=02508201610067®Number=0000000000091691&sum=100000 [09:18:50]OFD Sender: Processing packet 75054 [packets to send 13, broken 12] [09:18:50]ProducePacketName [09:18:50]name=ofd_packets/00075054 [09:18:50]OFD Sender: To server: pG, [09:18:50]CommunicateWithHost lk.salyk.kg:30040 [09:18:50]ConnectInit lk.salyk.kg [09:18:50]written 0, free lines is 4095 [09:18:50]Connected sock=10 [09:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E6 52 04 01 1F 53 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 34 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 2E 00 00 00 F4 03 04 00 FC B3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2E 25 01 00 35 04 06 00 21 69 3C C3 09 8A BF DB 00 EC C3 7A 68 8B [09:18:50]Write to MH i2c: 01 00 00 28 1F 47 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 A3 0C FD [09:18:50]RasterBufferAndPrint [09:18:50]line [09:18:50]line [09:18:50]line [09:18:50]line [09:18:50]line [09:18:50]written 0, free lines is 3242 [09:18:50]MH_Cut [09:18:50]Write to MH i2c: D1 01 00 2F 1F 01 20 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: D1 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: D1 01 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: D1 01 00 2F 1F 00 1F [09:18:50]Write to MH i2c: 01 00 00 30 1F 4F [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 06 14 47 00 08 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2E 25 01 00 F4 03 04 00 79 5B 1C 67 B6 04 01 00 00 7C 36 32 04 AF 9B 0C 67 [09:18:50]CommunicateWithHost err = 0 [09:18:50]CheckOFDResponse [09:18:50]1017 (14) - 77093643461234 [09:18:50]1041 (16) - 0000000000871795 [09:18:50]1040 (4) - 75054 [09:18:50]1012 (4) - 26.10.2024 03:01 [09:18:50]1206 (1) - 0 [09:18:50]OFD Sender: Remove packet 75054 [09:18:50]ProducePacketName [09:18:50]name=ofd_packets/00075054 [09:18:50]NVStorageDeleteData [09:18:51]OFD Sender: No OFD packet to send [09:18:51]*** Cut start [09:18:51]*** Partial cut [09:18:51]*** CUTSNS_PIN = 1 [09:18:51]*** CUTSNS_PIN = 0 [09:18:52]*** Brake cut motor [09:18:52]Read from MH i2c: 01 [09:18:52]MH_I2C_Read... [09:18:52]*** Stop cut motor [09:18:52]*** Cut end [09:18:52]Read from MH i2c: 01 07 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FF 0F 64 [09:18:52]process_action close_receipt done [09:18:52]requested_data is exist [09:18:52]produce_requested_data [09:18:52]requested_item fm.sn is exist - process it [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 11 00 00 [09:18:52]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 17 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 22 [09:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:18:52]wFMCommunicate OK [09:18:52]requested_item fd.num is exist - process it [09:18:52]SAM_PROTO_GetFieldsCounters [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 13 00 00 [09:18:52]Write to MH i2c: E2 08 00 32 1F 80 13 00 00 00 00 00 00 CD [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 62 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 62 00 32 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2E 25 01 00 0E 04 04 00 00 02 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 D4 [09:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2E 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:52]wFMCommunicate OK [09:18:52]SAM_PROTO_GetFieldsCounters done [09:18:52]requested_item shift.num is exist - process it [09:18:52]requested_item shift.opened is exist - process it [09:18:52]req_shift_opened [09:18:52]FM_GetShiftState [09:18:52]SAM_PROTO_GetShiftState [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 13 01 00 [09:18:52]Write to MH i2c: E2 08 00 33 1F 80 13 01 00 00 00 00 00 CF [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 33 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EA [09:18:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:18:52]wFMCommunicate OK [09:18:52]SAM_PROTO_GetShiftState done [09:18:52]FM_GetShiftState done [09:18:52]req_shift_opened done [09:18:52]requested_item shift.open_date is exist - process it [09:18:52]req_shift_open_date [09:18:52]req_shift_open_date done [09:18:52]produce_requested_data done [09:18:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75054,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:18:52]process_action_free close_receipt [09:18:52]json_value_free [09:18:52]json_value_free done [09:18:52]process_json_proto returns [09:18:52]Send response to host [09:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75054,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:18:52]free response buf [09:18:52]execute_script done [09:18:52]execute_script returns [09:18:52]free content buf [09:18:52]Sock 9.Close socket [09:18:52]Sock 9.Thread stoped [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]accept exits with 8 [09:20:01]New connection [09:20:01]New thread 3066781028 created [09:20:01]Thread 3066924388 joined [09:20:01]Waiting for new connection... [09:20:01] Sock 8.Parse request [09:20:01]Sock 8.Check first char [09:20:01]Sock 8.First char is OK [09:20:01]request: POST /json_proto HTTP/1.0 [09:20:01]Method: POST [09:20:01]URL: /json_proto [09:20:01]Method is POST - this is cgi request [09:20:01]url: /json_proto [09:20:01]query_string will be loaded in cgi processing [09:20:01]execute_cgi json_proto POST (null) [09:20:01]execute_cgi path=json_proto method=POST [09:20:01]POST find Content-Length [09:20:01]Host: 172.17.39.131:8080 [09:20:01]Content-Length: 677 [09:20:01]Content-Type: application/json [09:20:01] [09:20:01]POST finish read [09:20:01]Found Content-Length = 677 [09:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:01]execute_script... [09:20: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)191027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:01]POST & json_proto [09:20:01]process_json_proto [09:20:01]json parsed OK: [09:20:01]protocol is kg_v1.0 [09:20:01]action value=close_receipt [09:20:01]process_action close_receipt [09:20:01]cmd_close_receipt [09:20:01]MH_GetDate [09:20:01]Write to MH i2c: F0 00 00 34 1F 42 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 09 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 09 00 34 1F 00 45 B4 1C 67 86 57 24 65 2D [09:20:01]GetLastDocTimeStamp 1729934332 [09:20:01]current date 1729934405 [09:20:01]FM_GetShiftState [09:20:01]SAM_PROTO_GetShiftState [09:20:01]wFMCommunicate request_size=4 [09:20:01]MH_SAM_APDU [09:20:01]CAPDU: 80 13 01 00 [09:20:01]Write to MH i2c: E2 08 00 35 1F 80 13 01 00 00 00 00 00 D1 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:01]Read from MH i2c: E2 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 35 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EC [09:20:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:20:01]wFMCommunicate OK [09:20:01]SAM_PROTO_GetShiftState done [09:20:01]FM_GetShiftState done [09:20:01]opened in 1729902166 [09:20:01]opened+sec_in_day 1729988566 [09:20:01]quantity*price = 50041 [09:20:01]sum+1 = 50042 [09:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 47 26.10.2024 09:20 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75055 ФПД: 131111676088936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092005&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75055&fm=131111676088936&tin=02508201610067®Number=0000000000091691&sum=50000 [09:20:02]StoreToDocumentArchive [09:20:02]shift 512 fd 75055 [09:20:02]save to /storage/0512/doc_00075055 [09:20:02]save last doc name /storage/0512/doc_00075055 to /storage/kkm_last_doc_name [09:20:02]save OK [09:20:02]Clear old archive folders... [09:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:02]tlvbuf is B6EBAC10 [09:20:02]SAM_PROTO_ClearQueue [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 09 00 00 [09:20:02]Write to MH i2c: E2 08 00 42 1F 80 09 00 00 00 00 00 00 D3 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]SAM_PROTO_ClearQueue done [09:20:02]KKMCreateOFDPacket [09:20:02]OFDProtocolAddRootSTLVToBuf [09:20:02]FM_MakeSignedData [09:20:02]FM_MakeSignedData [09:20:02]SAM_PROTO_SignData [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 0D 01 02 [09:20:02]Write to MH i2c: E2 08 00 43 1F 80 0D 01 02 00 00 00 00 DB [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]wFMCommunicate request_size=255 [09:20:02]MH_SAM_APDU [09:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 45 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2F 25 01 00 35 04 06 00 77 [09:20:02]Write to MH i2c: E2 02 01 44 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 45 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2F 25 01 00 35 04 06 00 77 00 00 E9 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]wFMCommunicate request_size=10 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 0D 02 02 05 3E D0 E1 12 68 [09:20:02]Write to MH i2c: E2 0D 00 45 1F 80 0D 02 02 05 00 3E D0 E1 12 68 00 00 51 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 0D 03 02 [09:20:02]Write to MH i2c: E2 08 00 46 1F 80 0D 03 02 00 00 00 00 E0 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 0B 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 0B 00 46 1F 00 E5 63 C7 D1 BB E1 01 57 90 00 B5 [09:20:02]RAPDU: E5 63 C7 D1 BB E1 01 57 90 00 [09:20:02]wFMCommunicate OK [09:20:02]SAM_PROTO_SignData done [09:20:02]FM_MakeSignedData done [09:20:02]CreateOFDProtocolMessage [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 11 00 00 [09:20:02]Write to MH i2c: E2 08 00 47 1F 80 11 00 00 00 00 00 00 E0 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 17 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 17 00 47 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 38 [09:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:20:02]wFMCommunicate OK [09:20:02]CreateOFDProtocolMessage done [09:20:02]OFDSenderStorePacket 75055 [09:20:02]StoreOFDPacket docnum=75055 [09:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E6 25 07 01 92 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 45 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2F 25 01 00 35 04 06 00 77 3E D0 E1 12 68 E5 63 C7 D1 BB E1 01 57 [09:20:02]CheckFolder [09:20:02]dirname=/storage/ofd_packets [09:20:02]CheckFolder done [09:20:02]ProducePacketName [09:20:02]name=ofd_packets/00075055 [09:20:02]NVStorageSaveData ofd_packets/00075055 [09:20:02]File name is /storage/ofd_packets/00075055 [09:20:02]Write 301 bytes [09:20:02]NVStorageSaveData done [09:20:02]OFDSenderStorePacket done [09:20:02]KKMCreateOFDPacket done [09:20:02]NVStorageSaveData kkm_last_timestamp [09:20:02]File name is /storage/kkm_last_timestamp [09:20:02]Write 4 bytes [09:20:02]NVStorageSaveData done [09:20:02]ExternCall_PrintAddStr [09:20:02]wPrintStart [09:20:02]Write to MH i2c: 01 00 00 48 1F 67 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 FF 0F 7C [09:20:02]RasterBufferAndPrint [09:20:02]line Счет N : (1)191027 [09:20:02]line ИНН: 02508201610067 [09:20:02]line Контрольно-Кассовый Чек [09:20:02]line ПРОДАЖА [09:20:02]line ТРК (МРК, ГНК) : 21 [09:20:02]line Товар: 2710124130 [09:20:02]line Аи-92-К-5 [09:20:02]line 7.480 * 66.90 [09:20:02]line = 500.41 [09:20:02]line НДС 12% НСП 1% [09:20:02]line > о реализуемом товаре [09:20:02]line ОКРУГЛЕНИЕ: -0.41 [09:20:02]line ИТОГО: 500.00 [09:20:02]line Внесено: 500.00 [09:20:02]line СДАЧА: 0.00 [09:20:02]line НСП 1% : 4.43 [09:20:02]line НДС 12% : 53.14 [09:20:02]line Наличными: 500.00 [09:20:02]line Безнал.: 0.00 [09:20:02]line Место: АЗС № 142 "Партнер Нефть" [09:20:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:20:02]line СНО: Общий режим [09:20:02]line Чек 47 26.10.2024 09:20 [09:20:02]line Смена: 512 ФФД: 1.0 [09:20:02]line ЗНМ: 0300000089 [09:20:02]line РНМ: 0000000000091691 [09:20:02]line Версия ККМ: 001 [09:20:02]line ФМ: 0000000000871795 [09:20:02]line ФД: 75055 [09:20:02]line ФПД: 131111676088936 [09:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092005&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75055&fm=131111676088936&tin=02508201610067®Number=0000000000091691&sum=50000 [09:20:03]written 0, free lines is 4095 [09:20:03]OFD Sender: Processing packet 75055 [packets to send 13, broken 12] [09:20:03]ProducePacketName [09:20:03]name=ofd_packets/00075055 [09:20:03]OFD Sender: To server: pG, [09:20:03]CommunicateWithHost lk.salyk.kg:30040 [09:20:03]ConnectInit lk.salyk.kg [09:20:03]Connected sock=10 [09:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E6 25 07 01 92 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 45 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 2F 25 01 00 35 04 06 00 77 3E D0 E1 12 68 E5 63 C7 D1 BB E1 01 57 [09:20:03]Write to MH i2c: 01 00 00 73 1F 92 [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 07 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 07 00 73 1F 00 00 00 00 00 A6 0C 4B [09:20:03]RasterBufferAndPrint [09:20:03]line [09:20:03]line [09:20:03]line [09:20:03]line [09:20:03]line [09:20:03]written 0, free lines is 3245 [09:20:03]MH_Cut [09:20:03]Write to MH i2c: D1 01 00 7A 1F 01 6B [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: D1 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: D1 01 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: D1 01 00 7A 1F 00 6A [09:20:03]Write to MH i2c: 01 00 00 7B 1F 9A [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 33 C5 47 00 3B 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 38 37 31 37 39 35 10 04 04 00 2F 25 01 00 F4 03 04 00 C2 5B 1C 67 B6 04 01 00 00 A0 32 97 FD 2D 37 70 50 [09:20:03]CommunicateWithHost err = 0 [09:20:03]CheckOFDResponse [09:20:03]1017 (14) - 77093643461234 [09:20:03]1041 (16) - 0000000000871795 [09:20:03]1040 (4) - 75055 [09:20:03]1012 (4) - 26.10.2024 03:02 [09:20:03]1206 (1) - 0 [09:20:03]OFD Sender: Remove packet 75055 [09:20:03]ProducePacketName [09:20:03]name=ofd_packets/00075055 [09:20:03]NVStorageDeleteData [09:20:04]OFD Sender: No OFD packet to send [09:20:04]*** Cut start [09:20:04]*** Partial cut [09:20:04]*** CUTSNS_PIN = 1 [09:20:04]*** CUTSNS_PIN = 0 [09:20:04]*** Brake cut motor [09:20:05]Read from MH i2c: 01 [09:20:05]MH_I2C_Read... [09:20:05]*** Stop cut motor [09:20:05]*** Cut end [09:20:05]Read from MH i2c: 01 07 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: 01 07 00 7B 1F 00 00 00 00 00 FF 0F AF [09:20:05]process_action close_receipt done [09:20:05]requested_data is exist [09:20:05]produce_requested_data [09:20:05]requested_item fm.sn is exist - process it [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 11 00 00 [09:20:05]Write to MH i2c: E2 08 00 7C 1F 80 11 00 00 00 00 00 00 15 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 7C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6D [09:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:20:05]wFMCommunicate OK [09:20:05]requested_item fd.num is exist - process it [09:20:05]SAM_PROTO_GetFieldsCounters [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 00 00 [09:20:05]Write to MH i2c: E2 08 00 7D 1F 80 13 00 00 00 00 00 00 18 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 7D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2F 25 01 00 0E 04 04 00 00 02 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 23 [09:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 2F 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetFieldsCounters done [09:20:05]requested_item shift.num is exist - process it [09:20:05]requested_item shift.opened is exist - process it [09:20:05]req_shift_opened [09:20:05]FM_GetShiftState [09:20:05]SAM_PROTO_GetShiftState [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 01 00 [09:20:05]Write to MH i2c: E2 08 00 7E 1F 80 13 01 00 00 00 00 00 1A [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 7E 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 35 [09:20:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetShiftState done [09:20:05]FM_GetShiftState done [09:20:05]req_shift_opened done [09:20:05]requested_item shift.open_date is exist - process it [09:20:05]req_shift_open_date [09:20:05]req_shift_open_date done [09:20:05]produce_requested_data done [09:20:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75055,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:20:05]process_action_free close_receipt [09:20:05]json_value_free [09:20:05]json_value_free done [09:20:05]process_json_proto returns [09:20:05]Send response to host [09:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75055,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:20:05]free response buf [09:20:05]execute_script done [09:20:05]execute_script returns [09:20:05]free content buf [09:20:05]Sock 8.Close socket [09:20:05]Sock 8.Thread stoped [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:36]accept exits with 9 [09:20:36]New connection [09:20:36]New thread 3066924388 created [09:20:36]Thread 3066781028 joined [09:20:36]Waiting for new connection... [09:20:36] Sock 9.Parse request [09:20:36]Sock 9.Check first char [09:20:36]Sock 9.First char is OK [09:20:36]request: POST /json_proto HTTP/1.0 [09:20:36]Method: POST [09:20:36]URL: /json_proto [09:20:36]Method is POST - this is cgi request [09:20:36]url: /json_proto [09:20:36]query_string will be loaded in cgi processing [09:20:36]execute_cgi json_proto POST (null) [09:20:36]execute_cgi path=json_proto method=POST [09:20:36]POST find Content-Length [09:20:36]Host: 172.17.39.131:8080 [09:20:36]Content-Length: 679 [09:20:36]Content-Type: application/json [09:20:36] [09:20:36]POST finish read [09:20:36]Found Content-Length = 679 [09:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:20:36]execute_script... [09:20: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)191028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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:20:36]POST & json_proto [09:20:36]process_json_proto [09:20:36]json parsed OK: [09:20:36]protocol is kg_v1.0 [09:20:36]action value=close_receipt [09:20:36]process_action close_receipt [09:20:36]cmd_close_receipt [09:20:36]MH_GetDate [09:20:36]Write to MH i2c: F0 00 00 7F 1F 8D [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: F0 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: F0 09 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: F0 09 00 7F 1F 00 69 B4 1C 67 86 57 24 65 9C [09:20:36]GetLastDocTimeStamp 1729934405 [09:20:36]current date 1729934441 [09:20:36]FM_GetShiftState [09:20:36]SAM_PROTO_GetShiftState [09:20:36]wFMCommunicate request_size=4 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 13 01 00 [09:20:36]Write to MH i2c: E2 08 00 80 1F 80 13 01 00 00 00 00 00 1C [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:37]Read from MH i2c: E2 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 80 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 37 [09:20:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:20:37]wFMCommunicate OK [09:20:37]SAM_PROTO_GetShiftState done [09:20:37]FM_GetShiftState done [09:20:37]opened in 1729902166 [09:20:37]opened+sec_in_day 1729988566 [09:20:37]quantity*price = 100050 [09:20:37]sum+1 = 100052 [09:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 48 26.10.2024 09:20 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75056 ФПД: 191569937046294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092041&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75056&fm=191569937046294&tin=02508201610067®Number=0000000000091691&sum=100000 [09:20:38]StoreToDocumentArchive [09:20:38]shift 512 fd 75056 [09:20:38]save to /storage/0512/doc_00075056 [09:20:38]save last doc name /storage/0512/doc_00075056 to /storage/kkm_last_doc_name [09:20:38]save OK [09:20:38]Clear old archive folders... [09:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:38]tlvbuf is B6EBA0E0 [09:20:38]SAM_PROTO_ClearQueue [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 09 00 00 [09:20:38]Write to MH i2c: E2 08 00 8D 1F 80 09 00 00 00 00 00 00 1E [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_ClearQueue done [09:20:38]KKMCreateOFDPacket [09:20:38]OFDProtocolAddRootSTLVToBuf [09:20:38]FM_MakeSignedData [09:20:38]FM_MakeSignedData [09:20:38]SAM_PROTO_SignData [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 01 02 [09:20:38]Write to MH i2c: E2 08 00 8E 1F 80 0D 01 02 00 00 00 00 26 [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]wFMCommunicate request_size=255 [09:20:38]MH_SAM_APDU [09: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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 69 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 30 25 01 00 35 04 06 00 AE 3B 5A 0C [09:20:38]Write to MH i2c: E2 02 01 8F 1F 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 69 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 30 25 01 00 35 04 06 00 AE 3B 5A 0C 00 00 27 [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]wFMCommunicate request_size=7 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 02 02 02 1B 16 [09:20:38]Write to MH i2c: E2 0A 00 90 1F 80 0D 02 02 02 00 1B 16 00 00 5E [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 90 1F 00 90 00 23 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 03 02 [09:20:38]Write to MH i2c: E2 08 00 91 1F 80 0D 03 02 00 00 00 00 2B [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0B 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0B 00 91 1F 00 09 FD 0A 42 EE 08 5B F6 90 00 C5 [09:20:38]RAPDU: 09 FD 0A 42 EE 08 5B F6 90 00 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_SignData done [09:20:38]FM_MakeSignedData done [09:20:38]CreateOFDProtocolMessage [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 11 00 00 [09:20:38]Write to MH i2c: E2 08 00 92 1F 80 11 00 00 00 00 00 00 2B [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 17 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 17 00 92 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [09:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:20:38]wFMCommunicate OK [09:20:38]CreateOFDProtocolMessage done [09:20:38]OFDSenderStorePacket 75056 [09:20:38]StoreOFDPacket docnum=75056 [09:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 35 77 04 01 1E 57 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 69 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 30 25 01 00 35 04 06 00 AE 3B 5A 0C 1B 16 09 FD 0A 42 EE 08 5B F6 [09:20:38]CheckFolder [09:20:38]dirname=/storage/ofd_packets [09:20:38]CheckFolder done [09:20:38]ProducePacketName [09:20:38]name=ofd_packets/00075056 [09:20:38]NVStorageSaveData ofd_packets/00075056 [09:20:38]File name is /storage/ofd_packets/00075056 [09:20:38]Write 298 bytes [09:20:38]NVStorageSaveData done [09:20:38]OFDSenderStorePacket done [09:20:38]KKMCreateOFDPacket done [09:20:38]NVStorageSaveData kkm_last_timestamp [09:20:38]File name is /storage/kkm_last_timestamp [09:20:38]Write 4 bytes [09:20:38]NVStorageSaveData done [09:20:38]ExternCall_PrintAddStr [09:20:38]wPrintStart [09:20:38]Write to MH i2c: 01 00 00 93 1F B2 [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: 01 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: 01 07 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: 01 07 00 93 1F 00 00 00 00 00 FF 0F C7 [09:20:38]RasterBufferAndPrint [09:20:38]line Счет N : (1)191028 [09:20:38]line ИНН: 02508201610067 [09:20:38]line Контрольно-Кассовый Чек [09:20:38]line ПРОДАЖА [09:20:38]line ТРК (МРК, ГНК) : 31 [09:20:38]line Товар: 2710194210 [09:20:38]line ДТ-К-4 [09:20:38]line 13.130 * 76.20 [09:20:38]line = 1000.51 [09:20:38]line НДС 12% НСП 1% [09:20:38]line > о реализуемом товаре [09:20:38]line ОКРУГЛЕНИЕ: -0.51 [09:20:38]line ИТОГО: 1000.00 [09:20:38]line Внесено: 1000.00 [09:20:38]line СДАЧА: 0.00 [09:20:38]line НСП 1% : 8.85 [09:20:38]line НДС 12% : 106.25 [09:20:38]line Наличными: 1000.00 [09:20:38]line Безнал.: 0.00 [09:20:38]line Место: АЗС № 142 "Партнер Нефть" [09:20:38]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:20:38]line СНО: Общий режим [09:20:38]line Чек 48 26.10.2024 09:20 [09:20:38]line Смена: 512 ФФД: 1.0 [09:20:38]line ЗНМ: 0300000089 [09:20:38]line РНМ: 0000000000091691 [09:20:38]line Версия ККМ: 001 [09:20:38]line ФМ: 0000000000871795 [09:20:38]line ФД: 75056 [09:20:38]line ФПД: 191569937046294 [09:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092041&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75056&fm=191569937046294&tin=02508201610067®Number=0000000000091691&sum=100000 [09:20:38]OFD Sender: Processing packet 75056 [packets to send 13, broken 12] [09:20:38]ProducePacketName [09:20:38]name=ofd_packets/00075056 [09:20:38]OFD Sender: To server: pG, [09:20:38]CommunicateWithHost lk.salyk.kg:30040 [09:20:38]ConnectInit lk.salyk.kg [09:20:39]written 0, free lines is 4095 [09:20:39]Connected sock=10 [09:20:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 35 77 04 01 1E 57 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 69 B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 30 25 01 00 35 04 06 00 AE 3B 5A 0C 1B 16 09 FD 0A 42 EE 08 5B F6 [09:20:39]Write to MH i2c: 01 00 00 BE 1F DD [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 BE 1F 00 00 00 00 00 AD 0C 9D [09:20:39]RasterBufferAndPrint [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]written 0, free lines is 3251 [09:20:39]MH_Cut [09:20:39]Write to MH i2c: D1 01 00 C5 1F 01 B6 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 01 C1 47 00 ED C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 30 25 01 00 F4 03 04 00 E5 5B 1C 67 B6 04 01 00 00 F6 70 52 B6 AC 9F 66 24 [09:20:39]CommunicateWithHost err = 0 [09:20:39]CheckOFDResponse [09:20:39]1017 (14) - 77093643461234 [09:20:39]1041 (16) - 0000000000871795 [09:20:39]1040 (4) - 75056 [09:20:39]1012 (4) - 26.10.2024 03:03 [09:20:39]1206 (1) - 0 [09:20:39]OFD Sender: Remove packet 75056 [09:20:39]ProducePacketName [09:20:39]name=ofd_packets/00075056 [09:20:39]NVStorageDeleteData [09:20:39]Read from MH i2c: D1 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: D1 01 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: D1 01 00 C5 1F 00 B5 [09:20:39]Write to MH i2c: 01 00 00 C6 1F E5 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:40]OFD Sender: No OFD packet to send [09:20:40]*** Cut start [09:20:40]*** Partial cut [09:20:40]*** CUTSNS_PIN = 1 [09:20:40]*** CUTSNS_PIN = 0 [09:20:40]*** Brake cut motor [09:20:40]Read from MH i2c: 01 [09:20:40]MH_I2C_Read... [09:20:40]*** Stop cut motor [09:20:40]*** Cut end [09:20:40]Read from MH i2c: 01 07 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 FF 0F FA [09:20:40]process_action close_receipt done [09:20:40]requested_data is exist [09:20:40]produce_requested_data [09:20:40]requested_item fm.sn is exist - process it [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 11 00 00 [09:20:40]Write to MH i2c: E2 08 00 C7 1F 80 11 00 00 00 00 00 00 60 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 C7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B8 [09:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:20:41]wFMCommunicate OK [09:20:41]requested_item fd.num is exist - process it [09:20:41]SAM_PROTO_GetFieldsCounters [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 13 00 00 [09:20:41]Write to MH i2c: E2 08 00 C8 1F 80 13 00 00 00 00 00 00 63 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 62 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 62 00 C8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 30 25 01 00 0E 04 04 00 00 02 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 72 [09:20:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 30 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_GetFieldsCounters done [09:20:41]requested_item shift.num is exist - process it [09:20:41]requested_item shift.opened is exist - process it [09:20:41]req_shift_opened [09:20:41]FM_GetShiftState [09:20:41]SAM_PROTO_GetShiftState [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 13 01 00 [09:20:41]Write to MH i2c: E2 08 00 C9 1F 80 13 01 00 00 00 00 00 65 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0E 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0E 00 C9 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 80 [09:20:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_GetShiftState done [09:20:41]FM_GetShiftState done [09:20:41]req_shift_opened done [09:20:41]requested_item shift.open_date is exist - process it [09:20:41]req_shift_open_date [09:20:41]req_shift_open_date done [09:20:41]produce_requested_data done [09:20:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75056,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:20:41]process_action_free close_receipt [09:20:41]json_value_free [09:20:41]json_value_free done [09:20:41]process_json_proto returns [09:20:41]Send response to host [09:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75056,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:20:41]free response buf [09:20:41]execute_script done [09:20:41]execute_script returns [09:20:41]free content buf [09:20:41]Sock 9.Close socket [09:20:41]Sock 9.Thread stoped [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:17]accept exits with 8 [09:22:17]New connection [09:22:17]New thread 3066781028 created [09:22:17]Thread 3066924388 joined [09:22:17]Waiting for new connection... [09:22:17] Sock 8.Parse request [09:22:17]Sock 8.Check first char [09:22:17]Sock 8.First char is OK [09:22:17]request: POST /json_proto HTTP/1.0 [09:22:17]Method: POST [09:22:17]URL: /json_proto [09:22:17]Method is POST - this is cgi request [09:22:17]url: /json_proto [09:22:17]query_string will be loaded in cgi processing [09:22:17]execute_cgi json_proto POST (null) [09:22:17]execute_cgi path=json_proto method=POST [09:22:17]POST find Content-Length [09:22:17]Host: 172.17.39.131:8080 [09:22:17]Content-Length: 677 [09:22:17]Content-Type: application/json [09:22:17] [09:22:17]POST finish read [09:22:17]Found Content-Length = 677 [09:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:17]execute_script... [09: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)191029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:17]POST & json_proto [09:22:17]process_json_proto [09:22:17]json parsed OK: [09:22:17]protocol is kg_v1.0 [09:22:17]action value=close_receipt [09:22:17]process_action close_receipt [09:22:17]cmd_close_receipt [09:22:17]MH_GetDate [09:22:17]Write to MH i2c: F0 00 00 CA 1F D8 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 09 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: F0 09 00 CA 1F 00 CE B4 1C 67 86 57 24 65 4C [09:22:17]GetLastDocTimeStamp 1729934441 [09:22:17]current date 1729934542 [09:22:17]FM_GetShiftState [09:22:17]SAM_PROTO_GetShiftState [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 13 01 00 [09:22:17]Write to MH i2c: E2 08 00 CB 1F 80 13 01 00 00 00 00 00 67 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:18]Read from MH i2c: E2 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: E2 0E 00 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: E2 0E 00 CB 1F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 82 [09:22:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:22:18]wFMCommunicate OK [09:22:18]SAM_PROTO_GetShiftState done [09:22:18]FM_GetShiftState done [09:22:18]opened in 1729902166 [09:22:18]opened+sec_in_day 1729988566 [09:22:18]quantity*price = 54055 [09:22:18]sum+1 = 54056 [09:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 49 26.10.2024 09:22 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75057 ФПД: 123996526789620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092222&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75057&fm=123996526789620&tin=02508201610067®Number=0000000000091691&sum=54000 [09:22:19]StoreToDocumentArchive [09:22:19]shift 512 fd 75057 [09:22:19]save to /storage/0512/doc_00075057 [09:22:19]save last doc name /storage/0512/doc_00075057 to /storage/kkm_last_doc_name [09:22:19]save OK [09:22:19]Clear old archive folders... [09:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:19]tlvbuf is 0087A3B0 [09:22:19]SAM_PROTO_ClearQueue [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 09 00 00 [09:22:19]Write to MH i2c: E2 08 00 D8 1F 80 09 00 00 00 00 00 00 69 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 D8 1F 00 90 00 6B [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_ClearQueue done [09:22:19]KKMCreateOFDPacket [09:22:19]OFDProtocolAddRootSTLVToBuf [09:22:19]FM_MakeSignedData [09:22:19]FM_MakeSignedData [09:22:19]SAM_PROTO_SignData [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 01 02 [09:22:19]Write to MH i2c: E2 08 00 D9 1F 80 0D 01 02 00 00 00 00 71 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 D9 1F 00 90 00 6C [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=255 [09:22:19]MH_SAM_APDU [09:22: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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 CE B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 31 25 01 00 35 04 06 00 70 [09:22:19]Write to MH i2c: E2 02 01 DA 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 CE B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 31 25 01 00 35 04 06 00 70 00 00 4A [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=10 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 02 02 05 C6 30 EE C3 F4 [09:22:19]Write to MH i2c: E2 0D 00 DB 1F 80 0D 02 02 05 00 C6 30 EE C3 F4 00 00 19 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [09:22:19]RAPDU: 90 00 [09:22:19]wFMCommunicate OK [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 0D 03 02 [09:22:19]Write to MH i2c: E2 08 00 DC 1F 80 0D 03 02 00 00 00 00 76 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0B 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0B 00 DC 1F 00 47 DF 30 76 04 1D AF 35 90 00 48 [09:22:19]RAPDU: 47 DF 30 76 04 1D AF 35 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_SignData done [09:22:19]FM_MakeSignedData done [09:22:19]CreateOFDProtocolMessage [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 11 00 00 [09:22:19]Write to MH i2c: E2 08 00 DD 1F 80 11 00 00 00 00 00 00 76 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 DD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [09:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:22:19]wFMCommunicate OK [09:22:19]CreateOFDProtocolMessage done [09:22:19]OFDSenderStorePacket 75057 [09:22:19]StoreOFDPacket docnum=75057 [09:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D5 E6 07 01 03 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 CE B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 31 25 01 00 35 04 06 00 70 C6 30 EE C3 F4 47 DF 30 76 04 1D AF 35 [09:22:19]CheckFolder [09:22:19]dirname=/storage/ofd_packets [09:22:19]CheckFolder done [09:22:19]ProducePacketName [09:22:19]name=ofd_packets/00075057 [09:22:19]NVStorageSaveData ofd_packets/00075057 [09:22:19]File name is /storage/ofd_packets/00075057 [09:22:19]Write 301 bytes [09:22:19]NVStorageSaveData done [09:22:19]OFDSenderStorePacket done [09:22:19]KKMCreateOFDPacket done [09:22:19]NVStorageSaveData kkm_last_timestamp [09:22:19]File name is /storage/kkm_last_timestamp [09:22:19]Write 4 bytes [09:22:19]NVStorageSaveData done [09:22:19]ExternCall_PrintAddStr [09:22:19]wPrintStart [09:22:19]Write to MH i2c: 01 00 00 DE 1F FD [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 FF 0F 12 [09:22:19]RasterBufferAndPrint [09:22:19]line Счет N : (1)191029 [09:22:19]line ИНН: 02508201610067 [09:22:19]line Контрольно-Кассовый Чек [09:22:19]line ПРОДАЖА [09:22:19]line ТРК (МРК, ГНК) : 21 [09:22:19]line Товар: 2710124130 [09:22:19]line Аи-92-К-5 [09:22:19]line 8.080 * 66.90 [09:22:19]line = 540.55 [09:22:19]line НДС 12% НСП 1% [09:22:19]line > о реализуемом товаре [09:22:19]line ОКРУГЛЕНИЕ: -0.55 [09:22:19]line ИТОГО: 540.00 [09:22:19]line Внесено: 540.00 [09:22:19]line СДАЧА: 0.00 [09:22:19]line НСП 1% : 4.78 [09:22:19]line НДС 12% : 57.40 [09:22:19]line Наличными: 540.00 [09:22:19]line Безнал.: 0.00 [09:22:19]line Место: АЗС № 142 "Партнер Нефть" [09:22:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:22:19]line СНО: Общий режим [09:22:19]line Чек 49 26.10.2024 09:22 [09:22:19]line Смена: 512 ФФД: 1.0 [09:22:19]line ЗНМ: 0300000089 [09:22:19]line РНМ: 0000000000091691 [09:22:19]line Версия ККМ: 001 [09:22:19]line ФМ: 0000000000871795 [09:22:19]line ФД: 75057 [09:22:19]line ФПД: 123996526789620 [09:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092222&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75057&fm=123996526789620&tin=02508201610067®Number=0000000000091691&sum=54000 [09:22:19]written 0, free lines is 4095 [09:22:19]OFD Sender: Processing packet 75057 [packets to send 13, broken 12] [09:22:19]ProducePacketName [09:22:19]name=ofd_packets/00075057 [09:22:19]OFD Sender: To server: pG, [09:22:19]CommunicateWithHost lk.salyk.kg:30040 [09:22:19]ConnectInit lk.salyk.kg [09:22:20]Connected sock=10 [09:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D5 E6 07 01 03 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 CE B4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 31 25 01 00 35 04 06 00 70 C6 30 EE C3 F4 47 DF 30 76 04 1D AF 35 [09:22:20]Write to MH i2c: 01 00 00 09 20 29 [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 07 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: 01 07 00 09 20 00 00 00 00 00 AD 0C E9 [09:22:20]RasterBufferAndPrint [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]line [09:22:20]written 0, free lines is 3252 [09:22:20]MH_Cut [09:22:20]Write to MH i2c: D1 01 00 10 20 01 02 [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 01 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: D1 01 00 10 20 00 01 [09:22:20]Write to MH i2c: 01 00 00 11 20 31 [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CE BF 47 00 A5 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 31 25 01 00 F4 03 04 00 4A 5C 1C 67 B6 04 01 00 00 83 E3 E7 8A 83 B0 24 57 [09:22:20]CommunicateWithHost err = 0 [09:22:20]CheckOFDResponse [09:22:20]1017 (14) - 77093643461234 [09:22:20]1041 (16) - 0000000000871795 [09:22:20]1040 (4) - 75057 [09:22:20]1012 (4) - 26.10.2024 03:04 [09:22:20]1206 (1) - 0 [09:22:20]OFD Sender: Remove packet 75057 [09:22:20]ProducePacketName [09:22:20]name=ofd_packets/00075057 [09:22:20]NVStorageDeleteData [09:22:20]OFD Sender: No OFD packet to send [09:22:21]*** Cut start [09:22:21]*** Partial cut [09:22:21]*** CUTSNS_PIN = 1 [09:22:21]*** CUTSNS_PIN = 0 [09:22:21]*** Brake cut motor [09:22:21]Read from MH i2c: 01 [09:22:21]MH_I2C_Read... [09:22:21]*** Stop cut motor [09:22:21]*** Cut end [09:22:21]Read from MH i2c: 01 07 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: 01 07 00 11 20 00 00 00 00 00 FF 0F 46 [09:22:21]process_action close_receipt done [09:22:21]requested_data is exist [09:22:21]produce_requested_data [09:22:21]requested_item fm.sn is exist - process it [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 11 00 00 [09:22:21]Write to MH i2c: E2 08 00 12 20 80 11 00 00 00 00 00 00 AC [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 17 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 17 00 12 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 04 [09:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:22:21]wFMCommunicate OK [09:22:21]requested_item fd.num is exist - process it [09:22:21]SAM_PROTO_GetFieldsCounters [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 00 00 [09:22:21]Write to MH i2c: E2 08 00 13 20 80 13 00 00 00 00 00 00 AF [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 62 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 62 00 13 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 31 25 01 00 0E 04 04 00 00 02 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 C2 [09:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 31 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:21]wFMCommunicate OK [09:22:21]SAM_PROTO_GetFieldsCounters done [09:22:21]requested_item shift.num is exist - process it [09:22:21]requested_item shift.opened is exist - process it [09:22:21]req_shift_opened [09:22:21]FM_GetShiftState [09:22:21]SAM_PROTO_GetShiftState [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 01 00 [09:22:21]Write to MH i2c: E2 08 00 14 20 80 13 01 00 00 00 00 00 B1 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 14 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CC [09:22:21]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:22:21]wFMCommunicate OK [09:22:21]SAM_PROTO_GetShiftState done [09:22:21]FM_GetShiftState done [09:22:21]req_shift_opened done [09:22:21]requested_item shift.open_date is exist - process it [09:22:21]req_shift_open_date [09:22:21]req_shift_open_date done [09:22:21]produce_requested_data done [09:22:21]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75057,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:22:21]process_action_free close_receipt [09:22:21]json_value_free [09:22:21]json_value_free done [09:22:21]process_json_proto returns [09:22:21]Send response to host [09:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75057,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:22:21]free response buf [09:22:21]execute_script done [09:22:21]execute_script returns [09:22:21]free content buf [09:22:21]Sock 8.Close socket [09:22:21]Sock 8.Thread stoped [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:09]accept exits with 9 [09:25:09]New connection [09:25:09]New thread 3066924388 created [09:25:09]Thread 3066781028 joined [09:25:09]Waiting for new connection... [09:25:09] Sock 9.Parse request [09:25:09]Sock 9.Check first char [09:25:09]Sock 9.First char is OK [09:25:09]request: POST /json_proto HTTP/1.0 [09:25:09]Method: POST [09:25:09]URL: /json_proto [09:25:09]Method is POST - this is cgi request [09:25:09]url: /json_proto [09:25:09]query_string will be loaded in cgi processing [09:25:09]execute_cgi json_proto POST (null) [09:25:09]execute_cgi path=json_proto method=POST [09:25:09]POST find Content-Length [09:25:09]Host: 172.17.39.131:8080 [09:25:09]Content-Length: 677 [09:25:09]Content-Type: application/json [09:25:09] [09:25:09]POST finish read [09:25:09]Found Content-Length = 677 [09:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:09]execute_script... [09:25: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)191030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:09]POST & json_proto [09:25:09]process_json_proto [09:25:09]json parsed OK: [09:25:09]protocol is kg_v1.0 [09:25:09]action value=close_receipt [09:25:09]process_action close_receipt [09:25:09]cmd_close_receipt [09:25:09]MH_GetDate [09:25:09]Write to MH i2c: F0 00 00 15 20 24 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: F0 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: F0 09 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: F0 09 00 15 20 00 79 B5 1C 67 86 57 24 65 44 [09:25:09]GetLastDocTimeStamp 1729934542 [09:25:09]current date 1729934713 [09:25:09]FM_GetShiftState [09:25:09]SAM_PROTO_GetShiftState [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 13 01 00 [09:25:09]Write to MH i2c: E2 08 00 16 20 80 13 01 00 00 00 00 00 B3 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:09]Read from MH i2c: E2 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 0E 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 0E 00 16 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CE [09:25:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:25:09]wFMCommunicate OK [09:25:09]SAM_PROTO_GetShiftState done [09:25:09]FM_GetShiftState done [09:25:09]opened in 1729902166 [09:25:09]opened+sec_in_day 1729988566 [09:25:09]quantity*price = 20003 [09:25:09]sum+1 = 20004 [09:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 50 26.10.2024 09:25 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75058 ФПД: 233235547788901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092513&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75058&fm=233235547788901&tin=02508201610067®Number=0000000000091691&sum=20000 [09:25:10]StoreToDocumentArchive [09:25:10]shift 512 fd 75058 [09:25:10]save to /storage/0512/doc_00075058 [09:25:10]save last doc name /storage/0512/doc_00075058 to /storage/kkm_last_doc_name [09:25:10]save OK [09:25:10]Clear old archive folders... [09:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:10]tlvbuf is B6EBA0E0 [09:25:10]SAM_PROTO_ClearQueue [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 09 00 00 [09:25:10]Write to MH i2c: E2 08 00 23 20 80 09 00 00 00 00 00 00 B5 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:10]OFD Sender: No OFD packet to send [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 23 20 00 90 00 B7 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]SAM_PROTO_ClearQueue done [09:25:10]KKMCreateOFDPacket [09:25:10]OFDProtocolAddRootSTLVToBuf [09:25:10]FM_MakeSignedData [09:25:10]FM_MakeSignedData [09:25:10]SAM_PROTO_SignData [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 01 02 [09:25:10]Write to MH i2c: E2 08 00 24 20 80 0D 01 02 00 00 00 00 BD [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [09:25:11]RAPDU: 90 00 [09:25:11]wFMCommunicate OK [09:25:11]wFMCommunicate request_size=255 [09:25:11]MH_SAM_APDU [09:25: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 79 B5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 32 25 01 00 35 04 06 00 D4 [09:25:11]Write to MH i2c: E2 02 01 25 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 79 B5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 32 25 01 00 35 04 06 00 D4 00 00 25 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [09:25:11]RAPDU: 90 00 [09:25:11]wFMCommunicate OK [09:25:11]wFMCommunicate request_size=10 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 0D 02 02 05 20 61 F9 96 65 [09:25:11]Write to MH i2c: E2 0D 00 26 20 80 0D 02 02 05 00 20 61 F9 96 65 00 00 3F [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [09:25:11]RAPDU: 90 00 [09:25:11]wFMCommunicate OK [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 0D 03 02 [09:25:11]Write to MH i2c: E2 08 00 27 20 80 0D 03 02 00 00 00 00 C2 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0B 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0B 00 27 20 00 4A 3D 8A 49 99 11 7E C0 90 00 05 [09:25:11]RAPDU: 4A 3D 8A 49 99 11 7E C0 90 00 [09:25:11]wFMCommunicate OK [09:25:11]SAM_PROTO_SignData done [09:25:11]FM_MakeSignedData done [09:25:11]CreateOFDProtocolMessage [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 11 00 00 [09:25:11]Write to MH i2c: E2 08 00 28 20 80 11 00 00 00 00 00 00 C2 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 17 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 17 00 28 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [09:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:25:11]wFMCommunicate OK [09:25:11]CreateOFDProtocolMessage done [09:25:11]OFDSenderStorePacket 75058 [09:25:11]StoreOFDPacket docnum=75058 [09:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 76 AE 07 01 91 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 79 B5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 32 25 01 00 35 04 06 00 D4 20 61 F9 96 65 4A 3D 8A 49 99 11 7E C0 [09:25:11]CheckFolder [09:25:11]dirname=/storage/ofd_packets [09:25:11]CheckFolder done [09:25:11]ProducePacketName [09:25:11]name=ofd_packets/00075058 [09:25:11]NVStorageSaveData ofd_packets/00075058 [09:25:11]File name is /storage/ofd_packets/00075058 [09:25:11]Write 301 bytes [09:25:11]NVStorageSaveData done [09:25:11]OFDSenderStorePacket done [09:25:11]KKMCreateOFDPacket done [09:25:11]NVStorageSaveData kkm_last_timestamp [09:25:11]File name is /storage/kkm_last_timestamp [09:25:11]Write 4 bytes [09:25:11]NVStorageSaveData done [09:25:11]ExternCall_PrintAddStr [09:25:11]wPrintStart [09:25:11]Write to MH i2c: 01 00 00 29 20 49 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [09:25:11]RasterBufferAndPrint [09:25:11]line Счет N : (1)191030 [09:25:11]line ИНН: 02508201610067 [09:25:11]line Контрольно-Кассовый Чек [09:25:11]line ПРОДАЖА [09:25:11]line ТРК (МРК, ГНК) : 21 [09:25:11]line Товар: 2710124130 [09:25:11]line Аи-92-К-5 [09:25:11]line 2.990 * 66.90 [09:25:11]line = 200.03 [09:25:11]line НДС 12% НСП 1% [09:25:11]line > о реализуемом товаре [09:25:11]line ОКРУГЛЕНИЕ: -0.03 [09:25:11]line ИТОГО: 200.00 [09:25:11]line Внесено: 200.00 [09:25:11]line СДАЧА: 0.00 [09:25:11]line НСП 1% : 1.77 [09:25:11]line НДС 12% : 21.24 [09:25:11]line Наличными: 200.00 [09:25:11]line Безнал.: 0.00 [09:25:11]line Место: АЗС № 142 "Партнер Нефть" [09:25:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:25:11]line СНО: Общий режим [09:25:11]line Чек 50 26.10.2024 09:25 [09:25:11]line Смена: 512 ФФД: 1.0 [09:25:11]line ЗНМ: 0300000089 [09:25:11]line РНМ: 0000000000091691 [09:25:11]line Версия ККМ: 001 [09:25:11]line ФМ: 0000000000871795 [09:25:11]line ФД: 75058 [09:25:11]line ФПД: 233235547788901 [09:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092513&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75058&fm=233235547788901&tin=02508201610067®Number=0000000000091691&sum=20000 [09:25:11]OFD Sender: Processing packet 75058 [packets to send 13, broken 12] [09:25:11]ProducePacketName [09:25:11]name=ofd_packets/00075058 [09:25:11]OFD Sender: To server: pG, [09:25:11]CommunicateWithHost lk.salyk.kg:30040 [09:25:11]ConnectInit lk.salyk.kg [09:25:11]written 0, free lines is 4095 [09:25:11]Connected sock=10 [09:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 76 AE 07 01 91 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 79 B5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 32 25 01 00 35 04 06 00 D4 20 61 F9 96 65 4A 3D 8A 49 99 11 7E C0 [09:25:12]Write to MH i2c: 01 00 00 54 20 74 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: 01 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: 01 07 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 A5 0C 2C [09:25:12]RasterBufferAndPrint [09:25:12]line [09:25:12]line [09:25:12]line [09:25:12]line [09:25:12]line [09:25:12]written 0, free lines is 3245 [09:25:12]MH_Cut [09:25:12]Write to MH i2c: D1 01 00 5B 20 01 4D [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: D1 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: D1 01 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: D1 01 00 5B 20 00 4C [09:25:12]Write to MH i2c: 01 00 00 5C 20 7C [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D3 AD 47 00 23 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 32 25 01 00 F4 03 04 00 F6 5C 1C 67 B6 04 01 00 00 A7 2B 44 E8 DA 84 CC A9 [09:25:12]CommunicateWithHost err = 0 [09:25:12]CheckOFDResponse [09:25:12]1017 (14) - 77093643461234 [09:25:12]1041 (16) - 0000000000871795 [09:25:12]1040 (4) - 75058 [09:25:12]1012 (4) - 26.10.2024 03:07 [09:25:12]1206 (1) - 0 [09:25:12]OFD Sender: Remove packet 75058 [09:25:12]ProducePacketName [09:25:12]name=ofd_packets/00075058 [09:25:12]NVStorageDeleteData [09:25:12]OFD Sender: No OFD packet to send [09:25:13]*** Cut start [09:25:13]*** Partial cut [09:25:13]*** CUTSNS_PIN = 1 [09:25:13]*** CUTSNS_PIN = 0 [09:25:13]*** Brake cut motor [09:25:13]Read from MH i2c: 01 [09:25:13]MH_I2C_Read... [09:25:13]*** Stop cut motor [09:25:13]*** Cut end [09:25:13]Read from MH i2c: 01 07 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 FF 0F 91 [09:25:13]process_action close_receipt done [09:25:13]requested_data is exist [09:25:13]produce_requested_data [09:25:13]requested_item fm.sn is exist - process it [09:25:13]wFMCommunicate request_size=4 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 11 00 00 [09:25:13]Write to MH i2c: E2 08 00 5D 20 80 11 00 00 00 00 00 00 F7 [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 17 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 17 00 5D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4F [09:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:25:13]wFMCommunicate OK [09:25:13]requested_item fd.num is exist - process it [09:25:13]SAM_PROTO_GetFieldsCounters [09:25:13]wFMCommunicate request_size=4 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 13 00 00 [09:25:13]Write to MH i2c: E2 08 00 5E 20 80 13 00 00 00 00 00 00 FA [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 62 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 62 00 5E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 32 25 01 00 0E 04 04 00 00 02 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 11 [09:25:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 32 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:13]wFMCommunicate OK [09:25:13]SAM_PROTO_GetFieldsCounters done [09:25:13]requested_item shift.num is exist - process it [09:25:13]requested_item shift.opened is exist - process it [09:25:13]req_shift_opened [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 5F 20 80 13 01 00 00 00 00 00 FC [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:14]Read from MH i2c: E2 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 0E 00 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: E2 0E 00 5F 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 17 [09:25:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:25:14]wFMCommunicate OK [09:25:14]SAM_PROTO_GetShiftState done [09:25:14]FM_GetShiftState done [09:25:14]req_shift_opened done [09:25:14]requested_item shift.open_date is exist - process it [09:25:14]req_shift_open_date [09:25:14]req_shift_open_date done [09:25:14]produce_requested_data done [09:25:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75058,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:25:14]process_action_free close_receipt [09:25:14]json_value_free [09:25:14]json_value_free done [09:25:14]process_json_proto returns [09:25:14]Send response to host [09:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75058,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:25:14]free response buf [09:25:14]execute_script done [09:25:14]execute_script returns [09:25:14]free content buf [09:25:14]Sock 9.Close socket [09:25:14]Sock 9.Thread stoped [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:26]accept exits with 8 [09:28:26]New connection [09:28:26]New thread 3066781028 created [09:28:26]Thread 3066924388 joined [09:28:26]Waiting for new connection... [09:28:26] Sock 8.Parse request [09:28:26]Sock 8.Check first char [09:28:26]Sock 8.First char is OK [09:28:26]request: POST /json_proto HTTP/1.0 [09:28:26]Method: POST [09:28:26]URL: /json_proto [09:28:26]Method is POST - this is cgi request [09:28:26]url: /json_proto [09:28:26]query_string will be loaded in cgi processing [09:28:26]execute_cgi json_proto POST (null) [09:28:26]execute_cgi path=json_proto method=POST [09:28:26]POST find Content-Length [09:28:26]Host: 172.17.39.131:8080 [09:28:26]Content-Length: 677 [09:28:26]Content-Type: application/json [09:28:26] [09:28:26]POST finish read [09:28:26]Found Content-Length = 677 [09:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]execute_script... [09: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)191032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]POST & json_proto [09:28:26]process_json_proto [09:28:26]json parsed OK: [09:28:26]protocol is kg_v1.0 [09:28:26]action value=close_receipt [09:28:26]process_action close_receipt [09:28:26]cmd_close_receipt [09:28:26]MH_GetDate [09:28:26]Write to MH i2c: F0 00 00 60 20 6F [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 60 20 00 3E B6 1C 67 86 57 24 65 55 [09:28:26]GetLastDocTimeStamp 1729934713 [09:28:26]current date 1729934910 [09:28:26]FM_GetShiftState [09:28:26]SAM_PROTO_GetShiftState [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 13 01 00 [09:28:26]Write to MH i2c: E2 08 00 61 20 80 13 01 00 00 00 00 00 FE [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 61 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [09:28:26]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_GetShiftState done [09:28:26]FM_GetShiftState done [09:28:26]opened in 1729902166 [09:28:26]opened+sec_in_day 1729988566 [09:28:26]quantity*price = 20003 [09:28:26]sum+1 = 20004 [09:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 51 26.10.2024 09:28 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75059 ФПД: 102410796938464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092830&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75059&fm=102410796938464&tin=02508201610067®Number=0000000000091691&sum=20000 [09:28:27]StoreToDocumentArchive [09:28:27]shift 512 fd 75059 [09:28:27]save to /storage/0512/doc_00075059 [09:28:27]save last doc name /storage/0512/doc_00075059 to /storage/kkm_last_doc_name [09:28:27]save OK [09:28:27]Clear old archive folders... [09:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:27]tlvbuf is 007F2E60 [09:28:27]SAM_PROTO_ClearQueue [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 09 00 00 [09:28:27]Write to MH i2c: E2 08 00 6E 20 80 09 00 00 00 00 00 00 00 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6E 20 00 90 00 02 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_ClearQueue done [09:28:27]KKMCreateOFDPacket [09:28:27]OFDProtocolAddRootSTLVToBuf [09:28:27]FM_MakeSignedData [09:28:27]FM_MakeSignedData [09:28:27]SAM_PROTO_SignData [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 01 02 [09:28:27]Write to MH i2c: E2 08 00 6F 20 80 0D 01 02 00 00 00 00 08 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=255 [09:28:27]MH_SAM_APDU [09: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 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 33 00 00 00 F4 03 04 00 3E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 33 25 01 00 35 04 06 00 5D [09:28:27]Write to MH i2c: E2 02 01 70 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 3E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 33 25 01 00 35 04 06 00 5D 00 00 C1 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]OFD Sender: No OFD packet to send [09:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [09:28:28]RAPDU: 90 00 [09:28:28]wFMCommunicate OK [09:28:28]wFMCommunicate request_size=10 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 0D 02 02 05 24 5F 2C 34 E0 [09:28:28]Write to MH i2c: E2 0D 00 71 20 80 0D 02 02 05 00 24 5F 2C 34 E0 00 00 D8 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [09:28:28]RAPDU: 90 00 [09:28:28]wFMCommunicate OK [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 0D 03 02 [09:28:28]Write to MH i2c: E2 08 00 72 20 80 0D 03 02 00 00 00 00 0D [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0B 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0B 00 72 20 00 A5 3D FF B7 ED 7A 8A 6A 90 00 01 [09:28:28]RAPDU: A5 3D FF B7 ED 7A 8A 6A 90 00 [09:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_SignData done [09:28:28]FM_MakeSignedData done [09:28:28]CreateOFDProtocolMessage [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 11 00 00 [09:28:28]Write to MH i2c: E2 08 00 73 20 80 11 00 00 00 00 00 00 0D [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 73 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [09:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:28:28]wFMCommunicate OK [09:28:28]CreateOFDProtocolMessage done [09:28:28]OFDSenderStorePacket 75059 [09:28:28]StoreOFDPacket docnum=75059 [09:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB 49 07 01 78 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 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 33 00 00 00 F4 03 04 00 3E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 33 25 01 00 35 04 06 00 5D 24 5F 2C 34 E0 A5 3D FF B7 ED 7A 8A 6A [09:28:28]CheckFolder [09:28:28]dirname=/storage/ofd_packets [09:28:28]CheckFolder done [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00075059 [09:28:28]NVStorageSaveData ofd_packets/00075059 [09:28:28]File name is /storage/ofd_packets/00075059 [09:28:28]Write 301 bytes [09:28:28]NVStorageSaveData done [09:28:28]OFDSenderStorePacket done [09:28:28]KKMCreateOFDPacket done [09:28:28]NVStorageSaveData kkm_last_timestamp [09:28:28]File name is /storage/kkm_last_timestamp [09:28:28]Write 4 bytes [09:28:28]NVStorageSaveData done [09:28:28]ExternCall_PrintAddStr [09:28:28]wPrintStart [09:28:28]Write to MH i2c: 01 00 00 74 20 94 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 74 20 00 00 00 00 00 FF 0F A9 [09:28:28]RasterBufferAndPrint [09:28:28]line Счет N : (1)191032 [09:28:28]line ИНН: 02508201610067 [09:28:28]line Контрольно-Кассовый Чек [09:28:28]line ПРОДАЖА [09:28:28]line ТРК (МРК, ГНК) : 21 [09:28:28]line Товар: 2710124130 [09:28:28]line Аи-92-К-5 [09:28:28]line 2.990 * 66.90 [09:28:28]line = 200.03 [09:28:28]line НДС 12% НСП 1% [09:28:28]line > о реализуемом товаре [09:28:28]line ОКРУГЛЕНИЕ: -0.03 [09:28:28]line ИТОГО: 200.00 [09:28:28]line Внесено: 200.00 [09:28:28]line СДАЧА: 0.00 [09:28:28]line НСП 1% : 1.77 [09:28:28]line НДС 12% : 21.24 [09:28:28]line Наличными: 200.00 [09:28:28]line Безнал.: 0.00 [09:28:28]line Место: АЗС № 142 "Партнер Нефть" [09:28:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:28:28]line СНО: Общий режим [09:28:28]line Чек 51 26.10.2024 09:28 [09:28:28]line Смена: 512 ФФД: 1.0 [09:28:28]line ЗНМ: 0300000089 [09:28:28]line РНМ: 0000000000091691 [09:28:28]line Версия ККМ: 001 [09:28:28]line ФМ: 0000000000871795 [09:28:28]line ФД: 75059 [09:28:28]line ФПД: 102410796938464 [09:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092830&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75059&fm=102410796938464&tin=02508201610067®Number=0000000000091691&sum=20000 [09:28:28]written 0, free lines is 4095 [09:28:28]OFD Sender: Processing packet 75059 [packets to send 13, broken 12] [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00075059 [09:28:28]OFD Sender: To server: pG, [09:28:28]CommunicateWithHost lk.salyk.kg:30040 [09:28:28]ConnectInit lk.salyk.kg [09:28:28]Connected sock=10 [09:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB 49 07 01 78 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 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 33 00 00 00 F4 03 04 00 3E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 33 25 01 00 35 04 06 00 5D 24 5F 2C 34 E0 A5 3D FF B7 ED 7A 8A 6A [09:28:28]Write to MH i2c: 01 00 00 9F 20 BF [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 A0 0C 72 [09:28:28]RasterBufferAndPrint [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]written 0, free lines is 3241 [09:28:28]MH_Cut [09:28:28]Write to MH i2c: D1 01 00 A6 20 01 98 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 A6 20 00 97 [09:28:28]Write to MH i2c: 01 00 00 A7 20 C7 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CF AA 47 00 DD 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 33 25 01 00 F4 03 04 00 BB 5D 1C 67 B6 04 01 00 00 48 E1 8D 0C C8 81 F0 E2 [09:28:28]CommunicateWithHost err = 0 [09:28:28]CheckOFDResponse [09:28:28]1017 (14) - 77093643461234 [09:28:28]1041 (16) - 0000000000871795 [09:28:28]1040 (4) - 75059 [09:28:28]1012 (4) - 26.10.2024 03:10 [09:28:28]1206 (1) - 0 [09:28:28]OFD Sender: Remove packet 75059 [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00075059 [09:28:28]NVStorageDeleteData [09:28:29]OFD Sender: No OFD packet to send [09:28:29]*** Cut start [09:28:29]*** Partial cut [09:28:29]*** CUTSNS_PIN = 1 [09:28:29]*** CUTSNS_PIN = 0 [09:28:29]*** Brake cut motor [09:28:30]Read from MH i2c: 01 [09:28:30]MH_I2C_Read... [09:28:30]*** Stop cut motor [09:28:30]*** Cut end [09:28:30]Read from MH i2c: 01 07 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [09:28:30]process_action close_receipt done [09:28:30]requested_data is exist [09:28:30]produce_requested_data [09:28:30]requested_item fm.sn is exist - process it [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 11 00 00 [09:28:30]Write to MH i2c: E2 08 00 A8 20 80 11 00 00 00 00 00 00 42 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 A8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9A [09:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:28:30]wFMCommunicate OK [09:28:30]requested_item fd.num is exist - process it [09:28:30]SAM_PROTO_GetFieldsCounters [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 00 00 [09:28:30]Write to MH i2c: E2 08 00 A9 20 80 13 00 00 00 00 00 00 45 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 A9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 33 25 01 00 0E 04 04 00 00 02 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 60 [09:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 33 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetFieldsCounters done [09:28:30]requested_item shift.num is exist - process it [09:28:30]requested_item shift.opened is exist - process it [09:28:30]req_shift_opened [09:28:30]FM_GetShiftState [09:28:30]SAM_PROTO_GetShiftState [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 01 00 [09:28:30]Write to MH i2c: E2 08 00 AA 20 80 13 01 00 00 00 00 00 47 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 AA 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 62 [09:28:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetShiftState done [09:28:30]FM_GetShiftState done [09:28:30]req_shift_opened done [09:28:30]requested_item shift.open_date is exist - process it [09:28:30]req_shift_open_date [09:28:30]req_shift_open_date done [09:28:30]produce_requested_data done [09:28:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75059,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:28:30]process_action_free close_receipt [09:28:30]json_value_free [09:28:30]json_value_free done [09:28:30]process_json_proto returns [09:28:30]Send response to host [09:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75059,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:28:30]free response buf [09:28:30]execute_script done [09:28:30]execute_script returns [09:28:30]free content buf [09:28:30]Sock 8.Close socket [09:28:30]Sock 8.Thread stoped [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:13]accept exits with 9 [09:29:13]New connection [09:29:13]New thread 3066924388 created [09:29:13]Thread 3066781028 joined [09:29:13]Waiting for new connection... [09:29:13] Sock 9.Parse request [09:29:13]Sock 9.Check first char [09:29:13]Sock 9.First char is OK [09:29:13]request: POST /json_proto HTTP/1.0 [09:29:13]Method: POST [09:29:13]URL: /json_proto [09:29:13]Method is POST - this is cgi request [09:29:13]url: /json_proto [09:29:13]query_string will be loaded in cgi processing [09:29:13]execute_cgi json_proto POST (null) [09:29:13]execute_cgi path=json_proto method=POST [09:29:13]POST find Content-Length [09:29:13]Host: 172.17.39.131:8080 [09:29:13]Content-Length: 685 [09:29:13]Content-Type: application/json [09:29:13] [09:29:13]POST finish read [09:29:13]Found Content-Length = 685 [09:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.35, "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" ] } } [09:29:13]execute_script... [09:29: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)191031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.35, "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" ] } } [09:29:13]POST & json_proto [09:29:13]process_json_proto [09:29:13]json parsed OK: [09:29:13]protocol is kg_v1.0 [09:29:13]action value=close_receipt [09:29:13]process_action close_receipt [09:29:13]cmd_close_receipt [09:29:13]MH_GetDate [09:29:13]Write to MH i2c: F0 00 00 AB 20 BA [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: F0 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: F0 09 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: F0 09 00 AB 20 00 6E B6 1C 67 86 57 24 65 D0 [09:29:13]GetLastDocTimeStamp 1729934910 [09:29:13]current date 1729934958 [09:29:13]FM_GetShiftState [09:29:13]SAM_PROTO_GetShiftState [09:29:13]wFMCommunicate request_size=4 [09:29:13]MH_SAM_APDU [09:29:13]CAPDU: 80 13 01 00 [09:29:13]Write to MH i2c: E2 08 00 AC 20 80 13 01 00 00 00 00 00 49 [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:13]Read from MH i2c: E2 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 0E 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 0E 00 AC 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 64 [09:29:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:29:13]wFMCommunicate OK [09:29:13]SAM_PROTO_GetShiftState done [09:29:13]FM_GetShiftState done [09:29:13]opened in 1729902166 [09:29:13]opened+sec_in_day 1729988566 [09:29:13]quantity*price = 160034 [09:29:13]sum+1 = 160036 [09:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 52 26.10.2024 09:29 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75060 ФПД: 207624145961909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092918&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75060&fm=207624145961909&tin=02508201610067®Number=0000000000091691&sum=160000 [09:29:15]StoreToDocumentArchive [09:29:15]shift 512 fd 75060 [09:29:15]save to /storage/0512/doc_00075060 [09:29:15]save last doc name /storage/0512/doc_00075060 to /storage/kkm_last_doc_name [09:29:15]save OK [09:29:15]Clear old archive folders... [09:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:29:15]tlvbuf is B6EBA220 [09:29:15]SAM_PROTO_ClearQueue [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 09 00 00 [09:29:15]Write to MH i2c: E2 08 00 B9 20 80 09 00 00 00 00 00 00 4B [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 B9 20 00 90 00 4D [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]SAM_PROTO_ClearQueue done [09:29:15]KKMCreateOFDPacket [09:29:15]OFDProtocolAddRootSTLVToBuf [09:29:15]FM_MakeSignedData [09:29:15]FM_MakeSignedData [09:29:15]SAM_PROTO_SignData [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 0D 01 02 [09:29:15]Write to MH i2c: E2 08 00 BA 20 80 0D 01 02 00 00 00 00 53 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 BA 20 00 90 00 4E [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]wFMCommunicate request_size=255 [09:29:15]MH_SAM_APDU [09:29: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 6E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 34 25 01 00 35 04 06 00 BC D5 [09:29:15]Write to MH i2c: E2 02 01 BB 20 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 6E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 34 25 01 00 35 04 06 00 BC D5 00 00 13 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 BB 20 00 90 00 4F [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]wFMCommunicate request_size=9 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 0D 02 02 04 43 77 83 B5 [09:29:15]Write to MH i2c: E2 0C 00 BC 20 80 0D 02 02 04 00 43 77 83 B5 00 00 50 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 0D 03 02 [09:29:15]Write to MH i2c: E2 08 00 BD 20 80 0D 03 02 00 00 00 00 58 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 0B 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 0B 00 BD 20 00 91 61 59 DD 83 2B C9 83 90 00 7B [09:29:15]RAPDU: 91 61 59 DD 83 2B C9 83 90 00 [09:29:15]wFMCommunicate OK [09:29:15]SAM_PROTO_SignData done [09:29:15]FM_MakeSignedData done [09:29:15]CreateOFDProtocolMessage [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 11 00 00 [09:29:15]Write to MH i2c: E2 08 00 BE 20 80 11 00 00 00 00 00 00 58 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 17 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 17 00 BE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B0 [09:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:29:15]wFMCommunicate OK [09:29:15]CreateOFDProtocolMessage done [09:29:15]OFDSenderStorePacket 75060 [09:29:15]StoreOFDPacket docnum=75060 [09:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 06 F8 06 01 27 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 6E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 34 25 01 00 35 04 06 00 BC D5 43 77 83 B5 91 61 59 DD 83 2B C9 83 [09:29:15]CheckFolder [09:29:15]dirname=/storage/ofd_packets [09:29:15]CheckFolder done [09:29:15]ProducePacketName [09:29:15]name=ofd_packets/00075060 [09:29:15]NVStorageSaveData ofd_packets/00075060 [09:29:15]File name is /storage/ofd_packets/00075060 [09:29:15]Write 300 bytes [09:29:15]NVStorageSaveData done [09:29:15]OFDSenderStorePacket done [09:29:15]KKMCreateOFDPacket done [09:29:15]NVStorageSaveData kkm_last_timestamp [09:29:15]File name is /storage/kkm_last_timestamp [09:29:15]Write 4 bytes [09:29:15]NVStorageSaveData done [09:29:15]ExternCall_PrintAddStr [09:29:15]wPrintStart [09:29:15]Write to MH i2c: 01 00 00 BF 20 DF [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 07 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 07 00 BF 20 00 00 00 00 00 FF 0F F4 [09:29:15]RasterBufferAndPrint [09:29:15]line Счет N : (1)191031 [09:29:15]line ИНН: 02508201610067 [09:29:15]line Контрольно-Кассовый Чек [09:29:15]line ПРОДАЖА [09:29:15]line ТРК (МРК, ГНК) : 51 [09:29:15]line Товар: 2711190000 [09:29:15]line ГАЗ-К-3 [09:29:15]line 41.140 * 38.90 [09:29:15]line = 1600.35 [09:29:15]line НДС 12% НСП 1% [09:29:15]line > о реализуемом товаре [09:29:15]line ОКРУГЛЕНИЕ: -0.35 [09:29:15]line ИТОГО: 1600.00 [09:29:15]line Внесено: 1600.00 [09:29:15]line СДАЧА: 0.00 [09:29:15]line НСП 1% : 14.16 [09:29:15]line НДС 12% : 169.95 [09:29:15]line Наличными: 1600.00 [09:29:15]line Безнал.: 0.00 [09:29:15]line Место: АЗС № 142 "Партнер Нефть" [09:29:15]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:29:15]line СНО: Общий режим [09:29:15]line Чек 52 26.10.2024 09:29 [09:29:15]line Смена: 512 ФФД: 1.0 [09:29:15]line ЗНМ: 0300000089 [09:29:15]line РНМ: 0000000000091691 [09:29:15]line Версия ККМ: 001 [09:29:15]line ФМ: 0000000000871795 [09:29:15]line ФД: 75060 [09:29:15]line ФПД: 207624145961909 [09:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092918&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75060&fm=207624145961909&tin=02508201610067®Number=0000000000091691&sum=160000 [09:29:15]written 0, free lines is 4095 [09:29:15]OFD Sender: Processing packet 75060 [packets to send 13, broken 12] [09:29:15]ProducePacketName [09:29:15]name=ofd_packets/00075060 [09:29:15]OFD Sender: To server: pG, [09:29:15]CommunicateWithHost lk.salyk.kg:30040 [09:29:15]ConnectInit lk.salyk.kg [09:29:16]Connected sock=10 [09:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 06 F8 06 01 27 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 6E B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 34 25 01 00 35 04 06 00 BC D5 43 77 83 B5 91 61 59 DD 83 2B C9 83 [09:29:16]Write to MH i2c: 01 00 00 EA 20 0A [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 07 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 A7 0C C4 [09:29:16]RasterBufferAndPrint [09:29:16]line [09:29:16]line [09:29:16]line [09:29:16]line [09:29:16]line [09:29:16]written 0, free lines is 3245 [09:29:16]MH_Cut [09:29:16]Write to MH i2c: D1 01 00 F1 20 01 E3 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: D1 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: D1 01 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: D1 01 00 F1 20 00 E2 [09:29:16]Write to MH i2c: 01 00 00 F2 20 12 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 25 FE 47 00 48 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 34 25 01 00 F4 03 04 00 EA 5D 1C 67 B6 04 01 00 00 02 FB F1 05 ED C1 49 D7 [09:29:16]CommunicateWithHost err = 0 [09:29:16]CheckOFDResponse [09:29:16]1017 (14) - 77093643461234 [09:29:16]1041 (16) - 0000000000871795 [09:29:16]1040 (4) - 75060 [09:29:16]1012 (4) - 26.10.2024 03:11 [09:29:16]1206 (1) - 0 [09:29:16]OFD Sender: Remove packet 75060 [09:29:16]ProducePacketName [09:29:16]name=ofd_packets/00075060 [09:29:16]NVStorageDeleteData [09:29:16]OFD Sender: No OFD packet to send [09:29:17]*** Cut start [09:29:17]*** Partial cut [09:29:17]*** CUTSNS_PIN = 1 [09:29:17]*** CUTSNS_PIN = 0 [09:29:17]*** Brake cut motor [09:29:17]Read from MH i2c: 01 [09:29:17]MH_I2C_Read... [09:29:17]*** Stop cut motor [09:29:17]*** Cut end [09:29:17]Read from MH i2c: 01 07 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 FF 0F 27 [09:29:17]process_action close_receipt done [09:29:17]requested_data is exist [09:29:17]produce_requested_data [09:29:17]requested_item fm.sn is exist - process it [09:29:17]wFMCommunicate request_size=4 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 11 00 00 [09:29:17]Write to MH i2c: E2 08 00 F3 20 80 11 00 00 00 00 00 00 8D [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 F3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [09:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:29:18]wFMCommunicate OK [09:29:18]requested_item fd.num is exist - process it [09:29:18]SAM_PROTO_GetFieldsCounters [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 13 00 00 [09:29:18]Write to MH i2c: E2 08 00 F4 20 80 13 00 00 00 00 00 00 90 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 62 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 62 00 F4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 34 25 01 00 0E 04 04 00 00 02 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 AF [09:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 34 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_GetFieldsCounters done [09:29:18]requested_item shift.num is exist - process it [09:29:18]requested_item shift.opened is exist - process it [09:29:18]req_shift_opened [09:29:18]FM_GetShiftState [09:29:18]SAM_PROTO_GetShiftState [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 13 01 00 [09:29:18]Write to MH i2c: E2 08 00 F5 20 80 13 01 00 00 00 00 00 92 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0E 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0E 00 F5 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AD [09:29:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_GetShiftState done [09:29:18]FM_GetShiftState done [09:29:18]req_shift_opened done [09:29:18]requested_item shift.open_date is exist - process it [09:29:18]req_shift_open_date [09:29:18]req_shift_open_date done [09:29:18]produce_requested_data done [09:29:18]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75060,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:29:18]process_action_free close_receipt [09:29:18]json_value_free [09:29:18]json_value_free done [09:29:18]process_json_proto returns [09:29:18]Send response to host [09:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75060,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:29:18]free response buf [09:29:18]execute_script done [09:29:18]execute_script returns [09:29:18]free content buf [09:29:18]Sock 9.Close socket [09:29:18]Sock 9.Thread stoped [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:38]accept exits with 8 [09:30:38]New connection [09:30:38]New thread 3066781028 created [09:30:38]Thread 3066924388 joined [09:30:38]Waiting for new connection... [09:30:38] Sock 8.Parse request [09:30:38]Sock 8.Check first char [09:30:38]Sock 8.First char is OK [09:30:38]request: POST /json_proto HTTP/1.0 [09:30:38]Method: POST [09:30:38]URL: /json_proto [09:30:38]Method is POST - this is cgi request [09:30:38]url: /json_proto [09:30:38]query_string will be loaded in cgi processing [09:30:38]execute_cgi json_proto POST (null) [09:30:38]execute_cgi path=json_proto method=POST [09:30:38]POST find Content-Length [09:30:38]Host: 172.17.39.131:8080 [09:30:38]Content-Length: 677 [09:30:38]Content-Type: application/json [09:30:38] [09:30:38]POST finish read [09:30:38]Found Content-Length = 677 [09:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:30:38]execute_script... [09:30: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)191033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:30:38]POST & json_proto [09:30:38]process_json_proto [09:30:38]json parsed OK: [09:30:38]protocol is kg_v1.0 [09:30:38]action value=close_receipt [09:30:38]process_action close_receipt [09:30:38]cmd_close_receipt [09:30:38]MH_GetDate [09:30:38]Write to MH i2c: F0 00 00 F6 20 05 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 09 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 09 00 F6 20 00 C2 B6 1C 67 86 57 24 65 6F [09:30:38]GetLastDocTimeStamp 1729934958 [09:30:38]current date 1729935042 [09:30:38]FM_GetShiftState [09:30:38]SAM_PROTO_GetShiftState [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 13 01 00 [09:30:38]Write to MH i2c: E2 08 00 F7 20 80 13 01 00 00 00 00 00 94 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 0E 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 0E 00 F7 20 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AF [09:30:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:30:38]wFMCommunicate OK [09:30:38]SAM_PROTO_GetShiftState done [09:30:38]FM_GetShiftState done [09:30:38]opened in 1729902166 [09:30:38]opened+sec_in_day 1729988566 [09:30:38]quantity*price = 50041 [09:30:38]sum+1 = 50042 [09:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 53 26.10.2024 09:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75061 ФПД: 226778264457749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093042&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75061&fm=226778264457749&tin=02508201610067®Number=0000000000091691&sum=50000 [09:30:39]StoreToDocumentArchive [09:30:39]shift 512 fd 75061 [09:30:39]save to /storage/0512/doc_00075061 [09:30:39]save last doc name /storage/0512/doc_00075061 to /storage/kkm_last_doc_name [09:30:39]save OK [09:30:39]Clear old archive folders... [09:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:39]tlvbuf is B6EBAC90 [09:30:39]SAM_PROTO_ClearQueue [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 09 00 00 [09:30:39]Write to MH i2c: E2 08 00 04 21 80 09 00 00 00 00 00 00 97 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 04 21 00 90 00 99 [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_ClearQueue done [09:30:39]KKMCreateOFDPacket [09:30:39]OFDProtocolAddRootSTLVToBuf [09:30:39]FM_MakeSignedData [09:30:39]FM_MakeSignedData [09:30:39]SAM_PROTO_SignData [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 01 02 [09:30:39]Write to MH i2c: E2 08 00 05 21 80 0D 01 02 00 00 00 00 9F [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 05 21 00 90 00 9A [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=255 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C2 B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 35 25 01 00 35 04 06 00 CE [09:30:39]Write to MH i2c: E2 02 01 06 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 35 00 00 00 F4 03 04 00 C2 B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 35 25 01 00 35 04 06 00 CE 00 00 8F [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 06 21 00 90 00 9B [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=10 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 02 02 05 40 ED E5 52 15 [09:30:40]Write to MH i2c: E2 0D 00 07 21 80 0D 02 02 05 00 40 ED E5 52 15 00 00 25 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 03 02 [09:30:40]Write to MH i2c: E2 08 00 08 21 80 0D 03 02 00 00 00 00 A4 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 08 21 00 93 FF 22 4E C5 EA 08 10 90 00 6E [09:30:40]RAPDU: 93 FF 22 4E C5 EA 08 10 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_SignData done [09:30:40]FM_MakeSignedData done [09:30:40]CreateOFDProtocolMessage [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 11 00 00 [09:30:40]Write to MH i2c: E2 08 00 09 21 80 11 00 00 00 00 00 00 A4 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 09 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FC [09:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:30:40]wFMCommunicate OK [09:30:40]CreateOFDProtocolMessage done [09:30:40]OFDSenderStorePacket 75061 [09:30:40]StoreOFDPacket docnum=75061 [09:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 32 31 07 01 B7 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 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 35 00 00 00 F4 03 04 00 C2 B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 35 25 01 00 35 04 06 00 CE 40 ED E5 52 15 93 FF 22 4E C5 EA 08 10 [09:30:40]CheckFolder [09:30:40]dirname=/storage/ofd_packets [09:30:40]CheckFolder done [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00075061 [09:30:40]NVStorageSaveData ofd_packets/00075061 [09:30:40]File name is /storage/ofd_packets/00075061 [09:30:40]Write 301 bytes [09:30:40]NVStorageSaveData done [09:30:40]OFDSenderStorePacket done [09:30:40]KKMCreateOFDPacket done [09:30:40]NVStorageSaveData kkm_last_timestamp [09:30:40]File name is /storage/kkm_last_timestamp [09:30:40]Write 4 bytes [09:30:40]NVStorageSaveData done [09:30:40]ExternCall_PrintAddStr [09:30:40]wPrintStart [09:30:40]Write to MH i2c: 01 00 00 0A 21 2B [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 0A 21 00 00 00 00 00 FF 0F 40 [09:30:40]RasterBufferAndPrint [09:30:40]line Счет N : (1)191033 [09:30:40]line ИНН: 02508201610067 [09:30:40]line Контрольно-Кассовый Чек [09:30:40]line ПРОДАЖА [09:30:40]line ТРК (МРК, ГНК) : 21 [09:30:40]line Товар: 2710124130 [09:30:40]line Аи-92-К-5 [09:30:40]line 7.480 * 66.90 [09:30:40]line = 500.41 [09:30:40]line НДС 12% НСП 1% [09:30:40]line > о реализуемом товаре [09:30:40]line ОКРУГЛЕНИЕ: -0.41 [09:30:40]line ИТОГО: 500.00 [09:30:40]line Внесено: 500.00 [09:30:40]line СДАЧА: 0.00 [09:30:40]line НСП 1% : 4.43 [09:30:40]line НДС 12% : 53.14 [09:30:40]line Наличными: 500.00 [09:30:40]line Безнал.: 0.00 [09:30:40]line Место: АЗС № 142 "Партнер Нефть" [09:30:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:30:40]line СНО: Общий режим [09:30:40]line Чек 53 26.10.2024 09:30 [09:30:40]line Смена: 512 ФФД: 1.0 [09:30:40]line ЗНМ: 0300000089 [09:30:40]line РНМ: 0000000000091691 [09:30:40]line Версия ККМ: 001 [09:30:40]line ФМ: 0000000000871795 [09:30:40]line ФД: 75061 [09:30:40]line ФПД: 226778264457749 [09:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093042&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75061&fm=226778264457749&tin=02508201610067®Number=0000000000091691&sum=50000 [09:30:40]OFD Sender: Processing packet 75061 [packets to send 13, broken 12] [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00075061 [09:30:40]OFD Sender: To server: pG, [09:30:40]CommunicateWithHost lk.salyk.kg:30040 [09:30:40]ConnectInit lk.salyk.kg [09:30:40]written 0, free lines is 4095 [09:30:40]Connected sock=10 [09:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 32 31 07 01 B7 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 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 35 00 00 00 F4 03 04 00 C2 B6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 35 25 01 00 35 04 06 00 CE 40 ED E5 52 15 93 FF 22 4E C5 EA 08 10 [09:30:41]Write to MH i2c: 01 00 00 35 21 56 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 A7 0C 10 [09:30:41]RasterBufferAndPrint [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]written 0, free lines is 3243 [09:30:41]MH_Cut [09:30:41]Write to MH i2c: D1 01 00 3C 21 01 2F [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 3C 21 00 2E [09:30:41]Write to MH i2c: 01 00 00 3D 21 5E [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 65 72 47 00 21 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 35 25 01 00 F4 03 04 00 3F 5E 1C 67 B6 04 01 00 00 84 FA 19 35 CA 82 B9 2F [09:30:41]CommunicateWithHost err = 0 [09:30:41]CheckOFDResponse [09:30:41]1017 (14) - 77093643461234 [09:30:41]1041 (16) - 0000000000871795 [09:30:41]1040 (4) - 75061 [09:30:41]1012 (4) - 26.10.2024 03:13 [09:30:41]1206 (1) - 0 [09:30:41]OFD Sender: Remove packet 75061 [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00075061 [09:30:41]NVStorageDeleteData [09:30:41]OFD Sender: No OFD packet to send [09:30:41]*** Cut start [09:30:41]*** Partial cut [09:30:41]*** CUTSNS_PIN = 1 [09:30:41]*** CUTSNS_PIN = 0 [09:30:42]*** Brake cut motor [09:30:42]Read from MH i2c: 01 [09:30:42]MH_I2C_Read... [09:30:42]*** Stop cut motor [09:30:42]*** Cut end [09:30:42]Read from MH i2c: 01 07 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 FF 0F 73 [09:30:42]process_action close_receipt done [09:30:42]requested_data is exist [09:30:42]produce_requested_data [09:30:42]requested_item fm.sn is exist - process it [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 11 00 00 [09:30:42]Write to MH i2c: E2 08 00 3E 21 80 11 00 00 00 00 00 00 D9 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 17 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 17 00 3E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [09:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:30:42]wFMCommunicate OK [09:30:42]requested_item fd.num is exist - process it [09:30:42]SAM_PROTO_GetFieldsCounters [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 13 00 00 [09:30:42]Write to MH i2c: E2 08 00 3F 21 80 13 00 00 00 00 00 00 DC [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 62 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 62 00 3F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 35 25 01 00 0E 04 04 00 00 02 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 FF [09:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 35 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:42]wFMCommunicate OK [09:30:42]SAM_PROTO_GetFieldsCounters done [09:30:42]requested_item shift.num is exist - process it [09:30:42]requested_item shift.opened is exist - process it [09:30:42]req_shift_opened [09:30:42]FM_GetShiftState [09:30:42]SAM_PROTO_GetShiftState [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 13 01 00 [09:30:42]Write to MH i2c: E2 08 00 40 21 80 13 01 00 00 00 00 00 DE [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0E 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0E 00 40 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F9 [09:30:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:30:42]wFMCommunicate OK [09:30:42]SAM_PROTO_GetShiftState done [09:30:42]FM_GetShiftState done [09:30:42]req_shift_opened done [09:30:42]requested_item shift.open_date is exist - process it [09:30:42]req_shift_open_date [09:30:42]req_shift_open_date done [09:30:42]produce_requested_data done [09:30:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75061,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:30:42]process_action_free close_receipt [09:30:42]json_value_free [09:30:42]json_value_free done [09:30:42]process_json_proto returns [09:30:42]Send response to host [09:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75061,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:30:42]free response buf [09:30:42]execute_script done [09:30:42]execute_script returns [09:30:42]free content buf [09:30:42]Sock 8.Close socket [09:30:42]Sock 8.Thread stoped [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:54]accept exits with 9 [09:31:54]New connection [09:31:54]New thread 3066924388 created [09:31:54]Thread 3066781028 joined [09:31:54]Waiting for new connection... [09:31:54] Sock 9.Parse request [09:31:54]Sock 9.Check first char [09:31:54]Sock 9.First char is OK [09:31:54]request: POST /json_proto HTTP/1.0 [09:31:54]Method: POST [09:31:54]URL: /json_proto [09:31:54]Method is POST - this is cgi request [09:31:54]url: /json_proto [09:31:54]query_string will be loaded in cgi processing [09:31:54]execute_cgi json_proto POST (null) [09:31:54]execute_cgi path=json_proto method=POST [09:31:54]POST find Content-Length [09:31:54]Host: 172.17.39.131:8080 [09:31:54]Content-Length: 682 [09:31:54]Content-Type: application/json [09:31:54] [09:31:54]POST finish read [09:31:54]Found Content-Length = 682 [09:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:31:54]execute_script... [09:31: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)191034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:31:54]POST & json_proto [09:31:54]process_json_proto [09:31:54]json parsed OK: [09:31:54]protocol is kg_v1.0 [09:31:54]action value=close_receipt [09:31:54]process_action close_receipt [09:31:54]cmd_close_receipt [09:31:54]MH_GetDate [09:31:54]Write to MH i2c: F0 00 00 41 21 51 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 09 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 09 00 41 21 00 0E B7 1C 67 86 57 24 65 08 [09:31:54]GetLastDocTimeStamp 1729935042 [09:31:54]current date 1729935118 [09:31:54]FM_GetShiftState [09:31:54]SAM_PROTO_GetShiftState [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 13 01 00 [09:31:54]Write to MH i2c: E2 08 00 42 21 80 13 01 00 00 00 00 00 E0 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 42 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FB [09:31:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_GetShiftState done [09:31:54]FM_GetShiftState done [09:31:54]opened in 1729902166 [09:31:54]opened+sec_in_day 1729988566 [09:31:54]quantity*price = 100015 [09:31:54]sum+1 = 100017 [09:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 54 26.10.2024 09:31 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75062 ФПД: 217833245435297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093158&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75062&fm=217833245435297&tin=02508201610067®Number=0000000000091691&sum=100000 [09:31:55]StoreToDocumentArchive [09:31:55]shift 512 fd 75062 [09:31:55]save to /storage/0512/doc_00075062 [09:31:55]save last doc name /storage/0512/doc_00075062 to /storage/kkm_last_doc_name [09:31:55]save OK [09:31:55]Clear old archive folders... [09:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:55]tlvbuf is B6EBA1D0 [09:31:55]SAM_PROTO_ClearQueue [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 09 00 00 [09:31:55]Write to MH i2c: E2 08 00 4F 21 80 09 00 00 00 00 00 00 E2 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [09:31:55]RAPDU: 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_ClearQueue done [09:31:55]KKMCreateOFDPacket [09:31:55]OFDProtocolAddRootSTLVToBuf [09:31:55]FM_MakeSignedData [09:31:55]FM_MakeSignedData [09:31:55]SAM_PROTO_SignData [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 0D 01 02 [09:31:55]Write to MH i2c: E2 08 00 50 21 80 0D 01 02 00 00 00 00 EA [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 50 21 00 90 00 E5 [09:31:55]RAPDU: 90 00 [09:31:55]wFMCommunicate OK [09:31:55]wFMCommunicate request_size=255 [09:31:55]MH_SAM_APDU [09:31: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 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 36 00 00 00 F4 03 04 00 0E B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 36 25 01 00 35 04 06 00 C6 [09:31:55]Write to MH i2c: E2 02 01 51 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 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 36 00 00 00 F4 03 04 00 0E B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 36 25 01 00 35 04 06 00 C6 00 00 1B [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [09:31:55]RAPDU: 90 00 [09:31:55]wFMCommunicate OK [09:31:55]wFMCommunicate request_size=10 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 0D 02 02 05 1E 41 36 E5 A1 [09:31:55]Write to MH i2c: E2 0D 00 52 21 80 0D 02 02 05 00 1E 41 36 E5 A1 00 00 12 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [09:31:55]RAPDU: 90 00 [09:31:55]wFMCommunicate OK [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 0D 03 02 [09:31:55]Write to MH i2c: E2 08 00 53 21 80 0D 03 02 00 00 00 00 EF [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 53 21 00 7A 72 95 19 3D 6B C7 41 90 00 3A [09:31:56]RAPDU: 7A 72 95 19 3D 6B C7 41 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_SignData done [09:31:56]FM_MakeSignedData done [09:31:56]CreateOFDProtocolMessage [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 11 00 00 [09:31:56]Write to MH i2c: E2 08 00 54 21 80 11 00 00 00 00 00 00 EF [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 54 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 47 [09:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:31:56]wFMCommunicate OK [09:31:56]CreateOFDProtocolMessage done [09:31:56]OFDSenderStorePacket 75062 [09:31:56]StoreOFDPacket docnum=75062 [09:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7E 24 07 01 E8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 F4 03 04 00 0E B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 36 25 01 00 35 04 06 00 C6 1E 41 36 E5 A1 7A 72 95 19 3D 6B C7 41 [09:31:56]CheckFolder [09:31:56]dirname=/storage/ofd_packets [09:31:56]CheckFolder done [09:31:56]ProducePacketName [09:31:56]name=ofd_packets/00075062 [09:31:56]NVStorageSaveData ofd_packets/00075062 [09:31:56]File name is /storage/ofd_packets/00075062 [09:31:56]Write 301 bytes [09:31:56]NVStorageSaveData done [09:31:56]OFDSenderStorePacket done [09:31:56]KKMCreateOFDPacket done [09:31:56]NVStorageSaveData kkm_last_timestamp [09:31:56]File name is /storage/kkm_last_timestamp [09:31:56]Write 4 bytes [09:31:56]NVStorageSaveData done [09:31:56]ExternCall_PrintAddStr [09:31:56]wPrintStart [09:31:56]Write to MH i2c: 01 00 00 55 21 76 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 55 21 00 00 00 00 00 FF 0F 8B [09:31:56]RasterBufferAndPrint [09:31:56]line Счет N : (1)191034 [09:31:56]line ИНН: 02508201610067 [09:31:56]line Контрольно-Кассовый Чек [09:31:56]line ПРОДАЖА [09:31:56]line ТРК (МРК, ГНК) : 21 [09:31:56]line Товар: 2710124130 [09:31:56]line Аи-92-К-5 [09:31:56]line 14.950 * 66.90 [09:31:56]line = 1000.16 [09:31:56]line НДС 12% НСП 1% [09:31:56]line > о реализуемом товаре [09:31:56]line ОКРУГЛЕНИЕ: -0.16 [09:31:56]line ИТОГО: 1000.00 [09:31:56]line Внесено: 1000.00 [09:31:56]line СДАЧА: 0.00 [09:31:56]line НСП 1% : 8.85 [09:31:56]line НДС 12% : 106.21 [09:31:56]line Наличными: 1000.00 [09:31:56]line Безнал.: 0.00 [09:31:56]line Место: АЗС № 142 "Партнер Нефть" [09:31:56]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:31:56]line СНО: Общий режим [09:31:56]line Чек 54 26.10.2024 09:31 [09:31:56]line Смена: 512 ФФД: 1.0 [09:31:56]line ЗНМ: 0300000089 [09:31:56]line РНМ: 0000000000091691 [09:31:56]line Версия ККМ: 001 [09:31:56]line ФМ: 0000000000871795 [09:31:56]line ФД: 75062 [09:31:56]line ФПД: 217833245435297 [09:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093158&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75062&fm=217833245435297&tin=02508201610067®Number=0000000000091691&sum=100000 [09:31:56]written 0, free lines is 4095 [09:31:56]OFD Sender: Processing packet 75062 [packets to send 13, broken 12] [09:31:56]ProducePacketName [09:31:56]name=ofd_packets/00075062 [09:31:56]OFD Sender: To server: pG, [09:31:56]CommunicateWithHost lk.salyk.kg:30040 [09:31:56]ConnectInit lk.salyk.kg [09:31:56]Connected sock=11 [09:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7E 24 07 01 E8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 F4 03 04 00 0E B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 36 25 01 00 35 04 06 00 C6 1E 41 36 E5 A1 7A 72 95 19 3D 6B C7 41 [09:31:56]Write to MH i2c: 01 00 00 80 21 A1 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 80 21 00 00 00 00 00 AD 0C 61 [09:31:56]RasterBufferAndPrint [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]line [09:31:56]written 0, free lines is 3251 [09:31:56]MH_Cut [09:31:56]Write to MH i2c: D1 01 00 87 21 01 7A [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 01 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: D1 01 00 87 21 00 79 [09:31:56]Write to MH i2c: 01 00 00 88 21 A9 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DE 5F 47 00 AA 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 38 37 31 37 39 35 10 04 04 00 36 25 01 00 F4 03 04 00 8A 5E 1C 67 B6 04 01 00 00 58 96 0B 3C 0C 35 78 F8 [09:31:56]CommunicateWithHost err = 0 [09:31:56]CheckOFDResponse [09:31:56]1017 (14) - 77093643461234 [09:31:56]1041 (16) - 0000000000871795 [09:31:56]1040 (4) - 75062 [09:31:56]1012 (4) - 26.10.2024 03:14 [09:31:56]1206 (1) - 0 [09:31:56]OFD Sender: Remove packet 75062 [09:31:56]ProducePacketName [09:31:56]name=ofd_packets/00075062 [09:31:56]NVStorageDeleteData [09:31:57]OFD Sender: No OFD packet to send [09:31:57]*** Cut start [09:31:57]*** Partial cut [09:31:57]*** CUTSNS_PIN = 1 [09:31:57]*** CUTSNS_PIN = 0 [09:31:57]*** Brake cut motor [09:31:58]Read from MH i2c: 01 [09:31:58]MH_I2C_Read... [09:31:58]*** Stop cut motor [09:31:58]*** Cut end [09:31:58]Read from MH i2c: 01 07 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 FF 0F BE [09:31:58]process_action close_receipt done [09:31:58]requested_data is exist [09:31:58]produce_requested_data [09:31:58]requested_item fm.sn is exist - process it [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 11 00 00 [09:31:58]Write to MH i2c: E2 08 00 89 21 80 11 00 00 00 00 00 00 24 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 89 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [09:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:31:58]wFMCommunicate OK [09:31:58]requested_item fd.num is exist - process it [09:31:58]SAM_PROTO_GetFieldsCounters [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 13 00 00 [09:31:58]Write to MH i2c: E2 08 00 8A 21 80 13 00 00 00 00 00 00 27 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 62 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 62 00 8A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 36 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [09:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 36 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:58]wFMCommunicate OK [09:31:58]SAM_PROTO_GetFieldsCounters done [09:31:58]requested_item shift.num is exist - process it [09:31:58]requested_item shift.opened is exist - process it [09:31:58]req_shift_opened [09:31:58]FM_GetShiftState [09:31:58]SAM_PROTO_GetShiftState [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 13 01 00 [09:31:58]Write to MH i2c: E2 08 00 8B 21 80 13 01 00 00 00 00 00 29 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0E 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0E 00 8B 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 44 [09:31:58]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:31:58]wFMCommunicate OK [09:31:58]SAM_PROTO_GetShiftState done [09:31:58]FM_GetShiftState done [09:31:58]req_shift_opened done [09:31:58]requested_item shift.open_date is exist - process it [09:31:58]req_shift_open_date [09:31:58]req_shift_open_date done [09:31:58]produce_requested_data done [09:31:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75062,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:31:58]process_action_free close_receipt [09:31:58]json_value_free [09:31:58]json_value_free done [09:31:58]process_json_proto returns [09:31:58]Send response to host [09:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75062,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:31:58]free response buf [09:31:58]execute_script done [09:31:58]execute_script returns [09:31:58]free content buf [09:31:58]Sock 9.Close socket [09:31:58]Sock 9.Thread stoped [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:48]accept exits with 8 [09:33:48]New connection [09:33:48]New thread 3066781028 created [09:33:48]Thread 3066924388 joined [09:33:48]Waiting for new connection... [09:33:48] Sock 8.Parse request [09:33:48]Sock 8.Check first char [09:33:48]Sock 8.First char is OK [09:33:48]request: POST /json_proto HTTP/1.0 [09:33:48]Method: POST [09:33:48]URL: /json_proto [09:33:48]Method is POST - this is cgi request [09:33:48]url: /json_proto [09:33:48]query_string will be loaded in cgi processing [09:33:48]execute_cgi json_proto POST (null) [09:33:48]execute_cgi path=json_proto method=POST [09:33:48]POST find Content-Length [09:33:48]Host: 172.17.39.131:8080 [09:33:48]Content-Length: 677 [09:33:48]Content-Type: application/json [09:33:48] [09:33:48]POST finish read [09:33:48]Found Content-Length = 677 [09:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:48]execute_script... [09:33: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)191035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:33:48]POST & json_proto [09:33:48]process_json_proto [09:33:48]json parsed OK: [09:33:48]protocol is kg_v1.0 [09:33:48]action value=close_receipt [09:33:48]process_action close_receipt [09:33:48]cmd_close_receipt [09:33:48]MH_GetDate [09:33:48]Write to MH i2c: F0 00 00 8C 21 9C [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 09 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 09 00 8C 21 00 80 B7 1C 67 86 57 24 65 C5 [09:33:48]GetLastDocTimeStamp 1729935118 [09:33:48]current date 1729935232 [09:33:48]FM_GetShiftState [09:33:48]SAM_PROTO_GetShiftState [09:33:48]wFMCommunicate request_size=4 [09:33:48]MH_SAM_APDU [09:33:48]CAPDU: 80 13 01 00 [09:33:48]Write to MH i2c: E2 08 00 8D 21 80 13 01 00 00 00 00 00 2B [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0E 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0E 00 8D 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 46 [09:33:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:33:48]wFMCommunicate OK [09:33:48]SAM_PROTO_GetShiftState done [09:33:48]FM_GetShiftState done [09:33:48]opened in 1729902166 [09:33:48]opened+sec_in_day 1729988566 [09:33:48]quantity*price = 50041 [09:33:48]sum+1 = 50042 [09:33: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 55 26.10.2024 09:33 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75063 ФПД: 88405859461072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093352&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75063&fm=88405859461072&tin=02508201610067®Number=0000000000091691&sum=50000 [09:33:49]StoreToDocumentArchive [09:33:49]shift 512 fd 75063 [09:33:49]save to /storage/0512/doc_00075063 [09:33:49]save last doc name /storage/0512/doc_00075063 to /storage/kkm_last_doc_name [09:33:49]save OK [09:33:49]Clear old archive folders... [09:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:49]tlvbuf is B6EBABB0 [09:33:49]SAM_PROTO_ClearQueue [09:33:49]wFMCommunicate request_size=4 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 09 00 00 [09:33:49]Write to MH i2c: E2 08 00 9A 21 80 09 00 00 00 00 00 00 2D [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:49]Read from MH i2c: E2 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 9A 21 00 90 00 2F [09:33:49]RAPDU: 90 00 [09:33:49]wFMCommunicate OK [09:33:49]SAM_PROTO_ClearQueue done [09:33:49]KKMCreateOFDPacket [09:33:49]OFDProtocolAddRootSTLVToBuf [09:33:49]FM_MakeSignedData [09:33:49]FM_MakeSignedData [09:33:49]SAM_PROTO_SignData [09:33:49]wFMCommunicate request_size=4 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 0D 01 02 [09:33:49]Write to MH i2c: E2 08 00 9B 21 80 0D 01 02 00 00 00 00 35 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:49]Read from MH i2c: E2 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [09:33:49]RAPDU: 90 00 [09:33:49]wFMCommunicate OK [09:33:49]wFMCommunicate request_size=255 [09:33:49]MH_SAM_APDU [09:33: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 37 00 00 00 F4 03 04 00 80 B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 37 25 01 00 35 04 06 00 50 [09:33:49]Write to MH i2c: E2 02 01 9C 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 37 00 00 00 F4 03 04 00 80 B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 37 25 01 00 35 04 06 00 50 00 00 6A [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:49]Read from MH i2c: E2 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 03 00 9C 21 00 90 00 31 [09:33:49]RAPDU: 90 00 [09:33:49]wFMCommunicate OK [09:33:49]wFMCommunicate request_size=10 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 0D 02 02 05 67 97 D9 67 D0 [09:33:49]Write to MH i2c: E2 0D 00 9D 21 80 0D 02 02 05 00 67 97 D9 67 D0 00 00 50 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 9D 21 00 90 00 32 [09:33:50]RAPDU: 90 00 [09:33:50]wFMCommunicate OK [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 0D 03 02 [09:33:50]Write to MH i2c: E2 08 00 9E 21 80 0D 03 02 00 00 00 00 3A [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0B 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0B 00 9E 21 00 4E 6B AE D2 9B 8C 5D 72 90 00 6A [09:33:50]RAPDU: 4E 6B AE D2 9B 8C 5D 72 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_SignData done [09:33:50]FM_MakeSignedData done [09:33:50]CreateOFDProtocolMessage [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 11 00 00 [09:33:50]Write to MH i2c: E2 08 00 9F 21 80 11 00 00 00 00 00 00 3A [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 9F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 92 [09:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:33:50]wFMCommunicate OK [09:33:50]CreateOFDProtocolMessage done [09:33:50]OFDSenderStorePacket 75063 [09:33:50]StoreOFDPacket docnum=75063 [09:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AD BF 07 01 93 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 F4 03 04 00 80 B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 37 25 01 00 35 04 06 00 50 67 97 D9 67 D0 4E 6B AE D2 9B 8C 5D 72 [09:33:50]CheckFolder [09:33:50]dirname=/storage/ofd_packets [09:33:50]CheckFolder done [09:33:50]ProducePacketName [09:33:50]name=ofd_packets/00075063 [09:33:50]NVStorageSaveData ofd_packets/00075063 [09:33:50]File name is /storage/ofd_packets/00075063 [09:33:50]Write 301 bytes [09:33:50]NVStorageSaveData done [09:33:50]OFDSenderStorePacket done [09:33:50]KKMCreateOFDPacket done [09:33:50]NVStorageSaveData kkm_last_timestamp [09:33:50]File name is /storage/kkm_last_timestamp [09:33:50]Write 4 bytes [09:33:50]NVStorageSaveData done [09:33:50]ExternCall_PrintAddStr [09:33:50]wPrintStart [09:33:50]Write to MH i2c: 01 00 00 A0 21 C1 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 A0 21 00 00 00 00 00 FF 0F D6 [09:33:50]RasterBufferAndPrint [09:33:50]line Счет N : (1)191035 [09:33:50]line ИНН: 02508201610067 [09:33:50]line Контрольно-Кассовый Чек [09:33:50]line ПРОДАЖА [09:33:50]line ТРК (МРК, ГНК) : 21 [09:33:50]line Товар: 2710124130 [09:33:50]line Аи-92-К-5 [09:33:50]line 7.480 * 66.90 [09:33:50]line = 500.41 [09:33:50]line НДС 12% НСП 1% [09:33:50]line > о реализуемом товаре [09:33:50]line ОКРУГЛЕНИЕ: -0.41 [09:33:50]line ИТОГО: 500.00 [09:33:50]line Внесено: 500.00 [09:33:50]line СДАЧА: 0.00 [09:33:50]line НСП 1% : 4.43 [09:33:50]line НДС 12% : 53.14 [09:33:50]line Наличными: 500.00 [09:33:50]line Безнал.: 0.00 [09:33:50]line Место: АЗС № 142 "Партнер Нефть" [09:33:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:33:50]line СНО: Общий режим [09:33:50]line Чек 55 26.10.2024 09:33 [09:33:50]line Смена: 512 ФФД: 1.0 [09:33:50]line ЗНМ: 0300000089 [09:33:50]line РНМ: 0000000000091691 [09:33:50]line Версия ККМ: 001 [09:33:50]line ФМ: 0000000000871795 [09:33:50]line ФД: 75063 [09:33:50]line ФПД: 88405859461072 [09:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093352&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75063&fm=88405859461072&tin=02508201610067®Number=0000000000091691&sum=50000 [09:33:50]written 0, free lines is 4095 [09:33:50]OFD Sender: Processing packet 75063 [packets to send 13, broken 12] [09:33:50]ProducePacketName [09:33:50]name=ofd_packets/00075063 [09:33:50]OFD Sender: To server: pG, [09:33:50]CommunicateWithHost lk.salyk.kg:30040 [09:33:50]ConnectInit lk.salyk.kg [09:33:50]Connected sock=10 [09:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AD BF 07 01 93 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 F4 03 04 00 80 B7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 37 25 01 00 35 04 06 00 50 67 97 D9 67 D0 4E 6B AE D2 9B 8C 5D 72 [09:33:50]Write to MH i2c: 01 00 00 CB 21 EC [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 A7 0C A6 [09:33:50]RasterBufferAndPrint [09:33:50]line [09:33:50]line [09:33:50]line [09:33:50]line [09:33:50]line [09:33:50]written 0, free lines is 3245 [09:33:50]MH_Cut [09:33:50]Write to MH i2c: D1 01 00 D2 21 01 C5 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: D1 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: D1 01 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: D1 01 00 D2 21 00 C4 [09:33:50]Write to MH i2c: 01 00 00 D3 21 F4 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 97 3D 47 00 BC 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 37 25 01 00 F4 03 04 00 FC 5E 1C 67 B6 04 01 00 00 9B D3 7E A0 E2 D8 A2 BA [09:33:50]CommunicateWithHost err = 0 [09:33:50]CheckOFDResponse [09:33:50]1017 (14) - 77093643461234 [09:33:50]1041 (16) - 0000000000871795 [09:33:50]1040 (4) - 75063 [09:33:50]1012 (4) - 26.10.2024 03:16 [09:33:50]1206 (1) - 0 [09:33:50]OFD Sender: Remove packet 75063 [09:33:50]ProducePacketName [09:33:50]name=ofd_packets/00075063 [09:33:50]NVStorageDeleteData [09:33:51]OFD Sender: No OFD packet to send [09:33:51]*** Cut start [09:33:51]*** Partial cut [09:33:51]*** CUTSNS_PIN = 1 [09:33:51]*** CUTSNS_PIN = 0 [09:33:51]*** Brake cut motor [09:33:52]Read from MH i2c: 01 [09:33:52]MH_I2C_Read... [09:33:52]*** Stop cut motor [09:33:52]*** Cut end [09:33:52]Read from MH i2c: 01 07 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 D3 21 00 00 00 00 00 FF 0F 09 [09:33:52]process_action close_receipt done [09:33:52]requested_data is exist [09:33:52]produce_requested_data [09:33:52]requested_item fm.sn is exist - process it [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 11 00 00 [09:33:52]Write to MH i2c: E2 08 00 D4 21 80 11 00 00 00 00 00 00 6F [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 D4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [09:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:33:52]wFMCommunicate OK [09:33:52]requested_item fd.num is exist - process it [09:33:52]SAM_PROTO_GetFieldsCounters [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 00 00 [09:33:52]Write to MH i2c: E2 08 00 D5 21 80 13 00 00 00 00 00 00 72 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 62 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 62 00 D5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 37 25 01 00 0E 04 04 00 00 02 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 9D [09:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 37 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetFieldsCounters done [09:33:52]requested_item shift.num is exist - process it [09:33:52]requested_item shift.opened is exist - process it [09:33:52]req_shift_opened [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 D6 21 80 13 01 00 00 00 00 00 74 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 D6 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8F [09:33:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]req_shift_opened done [09:33:52]requested_item shift.open_date is exist - process it [09:33:52]req_shift_open_date [09:33:52]req_shift_open_date done [09:33:52]produce_requested_data done [09:33:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75063,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:33:52]process_action_free close_receipt [09:33:52]json_value_free [09:33:52]json_value_free done [09:33:52]process_json_proto returns [09:33:52]Send response to host [09:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75063,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:33:52]free response buf [09:33:52]execute_script done [09:33:52]execute_script returns [09:33:52]free content buf [09:33:52]Sock 8.Close socket [09:33:52]Sock 8.Thread stoped [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:18]accept exits with 9 [09:40:18]New connection [09:40:18]New thread 3066924388 created [09:40:18]Thread 3066781028 joined [09:40:18]Waiting for new connection... [09:40:18] Sock 9.Parse request [09:40:18]Sock 9.Check first char [09:40:18]Sock 9.First char is OK [09:40:18]request: POST /json_proto HTTP/1.0 [09:40:18]Method: POST [09:40:18]URL: /json_proto [09:40:18]Method is POST - this is cgi request [09:40:18]url: /json_proto [09:40:18]query_string will be loaded in cgi processing [09:40:18]execute_cgi json_proto POST (null) [09:40:18]execute_cgi path=json_proto method=POST [09:40:18]POST find Content-Length [09:40:18]Host: 172.17.39.131:8080 [09:40:18]Content-Length: 677 [09:40:18]Content-Type: application/json [09:40:18] [09:40:18]POST finish read [09:40:18]Found Content-Length = 677 [09:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:40:18]execute_script... [09:40: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)191036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:40:18]POST & json_proto [09:40:18]process_json_proto [09:40:18]json parsed OK: [09:40:18]protocol is kg_v1.0 [09:40:18]action value=close_receipt [09:40:18]process_action close_receipt [09:40:18]cmd_close_receipt [09:40:18]MH_GetDate [09:40:18]Write to MH i2c: F0 00 00 D7 21 E7 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: F0 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: F0 09 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: F0 09 00 D7 21 00 07 B9 1C 67 86 57 24 65 99 [09:40:18]GetLastDocTimeStamp 1729935232 [09:40:18]current date 1729935623 [09:40:18]FM_GetShiftState [09:40:18]SAM_PROTO_GetShiftState [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 01 00 [09:40:18]Write to MH i2c: E2 08 00 D8 21 80 13 01 00 00 00 00 00 76 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0E 00 D8 21 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 91 [09:40:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetShiftState done [09:40:18]FM_GetShiftState done [09:40:18]opened in 1729902166 [09:40:18]opened+sec_in_day 1729988566 [09:40:19]quantity*price = 50041 [09:40:19]sum+1 = 50042 [09:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 56 26.10.2024 09:40 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75064 ФПД: 259909901671629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094023&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75064&fm=259909901671629&tin=02508201610067®Number=0000000000091691&sum=50000 [09:40:20]StoreToDocumentArchive [09:40:20]shift 512 fd 75064 [09:40:20]save to /storage/0512/doc_00075064 [09:40:20]save last doc name /storage/0512/doc_00075064 to /storage/kkm_last_doc_name [09:40:20]save OK [09:40:20]Clear old archive folders... [09:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:20]tlvbuf is 0084DD00 [09:40:20]SAM_PROTO_ClearQueue [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 09 00 00 [09:40:20]Write to MH i2c: E2 08 00 E5 21 80 09 00 00 00 00 00 00 78 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 E5 21 00 90 00 7A [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]SAM_PROTO_ClearQueue done [09:40:20]KKMCreateOFDPacket [09:40:20]OFDProtocolAddRootSTLVToBuf [09:40:20]FM_MakeSignedData [09:40:20]FM_MakeSignedData [09:40:20]SAM_PROTO_SignData [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 0D 01 02 [09:40:20]Write to MH i2c: E2 08 00 E6 21 80 0D 01 02 00 00 00 00 80 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 E6 21 00 90 00 7B [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]wFMCommunicate request_size=255 [09:40:20]MH_SAM_APDU [09:40: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 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 38 00 00 00 F4 03 04 00 07 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 38 25 01 00 35 04 06 00 EC [09:40:20]Write to MH i2c: E2 02 01 E7 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 38 00 00 00 F4 03 04 00 07 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 38 25 01 00 35 04 06 00 EC 00 00 DC [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 E7 21 00 90 00 7C [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]wFMCommunicate request_size=10 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 0D 02 02 05 62 FD 5C DC CD [09:40:20]Write to MH i2c: E2 0D 00 E8 21 80 0D 02 02 05 00 62 FD 5C DC CD 00 00 F1 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 E8 21 00 90 00 7D [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 0D 03 02 [09:40:20]Write to MH i2c: E2 08 00 E9 21 80 0D 03 02 00 00 00 00 85 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 0B 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 0B 00 E9 21 00 73 7A B6 37 D2 98 10 A5 90 00 7F [09:40:20]RAPDU: 73 7A B6 37 D2 98 10 A5 90 00 [09:40:20]wFMCommunicate OK [09:40:20]SAM_PROTO_SignData done [09:40:20]FM_MakeSignedData done [09:40:20]CreateOFDProtocolMessage [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 11 00 00 [09:40:20]Write to MH i2c: E2 08 00 EA 21 80 11 00 00 00 00 00 00 85 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 17 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 17 00 EA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DD [09:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:40:20]wFMCommunicate OK [09:40:20]CreateOFDProtocolMessage done [09:40:20]OFDSenderStorePacket 75064 [09:40:20]StoreOFDPacket docnum=75064 [09:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D1 69 07 01 21 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 38 00 00 00 F4 03 04 00 07 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 38 25 01 00 35 04 06 00 EC 62 FD 5C DC CD 73 7A B6 37 D2 98 10 A5 [09:40:20]CheckFolder [09:40:20]dirname=/storage/ofd_packets [09:40:20]CheckFolder done [09:40:20]ProducePacketName [09:40:20]name=ofd_packets/00075064 [09:40:20]NVStorageSaveData ofd_packets/00075064 [09:40:20]File name is /storage/ofd_packets/00075064 [09:40:20]Write 301 bytes [09:40:20]NVStorageSaveData done [09:40:20]OFDSenderStorePacket done [09:40:20]KKMCreateOFDPacket done [09:40:20]NVStorageSaveData kkm_last_timestamp [09:40:20]File name is /storage/kkm_last_timestamp [09:40:20]Write 4 bytes [09:40:20]NVStorageSaveData done [09:40:20]ExternCall_PrintAddStr [09:40:20]wPrintStart [09:40:20]Write to MH i2c: 01 00 00 EB 21 0C [09:40:20]OFD Sender: Processing packet 75064 [packets to send 13, broken 12] [09:40:20]ProducePacketName [09:40:20]name=ofd_packets/00075064 [09:40:20]OFD Sender: To server: pG, [09:40:20]CommunicateWithHost lk.salyk.kg:30040 [09:40:20]ConnectInit lk.salyk.kg [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: 01 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: 01 07 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: 01 07 00 EB 21 00 00 00 00 00 FF 0F 21 [09:40:20]RasterBufferAndPrint [09:40:20]line Счет N : (1)191036 [09:40:20]line ИНН: 02508201610067 [09:40:20]line Контрольно-Кассовый Чек [09:40:20]line ПРОДАЖА [09:40:20]line ТРК (МРК, ГНК) : 21 [09:40:20]line Товар: 2710124130 [09:40:20]line Аи-92-К-5 [09:40:20]line 7.480 * 66.90 [09:40:20]line = 500.41 [09:40:20]line НДС 12% НСП 1% [09:40:20]line > о реализуемом товаре [09:40:20]line ОКРУГЛЕНИЕ: -0.41 [09:40:20]line ИТОГО: 500.00 [09:40:20]line Внесено: 500.00 [09:40:20]line СДАЧА: 0.00 [09:40:20]line НСП 1% : 4.43 [09:40:20]line НДС 12% : 53.14 [09:40:20]line Наличными: 500.00 [09:40:20]line Безнал.: 0.00 [09:40:20]line Место: АЗС № 142 "Партнер Нефть" [09:40:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:40:20]line СНО: Общий режим [09:40:20]line Чек 56 26.10.2024 09:40 [09:40:20]line Смена: 512 ФФД: 1.0 [09:40:20]line ЗНМ: 0300000089 [09:40:20]line РНМ: 0000000000091691 [09:40:20]line Версия ККМ: 001 [09:40:20]line ФМ: 0000000000871795 [09:40:20]line ФД: 75064 [09:40:20]line ФПД: 259909901671629 [09:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094023&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75064&fm=259909901671629&tin=02508201610067®Number=0000000000091691&sum=50000 [09:40:20]written 0, free lines is 4095 [09:40:20]Connected sock=10 [09:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D1 69 07 01 21 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 38 00 00 00 F4 03 04 00 07 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 38 25 01 00 35 04 06 00 EC 62 FD 5C DC CD 73 7A B6 37 D2 98 10 A5 [09:40:21]Write to MH i2c: 01 00 00 16 22 38 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 A7 0C F2 [09:40:21]RasterBufferAndPrint [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]written 0, free lines is 3245 [09:40:21]MH_Cut [09:40:21]Write to MH i2c: D1 01 00 1D 22 01 11 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 01 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 01 00 1D 22 00 10 [09:40:21]Write to MH i2c: 01 00 00 1E 22 40 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A9 03 47 00 01 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 38 25 01 00 F4 03 04 00 83 60 1C 67 B6 04 01 00 00 A4 52 7C 6A BF E1 42 BA [09:40:21]CommunicateWithHost err = 0 [09:40:21]CheckOFDResponse [09:40:21]1017 (14) - 77093643461234 [09:40:21]1041 (16) - 0000000000871795 [09:40:21]1040 (4) - 75064 [09:40:21]1012 (4) - 26.10.2024 03:22 [09:40:21]1206 (1) - 0 [09:40:21]OFD Sender: Remove packet 75064 [09:40:21]ProducePacketName [09:40:21]name=ofd_packets/00075064 [09:40:21]NVStorageDeleteData [09:40:21]OFD Sender: No OFD packet to send [09:40:22]*** Cut start [09:40:22]*** Partial cut [09:40:22]*** CUTSNS_PIN = 1 [09:40:22]*** CUTSNS_PIN = 0 [09:40:22]*** Brake cut motor [09:40:22]Read from MH i2c: 01 [09:40:22]MH_I2C_Read... [09:40:22]*** Stop cut motor [09:40:22]*** Cut end [09:40:22]Read from MH i2c: 01 07 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: 01 07 00 1E 22 00 00 00 00 00 FF 0F 55 [09:40:22]process_action close_receipt done [09:40:22]requested_data is exist [09:40:22]produce_requested_data [09:40:22]requested_item fm.sn is exist - process it [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 11 00 00 [09:40:22]Write to MH i2c: E2 08 00 1F 22 80 11 00 00 00 00 00 00 BB [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 17 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 17 00 1F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 13 [09:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:40:22]wFMCommunicate OK [09:40:22]requested_item fd.num is exist - process it [09:40:22]SAM_PROTO_GetFieldsCounters [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 13 00 00 [09:40:22]Write to MH i2c: E2 08 00 20 22 80 13 00 00 00 00 00 00 BE [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 62 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 62 00 20 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 38 25 01 00 0E 04 04 00 00 02 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 ED [09:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 38 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:22]wFMCommunicate OK [09:40:22]SAM_PROTO_GetFieldsCounters done [09:40:22]requested_item shift.num is exist - process it [09:40:22]requested_item shift.opened is exist - process it [09:40:22]req_shift_opened [09:40:22]FM_GetShiftState [09:40:22]SAM_PROTO_GetShiftState [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 13 01 00 [09:40:22]Write to MH i2c: E2 08 00 21 22 80 13 01 00 00 00 00 00 C0 [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 0E 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 0E 00 21 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DB [09:40:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:40:22]wFMCommunicate OK [09:40:22]SAM_PROTO_GetShiftState done [09:40:22]FM_GetShiftState done [09:40:22]req_shift_opened done [09:40:22]requested_item shift.open_date is exist - process it [09:40:22]req_shift_open_date [09:40:22]req_shift_open_date done [09:40:22]produce_requested_data done [09:40:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75064,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:40:22]process_action_free close_receipt [09:40:22]json_value_free [09:40:22]json_value_free done [09:40:22]process_json_proto returns [09:40:22]Send response to host [09:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75064,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:40:22]free response buf [09:40:22]execute_script done [09:40:22]execute_script returns [09:40:22]free content buf [09:40:22]Sock 9.Close socket [09:40:22]Sock 9.Thread stoped [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:12]accept exits with 8 [09:42:12]New connection [09:42:12]New thread 3066781028 created [09:42:12]Thread 3066924388 joined [09:42:12]Waiting for new connection... [09:42:12] Sock 8.Parse request [09:42:12]Sock 8.Check first char [09:42:12]Sock 8.First char is OK [09:42:12]request: POST /json_proto HTTP/1.0 [09:42:12]Method: POST [09:42:12]URL: /json_proto [09:42:12]Method is POST - this is cgi request [09:42:12]url: /json_proto [09:42:12]query_string will be loaded in cgi processing [09:42:12]execute_cgi json_proto POST (null) [09:42:12]execute_cgi path=json_proto method=POST [09:42:12]POST find Content-Length [09:42:12]Host: 172.17.39.131:8080 [09:42:12]Content-Length: 677 [09:42:12]Content-Type: application/json [09:42:12] [09:42:12]POST finish read [09:42:12]Found Content-Length = 677 [09:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:12]execute_script... [09: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)191037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:12]POST & json_proto [09:42:12]process_json_proto [09:42:12]json parsed OK: [09:42:12]protocol is kg_v1.0 [09:42:12]action value=close_receipt [09:42:12]process_action close_receipt [09:42:12]cmd_close_receipt [09:42:12]MH_GetDate [09:42:12]Write to MH i2c: F0 00 00 22 22 33 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 09 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: F0 09 00 22 22 00 79 B9 1C 67 86 57 24 65 57 [09:42:12]GetLastDocTimeStamp 1729935623 [09:42:12]current date 1729935737 [09:42:12]FM_GetShiftState [09:42:12]SAM_PROTO_GetShiftState [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 01 00 [09:42:12]Write to MH i2c: E2 08 00 23 22 80 13 01 00 00 00 00 00 C2 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 23 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DD [09:42:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetShiftState done [09:42:13]FM_GetShiftState done [09:42:13]opened in 1729902166 [09:42:13]opened+sec_in_day 1729988566 [09:42:13]quantity*price = 20003 [09:42:13]sum+1 = 20004 [09:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 57 26.10.2024 09:42 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75065 ФПД: 49128067764142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094217&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75065&fm=49128067764142&tin=02508201610067®Number=0000000000091691&sum=20000 [09:42:14]StoreToDocumentArchive [09:42:14]shift 512 fd 75065 [09:42:14]save to /storage/0512/doc_00075065 [09:42:14]save last doc name /storage/0512/doc_00075065 to /storage/kkm_last_doc_name [09:42:14]save OK [09:42:14]Clear old archive folders... [09:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:14]tlvbuf is 00836660 [09:42:14]SAM_PROTO_ClearQueue [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 09 00 00 [09:42:14]Write to MH i2c: E2 08 00 30 22 80 09 00 00 00 00 00 00 C4 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_ClearQueue done [09:42:14]KKMCreateOFDPacket [09:42:14]OFDProtocolAddRootSTLVToBuf [09:42:14]FM_MakeSignedData [09:42:14]FM_MakeSignedData [09:42:14]SAM_PROTO_SignData [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 01 02 [09:42:14]Write to MH i2c: E2 08 00 31 22 80 0D 01 02 00 00 00 00 CC [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 31 22 00 90 00 C7 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=255 [09:42:14]MH_SAM_APDU [09:42: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 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 39 00 00 00 F4 03 04 00 79 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 39 25 01 00 35 04 06 00 2C [09:42:14]Write to MH i2c: E2 02 01 32 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 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 39 00 00 00 F4 03 04 00 79 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 39 25 01 00 35 04 06 00 2C 00 00 9E [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 32 22 00 90 00 C8 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=10 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 02 02 05 AE 85 07 0F AE [09:42:14]Write to MH i2c: E2 0D 00 33 22 80 0D 02 02 05 00 AE 85 07 0F AE 00 00 D0 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 33 22 00 90 00 C9 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 03 02 [09:42:14]Write to MH i2c: E2 08 00 34 22 80 0D 03 02 00 00 00 00 D1 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0B 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0B 00 34 22 00 EA 56 2D 90 D9 69 9E 7A 90 00 29 [09:42:14]RAPDU: EA 56 2D 90 D9 69 9E 7A 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_SignData done [09:42:14]FM_MakeSignedData done [09:42:14]CreateOFDProtocolMessage [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 11 00 00 [09:42:14]Write to MH i2c: E2 08 00 35 22 80 11 00 00 00 00 00 00 D1 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 17 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 17 00 35 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 29 [09:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:42:14]wFMCommunicate OK [09:42:14]CreateOFDProtocolMessage done [09:42:14]OFDSenderStorePacket 75065 [09:42:14]StoreOFDPacket docnum=75065 [09:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 45 67 07 01 EF 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 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 39 00 00 00 F4 03 04 00 79 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 39 25 01 00 35 04 06 00 2C AE 85 07 0F AE EA 56 2D 90 D9 69 9E 7A [09:42:14]CheckFolder [09:42:14]dirname=/storage/ofd_packets [09:42:14]CheckFolder done [09:42:14]ProducePacketName [09:42:14]name=ofd_packets/00075065 [09:42:14]NVStorageSaveData ofd_packets/00075065 [09:42:14]File name is /storage/ofd_packets/00075065 [09:42:14]Write 301 bytes [09:42:14]NVStorageSaveData done [09:42:14]OFDSenderStorePacket done [09:42:14]KKMCreateOFDPacket done [09:42:14]NVStorageSaveData kkm_last_timestamp [09:42:14]File name is /storage/kkm_last_timestamp [09:42:14]Write 4 bytes [09:42:14]NVStorageSaveData done [09:42:14]ExternCall_PrintAddStr [09:42:14]wPrintStart [09:42:14]Write to MH i2c: 01 00 00 36 22 58 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: 01 07 00 36 22 00 00 00 00 00 FF 0F 6D [09:42:14]RasterBufferAndPrint [09:42:14]line Счет N : (1)191037 [09:42:14]line ИНН: 02508201610067 [09:42:14]line Контрольно-Кассовый Чек [09:42:14]line ПРОДАЖА [09:42:14]line ТРК (МРК, ГНК) : 21 [09:42:14]line Товар: 2710124130 [09:42:14]line Аи-92-К-5 [09:42:14]line 2.990 * 66.90 [09:42:14]line = 200.03 [09:42:14]line НДС 12% НСП 1% [09:42:14]line > о реализуемом товаре [09:42:14]line ОКРУГЛЕНИЕ: -0.03 [09:42:14]line ИТОГО: 200.00 [09:42:14]line Внесено: 200.00 [09:42:14]line СДАЧА: 0.00 [09:42:14]line НСП 1% : 1.77 [09:42:14]line НДС 12% : 21.24 [09:42:14]line Наличными: 200.00 [09:42:14]line Безнал.: 0.00 [09:42:14]line Место: АЗС № 142 "Партнер Нефть" [09:42:14]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:42:14]line СНО: Общий режим [09:42:14]line Чек 57 26.10.2024 09:42 [09:42:14]line Смена: 512 ФФД: 1.0 [09:42:14]line ЗНМ: 0300000089 [09:42:14]line РНМ: 0000000000091691 [09:42:14]line Версия ККМ: 001 [09:42:14]line ФМ: 0000000000871795 [09:42:14]line ФД: 75065 [09:42:14]line ФПД: 49128067764142 [09:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094217&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75065&fm=49128067764142&tin=02508201610067®Number=0000000000091691&sum=20000 [09:42:15]OFD Sender: Processing packet 75065 [packets to send 13, broken 12] [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00075065 [09:42:15]OFD Sender: To server: pG, [09:42:15]CommunicateWithHost lk.salyk.kg:30040 [09:42:15]ConnectInit lk.salyk.kg [09:42:15]written 0, free lines is 4095 [09:42:15]Connected sock=10 [09:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 45 67 07 01 EF 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 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 39 00 00 00 F4 03 04 00 79 B9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 39 25 01 00 35 04 06 00 2C AE 85 07 0F AE EA 56 2D 90 D9 69 9E 7A [09:42:15]Write to MH i2c: 01 00 00 61 22 83 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 61 22 00 00 00 00 00 A9 0C 3F [09:42:15]RasterBufferAndPrint [09:42:15]line [09:42:15]line [09:42:15]line [09:42:15]line [09:42:15]line [09:42:15]written 0, free lines is 3248 [09:42:15]MH_Cut [09:42:15]Write to MH i2c: D1 01 00 68 22 01 5C [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: D1 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: D1 01 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: D1 01 00 68 22 00 5B [09:42:15]Write to MH i2c: 01 00 00 69 22 8B [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D5 79 47 00 B0 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 39 25 01 00 F4 03 04 00 F5 60 1C 67 B6 04 01 00 00 59 7A 2C 39 08 01 98 3B [09:42:15]CommunicateWithHost err = 0 [09:42:15]CheckOFDResponse [09:42:15]1017 (14) - 77093643461234 [09:42:15]1041 (16) - 0000000000871795 [09:42:15]1040 (4) - 75065 [09:42:15]1012 (4) - 26.10.2024 03:24 [09:42:15]1206 (1) - 0 [09:42:15]OFD Sender: Remove packet 75065 [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00075065 [09:42:15]NVStorageDeleteData [09:42:16]OFD Sender: No OFD packet to send [09:42:16]*** Cut start [09:42:16]*** Partial cut [09:42:16]*** CUTSNS_PIN = 1 [09:42:16]*** CUTSNS_PIN = 0 [09:42:16]*** Brake cut motor [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]*** Stop cut motor [09:42:17]*** Cut end [09:42:17]Read from MH i2c: 01 07 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 FF 0F A0 [09:42:17]process_action close_receipt done [09:42:17]requested_data is exist [09:42:17]produce_requested_data [09:42:17]requested_item fm.sn is exist - process it [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 11 00 00 [09:42:17]Write to MH i2c: E2 08 00 6A 22 80 11 00 00 00 00 00 00 06 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 6A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5E [09:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:42:17]wFMCommunicate OK [09:42:17]requested_item fd.num is exist - process it [09:42:17]SAM_PROTO_GetFieldsCounters [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 13 00 00 [09:42:17]Write to MH i2c: E2 08 00 6B 22 80 13 00 00 00 00 00 00 09 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 62 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 62 00 6B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 39 25 01 00 0E 04 04 00 00 02 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 3C [09:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 39 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_GetFieldsCounters done [09:42:17]requested_item shift.num is exist - process it [09:42:17]requested_item shift.opened is exist - process it [09:42:17]req_shift_opened [09:42:17]FM_GetShiftState [09:42:17]SAM_PROTO_GetShiftState [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 13 01 00 [09:42:17]Write to MH i2c: E2 08 00 6C 22 80 13 01 00 00 00 00 00 0B [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0E 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0E 00 6C 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 26 [09:42:17]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_GetShiftState done [09:42:17]FM_GetShiftState done [09:42:17]req_shift_opened done [09:42:17]requested_item shift.open_date is exist - process it [09:42:17]req_shift_open_date [09:42:17]req_shift_open_date done [09:42:17]produce_requested_data done [09:42:17]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75065,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:42:17]process_action_free close_receipt [09:42:17]json_value_free [09:42:17]json_value_free done [09:42:17]process_json_proto returns [09:42:17]Send response to host [09:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75065,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:42:17]free response buf [09:42:17]execute_script done [09:42:17]execute_script returns [09:42:17]free content buf [09:42:17]Sock 8.Close socket [09:42:17]Sock 8.Thread stoped [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:27]accept exits with 9 [09:47:27]New connection [09:47:27]New thread 3066924388 created [09:47:27]Thread 3066781028 joined [09:47:27]Waiting for new connection... [09:47:27] Sock 9.Parse request [09:47:27]Sock 9.Check first char [09:47:27]Sock 9.First char is OK [09:47:27]request: POST /json_proto HTTP/1.0 [09:47:27]Method: POST [09:47:27]URL: /json_proto [09:47:27]Method is POST - this is cgi request [09:47:27]url: /json_proto [09:47:27]query_string will be loaded in cgi processing [09:47:27]execute_cgi json_proto POST (null) [09:47:27]execute_cgi path=json_proto method=POST [09:47:27]POST find Content-Length [09:47:27]Host: 172.17.39.131:8080 [09:47:27]Content-Length: 769 [09:47:27]Content-Type: application/json [09:47:27] [09:47:27]POST finish read [09:47:27]Found Content-Length = 769 [09:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [09:47:27]execute_script... [09:47:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [09:47:27]POST & json_proto [09:47:27]process_json_proto [09:47:27]json parsed OK: [09:47:27]protocol is kg_v1.0 [09:47:27]action value=close_receipt [09:47:27]process_action close_receipt [09:47:27]cmd_close_receipt [09:47:27]MH_GetDate [09:47:27]Write to MH i2c: F0 00 00 6D 22 7E [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 09 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 09 00 6D 22 00 B4 BA 1C 67 86 57 24 65 DE [09:47:27]GetLastDocTimeStamp 1729935737 [09:47:27]current date 1729936052 [09:47:27]FM_GetShiftState [09:47:27]SAM_PROTO_GetShiftState [09:47:27]wFMCommunicate request_size=4 [09:47:27]MH_SAM_APDU [09:47:27]CAPDU: 80 13 01 00 [09:47:27]Write to MH i2c: E2 08 00 6E 22 80 13 01 00 00 00 00 00 0D [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:27]Read from MH i2c: E2 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 0E 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 0E 00 6E 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 28 [09:47:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:47:27]wFMCommunicate OK [09:47:27]SAM_PROTO_GetShiftState done [09:47:27]FM_GetShiftState done [09:47:27]opened in 1729902166 [09:47:27]opened+sec_in_day 1729988566 [09:47:27]quantity*price = 200031 [09:47:27]sum+1 = 200032 [09:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 58 26.10.2024 09:47 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75066 ФПД: 153733730418585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094732&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75066&fm=153733730418585&tin=02508201610067®Number=0000000000091691&sum=200031 [09:47:29]StoreToDocumentArchive [09:47:29]shift 512 fd 75066 [09:47:29]save to /storage/0512/doc_00075066 [09:47:29]save last doc name /storage/0512/doc_00075066 to /storage/kkm_last_doc_name [09:47:29]save OK [09:47:29]Clear old archive folders... [09:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:29]tlvbuf is 00836030 [09:47:29]SAM_PROTO_ClearQueue [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 09 00 00 [09:47:29]Write to MH i2c: E2 08 00 7B 22 80 09 00 00 00 00 00 00 0F [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_ClearQueue done [09:47:29]KKMCreateOFDPacket [09:47:29]OFDProtocolAddRootSTLVToBuf [09:47:29]FM_MakeSignedData [09:47:29]FM_MakeSignedData [09:47:29]SAM_PROTO_SignData [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 01 02 [09:47:29]Write to MH i2c: E2 08 00 7C 22 80 0D 01 02 00 00 00 00 17 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 7C 22 00 90 00 12 [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=255 [09:47:29]MH_SAM_APDU [09:47: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 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 3A 00 00 00 F4 03 04 00 B4 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3A 25 01 00 35 04 06 00 8B [09:47:29]Write to MH i2c: E2 02 01 7D 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 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 3A 00 00 00 F4 03 04 00 B4 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3A 25 01 00 35 04 06 00 8B 00 00 44 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 7D 22 00 90 00 13 [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=10 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 02 02 05 D1 EC 64 3F 99 [09:47:29]Write to MH i2c: E2 0D 00 7E 22 80 0D 02 02 05 00 D1 EC 64 3F 99 00 00 1D [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 7E 22 00 90 00 14 [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 03 02 [09:47:29]Write to MH i2c: E2 08 00 7F 22 80 0D 03 02 00 00 00 00 1C [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0B 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0B 00 7F 22 00 06 4E 92 30 8E FD 39 13 90 00 0A [09:47:29]RAPDU: 06 4E 92 30 8E FD 39 13 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_SignData done [09:47:29]FM_MakeSignedData done [09:47:29]CreateOFDProtocolMessage [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 11 00 00 [09:47:29]Write to MH i2c: E2 08 00 80 22 80 11 00 00 00 00 00 00 1C [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 17 00 80 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 74 [09:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:47:29]wFMCommunicate OK [09:47:29]CreateOFDProtocolMessage done [09:47:29]OFDSenderStorePacket 75066 [09:47:29]StoreOFDPacket docnum=75066 [09:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CF 56 07 01 13 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 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 3A 00 00 00 F4 03 04 00 B4 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3A 25 01 00 35 04 06 00 8B D1 EC 64 3F 99 06 4E 92 30 8E FD 39 13 [09:47:29]CheckFolder [09:47:29]dirname=/storage/ofd_packets [09:47:29]CheckFolder done [09:47:29]ProducePacketName [09:47:29]name=ofd_packets/00075066 [09:47:29]NVStorageSaveData ofd_packets/00075066 [09:47:29]File name is /storage/ofd_packets/00075066 [09:47:29]Write 301 bytes [09:47:29]NVStorageSaveData done [09:47:29]OFDSenderStorePacket done [09:47:29]KKMCreateOFDPacket done [09:47:29]NVStorageSaveData kkm_last_timestamp [09:47:29]File name is /storage/kkm_last_timestamp [09:47:29]Write 4 bytes [09:47:29]NVStorageSaveData done [09:47:29]ExternCall_PrintAddStr [09:47:29]wPrintStart [09:47:29]Write to MH i2c: 01 00 00 81 22 A3 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 81 22 00 00 00 00 00 FF 0F B8 [09:47:29]RasterBufferAndPrint [09:47:29]line Счет N : (1)191038 [09:47:29]line ИНН: 02508201610067 [09:47:29]line Контрольно-Кассовый Чек [09:47:29]line ПРОДАЖА [09:47:29]line ТРК (МРК, ГНК) : 21 [09:47:29]line Товар: 2710124130 [09:47:29]line Аи-92-К-5 [09:47:29]line 29.900 * 66.90 [09:47:29]line = 2000.31 [09:47:29]line НДС 12% НСП 1% [09:47:29]line > о реализуемом товаре [09:47:29]line ИТОГО: 2000.31 [09:47:29]line НСП 1% : 17.70 [09:47:29]line НДС 12% : 212.42 [09:47:29]line Наличными: 0.00 [09:47:29]line Безнал.: 2000.31 [09:47:29]line Место: АЗС № 142 "Партнер Нефть" [09:47:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:47:29]line СНО: Общий режим [09:47:29]line Чек 58 26.10.2024 09:47 [09:47:29]line Смена: 512 ФФД: 1.0 [09:47:29]line ЗНМ: 0300000089 [09:47:29]line РНМ: 0000000000091691 [09:47:29]line Версия ККМ: 001 [09:47:29]line Платежная система: Mbank [09:47:29]line ФМ: 0000000000871795 [09:47:29]line ФД: 75066 [09:47:29]line ФПД: 153733730418585 [09:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094732&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75066&fm=153733730418585&tin=02508201610067®Number=0000000000091691&sum=200031 [09:47:29]written 0, free lines is 4095 [09:47:29]OFD Sender: Processing packet 75066 [packets to send 13, broken 12] [09:47:29]ProducePacketName [09:47:29]name=ofd_packets/00075066 [09:47:29]OFD Sender: To server: pG, [09:47:29]CommunicateWithHost lk.salyk.kg:30040 [09:47:29]ConnectInit lk.salyk.kg [09:47:29]Connected sock=10 [09:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CF 56 07 01 13 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 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 3A 00 00 00 F4 03 04 00 B4 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3A 25 01 00 35 04 06 00 8B D1 EC 64 3F 99 06 4E 92 30 8E FD 39 13 [09:47:30]Write to MH i2c: 01 00 00 AA 22 CC [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 AA 22 00 00 00 00 00 DE 0C BD [09:47:30]RasterBufferAndPrint [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]written 0, free lines is 3302 [09:47:30]MH_Cut [09:47:30]Write to MH i2c: D1 01 00 B1 22 01 A5 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 01 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 01 00 B1 22 00 A4 [09:47:30]Write to MH i2c: 01 00 00 B2 22 D4 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C5 E2 47 00 86 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3A 25 01 00 F4 03 04 00 30 62 1C 67 B6 04 01 00 00 0A 8E 82 F2 9A 6F 28 0E [09:47:30]CommunicateWithHost err = 0 [09:47:30]CheckOFDResponse [09:47:30]1017 (14) - 77093643461234 [09:47:30]1041 (16) - 0000000000871795 [09:47:30]1040 (4) - 75066 [09:47:30]1012 (4) - 26.10.2024 03:29 [09:47:30]1206 (1) - 0 [09:47:30]OFD Sender: Remove packet 75066 [09:47:30]ProducePacketName [09:47:30]name=ofd_packets/00075066 [09:47:30]NVStorageDeleteData [09:47:30]OFD Sender: No OFD packet to send [09:47:30]*** Cut start [09:47:30]*** Partial cut [09:47:30]*** CUTSNS_PIN = 1 [09:47:31]*** CUTSNS_PIN = 0 [09:47:31]*** Brake cut motor [09:47:31]Read from MH i2c: 01 [09:47:31]MH_I2C_Read... [09:47:31]*** Stop cut motor [09:47:31]*** Cut end [09:47:31]Read from MH i2c: 01 07 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 B2 22 00 00 00 00 00 FF 0F E9 [09:47:31]process_action close_receipt done [09:47:31]requested_data is exist [09:47:31]produce_requested_data [09:47:31]requested_item fm.sn is exist - process it [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 11 00 00 [09:47:31]Write to MH i2c: E2 08 00 B3 22 80 11 00 00 00 00 00 00 4F [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 17 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 17 00 B3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A7 [09:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:47:31]wFMCommunicate OK [09:47:31]requested_item fd.num is exist - process it [09:47:31]SAM_PROTO_GetFieldsCounters [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 13 00 00 [09:47:31]Write to MH i2c: E2 08 00 B4 22 80 13 00 00 00 00 00 00 52 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 62 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 62 00 B4 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3A 25 01 00 0E 04 04 00 00 02 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 89 [09:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3A 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_GetFieldsCounters done [09:47:31]requested_item shift.num is exist - process it [09:47:31]requested_item shift.opened is exist - process it [09:47:31]req_shift_opened [09:47:31]FM_GetShiftState [09:47:31]SAM_PROTO_GetShiftState [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 13 01 00 [09:47:31]Write to MH i2c: E2 08 00 B5 22 80 13 01 00 00 00 00 00 54 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 B5 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6F [09:47:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_GetShiftState done [09:47:31]FM_GetShiftState done [09:47:31]req_shift_opened done [09:47:31]requested_item shift.open_date is exist - process it [09:47:31]req_shift_open_date [09:47:31]req_shift_open_date done [09:47:31]produce_requested_data done [09:47:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75066,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:47:31]process_action_free close_receipt [09:47:31]json_value_free [09:47:31]json_value_free done [09:47:31]process_json_proto returns [09:47:31]Send response to host [09:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75066,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:47:31]free response buf [09:47:31]execute_script done [09:47:31]execute_script returns [09:47:31]free content buf [09:47:31]Sock 9.Close socket [09:47:31]Sock 9.Thread stoped [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:02]accept exits with 8 [09:48:02]New connection [09:48:02]New thread 3066781028 created [09:48:02]Thread 3066924388 joined [09:48:02]Waiting for new connection... [09:48:02] Sock 8.Parse request [09:48:02]Sock 8.Check first char [09:48:02]Sock 8.First char is OK [09:48:02]request: POST /json_proto HTTP/1.0 [09:48:02]Method: POST [09:48:02]URL: /json_proto [09:48:02]Method is POST - this is cgi request [09:48:02]url: /json_proto [09:48:02]query_string will be loaded in cgi processing [09:48:02]execute_cgi json_proto POST (null) [09:48:02]execute_cgi path=json_proto method=POST [09:48:02]POST find Content-Length [09:48:02]Host: 172.17.39.131:8080 [09:48:02]Content-Length: 677 [09:48:02]Content-Type: application/json [09:48:02] [09:48:02]POST finish read [09:48:02]Found Content-Length = 677 [09:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.830, "sum" : 189.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 189.00, "payments": [ { "type": 0, "sum" : 189.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:02]execute_script... [09:48: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)191039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.830, "sum" : 189.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 189.00, "payments": [ { "type": 0, "sum" : 189.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:02]POST & json_proto [09:48:02]process_json_proto [09:48:02]json parsed OK: [09:48:02]protocol is kg_v1.0 [09:48:02]action value=close_receipt [09:48:02]process_action close_receipt [09:48:02]cmd_close_receipt [09:48:02]MH_GetDate [09:48:02]Write to MH i2c: F0 00 00 B6 22 C7 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 09 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 09 00 B6 22 00 D6 BA 1C 67 86 57 24 65 49 [09:48:02]GetLastDocTimeStamp 1729936052 [09:48:02]current date 1729936086 [09:48:02]FM_GetShiftState [09:48:02]SAM_PROTO_GetShiftState [09:48:02]wFMCommunicate request_size=4 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 13 01 00 [09:48:02]Write to MH i2c: E2 08 00 B7 22 80 13 01 00 00 00 00 00 56 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 B7 22 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 71 [09:48:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:48:02]wFMCommunicate OK [09:48:02]SAM_PROTO_GetShiftState done [09:48:02]FM_GetShiftState done [09:48:02]opened in 1729902166 [09:48:02]opened+sec_in_day 1729988566 [09:48:02]quantity*price = 18932 [09:48:02]sum+1 = 18934 [09:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 189.00 Внесено: 400.00 СДАЧА: 211.00 НСП 1% : 1.67 НДС 12% : 20.11 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 59 26.10.2024 09:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75067 ФПД: 192688838118492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094806&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75067&fm=192688838118492&tin=02508201610067®Number=0000000000091691&sum=18900 [09:48:03]StoreToDocumentArchive [09:48:03]shift 512 fd 75067 [09:48:03]save to /storage/0512/doc_00075067 [09:48:03]save last doc name /storage/0512/doc_00075067 to /storage/kkm_last_doc_name [09:48:03]save OK [09:48:03]Clear old archive folders... [09:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:03]tlvbuf is 0084E410 [09:48:03]SAM_PROTO_ClearQueue [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 09 00 00 [09:48:03]Write to MH i2c: E2 08 00 C4 22 80 09 00 00 00 00 00 00 58 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_ClearQueue done [09:48:04]KKMCreateOFDPacket [09:48:04]OFDProtocolAddRootSTLVToBuf [09:48:04]FM_MakeSignedData [09:48:04]FM_MakeSignedData [09:48:04]SAM_PROTO_SignData [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 01 02 [09:48:04]Write to MH i2c: E2 08 00 C5 22 80 0D 01 02 00 00 00 00 60 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=255 [09:48:04]MH_SAM_APDU [09:48: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 0E 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D6 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3B 25 01 00 35 04 06 00 AF [09:48:04]Write to MH i2c: E2 02 01 C6 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 0E 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D6 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3B 25 01 00 35 04 06 00 AF 00 00 26 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=10 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 02 02 05 3F DD BF 8C 5C [09:48:04]Write to MH i2c: E2 0D 00 C7 22 80 0D 02 02 05 00 3F DD BF 8C 5C 00 00 30 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 C7 22 00 90 00 5D [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 03 02 [09:48:04]Write to MH i2c: E2 08 00 C8 22 80 0D 03 02 00 00 00 00 65 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0B 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0B 00 C8 22 00 8C 8E DA 11 16 D6 9C B6 90 00 A9 [09:48:04]RAPDU: 8C 8E DA 11 16 D6 9C B6 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_SignData done [09:48:04]FM_MakeSignedData done [09:48:04]CreateOFDProtocolMessage [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 11 00 00 [09:48:04]Write to MH i2c: E2 08 00 C9 22 80 11 00 00 00 00 00 00 65 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 C9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BD [09:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:48:04]wFMCommunicate OK [09:48:04]CreateOFDProtocolMessage done [09:48:04]OFDSenderStorePacket 75067 [09:48:04]StoreOFDPacket docnum=75067 [09:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FA 1D 07 01 DA 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D6 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3B 25 01 00 35 04 06 00 AF 3F DD BF 8C 5C 8C 8E DA 11 16 D6 9C B6 [09:48:04]CheckFolder [09:48:04]dirname=/storage/ofd_packets [09:48:04]CheckFolder done [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00075067 [09:48:04]NVStorageSaveData ofd_packets/00075067 [09:48:04]File name is /storage/ofd_packets/00075067 [09:48:04]Write 301 bytes [09:48:04]NVStorageSaveData done [09:48:04]OFDSenderStorePacket done [09:48:04]KKMCreateOFDPacket done [09:48:04]NVStorageSaveData kkm_last_timestamp [09:48:04]File name is /storage/kkm_last_timestamp [09:48:04]Write 4 bytes [09:48:04]NVStorageSaveData done [09:48:04]ExternCall_PrintAddStr [09:48:04]wPrintStart [09:48:04]Write to MH i2c: 01 00 00 CA 22 EC [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 CA 22 00 00 00 00 00 FF 0F 01 [09:48:04]RasterBufferAndPrint [09:48:04]line Счет N : (1)191039 [09:48:04]line ИНН: 02508201610067 [09:48:04]line Контрольно-Кассовый Чек [09:48:04]line ПРОДАЖА [09:48:04]line ТРК (МРК, ГНК) : 21 [09:48:04]line Товар: 2710124130 [09:48:04]line Аи-92-К-5 [09:48:04]line 2.830 * 66.90 [09:48:04]line = 189.33 [09:48:04]line НДС 12% НСП 1% [09:48:04]line > о реализуемом товаре [09:48:04]line ОКРУГЛЕНИЕ: -0.33 [09:48:04]line ИТОГО: 189.00 [09:48:04]line Внесено: 400.00 [09:48:04]line СДАЧА: 211.00 [09:48:04]line НСП 1% : 1.67 [09:48:04]line НДС 12% : 20.11 [09:48:04]line Наличными: 189.00 [09:48:04]line Безнал.: 0.00 [09:48:04]line Место: АЗС № 142 "Партнер Нефть" [09:48:04]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:48:04]line СНО: Общий режим [09:48:04]line Чек 59 26.10.2024 09:48 [09:48:04]line Смена: 512 ФФД: 1.0 [09:48:04]line ЗНМ: 0300000089 [09:48:04]line РНМ: 0000000000091691 [09:48:04]line Версия ККМ: 001 [09:48:04]line ФМ: 0000000000871795 [09:48:04]line ФД: 75067 [09:48:04]line ФПД: 192688838118492 [09:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094806&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75067&fm=192688838118492&tin=02508201610067®Number=0000000000091691&sum=18900 [09:48:04]OFD Sender: Processing packet 75067 [packets to send 13, broken 12] [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00075067 [09:48:04]OFD Sender: To server: pG, [09:48:04]CommunicateWithHost lk.salyk.kg:30040 [09:48:04]ConnectInit lk.salyk.kg [09:48:04]written 0, free lines is 4095 [09:48:05]Connected sock=11 [09:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FA 1D 07 01 DA 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D6 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3B 25 01 00 35 04 06 00 AF 3F DD BF 8C 5C 8C 8E DA 11 16 D6 9C B6 [09:48:05]Write to MH i2c: 01 00 00 F5 22 17 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 F5 22 00 00 00 00 00 B2 0C DC [09:48:05]RasterBufferAndPrint [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]written 0, free lines is 3256 [09:48:05]MH_Cut [09:48:05]Write to MH i2c: D1 01 00 FC 22 01 F0 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 FC 22 00 EF [09:48:05]Write to MH i2c: 01 00 00 FD 22 1F [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BD 1D 47 00 A7 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3B 25 01 00 F4 03 04 00 53 62 1C 67 B6 04 01 00 00 38 B3 62 B3 88 CF 2A 71 [09:48:05]CommunicateWithHost err = 0 [09:48:05]CheckOFDResponse [09:48:05]1017 (14) - 77093643461234 [09:48:05]1041 (16) - 0000000000871795 [09:48:05]1040 (4) - 75067 [09:48:05]1012 (4) - 26.10.2024 03:30 [09:48:05]1206 (1) - 0 [09:48:05]OFD Sender: Remove packet 75067 [09:48:05]ProducePacketName [09:48:05]name=ofd_packets/00075067 [09:48:05]NVStorageDeleteData [09:48:05]OFD Sender: No OFD packet to send [09:48:06]*** Cut start [09:48:06]*** Partial cut [09:48:06]*** CUTSNS_PIN = 1 [09:48:06]*** CUTSNS_PIN = 0 [09:48:06]*** Brake cut motor [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]*** Stop cut motor [09:48:06]*** Cut end [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 FD 22 00 00 00 00 00 FF 0F 34 [09:48:06]process_action close_receipt done [09:48:06]requested_data is exist [09:48:06]produce_requested_data [09:48:06]requested_item fm.sn is exist - process it [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 11 00 00 [09:48:06]Write to MH i2c: E2 08 00 FE 22 80 11 00 00 00 00 00 00 9A [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 FE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F2 [09:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:48:06]wFMCommunicate OK [09:48:06]requested_item fd.num is exist - process it [09:48:06]SAM_PROTO_GetFieldsCounters [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 00 00 [09:48:06]Write to MH i2c: E2 08 00 FF 22 80 13 00 00 00 00 00 00 9D [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 62 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 62 00 FF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3B 25 01 00 0E 04 04 00 00 02 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 D8 [09:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3B 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:07]wFMCommunicate OK [09:48:07]SAM_PROTO_GetFieldsCounters done [09:48:07]requested_item shift.num is exist - process it [09:48:07]requested_item shift.opened is exist - process it [09:48:07]req_shift_opened [09:48:07]FM_GetShiftState [09:48:07]SAM_PROTO_GetShiftState [09:48:07]wFMCommunicate request_size=4 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 13 01 00 [09:48:07]Write to MH i2c: E2 08 00 00 23 80 13 01 00 00 00 00 00 A0 [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:07]Read from MH i2c: E2 0E 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 0E 00 00 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BB [09:48:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:48:07]wFMCommunicate OK [09:48:07]SAM_PROTO_GetShiftState done [09:48:07]FM_GetShiftState done [09:48:07]req_shift_opened done [09:48:07]requested_item shift.open_date is exist - process it [09:48:07]req_shift_open_date [09:48:07]req_shift_open_date done [09:48:07]produce_requested_data done [09:48:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75067,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:48:07]process_action_free close_receipt [09:48:07]json_value_free [09:48:07]json_value_free done [09:48:07]process_json_proto returns [09:48:07]Send response to host [09:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75067,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:48:07]free response buf [09:48:07]execute_script done [09:48:07]execute_script returns [09:48:07]free content buf [09:48:07]Sock 8.Close socket [09:48:07]Sock 8.Thread stoped [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:33]accept exits with 9 [09:48:33]New connection [09:48:33]New thread 3066924388 created [09:48:33]Thread 3066781028 joined [09:48:33]Waiting for new connection... [09:48:33] Sock 9.Parse request [09:48:33]Sock 9.Check first char [09:48:33]Sock 9.First char is OK [09:48:33]request: POST /json_proto HTTP/1.0 [09:48:33]Method: POST [09:48:33]URL: /json_proto [09:48:33]Method is POST - this is cgi request [09:48:33]url: /json_proto [09:48:33]query_string will be loaded in cgi processing [09:48:33]execute_cgi json_proto POST (null) [09:48:33]execute_cgi path=json_proto method=POST [09:48:33]POST find Content-Length [09:48:33]Host: 172.17.39.131:8080 [09:48:33]Content-Length: 677 [09:48:33]Content-Type: application/json [09:48:33] [09:48:33]POST finish read [09:48:33]Found Content-Length = 677 [09:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.160, "sum" : 211.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 211.00, "total" : 211.00, "payments": [ { "type": 0, "sum" : 211.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:33]execute_script... [09:48: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)191040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.160, "sum" : 211.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 211.00, "total" : 211.00, "payments": [ { "type": 0, "sum" : 211.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:33]POST & json_proto [09:48:33]process_json_proto [09:48:33]json parsed OK: [09:48:33]protocol is kg_v1.0 [09:48:33]action value=close_receipt [09:48:33]process_action close_receipt [09:48:33]cmd_close_receipt [09:48:33]MH_GetDate [09:48:33]Write to MH i2c: F0 00 00 01 23 13 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: F0 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: F0 09 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: F0 09 00 01 23 00 F5 BA 1C 67 86 57 24 65 B4 [09:48:33]GetLastDocTimeStamp 1729936086 [09:48:33]current date 1729936117 [09:48:33]FM_GetShiftState [09:48:33]SAM_PROTO_GetShiftState [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 13 01 00 [09:48:33]Write to MH i2c: E2 08 00 02 23 80 13 01 00 00 00 00 00 A2 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 0E 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 0E 00 02 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BD [09:48:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:48:33]wFMCommunicate OK [09:48:33]SAM_PROTO_GetShiftState done [09:48:33]FM_GetShiftState done [09:48:33]opened in 1729902166 [09:48:33]opened+sec_in_day 1729988566 [09:48:33]quantity*price = 21140 [09:48:33]sum+1 = 21141 [09:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 211.00 Внесено: 211.00 СДАЧА: 0.00 НСП 1% : 1.87 НДС 12% : 22.45 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 60 26.10.2024 09:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75068 ФПД: 225172835237804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094837&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75068&fm=225172835237804&tin=02508201610067®Number=0000000000091691&sum=21100 [09:48:34]StoreToDocumentArchive [09:48:34]shift 512 fd 75068 [09:48:34]save to /storage/0512/doc_00075068 [09:48:34]save last doc name /storage/0512/doc_00075068 to /storage/kkm_last_doc_name [09:48:34]save OK [09:48:34]Clear old archive folders... [09:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:34]tlvbuf is 0083D6E0 [09:48:34]SAM_PROTO_ClearQueue [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 09 00 00 [09:48:34]Write to MH i2c: E2 08 00 0F 23 80 09 00 00 00 00 00 00 A4 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_ClearQueue done [09:48:34]KKMCreateOFDPacket [09:48:34]OFDProtocolAddRootSTLVToBuf [09:48:34]FM_MakeSignedData [09:48:34]FM_MakeSignedData [09:48:34]SAM_PROTO_SignData [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 0D 01 02 [09:48:34]Write to MH i2c: E2 08 00 10 23 80 0D 01 02 00 00 00 00 AC [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]wFMCommunicate request_size=255 [09:48:34]MH_SAM_APDU [09:48: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 58 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F5 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3C 25 01 00 35 04 06 00 CC [09:48:34]Write to MH i2c: E2 02 01 11 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 58 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F5 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3C 25 01 00 35 04 06 00 CC 00 00 E4 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]wFMCommunicate request_size=10 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 0D 02 02 05 CB 22 DB 7F AC [09:48:34]Write to MH i2c: E2 0D 00 12 23 80 0D 02 02 05 00 CB 22 DB 7F AC 00 00 AC [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [09:48:34]RAPDU: 90 00 [09:48:34]wFMCommunicate OK [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 0D 03 02 [09:48:34]Write to MH i2c: E2 08 00 13 23 80 0D 03 02 00 00 00 00 B1 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0B 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0B 00 13 23 00 3A DE A7 60 37 8F 43 75 90 00 4F [09:48:34]RAPDU: 3A DE A7 60 37 8F 43 75 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_SignData done [09:48:34]FM_MakeSignedData done [09:48:34]CreateOFDProtocolMessage [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 11 00 00 [09:48:34]Write to MH i2c: E2 08 00 14 23 80 11 00 00 00 00 00 00 B1 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 14 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 09 [09:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:48:34]wFMCommunicate OK [09:48:34]CreateOFDProtocolMessage done [09:48:34]OFDSenderStorePacket 75068 [09:48:34]StoreOFDPacket docnum=75068 [09:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 19 4C 07 01 3A 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 58 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F5 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3C 25 01 00 35 04 06 00 CC CB 22 DB 7F AC 3A DE A7 60 37 8F 43 75 [09:48:34]CheckFolder [09:48:34]dirname=/storage/ofd_packets [09:48:34]CheckFolder done [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00075068 [09:48:34]NVStorageSaveData ofd_packets/00075068 [09:48:34]File name is /storage/ofd_packets/00075068 [09:48:34]Write 301 bytes [09:48:34]NVStorageSaveData done [09:48:34]OFDSenderStorePacket done [09:48:34]KKMCreateOFDPacket done [09:48:34]NVStorageSaveData kkm_last_timestamp [09:48:34]File name is /storage/kkm_last_timestamp [09:48:34]Write 4 bytes [09:48:34]NVStorageSaveData done [09:48:34]ExternCall_PrintAddStr [09:48:34]wPrintStart [09:48:34]Write to MH i2c: 01 00 00 15 23 38 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 15 23 00 00 00 00 00 FF 0F 4D [09:48:34]RasterBufferAndPrint [09:48:34]line Счет N : (1)191040 [09:48:34]line ИНН: 02508201610067 [09:48:34]line Контрольно-Кассовый Чек [09:48:34]line ПРОДАЖА [09:48:34]line ТРК (МРК, ГНК) : 21 [09:48:34]line Товар: 2710124130 [09:48:34]line Аи-92-К-5 [09:48:34]line 3.160 * 66.90 [09:48:34]line = 211.40 [09:48:34]line НДС 12% НСП 1% [09:48:34]line > о реализуемом товаре [09:48:34]line ОКРУГЛЕНИЕ: -0.40 [09:48:34]line ИТОГО: 211.00 [09:48:34]line Внесено: 211.00 [09:48:34]line СДАЧА: 0.00 [09:48:34]line НСП 1% : 1.87 [09:48:34]line НДС 12% : 22.45 [09:48:34]line Наличными: 211.00 [09:48:34]line Безнал.: 0.00 [09:48:34]line Место: АЗС № 142 "Партнер Нефть" [09:48:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:48:34]line СНО: Общий режим [09:48:34]line Чек 60 26.10.2024 09:48 [09:48:34]line Смена: 512 ФФД: 1.0 [09:48:35]line ЗНМ: 0300000089 [09:48:35]line РНМ: 0000000000091691 [09:48:35]line Версия ККМ: 001 [09:48:35]line ФМ: 0000000000871795 [09:48:35]line ФД: 75068 [09:48:35]line ФПД: 225172835237804 [09:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094837&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75068&fm=225172835237804&tin=02508201610067®Number=0000000000091691&sum=21100 [09:48:35]OFD Sender: Processing packet 75068 [packets to send 13, broken 12] [09:48:35]ProducePacketName [09:48:35]name=ofd_packets/00075068 [09:48:35]OFD Sender: To server: pG, [09:48:35]CommunicateWithHost lk.salyk.kg:30040 [09:48:35]ConnectInit lk.salyk.kg [09:48:35]written 0, free lines is 4095 [09:48:35]Write to MH i2c: 01 00 00 40 23 63 [09:48:35]Write i2c OK [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: 01 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: 01 07 00 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 9D 0C 13 [09:48:35]RasterBufferAndPrint [09:48:35]line [09:48:35]line [09:48:35]line [09:48:35]line [09:48:35]line [09:48:35]written 0, free lines is 3234 [09:48:35]MH_Cut [09:48:35]Write to MH i2c: D1 01 00 47 23 01 3C [09:48:35]Write i2c OK [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: D1 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: D1 01 00 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: D1 01 00 47 23 00 3B [09:48:35]Write to MH i2c: 01 00 00 48 23 6B [09:48:35]Write i2c OK [09:48:35]MH_I2C_Read... [09:48:36]*** Cut start [09:48:36]*** Partial cut [09:48:36]*** CUTSNS_PIN = 1 [09:48:36]*** CUTSNS_PIN = 0 [09:48:36]*** Brake cut motor [09:48:37]Connected sock=11 [09:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 19 4C 07 01 3A 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 58 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F5 BA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3C 25 01 00 35 04 06 00 CC CB 22 DB 7F AC 3A DE A7 60 37 8F 43 75 [09:48:37]Read from MH i2c: 01 [09:48:37]MH_I2C_Read... [09:48:37]*** Stop cut motor [09:48:37]*** Cut end [09:48:37]Read from MH i2c: 01 07 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [09:48:37]process_action close_receipt done [09:48:37]requested_data is exist [09:48:37]produce_requested_data [09:48:37]requested_item fm.sn is exist - process it [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 11 00 00 [09:48:37]Write to MH i2c: E2 08 00 49 23 80 11 00 00 00 00 00 00 E6 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FE 64 47 00 CF 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 38 37 31 37 39 35 10 04 04 00 3C 25 01 00 F4 03 04 00 73 62 1C 67 B6 04 01 00 00 AD B9 E6 DD 73 F5 D5 08 [09:48:37]CommunicateWithHost err = 0 [09:48:37]CheckOFDResponse [09:48:37]1017 (14) - 77093643461234 [09:48:37]1041 (16) - 0000000000871795 [09:48:37]1040 (4) - 75068 [09:48:37]1012 (4) - 26.10.2024 03:30 [09:48:37]1206 (1) - 0 [09:48:37]OFD Sender: Remove packet 75068 [09:48:37]ProducePacketName [09:48:37]name=ofd_packets/00075068 [09:48:37]NVStorageDeleteData [09:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 17 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 17 00 49 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3E [09:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:48:37]wFMCommunicate OK [09:48:37]requested_item fd.num is exist - process it [09:48:37]SAM_PROTO_GetFieldsCounters [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 13 00 00 [09:48:37]Write to MH i2c: E2 08 00 4A 23 80 13 00 00 00 00 00 00 E9 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 62 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 62 00 4A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3C 25 01 00 0E 04 04 00 00 02 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 28 [09:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3C 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:37]wFMCommunicate OK [09:48:37]SAM_PROTO_GetFieldsCounters done [09:48:37]requested_item shift.num is exist - process it [09:48:37]requested_item shift.opened is exist - process it [09:48:37]req_shift_opened [09:48:37]FM_GetShiftState [09:48:37]SAM_PROTO_GetShiftState [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 13 01 00 [09:48:37]Write to MH i2c: E2 08 00 4B 23 80 13 01 00 00 00 00 00 EB [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0E 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0E 00 4B 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 06 [09:48:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:48:37]wFMCommunicate OK [09:48:37]SAM_PROTO_GetShiftState done [09:48:37]FM_GetShiftState done [09:48:37]req_shift_opened done [09:48:37]requested_item shift.open_date is exist - process it [09:48:37]req_shift_open_date [09:48:37]req_shift_open_date done [09:48:37]produce_requested_data done [09:48:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75068,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:48:37]process_action_free close_receipt [09:48:37]json_value_free [09:48:37]json_value_free done [09:48:37]process_json_proto returns [09:48:37]Send response to host [09:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75068,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:48:37]free response buf [09:48:37]execute_script done [09:48:37]execute_script returns [09:48:37]free content buf [09:48:37]Sock 9.Close socket [09:48:37]Sock 9.Thread stoped [09:48:37]OFD Sender: No OFD packet to send [09:48:41]int [09:48:41]Write to MH i2c: 01 00 00 4C 23 6F [09:48:41]*** FLAG_PRN_KEY set [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 4C 23 00 08 00 00 00 FF 0F 8C [09:48:41]state=0 [09:48:41]Key pressed [09:48:41]Feed [09:48:41]Write to MH i2c: D8 00 00 4D 23 47 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D8 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D8 01 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: D8 01 00 4D 23 00 48 [09:48:41]int [09:48:41]Write to MH i2c: 01 00 00 4E 23 71 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 4E 23 00 48 00 00 00 3C 00 FC [09:48:41]state=2 [09:48:41]Key pressed [09:48:41]int [09:48:41]Write to MH i2c: 01 00 00 4F 23 72 [09:48:41]*** FLAG_PRN_KEY reset [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 4F 23 00 00 00 00 00 FF 0F 87 [09:48:41]state=2 [09:48:41]Stop feed [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:35]accept exits with 8 [09:51:35]New connection [09:51:35]New thread 3066781028 created [09:51:35]Thread 3066924388 joined [09:51:35]Waiting for new connection... [09:51:35] Sock 8.Parse request [09:51:35]Sock 8.Check first char [09:51:35]Sock 8.First char is OK [09:51:35]request: POST /json_proto HTTP/1.0 [09:51:35]Method: POST [09:51:35]URL: /json_proto [09:51:35]Method is POST - this is cgi request [09:51:35]url: /json_proto [09:51:35]query_string will be loaded in cgi processing [09:51:35]execute_cgi json_proto POST (null) [09:51:35]execute_cgi path=json_proto method=POST [09:51:35]POST find Content-Length [09:51:35]Host: 172.17.39.131:8080 [09:51:35]Content-Length: 754 [09:51:35]Content-Type: application/json [09:51:35] [09:51:35]POST finish read [09:51:35]Found Content-Length = 754 [09:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]execute_script... [09:51: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)191041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]POST & json_proto [09:51:35]process_json_proto [09:51:35]json parsed OK: [09:51:35]protocol is kg_v1.0 [09:51:35]action value=close_receipt [09:51:35]process_action close_receipt [09:51:35]cmd_close_receipt [09:51:35]MH_GetDate [09:51:35]Write to MH i2c: F0 00 00 50 23 62 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 50 23 00 AC BB 1C 67 86 57 24 65 BB [09:51:35]GetLastDocTimeStamp 1729936117 [09:51:35]current date 1729936300 [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 51 23 80 13 01 00 00 00 00 00 F1 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 51 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0C [09:51:35]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]opened in 1729902166 [09:51:35]opened+sec_in_day 1729988566 [09:51:35]quantity*price = 0 [09:51:35]sum+1 = 1 [09:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 61 26.10.2024 09:51 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097846 ФМ: 0000000000871795 ФД: 75069 ФПД: 273122185088460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095140&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75069&fm=273122185088460&tin=02508201610067®Number=0000000000091691&sum=0 [09:51:37]StoreToDocumentArchive [09:51:37]shift 512 fd 75069 [09:51:37]save to /storage/0512/doc_00075069 [09:51:37]save last doc name /storage/0512/doc_00075069 to /storage/kkm_last_doc_name [09:51:37]save OK [09:51:37]Clear old archive folders... [09:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:37]tlvbuf is 008306C0 [09:51:37]SAM_PROTO_ClearQueue [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 09 00 00 [09:51:37]Write to MH i2c: E2 08 00 5E 23 80 09 00 00 00 00 00 00 F3 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 5E 23 00 90 00 F5 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_ClearQueue done [09:51:37]KKMCreateOFDPacket [09:51:37]OFDProtocolAddRootSTLVToBuf [09:51:37]FM_MakeSignedData [09:51:37]FM_MakeSignedData [09:51:37]SAM_PROTO_SignData [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 01 02 [09:51:37]Write to MH i2c: E2 08 00 5F 23 80 0D 01 02 00 00 00 00 FB [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=255 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3D 25 01 00 35 04 06 00 F8 [09:51:37]Write to MH i2c: E2 02 01 60 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 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 3D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3D 25 01 00 35 04 06 00 F8 00 00 FD [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=10 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 02 02 05 67 36 D2 8D CC [09:51:37]Write to MH i2c: E2 0D 00 61 23 80 0D 02 02 05 00 67 36 D2 8D CC 00 00 D0 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 03 02 [09:51:37]Write to MH i2c: E2 08 00 62 23 80 0D 03 02 00 00 00 00 00 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 62 23 00 89 08 64 AE 72 5C CF 37 90 00 78 [09:51:37]RAPDU: 89 08 64 AE 72 5C CF 37 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_SignData done [09:51:37]FM_MakeSignedData done [09:51:37]CreateOFDProtocolMessage [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 63 23 80 11 00 00 00 00 00 00 00 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 63 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 58 [09:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:51:37]wFMCommunicate OK [09:51:37]CreateOFDProtocolMessage done [09:51:37]OFDSenderStorePacket 75069 [09:51:37]StoreOFDPacket docnum=75069 [09:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 17 CC 07 01 D3 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3D 25 01 00 35 04 06 00 F8 67 36 D2 8D CC 89 08 64 AE 72 5C CF 37 [09:51:37]CheckFolder [09:51:37]dirname=/storage/ofd_packets [09:51:37]CheckFolder done [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00075069 [09:51:37]NVStorageSaveData ofd_packets/00075069 [09:51:37]File name is /storage/ofd_packets/00075069 [09:51:37]Write 301 bytes [09:51:37]NVStorageSaveData done [09:51:37]OFDSenderStorePacket done [09:51:37]KKMCreateOFDPacket done [09:51:37]NVStorageSaveData kkm_last_timestamp [09:51:37]File name is /storage/kkm_last_timestamp [09:51:37]Write 4 bytes [09:51:37]NVStorageSaveData done [09:51:37]ExternCall_PrintAddStr [09:51:37]wPrintStart [09:51:37]Write to MH i2c: 01 00 00 64 23 87 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 FF 0F 9C [09:51:37]RasterBufferAndPrint [09:51:37]line Счет N : (1)191041 [09:51:37]line ИНН: 02508201610067 [09:51:37]line Контрольно-Кассовый Чек [09:51:37]line ПРОДАЖА [09:51:37]line ТРК (МРК, ГНК) : 21 [09:51:37]line Товар: 2710124130 [09:51:37]line Аи-92-К-5 [09:51:37]line 20.000 * 0.00 [09:51:37]line = 0.00 [09:51:37]line НДС 12% НСП 1% [09:51:37]line > о реализуемом товаре [09:51:37]line ИТОГО: 0.00 [09:51:37]line НСП 1% : 0.00 [09:51:37]line НДС 12% : 0.00 [09:51:37]line Наличными: 0.00 [09:51:37]line Безнал.: 0.00 [09:51:37]line Место: АЗС № 142 "Партнер Нефть" [09:51:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 61 26.10.2024 09:51 [09:51:37]line Смена: 512 ФФД: 1.0 [09:51:37]line ЗНМ: 0300000089 [09:51:37]line РНМ: 0000000000091691 [09:51:37]line Версия ККМ: 001 [09:51:37]line Талоны: ТК ГПНА Online [09:51:37]line 30097846 [09:51:37]line ФМ: 0000000000871795 [09:51:37]line ФД: 75069 [09:51:37]line ФПД: 273122185088460 [09:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095140&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75069&fm=273122185088460&tin=02508201610067®Number=0000000000091691&sum=0 [09:51:37]written 0, free lines is 4095 [09:51:37]OFD Sender: Processing packet 75069 [packets to send 13, broken 12] [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00075069 [09:51:37]OFD Sender: To server: pG, [09:51:37]CommunicateWithHost lk.salyk.kg:30040 [09:51:37]ConnectInit lk.salyk.kg [09:51:37]Connected sock=10 [09:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 17 CC 07 01 D3 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3D 25 01 00 35 04 06 00 F8 67 36 D2 8D CC 89 08 64 AE 72 5C CF 37 [09:51:38]Write to MH i2c: 01 00 00 8E 23 B1 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 8E 23 00 00 00 00 00 C3 0C 87 [09:51:38]RasterBufferAndPrint [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]written 0, free lines is 3271 [09:51:38]MH_Cut [09:51:38]Write to MH i2c: D1 01 00 95 23 01 8A [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 95 23 00 89 [09:51:38]Write to MH i2c: 01 00 00 96 23 B9 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F5 FC 47 00 40 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 38 37 31 37 39 35 10 04 04 00 3D 25 01 00 F4 03 04 00 28 63 1C 67 B6 04 01 00 00 A5 78 F3 6E 6F F9 D5 F8 [09:51:38]CommunicateWithHost err = 0 [09:51:38]CheckOFDResponse [09:51:38]1017 (14) - 77093643461234 [09:51:38]1041 (16) - 0000000000871795 [09:51:38]1040 (4) - 75069 [09:51:38]1012 (4) - 26.10.2024 03:34 [09:51:38]1206 (1) - 0 [09:51:38]OFD Sender: Remove packet 75069 [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00075069 [09:51:38]NVStorageDeleteData [09:51:38]OFD Sender: No OFD packet to send [09:51:38]*** Cut start [09:51:38]*** Partial cut [09:51:38]*** CUTSNS_PIN = 1 [09:51:38]*** CUTSNS_PIN = 0 [09:51:39]*** Brake cut motor [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]*** Stop cut motor [09:51:39]*** Cut end [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 96 23 00 00 00 00 00 FF 0F CE [09:51:39]process_action close_receipt done [09:51:39]requested_data is exist [09:51:39]produce_requested_data [09:51:39]requested_item fm.sn is exist - process it [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 97 23 80 11 00 00 00 00 00 00 34 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 97 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8C [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:51:39]wFMCommunicate OK [09:51:39]requested_item fd.num is exist - process it [09:51:39]SAM_PROTO_GetFieldsCounters [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 00 00 [09:51:39]Write to MH i2c: E2 08 00 98 23 80 13 00 00 00 00 00 00 37 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 98 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3D 25 01 00 0E 04 04 00 00 02 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 7A [09:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3D 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetFieldsCounters done [09:51:39]requested_item shift.num is exist - process it [09:51:39]requested_item shift.opened is exist - process it [09:51:39]req_shift_opened [09:51:39]FM_GetShiftState [09:51:39]SAM_PROTO_GetShiftState [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 01 00 [09:51:39]Write to MH i2c: E2 08 00 99 23 80 13 01 00 00 00 00 00 39 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 99 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 54 [09:51:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetShiftState done [09:51:39]FM_GetShiftState done [09:51:39]req_shift_opened done [09:51:39]requested_item shift.open_date is exist - process it [09:51:39]req_shift_open_date [09:51:39]req_shift_open_date done [09:51:39]produce_requested_data done [09:51:39]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75069,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:51:39]process_action_free close_receipt [09:51:39]json_value_free [09:51:39]json_value_free done [09:51:39]process_json_proto returns [09:51:39]Send response to host [09:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75069,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:51:39]free response buf [09:51:39]execute_script done [09:51:39]execute_script returns [09:51:39]free content buf [09:51:39]Sock 8.Close socket [09:51:39]Sock 8.Thread stoped [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:55]accept exits with 9 [09:52:55]New connection [09:52:55]New thread 3066924388 created [09:52:55]Thread 3066781028 joined [09:52:55]Waiting for new connection... [09:52:55] Sock 9.Parse request [09:52:55]Sock 9.Check first char [09:52:55]Sock 9.First char is OK [09:52:55]request: POST /json_proto HTTP/1.0 [09:52:55]Method: POST [09:52:55]URL: /json_proto [09:52:55]Method is POST - this is cgi request [09:52:55]url: /json_proto [09:52:55]query_string will be loaded in cgi processing [09:52:55]execute_cgi json_proto POST (null) [09:52:55]execute_cgi path=json_proto method=POST [09:52:55]POST find Content-Length [09:52:55]Host: 172.17.39.131:8080 [09:52:55]Content-Length: 677 [09:52:55]Content-Type: application/json [09:52:55] [09:52:55]POST finish read [09:52:55]Found Content-Length = 677 [09:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:55]execute_script... [09:52: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)191042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:55]POST & json_proto [09:52:55]process_json_proto [09:52:55]json parsed OK: [09:52:55]protocol is kg_v1.0 [09:52:55]action value=close_receipt [09:52:55]process_action close_receipt [09:52:55]cmd_close_receipt [09:52:55]MH_GetDate [09:52:55]Write to MH i2c: F0 00 00 9A 23 AC [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 09 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 09 00 9A 23 00 FC BB 1C 67 86 57 24 65 55 [09:52:55]GetLastDocTimeStamp 1729936300 [09:52:55]current date 1729936380 [09:52:55]FM_GetShiftState [09:52:55]SAM_PROTO_GetShiftState [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 13 01 00 [09:52:55]Write to MH i2c: E2 08 00 9B 23 80 13 01 00 00 00 00 00 3B [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 9B 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 56 [09:52:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_GetShiftState done [09:52:55]FM_GetShiftState done [09:52:55]opened in 1729902166 [09:52:55]opened+sec_in_day 1729988566 [09:52:55]quantity*price = 17059 [09:52:55]sum+1 = 17061 [09:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 62 26.10.2024 09:53 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75070 ФПД: 195301917483149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095300&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75070&fm=195301917483149&tin=02508201610067®Number=0000000000091691&sum=17000 [09:52:57]StoreToDocumentArchive [09:52:57]shift 512 fd 75070 [09:52:57]save to /storage/0512/doc_00075070 [09:52:57]save last doc name /storage/0512/doc_00075070 to /storage/kkm_last_doc_name [09:52:57]save OK [09:52:57]Clear old archive folders... [09:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:57]tlvbuf is B6EA1090 [09:52:57]SAM_PROTO_ClearQueue [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 09 00 00 [09:52:57]Write to MH i2c: E2 08 00 A8 23 80 09 00 00 00 00 00 00 3D [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 A8 23 00 90 00 3F [09:52:57]RAPDU: 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_ClearQueue done [09:52:57]KKMCreateOFDPacket [09:52:57]OFDProtocolAddRootSTLVToBuf [09:52:57]FM_MakeSignedData [09:52:57]FM_MakeSignedData [09:52:57]SAM_PROTO_SignData [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 0D 01 02 [09:52:57]Write to MH i2c: E2 08 00 A9 23 80 0D 01 02 00 00 00 00 45 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 A9 23 00 90 00 40 [09:52:57]RAPDU: 90 00 [09:52:57]wFMCommunicate OK [09:52:57]wFMCommunicate request_size=255 [09:52:57]MH_SAM_APDU [09:52: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 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3E 25 01 00 35 04 06 00 B1 [09:52:57]Write to MH i2c: E2 02 01 AA 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 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3E 25 01 00 35 04 06 00 B1 00 00 0B [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [09:52:57]RAPDU: 90 00 [09:52:57]wFMCommunicate OK [09:52:57]wFMCommunicate request_size=10 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 0D 02 02 05 A0 45 6A 60 8D [09:52:57]Write to MH i2c: E2 0D 00 AB 23 80 0D 02 02 05 00 A0 45 6A 60 8D 00 00 8E [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [09:52:57]RAPDU: 90 00 [09:52:57]wFMCommunicate OK [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 0D 03 02 [09:52:57]Write to MH i2c: E2 08 00 AC 23 80 0D 03 02 00 00 00 00 4A [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0B 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0B 00 AC 23 00 67 5D 77 A6 3B 63 F1 21 90 00 DC [09:52:57]RAPDU: 67 5D 77 A6 3B 63 F1 21 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_SignData done [09:52:57]FM_MakeSignedData done [09:52:57]CreateOFDProtocolMessage [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 11 00 00 [09:52:57]Write to MH i2c: E2 08 00 AD 23 80 11 00 00 00 00 00 00 4A [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 AD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A2 [09:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:52:57]wFMCommunicate OK [09:52:57]CreateOFDProtocolMessage done [09:52:57]OFDSenderStorePacket 75070 [09:52:57]StoreOFDPacket docnum=75070 [09:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 40 DC 07 01 20 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3E 25 01 00 35 04 06 00 B1 A0 45 6A 60 8D 67 5D 77 A6 3B 63 F1 21 [09:52:57]CheckFolder [09:52:57]dirname=/storage/ofd_packets [09:52:57]CheckFolder done [09:52:57]ProducePacketName [09:52:57]name=ofd_packets/00075070 [09:52:57]NVStorageSaveData ofd_packets/00075070 [09:52:57]File name is /storage/ofd_packets/00075070 [09:52:57]Write 301 bytes [09:52:57]NVStorageSaveData done [09:52:57]OFDSenderStorePacket done [09:52:57]KKMCreateOFDPacket done [09:52:57]NVStorageSaveData kkm_last_timestamp [09:52:57]File name is /storage/kkm_last_timestamp [09:52:57]Write 4 bytes [09:52:57]NVStorageSaveData done [09:52:57]ExternCall_PrintAddStr [09:52:57]wPrintStart [09:52:57]Write to MH i2c: 01 00 00 AE 23 D1 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 AE 23 00 00 00 00 00 FF 0F E6 [09:52:57]RasterBufferAndPrint [09:52:57]line Счет N : (1)191042 [09:52:57]line ИНН: 02508201610067 [09:52:57]line Контрольно-Кассовый Чек [09:52:57]line ПРОДАЖА [09:52:57]line ТРК (МРК, ГНК) : 21 [09:52:57]line Товар: 2710124130 [09:52:57]line Аи-92-К-5 [09:52:57]line 2.550 * 66.90 [09:52:57]line = 170.60 [09:52:57]line НДС 12% НСП 1% [09:52:57]line > о реализуемом товаре [09:52:57]line ОКРУГЛЕНИЕ: -0.60 [09:52:57]line ИТОГО: 170.00 [09:52:57]line Внесено: 170.00 [09:52:57]line СДАЧА: 0.00 [09:52:57]line НСП 1% : 1.51 [09:52:57]line НДС 12% : 18.12 [09:52:57]line Наличными: 170.00 [09:52:57]line Безнал.: 0.00 [09:52:57]line Место: АЗС № 142 "Партнер Нефть" [09:52:57]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:52:57]line СНО: Общий режим [09:52:57]line Чек 62 26.10.2024 09:53 [09:52:57]line Смена: 512 ФФД: 1.0 [09:52:57]line ЗНМ: 0300000089 [09:52:57]line РНМ: 0000000000091691 [09:52:57]line Версия ККМ: 001 [09:52:57]line ФМ: 0000000000871795 [09:52:57]line ФД: 75070 [09:52:57]line ФПД: 195301917483149 [09:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095300&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75070&fm=195301917483149&tin=02508201610067®Number=0000000000091691&sum=17000 [09:52:57]OFD Sender: Processing packet 75070 [packets to send 13, broken 12] [09:52:57]ProducePacketName [09:52:57]name=ofd_packets/00075070 [09:52:57]OFD Sender: To server: pG, [09:52:57]CommunicateWithHost lk.salyk.kg:30040 [09:52:58]ConnectInit lk.salyk.kg [09:52:58]written 0, free lines is 4095 [09:52:58]Connected sock=10 [09:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 40 DC 07 01 20 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 FC BB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3E 25 01 00 35 04 06 00 B1 A0 45 6A 60 8D 67 5D 77 A6 3B 63 F1 21 [09:52:58]Write to MH i2c: 01 00 00 D9 23 FC [09:52:58]Write i2c OK [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 07 00 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 B2 0C C1 [09:52:58]RasterBufferAndPrint [09:52:58]line [09:52:58]line [09:52:58]line [09:52:58]line [09:52:58]line [09:52:58]written 0, free lines is 3260 [09:52:58]MH_Cut [09:52:58]Write to MH i2c: D1 01 00 E0 23 01 D5 [09:52:58]Write i2c OK [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: D1 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: D1 01 00 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: D1 01 00 E0 23 00 D4 [09:52:58]Write to MH i2c: 01 00 00 E1 23 04 [09:52:58]Write i2c OK [09:52:58]MH_I2C_Read... [09:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 75 1F 47 00 23 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3E 25 01 00 F4 03 04 00 78 63 1C 67 B6 04 01 00 00 ED AD 84 8E 74 26 6E FA [09:52:58]CommunicateWithHost err = 0 [09:52:58]CheckOFDResponse [09:52:58]1017 (14) - 77093643461234 [09:52:58]1041 (16) - 0000000000871795 [09:52:58]1040 (4) - 75070 [09:52:58]1012 (4) - 26.10.2024 03:35 [09:52:58]1206 (1) - 0 [09:52:58]OFD Sender: Remove packet 75070 [09:52:58]ProducePacketName [09:52:58]name=ofd_packets/00075070 [09:52:58]NVStorageDeleteData [09:52:59]OFD Sender: No OFD packet to send [09:52:59]*** Cut start [09:52:59]*** Partial cut [09:52:59]*** CUTSNS_PIN = 1 [09:52:59]*** CUTSNS_PIN = 0 [09:52:59]*** Brake cut motor [09:52:59]Read from MH i2c: 01 [09:52:59]MH_I2C_Read... [09:52:59]*** Stop cut motor [09:52:59]*** Cut end [09:52:59]Read from MH i2c: 01 07 00 [09:52:59]MH_I2C_Read... [09:52:59]Read from MH i2c: 01 07 00 E1 23 00 00 00 00 00 FF 0F 19 [09:52:59]process_action close_receipt done [09:52:59]requested_data is exist [09:52:59]produce_requested_data [09:52:59]requested_item fm.sn is exist - process it [09:52:59]wFMCommunicate request_size=4 [09:52:59]MH_SAM_APDU [09:52:59]CAPDU: 80 11 00 00 [09:52:59]Write to MH i2c: E2 08 00 E2 23 80 11 00 00 00 00 00 00 7F [09:52:59]Write i2c OK [09:52:59]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 E2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D7 [09:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:53:00]wFMCommunicate OK [09:53:00]requested_item fd.num is exist - process it [09:53:00]SAM_PROTO_GetFieldsCounters [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 13 00 00 [09:53:00]Write to MH i2c: E2 08 00 E3 23 80 13 00 00 00 00 00 00 82 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 62 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 62 00 E3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3E 25 01 00 0E 04 04 00 00 02 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 C9 [09:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3E 25 01 00 0E 04 04 00 00 02 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 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_GetFieldsCounters done [09:53:00]requested_item shift.num is exist - process it [09:53:00]requested_item shift.opened is exist - process it [09:53:00]req_shift_opened [09:53:00]FM_GetShiftState [09:53:00]SAM_PROTO_GetShiftState [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 13 01 00 [09:53:00]Write to MH i2c: E2 08 00 E4 23 80 13 01 00 00 00 00 00 84 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 E4 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9F [09:53:00]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_GetShiftState done [09:53:00]FM_GetShiftState done [09:53:00]req_shift_opened done [09:53:00]requested_item shift.open_date is exist - process it [09:53:00]req_shift_open_date [09:53:00]req_shift_open_date done [09:53:00]produce_requested_data done [09:53:00]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75070,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:53:00]process_action_free close_receipt [09:53:00]json_value_free [09:53:00]json_value_free done [09:53:00]process_json_proto returns [09:53:00]Send response to host [09:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75070,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:53:00]free response buf [09:53:00]execute_script done [09:53:00]execute_script returns [09:53:00]free content buf [09:53:00]Sock 9.Close socket [09:53:00]Sock 9.Thread stoped [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:51]accept exits with 8 [09:53:51]New connection [09:53:51]New thread 3066781028 created [09:53:51]Thread 3066924388 joined [09:53:51]Waiting for new connection... [09:53:51] Sock 8.Parse request [09:53:51]Sock 8.Check first char [09:53:51]Sock 8.First char is OK [09:53:51]request: POST /json_proto HTTP/1.0 [09:53:51]Method: POST [09:53:51]URL: /json_proto [09:53:51]Method is POST - this is cgi request [09:53:51]url: /json_proto [09:53:51]query_string will be loaded in cgi processing [09:53:51]execute_cgi json_proto POST (null) [09:53:51]execute_cgi path=json_proto method=POST [09:53:51]POST find Content-Length [09:53:51]Host: 172.17.39.131:8080 [09:53:51]Content-Length: 677 [09:53:51]Content-Type: application/json [09:53:51] [09:53:51]POST finish read [09:53:51]Found Content-Length = 677 [09:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:53:51]execute_script... [09:53: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)191043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:53:51]POST & json_proto [09:53:51]process_json_proto [09:53:51]json parsed OK: [09:53:51]protocol is kg_v1.0 [09:53:51]action value=close_receipt [09:53:51]process_action close_receipt [09:53:51]cmd_close_receipt [09:53:51]MH_GetDate [09:53:51]Write to MH i2c: F0 00 00 E5 23 F7 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 09 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: F0 09 00 E5 23 00 34 BC 1C 67 86 57 24 65 D9 [09:53:51]GetLastDocTimeStamp 1729936380 [09:53:51]current date 1729936436 [09:53:51]FM_GetShiftState [09:53:51]SAM_PROTO_GetShiftState [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 01 00 [09:53:51]Write to MH i2c: E2 08 00 E6 23 80 13 01 00 00 00 00 00 86 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 E6 23 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A1 [09:53:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_GetShiftState done [09:53:52]FM_GetShiftState done [09:53:52]opened in 1729902166 [09:53:52]opened+sec_in_day 1729988566 [09:53:52]quantity*price = 50041 [09:53:52]sum+1 = 50042 [09:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 63 26.10.2024 09:53 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75071 ФПД: 2106134015710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095356&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75071&fm=2106134015710&tin=02508201610067®Number=0000000000091691&sum=50000 [09:53:53]StoreToDocumentArchive [09:53:53]shift 512 fd 75071 [09:53:53]save to /storage/0512/doc_00075071 [09:53:53]save last doc name /storage/0512/doc_00075071 to /storage/kkm_last_doc_name [09:53:53]save OK [09:53:53]Clear old archive folders... [09:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:53]tlvbuf is 007FB400 [09:53:53]SAM_PROTO_ClearQueue [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 09 00 00 [09:53:53]Write to MH i2c: E2 08 00 F3 23 80 09 00 00 00 00 00 00 88 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 F3 23 00 90 00 8A [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_ClearQueue done [09:53:53]KKMCreateOFDPacket [09:53:53]OFDProtocolAddRootSTLVToBuf [09:53:53]FM_MakeSignedData [09:53:53]FM_MakeSignedData [09:53:53]SAM_PROTO_SignData [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 01 02 [09:53:53]Write to MH i2c: E2 08 00 F4 23 80 0D 01 02 00 00 00 00 90 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=255 [09:53:53]MH_SAM_APDU [09:53: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 3F 00 00 00 F4 03 04 00 34 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3F 25 01 00 35 04 06 00 01 [09:53:53]Write to MH i2c: E2 02 01 F5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 34 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3F 25 01 00 35 04 06 00 01 00 00 3F [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 F5 23 00 90 00 8C [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=10 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 02 02 05 EA 5F 5E AE DE [09:53:53]Write to MH i2c: E2 0D 00 F6 23 80 0D 02 02 05 00 EA 5F 5E AE DE 00 00 D0 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 03 00 F6 23 00 90 00 8D [09:53:53]RAPDU: 90 00 [09:53:53]wFMCommunicate OK [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 0D 03 02 [09:53:53]Write to MH i2c: E2 08 00 F7 23 80 0D 03 02 00 00 00 00 95 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0B 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0B 00 F7 23 00 76 33 FD FC 6D 7A 61 F5 90 00 75 [09:53:53]RAPDU: 76 33 FD FC 6D 7A 61 F5 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_SignData done [09:53:53]FM_MakeSignedData done [09:53:53]CreateOFDProtocolMessage [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 11 00 00 [09:53:53]Write to MH i2c: E2 08 00 F8 23 80 11 00 00 00 00 00 00 95 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 F8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 ED [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:53:53]wFMCommunicate OK [09:53:53]CreateOFDProtocolMessage done [09:53:53]OFDSenderStorePacket 75071 [09:53:53]StoreOFDPacket docnum=75071 [09:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C9 95 07 01 C0 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 34 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3F 25 01 00 35 04 06 00 01 EA 5F 5E AE DE 76 33 FD FC 6D 7A 61 F5 [09:53:53]CheckFolder [09:53:53]dirname=/storage/ofd_packets [09:53:53]CheckFolder done [09:53:53]ProducePacketName [09:53:53]name=ofd_packets/00075071 [09:53:53]NVStorageSaveData ofd_packets/00075071 [09:53:53]File name is /storage/ofd_packets/00075071 [09:53:53]Write 301 bytes [09:53:53]NVStorageSaveData done [09:53:53]OFDSenderStorePacket done [09:53:53]KKMCreateOFDPacket done [09:53:53]NVStorageSaveData kkm_last_timestamp [09:53:53]File name is /storage/kkm_last_timestamp [09:53:53]Write 4 bytes [09:53:53]NVStorageSaveData done [09:53:53]ExternCall_PrintAddStr [09:53:53]wPrintStart [09:53:53]Write to MH i2c: 01 00 00 F9 23 1C [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 F9 23 00 00 00 00 00 FF 0F 31 [09:53:53]RasterBufferAndPrint [09:53:53]line Счет N : (1)191043 [09:53:53]line ИНН: 02508201610067 [09:53:53]line Контрольно-Кассовый Чек [09:53:53]line ПРОДАЖА [09:53:53]line ТРК (МРК, ГНК) : 21 [09:53:53]line Товар: 2710124130 [09:53:53]line Аи-92-К-5 [09:53:53]line 7.480 * 66.90 [09:53:53]line = 500.41 [09:53:53]line НДС 12% НСП 1% [09:53:53]line > о реализуемом товаре [09:53:53]line ОКРУГЛЕНИЕ: -0.41 [09:53:53]line ИТОГО: 500.00 [09:53:53]line Внесено: 500.00 [09:53:53]line СДАЧА: 0.00 [09:53:53]line НСП 1% : 4.43 [09:53:53]line НДС 12% : 53.14 [09:53:53]line Наличными: 500.00 [09:53:53]line Безнал.: 0.00 [09:53:53]line Место: АЗС № 142 "Партнер Нефть" [09:53:53]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:53:53]line СНО: Общий режим [09:53:53]line Чек 63 26.10.2024 09:53 [09:53:53]line Смена: 512 ФФД: 1.0 [09:53:53]line ЗНМ: 0300000089 [09:53:53]line РНМ: 0000000000091691 [09:53:53]line Версия ККМ: 001 [09:53:53]line ФМ: 0000000000871795 [09:53:53]line ФД: 75071 [09:53:53]line ФПД: 2106134015710 [09:53:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095356&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75071&fm=2106134015710&tin=02508201610067®Number=0000000000091691&sum=50000 [09:53:53]written 0, free lines is 4095 [09:53:53]OFD Sender: Processing packet 75071 [packets to send 13, broken 12] [09:53:53]ProducePacketName [09:53:53]name=ofd_packets/00075071 [09:53:53]OFD Sender: To server: pG, [09:53:53]CommunicateWithHost lk.salyk.kg:30040 [09:53:53]ConnectInit lk.salyk.kg [09:53:54]Connected sock=10 [09:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C9 95 07 01 C0 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 34 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3F 25 01 00 35 04 06 00 01 EA 5F 5E AE DE 76 33 FD FC 6D 7A 61 F5 [09:53:54]Write to MH i2c: 01 00 00 24 24 48 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 A0 0C FB [09:53:54]RasterBufferAndPrint [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]written 0, free lines is 3239 [09:53:54]MH_Cut [09:53:54]Write to MH i2c: D1 01 00 2B 24 01 21 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 2B 24 00 20 [09:53:54]Write to MH i2c: 01 00 00 2C 24 50 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CB DA 47 00 E8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 3F 25 01 00 F4 03 04 00 B0 63 1C 67 B6 04 01 00 00 70 8C 60 34 CA BA 2E 24 [09:53:54]CommunicateWithHost err = 0 [09:53:54]CheckOFDResponse [09:53:54]1017 (14) - 77093643461234 [09:53:54]1041 (16) - 0000000000871795 [09:53:54]1040 (4) - 75071 [09:53:54]1012 (4) - 26.10.2024 03:36 [09:53:54]1206 (1) - 0 [09:53:54]OFD Sender: Remove packet 75071 [09:53:54]ProducePacketName [09:53:54]name=ofd_packets/00075071 [09:53:54]NVStorageDeleteData [09:53:54]OFD Sender: No OFD packet to send [09:53:55]*** Cut start [09:53:55]*** Partial cut [09:53:55]*** CUTSNS_PIN = 1 [09:53:55]*** CUTSNS_PIN = 0 [09:53:55]*** Brake cut motor [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]*** Stop cut motor [09:53:55]*** Cut end [09:53:55]Read from MH i2c: 01 07 00 2C 24 00 00 00 00 00 FF 0F 65 [09:53:55]process_action close_receipt done [09:53:55]requested_data is exist [09:53:55]produce_requested_data [09:53:55]requested_item fm.sn is exist - process it [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 11 00 00 [09:53:55]Write to MH i2c: E2 08 00 2D 24 80 11 00 00 00 00 00 00 CB [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 2D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 23 [09:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:53:55]wFMCommunicate OK [09:53:55]requested_item fd.num is exist - process it [09:53:55]SAM_PROTO_GetFieldsCounters [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 00 00 [09:53:55]Write to MH i2c: E2 08 00 2E 24 80 13 00 00 00 00 00 00 CE [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 62 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 62 00 2E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3F 25 01 00 0E 04 04 00 00 02 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 19 [09:53:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 3F 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:55]wFMCommunicate OK [09:53:55]SAM_PROTO_GetFieldsCounters done [09:53:55]requested_item shift.num is exist - process it [09:53:55]requested_item shift.opened is exist - process it [09:53:55]req_shift_opened [09:53:55]FM_GetShiftState [09:53:55]SAM_PROTO_GetShiftState [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 01 00 [09:53:55]Write to MH i2c: E2 08 00 2F 24 80 13 01 00 00 00 00 00 D0 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0E 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0E 00 2F 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EB [09:53:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:53:55]wFMCommunicate OK [09:53:55]SAM_PROTO_GetShiftState done [09:53:55]FM_GetShiftState done [09:53:55]req_shift_opened done [09:53:55]requested_item shift.open_date is exist - process it [09:53:55]req_shift_open_date [09:53:55]req_shift_open_date done [09:53:55]produce_requested_data done [09:53:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75071,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:53:55]process_action_free close_receipt [09:53:55]json_value_free [09:53:55]json_value_free done [09:53:55]process_json_proto returns [09:53:55]Send response to host [09:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75071,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:53:55]free response buf [09:53:55]execute_script done [09:53:55]execute_script returns [09:53:55]free content buf [09:53:55]Sock 8.Close socket [09:53:55]Sock 8.Thread stoped [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:36]accept exits with 9 [09:54:36]New connection [09:54:36]New thread 3066924388 created [09:54:36]Thread 3066781028 joined [09:54:36]Waiting for new connection... [09:54:36] Sock 9.Parse request [09:54:36]Sock 9.Check first char [09:54:36]Sock 9.First char is OK [09:54:36]request: POST /json_proto HTTP/1.0 [09:54:36]Method: POST [09:54:36]URL: /json_proto [09:54:36]Method is POST - this is cgi request [09:54:36]url: /json_proto [09:54:36]query_string will be loaded in cgi processing [09:54:36]execute_cgi json_proto POST (null) [09:54:36]execute_cgi path=json_proto method=POST [09:54:36]POST find Content-Length [09:54:36]Host: 172.17.39.131:8080 [09:54:36]Content-Length: 677 [09:54:36]Content-Type: application/json [09:54:36] [09:54:36]POST finish read [09:54:36]Found Content-Length = 677 [09:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [09:54:36]execute_script... [09:54: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)191044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [09:54:36]POST & json_proto [09:54:36]process_json_proto [09:54:36]json parsed OK: [09:54:36]protocol is kg_v1.0 [09:54:36]action value=close_receipt [09:54:36]process_action close_receipt [09:54:36]cmd_close_receipt [09:54:36]MH_GetDate [09:54:36]Write to MH i2c: F0 00 00 30 24 43 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 30 24 00 61 BC 1C 67 86 57 24 65 52 [09:54:36]GetLastDocTimeStamp 1729936436 [09:54:36]current date 1729936481 [09:54:36]FM_GetShiftState [09:54:36]SAM_PROTO_GetShiftState [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 13 01 00 [09:54:36]Write to MH i2c: E2 08 00 31 24 80 13 01 00 00 00 00 00 D2 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:36]Read from MH i2c: E2 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 31 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 ED [09:54:36]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:54:36]wFMCommunicate OK [09:54:36]SAM_PROTO_GetShiftState done [09:54:36]FM_GetShiftState done [09:54:36]opened in 1729902166 [09:54:36]opened+sec_in_day 1729988566 [09:54:36]quantity*price = 30038 [09:54:36]sum+1 = 30039 [09:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 64 26.10.2024 09:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75072 ФПД: 96418847985614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095441&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75072&fm=96418847985614&tin=02508201610067®Number=0000000000091691&sum=30000 [09:54:38]StoreToDocumentArchive [09:54:38]shift 512 fd 75072 [09:54:38]save to /storage/0512/doc_00075072 [09:54:38]save last doc name /storage/0512/doc_00075072 to /storage/kkm_last_doc_name [09:54:38]save OK [09:54:38]Clear old archive folders... [09:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:38]tlvbuf is B6EA1900 [09:54:38]SAM_PROTO_ClearQueue [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 09 00 00 [09:54:38]Write to MH i2c: E2 08 00 3E 24 80 09 00 00 00 00 00 00 D4 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 3E 24 00 90 00 D6 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_ClearQueue done [09:54:38]KKMCreateOFDPacket [09:54:38]OFDProtocolAddRootSTLVToBuf [09:54:38]FM_MakeSignedData [09:54:38]FM_MakeSignedData [09:54:38]SAM_PROTO_SignData [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 01 02 [09:54:38]Write to MH i2c: E2 08 00 3F 24 80 0D 01 02 00 00 00 00 DC [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 3F 24 00 90 00 D7 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=255 [09:54:38]MH_SAM_APDU [09:54: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 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 40 00 00 00 F4 03 04 00 61 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 40 25 01 00 35 04 06 00 57 [09:54:38]Write to MH i2c: E2 02 01 40 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 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 40 00 00 00 F4 03 04 00 61 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 40 25 01 00 35 04 06 00 57 00 00 04 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 40 24 00 90 00 D8 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=10 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 02 02 05 B1 43 2F 0F CE [09:54:38]Write to MH i2c: E2 0D 00 41 24 80 0D 02 02 05 00 B1 43 2F 0F CE 00 00 E9 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 03 02 [09:54:38]Write to MH i2c: E2 08 00 42 24 80 0D 03 02 00 00 00 00 E1 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 42 24 00 1D 5B 1F AE 4F 95 3F A5 90 00 EF [09:54:38]RAPDU: 1D 5B 1F AE 4F 95 3F A5 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_SignData done [09:54:38]FM_MakeSignedData done [09:54:38]CreateOFDProtocolMessage [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 11 00 00 [09:54:38]Write to MH i2c: E2 08 00 43 24 80 11 00 00 00 00 00 00 E1 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 43 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 39 [09:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:54:38]wFMCommunicate OK [09:54:38]CreateOFDProtocolMessage done [09:54:38]OFDSenderStorePacket 75072 [09:54:38]StoreOFDPacket docnum=75072 [09:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BD EB 07 01 B9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 61 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 40 25 01 00 35 04 06 00 57 B1 43 2F 0F CE 1D 5B 1F AE 4F 95 3F A5 [09:54:38]CheckFolder [09:54:38]dirname=/storage/ofd_packets [09:54:38]CheckFolder done [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00075072 [09:54:38]NVStorageSaveData ofd_packets/00075072 [09:54:38]File name is /storage/ofd_packets/00075072 [09:54:38]Write 301 bytes [09:54:38]NVStorageSaveData done [09:54:38]OFDSenderStorePacket done [09:54:38]KKMCreateOFDPacket done [09:54:38]NVStorageSaveData kkm_last_timestamp [09:54:38]File name is /storage/kkm_last_timestamp [09:54:38]Write 4 bytes [09:54:38]NVStorageSaveData done [09:54:38]ExternCall_PrintAddStr [09:54:38]wPrintStart [09:54:38]Write to MH i2c: 01 00 00 44 24 68 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 44 24 00 00 00 00 00 FF 0F 7D [09:54:38]RasterBufferAndPrint [09:54:38]line Счет N : (1)191044 [09:54:38]line ИНН: 02508201610067 [09:54:38]line Контрольно-Кассовый Чек [09:54:38]line ПРОДАЖА [09:54:38]line ТРК (МРК, ГНК) : 21 [09:54:38]line Товар: 2710124130 [09:54:38]line Аи-92-К-5 [09:54:38]line 4.490 * 66.90 [09:54:38]line = 300.38 [09:54:38]line НДС 12% НСП 1% [09:54:38]line > о реализуемом товаре [09:54:38]line ОКРУГЛЕНИЕ: -0.38 [09:54:38]line ИТОГО: 300.00 [09:54:38]line Внесено: 300.00 [09:54:38]line СДАЧА: 0.00 [09:54:38]line НСП 1% : 2.66 [09:54:38]line НДС 12% : 31.90 [09:54:38]line Наличными: 300.00 [09:54:38]line Безнал.: 0.00 [09:54:38]line Место: АЗС № 142 "Партнер Нефть" [09:54:38]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:54:38]line СНО: Общий режим [09:54:38]line Чек 64 26.10.2024 09:54 [09:54:38]line Смена: 512 ФФД: 1.0 [09:54:38]line ЗНМ: 0300000089 [09:54:38]line РНМ: 0000000000091691 [09:54:38]line Версия ККМ: 001 [09:54:38]line ФМ: 0000000000871795 [09:54:38]line ФД: 75072 [09:54:38]line ФПД: 96418847985614 [09:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095441&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75072&fm=96418847985614&tin=02508201610067®Number=0000000000091691&sum=30000 [09:54:38]written 0, free lines is 4095 [09:54:38]OFD Sender: Processing packet 75072 [packets to send 13, broken 12] [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00075072 [09:54:38]OFD Sender: To server: pG, [09:54:38]CommunicateWithHost lk.salyk.kg:30040 [09:54:38]ConnectInit lk.salyk.kg [09:54:39]Connected sock=8 [09:54:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BD EB 07 01 B9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 61 BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 40 25 01 00 35 04 06 00 57 B1 43 2F 0F CE 1D 5B 1F AE 4F 95 3F A5 [09:54:39]Write to MH i2c: 01 00 00 6F 24 93 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 6F 24 00 00 00 00 00 B2 0C 58 [09:54:39]RasterBufferAndPrint [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]written 0, free lines is 3257 [09:54:39]MH_Cut [09:54:39]Write to MH i2c: D1 01 00 76 24 01 6C [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 76 24 00 6B [09:54:39]Write to MH i2c: 01 00 00 77 24 9B [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 81 0A 47 00 92 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 38 37 31 37 39 35 10 04 04 00 40 25 01 00 F4 03 04 00 DD 63 1C 67 B6 04 01 00 00 56 19 2F 84 73 7A A1 C3 [09:54:39]CommunicateWithHost err = 0 [09:54:39]CheckOFDResponse [09:54:39]1017 (14) - 77093643461234 [09:54:39]1041 (16) - 0000000000871795 [09:54:39]1040 (4) - 75072 [09:54:39]1012 (4) - 26.10.2024 03:37 [09:54:39]1206 (1) - 0 [09:54:39]OFD Sender: Remove packet 75072 [09:54:39]ProducePacketName [09:54:39]name=ofd_packets/00075072 [09:54:39]NVStorageDeleteData [09:54:40]OFD Sender: No OFD packet to send [09:54:40]*** Cut start [09:54:40]*** Partial cut [09:54:40]*** CUTSNS_PIN = 1 [09:54:40]*** CUTSNS_PIN = 0 [09:54:40]*** Brake cut motor [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]*** Stop cut motor [09:54:40]*** Cut end [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 77 24 00 00 00 00 00 FF 0F B0 [09:54:40]process_action close_receipt done [09:54:40]requested_data is exist [09:54:40]produce_requested_data [09:54:40]requested_item fm.sn is exist - process it [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 78 24 80 11 00 00 00 00 00 00 16 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 17 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 17 00 78 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6E [09:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:54:41]wFMCommunicate OK [09:54:41]requested_item fd.num is exist - process it [09:54:41]SAM_PROTO_GetFieldsCounters [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 00 00 [09:54:41]Write to MH i2c: E2 08 00 79 24 80 13 00 00 00 00 00 00 19 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 62 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 62 00 79 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 40 25 01 00 0E 04 04 00 00 02 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 68 [09:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 40 25 01 00 0E 04 04 00 00 02 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 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetFieldsCounters done [09:54:41]requested_item shift.num is exist - process it [09:54:41]requested_item shift.opened is exist - process it [09:54:41]req_shift_opened [09:54:41]FM_GetShiftState [09:54:41]SAM_PROTO_GetShiftState [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 01 00 [09:54:41]Write to MH i2c: E2 08 00 7A 24 80 13 01 00 00 00 00 00 1B [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 7A 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 36 [09:54:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetShiftState done [09:54:41]FM_GetShiftState done [09:54:41]req_shift_opened done [09:54:41]requested_item shift.open_date is exist - process it [09:54:41]req_shift_open_date [09:54:41]req_shift_open_date done [09:54:41]produce_requested_data done [09:54:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75072,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:54:41]process_action_free close_receipt [09:54:41]json_value_free [09:54:41]json_value_free done [09:54:41]process_json_proto returns [09:54:41]Send response to host [09:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75072,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:54:41]free response buf [09:54:41]execute_script done [09:54:41]execute_script returns [09:54:41]free content buf [09:54:41]Sock 9.Close socket [09:54:41]Sock 9.Thread stoped [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:36]accept exits with 10 [09:55:36]New connection [09:55:36]New thread 3066781028 created [09:55:36]Thread 3066924388 joined [09:55:36]Waiting for new connection... [09:55:36] Sock 10.Parse request [09:55:36]Sock 10.Check first char [09:55:36]Sock 10.First char is OK [09:55:36]request: POST /json_proto HTTP/1.0 [09:55:36]Method: POST [09:55:36]URL: /json_proto [09:55:36]Method is POST - this is cgi request [09:55:36]url: /json_proto [09:55:36]query_string will be loaded in cgi processing [09:55:36]execute_cgi json_proto POST (null) [09:55:36]execute_cgi path=json_proto method=POST [09:55:36]POST find Content-Length [09:55:36]Host: 172.17.39.131:8080 [09:55:36]Content-Length: 677 [09:55:36]Content-Type: application/json [09:55:36] [09:55:36]POST finish read [09:55:36]Found Content-Length = 677 [09:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:55:36]execute_script... [09:55:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:55:36]POST & json_proto [09:55:36]process_json_proto [09:55:36]json parsed OK: [09:55:36]protocol is kg_v1.0 [09:55:36]action value=close_receipt [09:55:36]process_action close_receipt [09:55:36]cmd_close_receipt [09:55:36]MH_GetDate [09:55:36]Write to MH i2c: F0 00 00 7B 24 8E [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: F0 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: F0 09 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: F0 09 00 7B 24 00 9C BC 1C 67 86 57 24 65 D8 [09:55:36]GetLastDocTimeStamp 1729936481 [09:55:36]current date 1729936540 [09:55:36]FM_GetShiftState [09:55:36]SAM_PROTO_GetShiftState [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 13 01 00 [09:55:36]Write to MH i2c: E2 08 00 7C 24 80 13 01 00 00 00 00 00 1D [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0E 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0E 00 7C 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 38 [09:55:36]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:55:36]wFMCommunicate OK [09:55:36]SAM_PROTO_GetShiftState done [09:55:36]FM_GetShiftState done [09:55:36]opened in 1729902166 [09:55:36]opened+sec_in_day 1729988566 [09:55:36]quantity*price = 50041 [09:55:36]sum+1 = 50042 [09:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 65 26.10.2024 09:55 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75073 ФПД: 11514487781073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095540&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75073&fm=11514487781073&tin=02508201610067®Number=0000000000091691&sum=50000 [09:55:37]StoreToDocumentArchive [09:55:37]shift 512 fd 75073 [09:55:37]save to /storage/0512/doc_00075073 [09:55:37]save last doc name /storage/0512/doc_00075073 to /storage/kkm_last_doc_name [09:55:37]save OK [09:55:37]Clear old archive folders... [09:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:37]tlvbuf is 00885240 [09:55:37]SAM_PROTO_ClearQueue [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 09 00 00 [09:55:37]Write to MH i2c: E2 08 00 89 24 80 09 00 00 00 00 00 00 1F [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 89 24 00 90 00 21 [09:55:37]RAPDU: 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_ClearQueue done [09:55:37]KKMCreateOFDPacket [09:55:37]OFDProtocolAddRootSTLVToBuf [09:55:37]FM_MakeSignedData [09:55:37]FM_MakeSignedData [09:55:37]SAM_PROTO_SignData [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 0D 01 02 [09:55:37]Write to MH i2c: E2 08 00 8A 24 80 0D 01 02 00 00 00 00 27 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [09:55:37]RAPDU: 90 00 [09:55:37]wFMCommunicate OK [09:55:37]wFMCommunicate request_size=255 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 9C BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 41 25 01 00 35 04 06 00 0A [09:55:37]Write to MH i2c: E2 02 01 8B 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 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 41 00 00 00 F4 03 04 00 9C BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 41 25 01 00 35 04 06 00 0A 00 00 4B [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [09:55:37]RAPDU: 90 00 [09:55:37]wFMCommunicate OK [09:55:37]wFMCommunicate request_size=10 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 0D 02 02 05 78 EC F4 36 D1 [09:55:37]Write to MH i2c: E2 0D 00 8C 24 80 0D 02 02 05 00 78 EC F4 36 D1 00 00 93 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [09:55:37]RAPDU: 90 00 [09:55:37]wFMCommunicate OK [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 0D 03 02 [09:55:37]Write to MH i2c: E2 08 00 8D 24 80 0D 03 02 00 00 00 00 2C [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0B 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 0B 00 8D 24 00 9F 6D 2A 10 13 9B A7 41 90 00 09 [09:55:37]RAPDU: 9F 6D 2A 10 13 9B A7 41 90 00 [09:55:37]wFMCommunicate OK [09:55:37]SAM_PROTO_SignData done [09:55:37]FM_MakeSignedData done [09:55:37]CreateOFDProtocolMessage [09:55:37]wFMCommunicate request_size=4 [09:55:37]MH_SAM_APDU [09:55:37]CAPDU: 80 11 00 00 [09:55:37]Write to MH i2c: E2 08 00 8E 24 80 11 00 00 00 00 00 00 2C [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:37]Read from MH i2c: E2 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 17 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: E2 17 00 8E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 84 [09:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:55:37]wFMCommunicate OK [09:55:37]CreateOFDProtocolMessage done [09:55:37]OFDSenderStorePacket 75073 [09:55:37]StoreOFDPacket docnum=75073 [09:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 9B 07 01 BA 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 9C BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 41 25 01 00 35 04 06 00 0A 78 EC F4 36 D1 9F 6D 2A 10 13 9B A7 41 [09:55:37]CheckFolder [09:55:37]dirname=/storage/ofd_packets [09:55:37]CheckFolder done [09:55:37]ProducePacketName [09:55:37]name=ofd_packets/00075073 [09:55:37]NVStorageSaveData ofd_packets/00075073 [09:55:37]File name is /storage/ofd_packets/00075073 [09:55:37]Write 301 bytes [09:55:37]NVStorageSaveData done [09:55:37]OFDSenderStorePacket done [09:55:37]KKMCreateOFDPacket done [09:55:37]NVStorageSaveData kkm_last_timestamp [09:55:37]File name is /storage/kkm_last_timestamp [09:55:37]Write 4 bytes [09:55:37]NVStorageSaveData done [09:55:37]ExternCall_PrintAddStr [09:55:37]wPrintStart [09:55:37]Write to MH i2c: 01 00 00 8F 24 B3 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 07 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 07 00 8F 24 00 00 00 00 00 FF 0F C8 [09:55:37]RasterBufferAndPrint [09:55:37]line Счет N : (1)191045 [09:55:37]line ИНН: 02508201610067 [09:55:37]line Контрольно-Кассовый Чек [09:55:37]line ПРОДАЖА [09:55:37]line ТРК (МРК, ГНК) : 21 [09:55:37]line Товар: 2710124130 [09:55:37]line Аи-92-К-5 [09:55:37]line 7.480 * 66.90 [09:55:37]line = 500.41 [09:55:37]line НДС 12% НСП 1% [09:55:37]line > о реализуемом товаре [09:55:37]line ОКРУГЛЕНИЕ: -0.41 [09:55:37]line ИТОГО: 500.00 [09:55:37]line Внесено: 500.00 [09:55:37]line СДАЧА: 0.00 [09:55:37]line НСП 1% : 4.43 [09:55:37]line НДС 12% : 53.14 [09:55:37]line Наличными: 500.00 [09:55:37]line Безнал.: 0.00 [09:55:37]line Место: АЗС № 142 "Партнер Нефть" [09:55:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:55:37]line СНО: Общий режим [09:55:37]line Чек 65 26.10.2024 09:55 [09:55:37]line Смена: 512 ФФД: 1.0 [09:55:37]line ЗНМ: 0300000089 [09:55:37]line РНМ: 0000000000091691 [09:55:37]line Версия ККМ: 001 [09:55:37]line ФМ: 0000000000871795 [09:55:37]line ФД: 75073 [09:55:37]line ФПД: 11514487781073 [09:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095540&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75073&fm=11514487781073&tin=02508201610067®Number=0000000000091691&sum=50000 [09:55:38]OFD Sender: Processing packet 75073 [packets to send 13, broken 12] [09:55:38]ProducePacketName [09:55:38]name=ofd_packets/00075073 [09:55:38]OFD Sender: To server: pG, [09:55:38]CommunicateWithHost lk.salyk.kg:30040 [09:55:38]ConnectInit lk.salyk.kg [09:55:38]written 0, free lines is 4095 [09:55:38]Connected sock=9 [09:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 9B 07 01 BA 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 9C BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 41 25 01 00 35 04 06 00 0A 78 EC F4 36 D1 9F 6D 2A 10 13 9B A7 41 [09:55:38]Write to MH i2c: 01 00 00 BA 24 DE [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 9F 0C 90 [09:55:38]RasterBufferAndPrint [09:55:38]line [09:55:38]line [09:55:38]line [09:55:38]line [09:55:38]line [09:55:38]written 0, free lines is 3236 [09:55:38]MH_Cut [09:55:38]Write to MH i2c: D1 01 00 C1 24 01 B7 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: D1 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: D1 01 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: D1 01 00 C1 24 00 B6 [09:55:38]Write to MH i2c: 01 00 00 C2 24 E6 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 81 36 47 00 C6 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 41 25 01 00 F4 03 04 00 18 64 1C 67 B6 04 01 00 00 CE DF 4D 1D 19 3C C2 0A [09:55:38]CommunicateWithHost err = 0 [09:55:38]CheckOFDResponse [09:55:38]1017 (14) - 77093643461234 [09:55:38]1041 (16) - 0000000000871795 [09:55:38]1040 (4) - 75073 [09:55:38]1012 (4) - 26.10.2024 03:38 [09:55:38]1206 (1) - 0 [09:55:38]OFD Sender: Remove packet 75073 [09:55:38]ProducePacketName [09:55:38]name=ofd_packets/00075073 [09:55:38]NVStorageDeleteData [09:55:39]OFD Sender: No OFD packet to send [09:55:39]*** Cut start [09:55:39]*** Partial cut [09:55:39]*** CUTSNS_PIN = 1 [09:55:39]*** CUTSNS_PIN = 0 [09:55:39]*** Brake cut motor [09:55:40]Read from MH i2c: 01 [09:55:40]MH_I2C_Read... [09:55:40]*** Stop cut motor [09:55:40]*** Cut end [09:55:40]Read from MH i2c: 01 07 00 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [09:55:40]process_action close_receipt done [09:55:40]requested_data is exist [09:55:40]produce_requested_data [09:55:40]requested_item fm.sn is exist - process it [09:55:40]wFMCommunicate request_size=4 [09:55:40]MH_SAM_APDU [09:55:40]CAPDU: 80 11 00 00 [09:55:40]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [09:55:40]Write i2c OK [09:55:40]MH_I2C_Read... [09:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:40]Read from MH i2c: E2 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 17 00 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B9 [09:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:55:40]wFMCommunicate OK [09:55:40]requested_item fd.num is exist - process it [09:55:40]SAM_PROTO_GetFieldsCounters [09:55:40]wFMCommunicate request_size=4 [09:55:40]MH_SAM_APDU [09:55:40]CAPDU: 80 13 00 00 [09:55:40]Write to MH i2c: E2 08 00 C4 24 80 13 00 00 00 00 00 00 64 [09:55:40]Write i2c OK [09:55:40]MH_I2C_Read... [09:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:40]Read from MH i2c: E2 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 62 00 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 62 00 C4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 41 25 01 00 0E 04 04 00 00 02 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 B7 [09:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 41 25 01 00 0E 04 04 00 00 02 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 [09:55:40]wFMCommunicate OK [09:55:40]SAM_PROTO_GetFieldsCounters done [09:55:40]requested_item shift.num is exist - process it [09:55:40]requested_item shift.opened is exist - process it [09:55:40]req_shift_opened [09:55:40]FM_GetShiftState [09:55:40]SAM_PROTO_GetShiftState [09:55:40]wFMCommunicate request_size=4 [09:55:40]MH_SAM_APDU [09:55:40]CAPDU: 80 13 01 00 [09:55:40]Write to MH i2c: E2 08 00 C5 24 80 13 01 00 00 00 00 00 66 [09:55:40]Write i2c OK [09:55:40]MH_I2C_Read... [09:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:40]Read from MH i2c: E2 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 0E 00 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: E2 0E 00 C5 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 81 [09:55:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:55:40]wFMCommunicate OK [09:55:40]SAM_PROTO_GetShiftState done [09:55:40]FM_GetShiftState done [09:55:40]req_shift_opened done [09:55:40]requested_item shift.open_date is exist - process it [09:55:40]req_shift_open_date [09:55:40]req_shift_open_date done [09:55:40]produce_requested_data done [09:55:40]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75073,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:55:40]process_action_free close_receipt [09:55:40]json_value_free [09:55:40]json_value_free done [09:55:40]process_json_proto returns [09:55:40]Send response to host [09:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75073,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:55:40]free response buf [09:55:40]execute_script done [09:55:40]execute_script returns [09:55:40]free content buf [09:55:40]Sock 10.Close socket [09:55:40]Sock 10.Thread stoped [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:11]accept exits with 8 [09:57:11]New connection [09:57:11]New thread 3066924388 created [09:57:11]Thread 3066781028 joined [09:57:11]Waiting for new connection... [09:57:11] Sock 8.Parse request [09:57:11]Sock 8.Check first char [09:57:11]Sock 8.First char is OK [09:57:11]request: POST /json_proto HTTP/1.0 [09:57:11]Method: POST [09:57:11]URL: /json_proto [09:57:11]Method is POST - this is cgi request [09:57:11]url: /json_proto [09:57:11]query_string will be loaded in cgi processing [09:57:11]execute_cgi json_proto POST (null) [09:57:11]execute_cgi path=json_proto method=POST [09:57:11]POST find Content-Length [09:57:11]Host: 172.17.39.131:8080 [09:57:11]Content-Length: 682 [09:57:11]Content-Type: application/json [09:57:11] [09:57:11]POST finish read [09:57:11]Found Content-Length = 682 [09:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:57:11]execute_script... [09:57: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)191046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:57:11]POST & json_proto [09:57:11]process_json_proto [09:57:11]json parsed OK: [09:57:11]protocol is kg_v1.0 [09:57:11]action value=close_receipt [09:57:11]process_action close_receipt [09:57:11]cmd_close_receipt [09:57:11]MH_GetDate [09:57:11]Write to MH i2c: F0 00 00 C6 24 D9 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 09 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: F0 09 00 C6 24 00 FB BC 1C 67 86 57 24 65 82 [09:57:11]GetLastDocTimeStamp 1729936540 [09:57:11]current date 1729936635 [09:57:11]FM_GetShiftState [09:57:11]SAM_PROTO_GetShiftState [09:57:11]wFMCommunicate request_size=4 [09:57:11]MH_SAM_APDU [09:57:11]CAPDU: 80 13 01 00 [09:57:11]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:11]Read from MH i2c: E2 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: E2 0E 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 83 [09:57:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:57:11]wFMCommunicate OK [09:57:11]SAM_PROTO_GetShiftState done [09:57:11]FM_GetShiftState done [09:57:11]opened in 1729902166 [09:57:11]opened+sec_in_day 1729988566 [09:57:11]quantity*price = 100015 [09:57:11]sum+1 = 100017 [09:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 66 26.10.2024 09:57 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75074 ФПД: 55820157090337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095715&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75074&fm=55820157090337&tin=02508201610067®Number=0000000000091691&sum=100000 [09:57:12]StoreToDocumentArchive [09:57:12]shift 512 fd 75074 [09:57:12]save to /storage/0512/doc_00075074 [09:57:12]save last doc name /storage/0512/doc_00075074 to /storage/kkm_last_doc_name [09:57:12]save OK [09:57:12]Clear old archive folders... [09:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:12]tlvbuf is B6F4E010 [09:57:12]SAM_PROTO_ClearQueue [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 09 00 00 [09:57:12]Write to MH i2c: E2 08 00 D4 24 80 09 00 00 00 00 00 00 6A [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_ClearQueue done [09:57:12]KKMCreateOFDPacket [09:57:12]OFDProtocolAddRootSTLVToBuf [09:57:12]FM_MakeSignedData [09:57:12]FM_MakeSignedData [09:57:12]SAM_PROTO_SignData [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 0D 01 02 [09:57:12]Write to MH i2c: E2 08 00 D5 24 80 0D 01 02 00 00 00 00 72 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [09:57:12]RAPDU: 90 00 [09:57:12]wFMCommunicate OK [09:57:12]wFMCommunicate request_size=255 [09:57:12]MH_SAM_APDU [09:57: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 FB BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 42 25 01 00 35 04 06 00 32 [09:57:12]Write to MH i2c: E2 02 01 D6 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 42 00 00 00 F4 03 04 00 FB BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 42 25 01 00 35 04 06 00 32 00 00 19 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 03 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [09:57:13]RAPDU: 90 00 [09:57:13]wFMCommunicate OK [09:57:13]wFMCommunicate request_size=10 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 0D 02 02 05 C4 A4 A2 7A 21 [09:57:13]Write to MH i2c: E2 0D 00 D7 24 80 0D 02 02 05 00 C4 A4 A2 7A 21 00 00 24 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 03 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [09:57:13]RAPDU: 90 00 [09:57:13]wFMCommunicate OK [09:57:13]wFMCommunicate request_size=4 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 0D 03 02 [09:57:13]Write to MH i2c: E2 08 00 D8 24 80 0D 03 02 00 00 00 00 77 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0B 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0B 00 D8 24 00 98 D1 C1 5A F8 CB 02 50 90 00 11 [09:57:13]RAPDU: 98 D1 C1 5A F8 CB 02 50 90 00 [09:57:13]wFMCommunicate OK [09:57:13]SAM_PROTO_SignData done [09:57:13]FM_MakeSignedData done [09:57:13]CreateOFDProtocolMessage [09:57:13]wFMCommunicate request_size=4 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 11 00 00 [09:57:13]Write to MH i2c: E2 08 00 D9 24 80 11 00 00 00 00 00 00 77 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 17 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 17 00 D9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CF [09:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:57:13]wFMCommunicate OK [09:57:13]CreateOFDProtocolMessage done [09:57:13]OFDSenderStorePacket 75074 [09:57:13]StoreOFDPacket docnum=75074 [09:57:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 42 B8 07 01 8C 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 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 42 00 00 00 F4 03 04 00 FB BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 42 25 01 00 35 04 06 00 32 C4 A4 A2 7A 21 98 D1 C1 5A F8 CB 02 50 [09:57:13]CheckFolder [09:57:13]dirname=/storage/ofd_packets [09:57:13]CheckFolder done [09:57:13]ProducePacketName [09:57:13]name=ofd_packets/00075074 [09:57:13]NVStorageSaveData ofd_packets/00075074 [09:57:13]File name is /storage/ofd_packets/00075074 [09:57:13]Write 301 bytes [09:57:13]NVStorageSaveData done [09:57:13]OFDSenderStorePacket done [09:57:13]KKMCreateOFDPacket done [09:57:13]NVStorageSaveData kkm_last_timestamp [09:57:13]File name is /storage/kkm_last_timestamp [09:57:13]Write 4 bytes [09:57:13]NVStorageSaveData done [09:57:13]ExternCall_PrintAddStr [09:57:13]wPrintStart [09:57:13]Write to MH i2c: 01 00 00 DA 24 FE [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [09:57:13]RasterBufferAndPrint [09:57:13]line Счет N : (1)191046 [09:57:13]line ИНН: 02508201610067 [09:57:13]line Контрольно-Кассовый Чек [09:57:13]line ПРОДАЖА [09:57:13]line ТРК (МРК, ГНК) : 21 [09:57:13]line Товар: 2710124130 [09:57:13]line Аи-92-К-5 [09:57:13]line 14.950 * 66.90 [09:57:13]line = 1000.16 [09:57:13]line НДС 12% НСП 1% [09:57:13]line > о реализуемом товаре [09:57:13]line ОКРУГЛЕНИЕ: -0.16 [09:57:13]line ИТОГО: 1000.00 [09:57:13]line Внесено: 1000.00 [09:57:13]line СДАЧА: 0.00 [09:57:13]line НСП 1% : 8.85 [09:57:13]line НДС 12% : 106.21 [09:57:13]line Наличными: 1000.00 [09:57:13]line Безнал.: 0.00 [09:57:13]line Место: АЗС № 142 "Партнер Нефть" [09:57:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:57:13]line СНО: Общий режим [09:57:13]line Чек 66 26.10.2024 09:57 [09:57:13]line Смена: 512 ФФД: 1.0 [09:57:13]line ЗНМ: 0300000089 [09:57:13]line РНМ: 0000000000091691 [09:57:13]line Версия ККМ: 001 [09:57:13]line ФМ: 0000000000871795 [09:57:13]line ФД: 75074 [09:57:13]line ФПД: 55820157090337 [09:57:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095715&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75074&fm=55820157090337&tin=02508201610067®Number=0000000000091691&sum=100000 [09:57:13]OFD Sender: Processing packet 75074 [packets to send 13, broken 12] [09:57:13]ProducePacketName [09:57:13]name=ofd_packets/00075074 [09:57:13]OFD Sender: To server: pG, [09:57:13]CommunicateWithHost lk.salyk.kg:30040 [09:57:13]ConnectInit lk.salyk.kg [09:57:13]written 0, free lines is 4095 [09:57:13]Connected sock=10 [09:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 42 B8 07 01 8C 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 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 42 00 00 00 F4 03 04 00 FB BC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 42 25 01 00 35 04 06 00 32 C4 A4 A2 7A 21 98 D1 C1 5A F8 CB 02 50 [09:57:13]Write to MH i2c: 01 00 00 05 25 2A [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 05 25 00 00 00 00 00 AD 0C EA [09:57:13]RasterBufferAndPrint [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]line [09:57:13]written 0, free lines is 3254 [09:57:13]MH_Cut [09:57:13]Write to MH i2c: D1 01 00 0C 25 01 03 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:14]Read from MH i2c: D1 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: D1 01 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: D1 01 00 0C 25 00 02 [09:57:14]Write to MH i2c: 01 00 00 0D 25 32 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AF 69 47 00 62 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 38 37 31 37 39 35 10 04 04 00 42 25 01 00 F4 03 04 00 78 64 1C 67 B6 04 01 00 00 15 90 BD 28 E3 D9 45 9F [09:57:14]CommunicateWithHost err = 0 [09:57:14]CheckOFDResponse [09:57:14]1017 (14) - 77093643461234 [09:57:14]1041 (16) - 0000000000871795 [09:57:14]1040 (4) - 75074 [09:57:14]1012 (4) - 26.10.2024 03:39 [09:57:14]1206 (1) - 0 [09:57:14]OFD Sender: Remove packet 75074 [09:57:14]ProducePacketName [09:57:14]name=ofd_packets/00075074 [09:57:14]NVStorageDeleteData [09:57:14]OFD Sender: No OFD packet to send [09:57:14]*** Cut start [09:57:14]*** Partial cut [09:57:14]*** CUTSNS_PIN = 1 [09:57:14]*** CUTSNS_PIN = 0 [09:57:15]*** Brake cut motor [09:57:15]Read from MH i2c: 01 [09:57:15]MH_I2C_Read... [09:57:15]*** Stop cut motor [09:57:15]*** Cut end [09:57:15]Read from MH i2c: 01 07 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 FF 0F 47 [09:57:15]process_action close_receipt done [09:57:15]requested_data is exist [09:57:15]produce_requested_data [09:57:15]requested_item fm.sn is exist - process it [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 11 00 00 [09:57:15]Write to MH i2c: E2 08 00 0E 25 80 11 00 00 00 00 00 00 AD [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 17 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 17 00 0E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 05 [09:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:57:15]wFMCommunicate OK [09:57:15]requested_item fd.num is exist - process it [09:57:15]SAM_PROTO_GetFieldsCounters [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 13 00 00 [09:57:15]Write to MH i2c: E2 08 00 0F 25 80 13 00 00 00 00 00 00 B0 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 62 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 62 00 0F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 42 25 01 00 0E 04 04 00 00 02 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 07 [09:57:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 42 25 01 00 0E 04 04 00 00 02 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 [09:57:15]wFMCommunicate OK [09:57:15]SAM_PROTO_GetFieldsCounters done [09:57:15]requested_item shift.num is exist - process it [09:57:15]requested_item shift.opened is exist - process it [09:57:15]req_shift_opened [09:57:15]FM_GetShiftState [09:57:15]SAM_PROTO_GetShiftState [09:57:15]wFMCommunicate request_size=4 [09:57:15]MH_SAM_APDU [09:57:15]CAPDU: 80 13 01 00 [09:57:15]Write to MH i2c: E2 08 00 10 25 80 13 01 00 00 00 00 00 B2 [09:57:15]Write i2c OK [09:57:15]MH_I2C_Read... [09:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:15]Read from MH i2c: E2 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 0E 00 [09:57:15]MH_I2C_Read... [09:57:15]Read from MH i2c: E2 0E 00 10 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CD [09:57:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:57:15]wFMCommunicate OK [09:57:15]SAM_PROTO_GetShiftState done [09:57:15]FM_GetShiftState done [09:57:15]req_shift_opened done [09:57:15]requested_item shift.open_date is exist - process it [09:57:15]req_shift_open_date [09:57:15]req_shift_open_date done [09:57:15]produce_requested_data done [09:57:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75074,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:57:15]process_action_free close_receipt [09:57:15]json_value_free [09:57:15]json_value_free done [09:57:15]process_json_proto returns [09:57:15]Send response to host [09:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75074,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:57:15]free response buf [09:57:15]execute_script done [09:57:15]execute_script returns [09:57:15]free content buf [09:57:15]Sock 8.Close socket [09:57:15]Sock 8.Thread stoped [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:32]accept exits with 9 [09:59:32]New connection [09:59:32]New thread 3066781028 created [09:59:32]Thread 3066924388 joined [09:59:32]Waiting for new connection... [09:59:32] Sock 9.Parse request [09:59:32]Sock 9.Check first char [09:59:32]Sock 9.First char is OK [09:59:32]request: POST /json_proto HTTP/1.0 [09:59:32]Method: POST [09:59:32]URL: /json_proto [09:59:32]Method is POST - this is cgi request [09:59:32]url: /json_proto [09:59:32]query_string will be loaded in cgi processing [09:59:32]execute_cgi json_proto POST (null) [09:59:32]execute_cgi path=json_proto method=POST [09:59:32]POST find Content-Length [09:59:32]Host: 172.17.39.131:8080 [09:59:32]Content-Length: 682 [09:59:32]Content-Type: application/json [09:59:32] [09:59:32]POST finish read [09:59:32]Found Content-Length = 682 [09:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:59:32]execute_script... [09: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)191047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:59:32]POST & json_proto [09:59:32]process_json_proto [09:59:32]json parsed OK: [09:59:32]protocol is kg_v1.0 [09:59:32]action value=close_receipt [09:59:32]process_action close_receipt [09:59:32]cmd_close_receipt [09:59:32]MH_GetDate [09:59:32]Write to MH i2c: F0 00 00 11 25 25 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: F0 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: F0 09 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: F0 09 00 11 25 00 88 BD 1C 67 86 57 24 65 5C [09:59:32]GetLastDocTimeStamp 1729936635 [09:59:32]current date 1729936776 [09:59:32]FM_GetShiftState [09:59:32]SAM_PROTO_GetShiftState [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 13 01 00 [09:59:32]Write to MH i2c: E2 08 00 12 25 80 13 01 00 00 00 00 00 B4 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0E 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0E 00 12 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CF [09:59:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:59:32]wFMCommunicate OK [09:59:32]SAM_PROTO_GetShiftState done [09:59:32]FM_GetShiftState done [09:59:32]opened in 1729902166 [09:59:32]opened+sec_in_day 1729988566 [09:59:32]quantity*price = 100015 [09:59:32]sum+1 = 100017 [09:59: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 67 26.10.2024 09:59 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75075 ФПД: 138240925346294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095936&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75075&fm=138240925346294&tin=02508201610067®Number=0000000000091691&sum=100000 [09:59:33]StoreToDocumentArchive [09:59:33]shift 512 fd 75075 [09:59:33]save to /storage/0512/doc_00075075 [09:59:33]save last doc name /storage/0512/doc_00075075 to /storage/kkm_last_doc_name [09:59:33]save OK [09:59:33]Clear old archive folders... [09:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:33]tlvbuf is 0084DD00 [09:59:33]SAM_PROTO_ClearQueue [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 09 00 00 [09:59:33]Write to MH i2c: E2 08 00 1F 25 80 09 00 00 00 00 00 00 B6 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 03 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [09:59:33]RAPDU: 90 00 [09:59:33]wFMCommunicate OK [09:59:33]SAM_PROTO_ClearQueue done [09:59:33]KKMCreateOFDPacket [09:59:33]OFDProtocolAddRootSTLVToBuf [09:59:33]FM_MakeSignedData [09:59:33]FM_MakeSignedData [09:59:33]SAM_PROTO_SignData [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 0D 01 02 [09:59:33]Write to MH i2c: E2 08 00 20 25 80 0D 01 02 00 00 00 00 BE [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 03 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 03 00 20 25 00 90 00 B9 [09:59:33]RAPDU: 90 00 [09:59:33]wFMCommunicate OK [09:59:33]wFMCommunicate request_size=255 [09:59:33]MH_SAM_APDU [09:59: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 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 43 00 00 00 F4 03 04 00 88 BD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 43 25 01 00 35 04 06 00 7D [09:59:33]Write to MH i2c: E2 02 01 21 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 88 BD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 43 25 01 00 35 04 06 00 7D 00 00 40 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=10 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 02 02 05 BA B9 3F A9 F6 [09:59:34]Write to MH i2c: E2 0D 00 22 25 80 0D 02 02 05 00 BA B9 3F A9 F6 00 00 1C [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 03 02 [09:59:34]Write to MH i2c: E2 08 00 23 25 80 0D 03 02 00 00 00 00 C3 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0B 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0B 00 23 25 00 91 2E 1C 23 64 E7 85 BB 90 00 4D [09:59:34]RAPDU: 91 2E 1C 23 64 E7 85 BB 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_SignData done [09:59:34]FM_MakeSignedData done [09:59:34]CreateOFDProtocolMessage [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 24 25 80 11 00 00 00 00 00 00 C3 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 24 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1B [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:59:34]wFMCommunicate OK [09:59:34]CreateOFDProtocolMessage done [09:59:34]OFDSenderStorePacket 75075 [09:59:34]StoreOFDPacket docnum=75075 [09:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3B 9E 07 01 7A 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 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 43 00 00 00 F4 03 04 00 88 BD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 43 25 01 00 35 04 06 00 7D BA B9 3F A9 F6 91 2E 1C 23 64 E7 85 BB [09:59:34]CheckFolder [09:59:34]dirname=/storage/ofd_packets [09:59:34]CheckFolder done [09:59:34]ProducePacketName [09:59:34]name=ofd_packets/00075075 [09:59:34]NVStorageSaveData ofd_packets/00075075 [09:59:34]File name is /storage/ofd_packets/00075075 [09:59:34]Write 301 bytes [09:59:34]NVStorageSaveData done [09:59:34]OFDSenderStorePacket done [09:59:34]KKMCreateOFDPacket done [09:59:34]NVStorageSaveData kkm_last_timestamp [09:59:34]File name is /storage/kkm_last_timestamp [09:59:34]Write 4 bytes [09:59:34]NVStorageSaveData done [09:59:34]ExternCall_PrintAddStr [09:59:34]wPrintStart [09:59:34]Write to MH i2c: 01 00 00 25 25 4A [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 FF 0F 5F [09:59:34]RasterBufferAndPrint [09:59:34]line Счет N : (1)191047 [09:59:34]line ИНН: 02508201610067 [09:59:34]line Контрольно-Кассовый Чек [09:59:34]line ПРОДАЖА [09:59:34]line ТРК (МРК, ГНК) : 21 [09:59:34]line Товар: 2710124130 [09:59:34]line Аи-92-К-5 [09:59:34]line 14.950 * 66.90 [09:59:34]line = 1000.16 [09:59:34]line НДС 12% НСП 1% [09:59:34]line > о реализуемом товаре [09:59:34]line ОКРУГЛЕНИЕ: -0.16 [09:59:34]line ИТОГО: 1000.00 [09:59:34]line Внесено: 1000.00 [09:59:34]line СДАЧА: 0.00 [09:59:34]line НСП 1% : 8.85 [09:59:34]line НДС 12% : 106.21 [09:59:34]line Наличными: 1000.00 [09:59:34]line Безнал.: 0.00 [09:59:34]line Место: АЗС № 142 "Партнер Нефть" [09:59:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [09:59:34]line СНО: Общий режим [09:59:34]line Чек 67 26.10.2024 09:59 [09:59:34]line Смена: 512 ФФД: 1.0 [09:59:34]line ЗНМ: 0300000089 [09:59:34]line РНМ: 0000000000091691 [09:59:34]line Версия ККМ: 001 [09:59:34]line ФМ: 0000000000871795 [09:59:34]line ФД: 75075 [09:59:34]line ФПД: 138240925346294 [09:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095936&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75075&fm=138240925346294&tin=02508201610067®Number=0000000000091691&sum=100000 [09:59:34]OFD Sender: Processing packet 75075 [packets to send 13, broken 12] [09:59:34]ProducePacketName [09:59:34]name=ofd_packets/00075075 [09:59:34]OFD Sender: To server: pG, [09:59:34]CommunicateWithHost lk.salyk.kg:30040 [09:59:34]ConnectInit lk.salyk.kg [09:59:34]written 0, free lines is 4095 [09:59:34]Connected sock=10 [09:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3B 9E 07 01 7A 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 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 43 00 00 00 F4 03 04 00 88 BD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 43 25 01 00 35 04 06 00 7D BA B9 3F A9 F6 91 2E 1C 23 64 E7 85 BB [09:59:35]Write to MH i2c: 01 00 00 50 25 75 [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 07 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 07 00 50 25 00 00 00 00 00 A9 0C 31 [09:59:35]RasterBufferAndPrint [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]written 0, free lines is 3246 [09:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6E 9E 47 00 5B 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 38 37 31 37 39 35 10 04 04 00 43 25 01 00 F4 03 04 00 05 65 1C 67 B6 04 01 00 00 2E E6 7F 21 F7 EB 68 99 [09:59:35]CommunicateWithHost err = 0 [09:59:35]CheckOFDResponse [09:59:35]1017 (14) - 77093643461234 [09:59:35]1041 (16) - 0000000000871795 [09:59:35]1040 (4) - 75075 [09:59:35]1012 (4) - 26.10.2024 03:41 [09:59:35]1206 (1) - 0 [09:59:35]OFD Sender: Remove packet 75075 [09:59:35]ProducePacketName [09:59:35]name=ofd_packets/00075075 [09:59:35]NVStorageDeleteData [09:59:35]MH_Cut [09:59:35]Write to MH i2c: D1 01 00 57 25 01 4E [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 01 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 01 00 57 25 00 4D [09:59:35]Write to MH i2c: 01 00 00 58 25 7D [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]OFD Sender: No OFD packet to send [09:59:35]*** Cut start [09:59:35]*** Partial cut [09:59:35]*** CUTSNS_PIN = 1 [09:59:36]*** CUTSNS_PIN = 0 [09:59:36]*** Brake cut motor [09:59:36]Read from MH i2c: 01 [09:59:36]MH_I2C_Read... [09:59:36]*** Stop cut motor [09:59:36]*** Cut end [09:59:36]Read from MH i2c: 01 07 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 FF 0F 92 [09:59:36]process_action close_receipt done [09:59:36]requested_data is exist [09:59:36]produce_requested_data [09:59:36]requested_item fm.sn is exist - process it [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 11 00 00 [09:59:36]Write to MH i2c: E2 08 00 59 25 80 11 00 00 00 00 00 00 F8 [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 17 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 17 00 59 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 50 [09:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [09:59:36]wFMCommunicate OK [09:59:36]requested_item fd.num is exist - process it [09:59:36]SAM_PROTO_GetFieldsCounters [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 13 00 00 [09:59:36]Write to MH i2c: E2 08 00 5A 25 80 13 00 00 00 00 00 00 FB [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 62 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 62 00 5A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 43 25 01 00 0E 04 04 00 00 02 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 56 [09:59:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 43 25 01 00 0E 04 04 00 00 02 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 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_GetFieldsCounters done [09:59:36]requested_item shift.num is exist - process it [09:59:36]requested_item shift.opened is exist - process it [09:59:36]req_shift_opened [09:59:36]FM_GetShiftState [09:59:36]SAM_PROTO_GetShiftState [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 13 01 00 [09:59:36]Write to MH i2c: E2 08 00 5B 25 80 13 01 00 00 00 00 00 FD [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 5B 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 18 [09:59:36]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_GetShiftState done [09:59:36]FM_GetShiftState done [09:59:36]req_shift_opened done [09:59:36]requested_item shift.open_date is exist - process it [09:59:36]req_shift_open_date [09:59:36]req_shift_open_date done [09:59:36]produce_requested_data done [09:59:36]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75075,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [09:59:36]process_action_free close_receipt [09:59:36]json_value_free [09:59:36]json_value_free done [09:59:36]process_json_proto returns [09:59:36]Send response to host [09:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75075,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [09:59:36]free response buf [09:59:36]execute_script done [09:59:36]execute_script returns [09:59:36]free content buf [09:59:36]Sock 9.Close socket [09:59:36]Sock 9.Thread stoped [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:24]accept exits with 8 [10:00:24]New connection [10:00:24]New thread 3066924388 created [10:00:24]Thread 3066781028 joined [10:00:24]Waiting for new connection... [10:00:24] Sock 8.Parse request [10:00:24]Sock 8.Check first char [10:00:24]Sock 8.First char is OK [10:00:24]request: POST /json_proto HTTP/1.0 [10:00:24]Method: POST [10:00:24]URL: /json_proto [10:00:24]Method is POST - this is cgi request [10:00:24]url: /json_proto [10:00:24]query_string will be loaded in cgi processing [10:00:24]execute_cgi json_proto POST (null) [10:00:24]execute_cgi path=json_proto method=POST [10:00:24]POST find Content-Length [10:00:24]Host: 172.17.39.131:8080 [10:00:24]Content-Length: 679 [10:00:24]Content-Type: application/json [10:00:24] [10:00:24]POST finish read [10:00:24]Found Content-Length = 679 [10:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [10:00:24]execute_script... [10:00: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)191048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [10:00:24]POST & json_proto [10:00:24]process_json_proto [10:00:24]json parsed OK: [10:00:24]protocol is kg_v1.0 [10:00:24]action value=close_receipt [10:00:24]process_action close_receipt [10:00:24]cmd_close_receipt [10:00:24]MH_GetDate [10:00:24]Write to MH i2c: F0 00 00 5C 25 70 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: F0 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: F0 09 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: F0 09 00 5C 25 00 BD BD 1C 67 86 57 24 65 DC [10:00:24]GetLastDocTimeStamp 1729936776 [10:00:24]current date 1729936829 [10:00:24]FM_GetShiftState [10:00:24]SAM_PROTO_GetShiftState [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 13 01 00 [10:00:24]Write to MH i2c: E2 08 00 5D 25 80 13 01 00 00 00 00 00 FF [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0E 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0E 00 5D 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 1A [10:00:24]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_GetShiftState done [10:00:24]FM_GetShiftState done [10:00:24]opened in 1729902166 [10:00:24]opened+sec_in_day 1729988566 [10:00:24]quantity*price = 250012 [10:00:24]sum+1 = 250013 [10:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре [10:00:26]line ОКРУГЛЕНИЕ: -0.12 [10:00:26]line ИТОГО: 2500.00 [10:00:26]line Внесено: 2500.00 [10:00:26]line СДАЧА: 0.00 [10:00:26]line НСП 1% : 22.12 [10:00:26]line НДС 12% : 265.50 [10:00:26]line Наличными: 2500.00 [10:00:26]line Безнал.: 0.00 [10:00:26]line Место: АЗС № 142 "Партнер Нефть" [10:00:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:00:26]line СНО: Общий режим [10:00:26]line Чек 68 26.10.2024 10:00 [10:00:26]line Смена: 512 ФФД: 1.0 [10:00:26]line ЗНМ: 0300000089 [10:00:26]line РНМ: 0000000000091691 [10:00:26]line Версия ККМ: 001 [10:00:26]line ФМ: 0000000000871795 [10:00:26]line ФД: 75076 [10:00:26]line ФПД: 149960069418204 [10:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100029&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75076&fm=149960069418204&tin=02508201610067®Number=0000000000091691&sum=250000 [10:00:26]OFD Sender: Processing packet 75076 [packets to send 13, broken 12] [10:00:26]ProducePacketName [10:00:26]name=ofd_packets/00075076 [10:00:26]OFD Sender: To server: pG, [10:00:26]CommunicateWithHost lk.salyk.kg:30040 [10:00:26]ConnectInit lk.salyk.kg [10:00:26]written 0, free lines is 4095 [10:00:27]Connected sock=11 [10:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 54 FE 04 01 1F 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 34 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 44 00 00 00 F4 03 04 00 BD BD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 44 25 01 00 35 04 06 00 88 63 4C AB 0C DC E0 83 B4 F2 ED F1 46 9A [10:00:27]Write to MH i2c: 01 00 00 9B 25 C0 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D7 A6 47 00 0C 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 44 25 01 00 F4 03 04 00 39 65 1C 67 B6 04 01 00 00 AB D1 7D 12 03 4A 37 28 [10:00:27]CommunicateWithHost err = 0 [10:00:27]CheckOFDResponse [10:00:27]1017 (14) - 77093643461234 [10:00:27]1041 (16) - 0000000000871795 [10:00:27]1040 (4) - 75076 [10:00:27]1012 (4) - 26.10.2024 03:42 [10:00:27]1206 (1) - 0 [10:00:27]OFD Sender: Remove packet 75076 [10:00:27]ProducePacketName [10:00:27]name=ofd_packets/00075076 [10:00:27]NVStorageDeleteData [10:00:27]Read from MH i2c: 01 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: 01 07 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: 01 07 00 9B 25 00 00 00 00 00 B6 0C 89 [10:00:27]RasterBufferAndPrint [10:00:27]line [10:00:27]line [10:00:27]line [10:00:27]line [10:00:27]line [10:00:27]written 0, free lines is 3282 [10:00:27]MH_Cut [10:00:27]Write to MH i2c: D1 01 00 A2 25 01 99 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: D1 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: D1 01 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: D1 01 00 A2 25 00 98 [10:00:27]Write to MH i2c: 01 00 00 A3 25 C8 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]OFD Sender: No OFD packet to send [10:00:28]*** Cut start [10:00:28]*** Partial cut [10:00:28]*** CUTSNS_PIN = 1 [10:00:28]*** CUTSNS_PIN = 0 [10:00:28]*** Brake cut motor [10:00:28]Read from MH i2c: 01 [10:00:28]MH_I2C_Read... [10:00:28]*** Stop cut motor [10:00:28]*** Cut end [10:00:28]Read from MH i2c: 01 07 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 A3 25 00 00 00 00 00 FF 0F DD [10:00:28]process_action close_receipt done [10:00:28]requested_data is exist [10:00:28]produce_requested_data [10:00:28]requested_item fm.sn is exist - process it [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 11 00 00 [10:00:28]Write to MH i2c: E2 08 00 A4 25 80 11 00 00 00 00 00 00 43 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 A4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9B [10:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:00:28]wFMCommunicate OK [10:00:28]requested_item fd.num is exist - process it [10:00:28]SAM_PROTO_GetFieldsCounters [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 13 00 00 [10:00:28]Write to MH i2c: E2 08 00 A5 25 80 13 00 00 00 00 00 00 46 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 62 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 62 00 A5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 44 25 01 00 0E 04 04 00 00 02 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 A5 [10:00:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 44 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_GetFieldsCounters done [10:00:29]requested_item shift.num is exist - process it [10:00:29]requested_item shift.opened is exist - process it [10:00:29]req_shift_opened [10:00:29]FM_GetShiftState [10:00:29]SAM_PROTO_GetShiftState [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 13 01 00 [10:00:29]Write to MH i2c: E2 08 00 A6 25 80 13 01 00 00 00 00 00 48 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 A6 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 63 [10:00:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_GetShiftState done [10:00:29]FM_GetShiftState done [10:00:29]req_shift_opened done [10:00:29]requested_item shift.open_date is exist - process it [10:00:29]req_shift_open_date [10:00:29]req_shift_open_date done [10:00:29]produce_requested_data done [10:00:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75076,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:00:29]process_action_free close_receipt [10:00:29]json_value_free [10:00:29]json_value_free done [10:00:29]process_json_proto returns [10:00:29]Send response to host [10:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75076,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:00:29]free response buf [10:00:29]execute_script done [10:00:29]execute_script returns [10:00:29]free content buf [10:00:29]Sock 8.Close socket [10:00:29]Sock 8.Thread stoped [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:20]ConnectInit Can't connect to host [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:01]accept exits with 10 [10:03:01]New connection [10:03:01]New thread 3066781028 created [10:03:01]Thread 3066924388 joined [10:03:01]Waiting for new connection... [10:03:01] Sock 10.Parse request [10:03:01]Sock 10.Check first char [10:03:01]Sock 10.First char is OK [10:03:01]request: POST /json_proto HTTP/1.0 [10:03:01]Method: POST [10:03:01]URL: /json_proto [10:03:01]Method is POST - this is cgi request [10:03:01]url: /json_proto [10:03:01]query_string will be loaded in cgi processing [10:03:01]execute_cgi json_proto POST (null) [10:03:01]execute_cgi path=json_proto method=POST [10:03:01]POST find Content-Length [10:03:01]Host: 172.17.39.131:8080 [10:03:01]Content-Length: 677 [10:03:01]Content-Type: application/json [10:03:01] [10:03:01]POST finish read [10:03:01]Found Content-Length = 677 [10:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:01]execute_script... [10:03: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)191049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:01]POST & json_proto [10:03:01]process_json_proto [10:03:01]json parsed OK: [10:03:01]protocol is kg_v1.0 [10:03:01]action value=close_receipt [10:03:01]process_action close_receipt [10:03:01]cmd_close_receipt [10:03:01]MH_GetDate [10:03:01]Write to MH i2c: F0 00 00 A7 25 BB [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 09 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 09 00 A7 25 00 59 BE 1C 67 86 57 24 65 C4 [10:03:01]GetLastDocTimeStamp 1729936829 [10:03:01]current date 1729936985 [10:03:01]FM_GetShiftState [10:03:01]SAM_PROTO_GetShiftState [10:03:01]wFMCommunicate request_size=4 [10:03:01]MH_SAM_APDU [10:03:01]CAPDU: 80 13 01 00 [10:03:01]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:01]Read from MH i2c: E2 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 65 [10:03:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:03:01]wFMCommunicate OK [10:03:01]SAM_PROTO_GetShiftState done [10:03:01]FM_GetShiftState done [10:03:01]opened in 1729902166 [10:03:01]opened+sec_in_day 1729988566 [10:03:01]quantity*price = 30038 [10:03:01]sum+1 = 30039 [10:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 69 26.10.2024 10:03 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75077 ФПД: 85469045517722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100305&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75077&fm=85469045517722&tin=02508201610067®Number=0000000000091691&sum=30000 [10:03:02]StoreToDocumentArchive [10:03:02]shift 512 fd 75077 [10:03:02]save to /storage/0512/doc_00075077 [10:03:02]save last doc name /storage/0512/doc_00075077 to /storage/kkm_last_doc_name [10:03:02]save OK [10:03:02]Clear old archive folders... [10:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:02]tlvbuf is 008B2D30 [10:03:02]SAM_PROTO_ClearQueue [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 09 00 00 [10:03:02]Write to MH i2c: E2 08 00 B5 25 80 09 00 00 00 00 00 00 4C [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [10:03:02]RAPDU: 90 00 [10:03:02]wFMCommunicate OK [10:03:02]SAM_PROTO_ClearQueue done [10:03:02]KKMCreateOFDPacket [10:03:02]OFDProtocolAddRootSTLVToBuf [10:03:02]FM_MakeSignedData [10:03:02]FM_MakeSignedData [10:03:02]SAM_PROTO_SignData [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 0D 01 02 [10:03:02]Write to MH i2c: E2 08 00 B6 25 80 0D 01 02 00 00 00 00 54 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [10:03:02]RAPDU: 90 00 [10:03:02]wFMCommunicate OK [10:03:02]wFMCommunicate request_size=255 [10:03:02]MH_SAM_APDU [10:03: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 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 45 00 00 00 F4 03 04 00 59 BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 45 25 01 00 35 04 06 00 4D [10:03:02]Write to MH i2c: E2 02 01 B7 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 59 BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 45 25 01 00 35 04 06 00 4D 00 00 76 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [10:03:02]RAPDU: 90 00 [10:03:02]wFMCommunicate OK [10:03:02]wFMCommunicate request_size=10 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 0D 02 02 05 BB D0 18 ED 9A [10:03:02]Write to MH i2c: E2 0D 00 B8 25 80 0D 02 02 05 00 BB D0 18 ED 9A 00 00 8B [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [10:03:02]RAPDU: 90 00 [10:03:02]wFMCommunicate OK [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 0D 03 02 [10:03:02]Write to MH i2c: E2 08 00 B9 25 80 0D 03 02 00 00 00 00 59 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 0B 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 0B 00 B9 25 00 BC CA 2E 1F 14 F5 8D C2 90 00 85 [10:03:02]RAPDU: BC CA 2E 1F 14 F5 8D C2 90 00 [10:03:02]wFMCommunicate OK [10:03:02]SAM_PROTO_SignData done [10:03:02]FM_MakeSignedData done [10:03:02]CreateOFDProtocolMessage [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 11 00 00 [10:03:02]Write to MH i2c: E2 08 00 BA 25 80 11 00 00 00 00 00 00 59 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 17 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 17 00 BA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B1 [10:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:03:02]wFMCommunicate OK [10:03:02]CreateOFDProtocolMessage done [10:03:02]OFDSenderStorePacket 75077 [10:03:02]StoreOFDPacket docnum=75077 [10:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 45 F4 07 01 F9 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 59 BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 45 25 01 00 35 04 06 00 4D BB D0 18 ED 9A BC CA 2E 1F 14 F5 8D C2 [10:03:02]CheckFolder [10:03:02]dirname=/storage/ofd_packets [10:03:02]CheckFolder done [10:03:02]ProducePacketName [10:03:02]name=ofd_packets/00075077 [10:03:02]NVStorageSaveData ofd_packets/00075077 [10:03:02]File name is /storage/ofd_packets/00075077 [10:03:02]Write 301 bytes [10:03:02]NVStorageSaveData done [10:03:02]OFDSenderStorePacket done [10:03:02]KKMCreateOFDPacket done [10:03:02]NVStorageSaveData kkm_last_timestamp [10:03:02]File name is /storage/kkm_last_timestamp [10:03:02]Write 4 bytes [10:03:02]NVStorageSaveData done [10:03:02]ExternCall_PrintAddStr [10:03:02]wPrintStart [10:03:02]Write to MH i2c: 01 00 00 BB 25 E0 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: 01 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: 01 07 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 FF 0F F5 [10:03:02]RasterBufferAndPrint [10:03:02]line Счет N : (1)191049 [10:03:02]line ИНН: 02508201610067 [10:03:02]line Контрольно-Кассовый Чек [10:03:02]line ПРОДАЖА [10:03:02]line ТРК (МРК, ГНК) : 21 [10:03:02]line Товар: 2710124130 [10:03:02]line Аи-92-К-5 [10:03:02]line 4.490 * 66.90 [10:03:02]line = 300.38 [10:03:02]line НДС 12% НСП 1% [10:03:02]line > о реализуемом товаре [10:03:02]line ОКРУГЛЕНИЕ: -0.38 [10:03:02]line ИТОГО: 300.00 [10:03:02]line Внесено: 300.00 [10:03:02]line СДАЧА: 0.00 [10:03:02]line НСП 1% : 2.66 [10:03:02]line НДС 12% : 31.90 [10:03:02]line Наличными: 300.00 [10:03:02]line Безнал.: 0.00 [10:03:02]line Место: АЗС № 142 "Партнер Нефть" [10:03:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:03:02]line СНО: Общий режим [10:03:02]line Чек 69 26.10.2024 10:03 [10:03:02]line Смена: 512 ФФД: 1.0 [10:03:02]line ЗНМ: 0300000089 [10:03:02]line РНМ: 0000000000091691 [10:03:02]line Версия ККМ: 001 [10:03:02]line ФМ: 0000000000871795 [10:03:02]line ФД: 75077 [10:03:02]line ФПД: 85469045517722 [10:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100305&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75077&fm=85469045517722&tin=02508201610067®Number=0000000000091691&sum=30000 [10:03:02]OFD Sender: Processing packet 75077 [packets to send 13, broken 12] [10:03:02]ProducePacketName [10:03:02]name=ofd_packets/00075077 [10:03:02]OFD Sender: To server: pG, [10:03:02]CommunicateWithHost lk.salyk.kg:30040 [10:03:02]ConnectInit lk.salyk.kg [10:03:02]written 0, free lines is 4095 [10:03:03]Connected sock=11 [10:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 45 F4 07 01 F9 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 59 BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 45 25 01 00 35 04 06 00 4D BB D0 18 ED 9A BC CA 2E 1F 14 F5 8D C2 [10:03:03]Write to MH i2c: 01 00 00 E6 25 0B [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 07 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 07 00 E6 25 00 00 00 00 00 B1 0C CF [10:03:03]RasterBufferAndPrint [10:03:03]line [10:03:03]line [10:03:03]line [10:03:03]line [10:03:03]line [10:03:03]written 0, free lines is 3264 [10:03:03]MH_Cut [10:03:03]Write to MH i2c: D1 01 00 ED 25 01 E4 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: D1 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: D1 01 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: D1 01 00 ED 25 00 E3 [10:03:03]Write to MH i2c: 01 00 00 EE 25 13 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 59 BB 47 00 3C 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 38 37 31 37 39 35 10 04 04 00 45 25 01 00 F4 03 04 00 D5 65 1C 67 B6 04 01 00 00 3B 67 45 5F CA C5 E4 84 [10:03:03]CommunicateWithHost err = 0 [10:03:03]CheckOFDResponse [10:03:03]1017 (14) - 77093643461234 [10:03:03]1041 (16) - 0000000000871795 [10:03:03]1040 (4) - 75077 [10:03:03]1012 (4) - 26.10.2024 03:45 [10:03:03]1206 (1) - 0 [10:03:03]OFD Sender: Remove packet 75077 [10:03:03]ProducePacketName [10:03:03]name=ofd_packets/00075077 [10:03:03]NVStorageDeleteData [10:03:04]OFD Sender: No OFD packet to send [10:03:04]*** Cut start [10:03:04]*** Partial cut [10:03:04]*** CUTSNS_PIN = 1 [10:03:04]*** CUTSNS_PIN = 0 [10:03:04]*** Brake cut motor [10:03:04]Read from MH i2c: 01 [10:03:04]MH_I2C_Read... [10:03:04]*** Stop cut motor [10:03:04]*** Cut end [10:03:04]Read from MH i2c: 01 07 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 FF 0F 28 [10:03:04]process_action close_receipt done [10:03:04]requested_data is exist [10:03:04]produce_requested_data [10:03:04]requested_item fm.sn is exist - process it [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 11 00 00 [10:03:04]Write to MH i2c: E2 08 00 EF 25 80 11 00 00 00 00 00 00 8E [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 17 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 17 00 EF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E6 [10:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:03:05]wFMCommunicate OK [10:03:05]requested_item fd.num is exist - process it [10:03:05]SAM_PROTO_GetFieldsCounters [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 00 00 [10:03:05]Write to MH i2c: E2 08 00 F0 25 80 13 00 00 00 00 00 00 91 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 62 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 62 00 F0 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 45 25 01 00 0E 04 04 00 00 02 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 F4 [10:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 45 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]SAM_PROTO_GetFieldsCounters done [10:03:05]requested_item shift.num is exist - process it [10:03:05]requested_item shift.opened is exist - process it [10:03:05]req_shift_opened [10:03:05]FM_GetShiftState [10:03:05]SAM_PROTO_GetShiftState [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 01 00 [10:03:05]Write to MH i2c: E2 08 00 F1 25 80 13 01 00 00 00 00 00 93 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 0E 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 0E 00 F1 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AE [10:03:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]SAM_PROTO_GetShiftState done [10:03:05]FM_GetShiftState done [10:03:05]req_shift_opened done [10:03:05]requested_item shift.open_date is exist - process it [10:03:05]req_shift_open_date [10:03:05]req_shift_open_date done [10:03:05]produce_requested_data done [10:03:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75077,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:03:05]process_action_free close_receipt [10:03:05]json_value_free [10:03:05]json_value_free done [10:03:05]process_json_proto returns [10:03:05]Send response to host [10:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75077,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:03:05]free response buf [10:03:05]execute_script done [10:03:05]execute_script returns [10:03:05]free content buf [10:03:05]Sock 10.Close socket [10:03:05]Sock 10.Thread stoped [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:51]accept exits with 9 [10:03:51]New connection [10:03:51]New thread 3066924388 created [10:03:51]Thread 3066781028 joined [10:03:51]Waiting for new connection... [10:03:51] Sock 9.Parse request [10:03:51]Sock 9.Check first char [10:03:51]Sock 9.First char is OK [10:03:51]request: POST /json_proto HTTP/1.0 [10:03:51]Method: POST [10:03:51]URL: /json_proto [10:03:51]Method is POST - this is cgi request [10:03:51]url: /json_proto [10:03:51]query_string will be loaded in cgi processing [10:03:51]execute_cgi json_proto POST (null) [10:03:51]execute_cgi path=json_proto method=POST [10:03:51]POST find Content-Length [10:03:51]Host: 172.17.39.131:8080 [10:03:51]Content-Length: 682 [10:03:51]Content-Type: application/json [10:03:51] [10:03:51]POST finish read [10:03:51]Found Content-Length = 682 [10:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:51]execute_script... [10:03: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)191050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:03:51]POST & json_proto [10:03:51]process_json_proto [10:03:51]json parsed OK: [10:03:51]protocol is kg_v1.0 [10:03:51]action value=close_receipt [10:03:51]process_action close_receipt [10:03:51]cmd_close_receipt [10:03:51]MH_GetDate [10:03:51]Write to MH i2c: F0 00 00 F2 25 06 [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: F0 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: F0 09 00 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: F0 09 00 F2 25 00 8B BE 1C 67 86 57 24 65 41 [10:03:51]GetLastDocTimeStamp 1729936985 [10:03:51]current date 1729937035 [10:03:51]FM_GetShiftState [10:03:51]SAM_PROTO_GetShiftState [10:03:51]wFMCommunicate request_size=4 [10:03:51]MH_SAM_APDU [10:03:51]CAPDU: 80 13 01 00 [10:03:51]Write to MH i2c: E2 08 00 F3 25 80 13 01 00 00 00 00 00 95 [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:51]Read from MH i2c: E2 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: E2 0E 00 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: E2 0E 00 F3 25 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B0 [10:03:51]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:03:51]wFMCommunicate OK [10:03:51]SAM_PROTO_GetShiftState done [10:03:51]FM_GetShiftState done [10:03:51]opened in 1729902166 [10:03:51]opened+sec_in_day 1729988566 [10:03:51]quantity*price = 100015 [10:03:51]sum+1 = 100017 [10:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 70 26.10.2024 10:03 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75078 ФПД: 222426470136571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100355&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75078&fm=222426470136571&tin=02508201610067®Number=0000000000091691&sum=100000 [10:03:52]StoreToDocumentArchive [10:03:52]shift 512 fd 75078 [10:03:52]save to /storage/0512/doc_00075078 [10:03:52]save last doc name /storage/0512/doc_00075078 to /storage/kkm_last_doc_name [10:03:52]save OK [10:03:52]Clear old archive folders... [10:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:52]tlvbuf is 008AEF70 [10:03:52]SAM_PROTO_ClearQueue [10:03:52]wFMCommunicate request_size=4 [10:03:52]MH_SAM_APDU [10:03:52]CAPDU: 80 09 00 00 [10:03:52]Write to MH i2c: E2 08 00 00 26 80 09 00 00 00 00 00 00 98 [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:52]Read from MH i2c: E2 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 03 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 03 00 00 26 00 90 00 9A [10:03:52]RAPDU: 90 00 [10:03:52]wFMCommunicate OK [10:03:52]SAM_PROTO_ClearQueue done [10:03:52]KKMCreateOFDPacket [10:03:52]OFDProtocolAddRootSTLVToBuf [10:03:52]FM_MakeSignedData [10:03:52]FM_MakeSignedData [10:03:52]SAM_PROTO_SignData [10:03:52]wFMCommunicate request_size=4 [10:03:52]MH_SAM_APDU [10:03:52]CAPDU: 80 0D 01 02 [10:03:52]Write to MH i2c: E2 08 00 01 26 80 0D 01 02 00 00 00 00 A0 [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:52]Read from MH i2c: E2 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 03 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [10:03:52]RAPDU: 90 00 [10:03:52]wFMCommunicate OK [10:03:52]wFMCommunicate request_size=255 [10:03:52]MH_SAM_APDU [10:03: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 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 8B BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 46 25 01 00 35 04 06 00 CA [10:03:52]Write to MH i2c: E2 02 01 02 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 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 8B BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 46 25 01 00 35 04 06 00 CA 00 00 79 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [10:03:53]RAPDU: 90 00 [10:03:53]wFMCommunicate OK [10:03:53]wFMCommunicate request_size=10 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 0D 02 02 05 4B B2 BD BA FB [10:03:53]Write to MH i2c: E2 0D 00 03 26 80 0D 02 02 05 00 4B B2 BD BA FB 00 00 1C [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [10:03:53]RAPDU: 90 00 [10:03:53]wFMCommunicate OK [10:03:53]wFMCommunicate request_size=4 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 0D 03 02 [10:03:53]Write to MH i2c: E2 08 00 04 26 80 0D 03 02 00 00 00 00 A5 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 0B 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 0B 00 04 26 00 2E 40 A5 24 1E 5E A4 0D 90 00 0A [10:03:53]RAPDU: 2E 40 A5 24 1E 5E A4 0D 90 00 [10:03:53]wFMCommunicate OK [10:03:53]SAM_PROTO_SignData done [10:03:53]FM_MakeSignedData done [10:03:53]CreateOFDProtocolMessage [10:03:53]wFMCommunicate request_size=4 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 11 00 00 [10:03:53]Write to MH i2c: E2 08 00 05 26 80 11 00 00 00 00 00 00 A5 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 17 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 17 00 05 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FD [10:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:03:53]wFMCommunicate OK [10:03:53]CreateOFDProtocolMessage done [10:03:53]OFDSenderStorePacket 75078 [10:03:53]StoreOFDPacket docnum=75078 [10:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 80 52 07 01 EE 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 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 8B BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 46 25 01 00 35 04 06 00 CA 4B B2 BD BA FB 2E 40 A5 24 1E 5E A4 0D [10:03:53]CheckFolder [10:03:53]dirname=/storage/ofd_packets [10:03:53]CheckFolder done [10:03:53]ProducePacketName [10:03:53]name=ofd_packets/00075078 [10:03:53]NVStorageSaveData ofd_packets/00075078 [10:03:53]File name is /storage/ofd_packets/00075078 [10:03:53]Write 301 bytes [10:03:53]NVStorageSaveData done [10:03:53]OFDSenderStorePacket done [10:03:53]KKMCreateOFDPacket done [10:03:53]NVStorageSaveData kkm_last_timestamp [10:03:53]File name is /storage/kkm_last_timestamp [10:03:53]Write 4 bytes [10:03:53]NVStorageSaveData done [10:03:53]ExternCall_PrintAddStr [10:03:53]wPrintStart [10:03:53]Write to MH i2c: 01 00 00 06 26 2C [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 07 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 FF 0F 41 [10:03:53]RasterBufferAndPrint [10:03:53]line Счет N : (1)191050 [10:03:53]line ИНН: 02508201610067 [10:03:53]line Контрольно-Кассовый Чек [10:03:53]line ПРОДАЖА [10:03:53]line ТРК (МРК, ГНК) : 21 [10:03:53]line Товар: 2710124130 [10:03:53]line Аи-92-К-5 [10:03:53]line 14.950 * 66.90 [10:03:53]line = 1000.16 [10:03:53]line НДС 12% НСП 1% [10:03:53]line > о реализуемом товаре [10:03:53]line ОКРУГЛЕНИЕ: -0.16 [10:03:53]line ИТОГО: 1000.00 [10:03:53]line Внесено: 1000.00 [10:03:53]line СДАЧА: 0.00 [10:03:53]line НСП 1% : 8.85 [10:03:53]line НДС 12% : 106.21 [10:03:53]line Наличными: 1000.00 [10:03:53]line Безнал.: 0.00 [10:03:53]line Место: АЗС № 142 "Партнер Нефть" [10:03:53]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:03:53]line СНО: Общий режим [10:03:53]line Чек 70 26.10.2024 10:03 [10:03:53]line Смена: 512 ФФД: 1.0 [10:03:53]line ЗНМ: 0300000089 [10:03:53]line РНМ: 0000000000091691 [10:03:53]line Версия ККМ: 001 [10:03:53]line ФМ: 0000000000871795 [10:03:53]line ФД: 75078 [10:03:53]line ФПД: 222426470136571 [10:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100355&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75078&fm=222426470136571&tin=02508201610067®Number=0000000000091691&sum=100000 [10:03:53]OFD Sender: Processing packet 75078 [packets to send 13, broken 12] [10:03:53]ProducePacketName [10:03:53]name=ofd_packets/00075078 [10:03:53]OFD Sender: To server: pG, [10:03:53]CommunicateWithHost lk.salyk.kg:30040 [10:03:53]ConnectInit lk.salyk.kg [10:03:53]written 0, free lines is 4095 [10:03:53]Connected sock=11 [10:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 80 52 07 01 EE 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 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 8B BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 46 25 01 00 35 04 06 00 CA 4B B2 BD BA FB 2E 40 A5 24 1E 5E A4 0D [10:03:53]Write to MH i2c: 01 00 00 31 26 57 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 07 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 A6 0C 10 [10:03:53]RasterBufferAndPrint [10:03:53]line [10:03:53]line [10:03:53]line [10:03:53]line [10:03:53]line [10:03:53]written 0, free lines is 3256 [10:03:53]MH_Cut [10:03:53]Write to MH i2c: D1 01 00 38 26 01 30 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: D1 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: D1 01 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: D1 01 00 38 26 00 2F [10:03:54]Write to MH i2c: 01 00 00 39 26 5F [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4D ED 47 00 18 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 46 25 01 00 F4 03 04 00 08 66 1C 67 B6 04 01 00 00 CA C4 E2 36 86 B6 D7 62 [10:03:54]CommunicateWithHost err = 0 [10:03:54]CheckOFDResponse [10:03:54]1017 (14) - 77093643461234 [10:03:54]1041 (16) - 0000000000871795 [10:03:54]1040 (4) - 75078 [10:03:54]1012 (4) - 26.10.2024 03:46 [10:03:54]1206 (1) - 0 [10:03:54]OFD Sender: Remove packet 75078 [10:03:54]ProducePacketName [10:03:54]name=ofd_packets/00075078 [10:03:54]NVStorageDeleteData [10:03:54]*** Cut start [10:03:54]*** Partial cut [10:03:54]*** CUTSNS_PIN = 1 [10:03:54]OFD Sender: No OFD packet to send [10:03:54]*** CUTSNS_PIN = 0 [10:03:55]*** Brake cut motor [10:03:55]Read from MH i2c: 01 [10:03:55]MH_I2C_Read... [10:03:55]*** Stop cut motor [10:03:55]*** Cut end [10:03:55]Read from MH i2c: 01 07 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 07 00 39 26 00 00 00 00 00 FF 0F 74 [10:03:55]process_action close_receipt done [10:03:55]requested_data is exist [10:03:55]produce_requested_data [10:03:55]requested_item fm.sn is exist - process it [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 11 00 00 [10:03:55]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 17 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [10:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:03:55]wFMCommunicate OK [10:03:55]requested_item fd.num is exist - process it [10:03:55]SAM_PROTO_GetFieldsCounters [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 13 00 00 [10:03:55]Write to MH i2c: E2 08 00 3B 26 80 13 00 00 00 00 00 00 DD [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 62 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 62 00 3B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 46 25 01 00 0E 04 04 00 00 02 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 44 [10:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 46 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:55]wFMCommunicate OK [10:03:55]SAM_PROTO_GetFieldsCounters done [10:03:55]requested_item shift.num is exist - process it [10:03:55]requested_item shift.opened is exist - process it [10:03:55]req_shift_opened [10:03:55]FM_GetShiftState [10:03:55]SAM_PROTO_GetShiftState [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 13 01 00 [10:03:55]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 0E 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FA [10:03:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:03:55]wFMCommunicate OK [10:03:55]SAM_PROTO_GetShiftState done [10:03:55]FM_GetShiftState done [10:03:55]req_shift_opened done [10:03:55]requested_item shift.open_date is exist - process it [10:03:55]req_shift_open_date [10:03:55]req_shift_open_date done [10:03:55]produce_requested_data done [10:03:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75078,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:03:55]process_action_free close_receipt [10:03:55]json_value_free [10:03:55]json_value_free done [10:03:55]process_json_proto returns [10:03:55]Send response to host [10:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75078,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:03:55]free response buf [10:03:55]execute_script done [10:03:55]execute_script returns [10:03:55]free content buf [10:03:55]Sock 9.Close socket [10:03:55]Sock 9.Thread stoped [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:25]accept exits with 10 [10:04:25]New connection [10:04:25]New thread 3066781028 created [10:04:25]Thread 3066924388 joined [10:04:25]Waiting for new connection... [10:04:25] Sock 10.Parse request [10:04:25]Sock 10.Check first char [10:04:25]Sock 10.First char is OK [10:04:25]request: POST /json_proto HTTP/1.0 [10:04:25]Method: POST [10:04:25]URL: /json_proto [10:04:25]Method is POST - this is cgi request [10:04:25]url: /json_proto [10:04:25]query_string will be loaded in cgi processing [10:04:25]execute_cgi json_proto POST (null) [10:04:25]execute_cgi path=json_proto method=POST [10:04:25]POST find Content-Length [10:04:25]Host: 172.17.39.131:8080 [10:04:25]Content-Length: 674 [10:04:25]Content-Type: application/json [10:04:25] [10:04:25]POST finish read [10:04:25]Found Content-Length = 674 [10:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.250, "sum" : 16.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 16.00, "payments": [ { "type": 0, "sum" : 16.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]execute_script... [10: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)191051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.250, "sum" : 16.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 16.00, "payments": [ { "type": 0, "sum" : 16.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]POST & json_proto [10:04:25]process_json_proto [10:04:25]json parsed OK: [10:04:25]protocol is kg_v1.0 [10:04:25]action value=close_receipt [10:04:25]process_action close_receipt [10:04:25]cmd_close_receipt [10:04:25]MH_GetDate [10:04:25]Write to MH i2c: F0 00 00 3D 26 52 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 09 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 09 00 3D 26 00 AD BE 1C 67 86 57 24 65 AF [10:04:25]GetLastDocTimeStamp 1729937035 [10:04:25]current date 1729937069 [10:04:25]FM_GetShiftState [10:04:25]SAM_PROTO_GetShiftState [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 01 00 [10:04:25]Write to MH i2c: E2 08 00 3E 26 80 13 01 00 00 00 00 00 E1 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 3E 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FC [10:04:25]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetShiftState done [10:04:25]FM_GetShiftState done [10:04:25]opened in 1729902166 [10:04:25]opened+sec_in_day 1729988566 [10:04:25]quantity*price = 1672 [10:04:25]sum+1 = 1674 [10:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре [10:04:27]line ОКРУГЛЕНИЕ: -0.73 [10:04:27]line ИТОГО: 16.00 [10:04:27]line Внесено: 300.00 [10:04:27]line СДАЧА: 284.00 [10:04:27]line НСП 1% : 0.15 [10:04:27]line НДС 12% : 1.78 [10:04:27]line Наличными: 16.00 [10:04:27]line Безнал.: 0.00 [10:04:27]line Место: АЗС № 142 "Партнер Нефть" [10:04:27]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:04:27]line СНО: Общий режим [10:04:27]line Чек 71 26.10.2024 10:04 [10:04:27]line Смена: 512 ФФД: 1.0 [10:04:27]line ЗНМ: 0300000089 [10:04:27]line РНМ: 0000000000091691 [10:04:27]line Версия ККМ: 001 [10:04:27]line ФМ: 0000000000871795 [10:04:27]line ФД: 75079 [10:04:27]line ФПД: 274010575843063 [10:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100429&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75079&fm=274010575843063&tin=02508201610067®Number=0000000000091691&sum=1600 [10:04:27]written 0, free lines is 4095 [10:04:27]OFD Sender: Processing packet 75079 [packets to send 13, broken 12] [10:04:27]ProducePacketName [10:04:27]name=ofd_packets/00075079 [10:04:27]OFD Sender: To server: pG, [10:04:27]CommunicateWithHost lk.salyk.kg:30040 [10:04:27]ConnectInit lk.salyk.kg [10:04:27]Connected sock=11 [10:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9F FA 07 01 D2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 89 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 00 00 00 00 00 07 04 06 00 40 06 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AD BE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 47 25 01 00 35 04 06 00 F9 36 0F 09 AE F7 24 C2 EB C2 51 E4 96 EE [10:04:27]Write to MH i2c: 01 00 00 7C 26 A2 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 A8 0C 5D [10:04:27]RasterBufferAndPrint [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]written 0, free lines is 3270 [10:04:27]MH_Cut [10:04:27]Write to MH i2c: D1 01 00 83 26 01 7B [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 83 26 00 7A [10:04:27]Write to MH i2c: 01 00 00 84 26 AA [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9A B8 47 00 17 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 47 25 01 00 F4 03 04 00 2A 66 1C 67 B6 04 01 00 00 B8 3F 65 37 68 0A 7D C3 [10:04:28]CommunicateWithHost err = 0 [10:04:28]CheckOFDResponse [10:04:28]1017 (14) - 77093643461234 [10:04:28]1041 (16) - 0000000000871795 [10:04:28]1040 (4) - 75079 [10:04:28]1012 (4) - 26.10.2024 03:46 [10:04:28]1206 (1) - 0 [10:04:28]OFD Sender: Remove packet 75079 [10:04:28]ProducePacketName [10:04:28]name=ofd_packets/00075079 [10:04:28]NVStorageDeleteData [10:04:28]*** Cut start [10:04:28]*** Partial cut [10:04:28]*** CUTSNS_PIN = 1 [10:04:28]*** CUTSNS_PIN = 0 [10:04:28]OFD Sender: No OFD packet to send [10:04:28]*** Brake cut motor [10:04:29]Read from MH i2c: 01 [10:04:29]MH_I2C_Read... [10:04:29]*** Stop cut motor [10:04:29]*** Cut end [10:04:29]Read from MH i2c: 01 07 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 84 26 00 00 00 00 00 FF 0F BF [10:04:29]process_action close_receipt done [10:04:29]requested_data is exist [10:04:29]produce_requested_data [10:04:29]requested_item fm.sn is exist - process it [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 11 00 00 [10:04:29]Write to MH i2c: E2 08 00 85 26 80 11 00 00 00 00 00 00 25 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 85 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7D [10:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:04:29]wFMCommunicate OK [10:04:29]requested_item fd.num is exist - process it [10:04:29]SAM_PROTO_GetFieldsCounters [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 00 00 [10:04:29]Write to MH i2c: E2 08 00 86 26 80 13 00 00 00 00 00 00 28 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 62 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 62 00 86 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 47 25 01 00 0E 04 04 00 00 02 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 93 [10:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 47 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetFieldsCounters done [10:04:29]requested_item shift.num is exist - process it [10:04:29]requested_item shift.opened is exist - process it [10:04:29]req_shift_opened [10:04:29]FM_GetShiftState [10:04:29]SAM_PROTO_GetShiftState [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 01 00 [10:04:29]Write to MH i2c: E2 08 00 87 26 80 13 01 00 00 00 00 00 2A [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:29]Read from MH i2c: E2 0E 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 87 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 45 [10:04:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetShiftState done [10:04:29]FM_GetShiftState done [10:04:29]req_shift_opened done [10:04:29]requested_item shift.open_date is exist - process it [10:04:29]req_shift_open_date [10:04:29]req_shift_open_date done [10:04:29]produce_requested_data done [10:04:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75079,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:04:29]process_action_free close_receipt [10:04:29]json_value_free [10:04:29]json_value_free done [10:04:29]process_json_proto returns [10:04:29]Send response to host [10:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75079,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:04:29]free response buf [10:04:29]execute_script done [10:04:29]execute_script returns [10:04:29]free content buf [10:04:29]Sock 10.Close socket [10:04:29]Sock 10.Thread stoped [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:50]ConnectInit Can't connect to host [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:50]accept exits with 9 [10:06:50]New connection [10:06:50]New thread 3066924388 created [10:06:50]Thread 3066781028 joined [10:06:50]Waiting for new connection... [10:06:50] Sock 9.Parse request [10:06:50]Sock 9.Check first char [10:06:50]Sock 9.First char is OK [10:06:50]request: POST /json_proto HTTP/1.0 [10:06:50]Method: POST [10:06:50]URL: /json_proto [10:06:50]Method is POST - this is cgi request [10:06:50]url: /json_proto [10:06:50]query_string will be loaded in cgi processing [10:06:50]execute_cgi json_proto POST (null) [10:06:50]execute_cgi path=json_proto method=POST [10:06:50]POST find Content-Length [10:06:50]Host: 172.17.39.131:8080 [10:06:50]Content-Length: 677 [10:06:50]Content-Type: application/json [10:06:50] [10:06:50]POST finish read [10:06:50]Found Content-Length = 677 [10:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06:50]execute_script... [10: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)191052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06:50]POST & json_proto [10:06:50]process_json_proto [10:06:50]json parsed OK: [10:06:50]protocol is kg_v1.0 [10:06:50]action value=close_receipt [10:06:50]process_action close_receipt [10:06:50]cmd_close_receipt [10:06:50]MH_GetDate [10:06:50]Write to MH i2c: F0 00 00 88 26 9D [10:06:50]Write i2c OK [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: F0 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: F0 09 00 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: F0 09 00 88 26 00 3E BF 1C 67 86 57 24 65 8C [10:06:50]GetLastDocTimeStamp 1729937069 [10:06:50]current date 1729937214 [10:06:50]FM_GetShiftState [10:06:50]SAM_PROTO_GetShiftState [10:06:50]wFMCommunicate request_size=4 [10:06:50]MH_SAM_APDU [10:06:50]CAPDU: 80 13 01 00 [10:06:50]Write to MH i2c: E2 08 00 89 26 80 13 01 00 00 00 00 00 2C [10:06:50]Write i2c OK [10:06:50]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 89 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 47 [10:06:50]RAPDU: 09 00 01 56 36 1C 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 1729902166 [10:06:50]opened+sec_in_day 1729988566 [10:06:50]quantity*price = 30038 [10:06:50]sum+1 = 30039 [10:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 72 26.10.2024 10:06 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75080 ФПД: 52131008568123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100654&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75080&fm=52131008568123&tin=02508201610067®Number=0000000000091691&sum=30000 [10:06:51]StoreToDocumentArchive [10:06:51]shift 512 fd 75080 [10:06:51]save to /storage/0512/doc_00075080 [10:06:51]save last doc name /storage/0512/doc_00075080 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 008A5FF0 [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 96 26 80 09 00 00 00 00 00 00 2E [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 96 26 00 90 00 30 [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 97 26 80 0D 01 02 00 00 00 00 36 [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 97 26 00 90 00 31 [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 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 48 00 00 00 F4 03 04 00 3E BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 48 25 01 00 35 04 06 00 2F [10:06:51]Write to MH i2c: E2 02 01 98 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 3E BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 48 25 01 00 35 04 06 00 2F 00 00 26 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:52]Read from MH i2c: E2 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 03 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [10:06:52]RAPDU: 90 00 [10:06:52]wFMCommunicate OK [10:06:52]wFMCommunicate request_size=10 [10:06:52]MH_SAM_APDU [10:06:52]CAPDU: 80 0D 02 02 05 69 B2 3F 5B 3B [10:06:52]Write to MH i2c: E2 0D 00 99 26 80 0D 02 02 05 00 69 B2 3F 5B 3B 00 00 33 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:52]Read from MH i2c: E2 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 03 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [10:06:52]RAPDU: 90 00 [10:06:52]wFMCommunicate OK [10:06:52]wFMCommunicate request_size=4 [10:06:52]MH_SAM_APDU [10:06:52]CAPDU: 80 0D 03 02 [10:06:52]Write to MH i2c: E2 08 00 9A 26 80 0D 03 02 00 00 00 00 3B [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:52]Read from MH i2c: E2 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 0B 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 0B 00 9A 26 00 E1 E7 5C 51 C0 DB 3A 73 90 00 F9 [10:06:52]RAPDU: E1 E7 5C 51 C0 DB 3A 73 90 00 [10:06:52]wFMCommunicate OK [10:06:52]SAM_PROTO_SignData done [10:06:52]FM_MakeSignedData done [10:06:52]CreateOFDProtocolMessage [10:06:52]wFMCommunicate request_size=4 [10:06:52]MH_SAM_APDU [10:06:52]CAPDU: 80 11 00 00 [10:06:52]Write to MH i2c: E2 08 00 9B 26 80 11 00 00 00 00 00 00 3B [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:52]Read from MH i2c: E2 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 17 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: E2 17 00 9B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 93 [10:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:06:52]wFMCommunicate OK [10:06:52]CreateOFDProtocolMessage done [10:06:52]OFDSenderStorePacket 75080 [10:06:52]StoreOFDPacket docnum=75080 [10:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3A C5 07 01 15 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 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 48 00 00 00 F4 03 04 00 3E BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 48 25 01 00 35 04 06 00 2F 69 B2 3F 5B 3B E1 E7 5C 51 C0 DB 3A 73 [10:06:52]CheckFolder [10:06:52]dirname=/storage/ofd_packets [10:06:52]CheckFolder done [10:06:52]ProducePacketName [10:06:52]name=ofd_packets/00075080 [10:06:52]NVStorageSaveData ofd_packets/00075080 [10:06:52]File name is /storage/ofd_packets/00075080 [10:06:52]Write 301 bytes [10:06:52]NVStorageSaveData done [10:06:52]OFDSenderStorePacket done [10:06:52]KKMCreateOFDPacket done [10:06:52]NVStorageSaveData kkm_last_timestamp [10:06:52]File name is /storage/kkm_last_timestamp [10:06:52]Write 4 bytes [10:06:52]NVStorageSaveData done [10:06:52]ExternCall_PrintAddStr [10:06:52]wPrintStart [10:06:52]Write to MH i2c: 01 00 00 9C 26 C2 [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 9C 26 00 00 00 00 00 FF 0F D7 [10:06:52]RasterBufferAndPrint [10:06:52]line Счет N : (1)191052 [10:06:52]line ИНН: 02508201610067 [10:06:52]line Контрольно-Кассовый Чек [10:06:52]line ПРОДАЖА [10:06:52]line ТРК (МРК, ГНК) : 21 [10:06:52]line Товар: 2710124130 [10:06:52]line Аи-92-К-5 [10:06:52]line 4.490 * 66.90 [10:06:52]line = 300.38 [10:06:52]line НДС 12% НСП 1% [10:06:52]line > о реализуемом товаре [10:06:52]line ОКРУГЛЕНИЕ: -0.38 [10:06:52]line ИТОГО: 300.00 [10:06:52]line Внесено: 300.00 [10:06:52]line СДАЧА: 0.00 [10:06:52]line НСП 1% : 2.66 [10:06:52]line НДС 12% : 31.90 [10:06:52]line Наличными: 300.00 [10:06:52]line Безнал.: 0.00 [10:06:52]line Место: АЗС № 142 "Партнер Нефть" [10:06:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:06:52]line СНО: Общий режим [10:06:52]line Чек 72 26.10.2024 10:06 [10:06:52]line Смена: 512 ФФД: 1.0 [10:06:52]line ЗНМ: 0300000089 [10:06:52]line РНМ: 0000000000091691 [10:06:52]line Версия ККМ: 001 [10:06:52]line ФМ: 0000000000871795 [10:06:52]line ФД: 75080 [10:06:52]line ФПД: 52131008568123 [10:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100654&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75080&fm=52131008568123&tin=02508201610067®Number=0000000000091691&sum=30000 [10:06:52]written 0, free lines is 4095 [10:06:52]OFD Sender: Processing packet 75080 [packets to send 13, broken 12] [10:06:52]ProducePacketName [10:06:52]name=ofd_packets/00075080 [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]Connected sock=11 [10:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3A C5 07 01 15 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 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 48 00 00 00 F4 03 04 00 3E BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 48 25 01 00 35 04 06 00 2F 69 B2 3F 5B 3B E1 E7 5C 51 C0 DB 3A 73 [10:06:53]Write to MH i2c: 01 00 00 C7 26 ED [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 [10:06:53]MH_I2C_Read... [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 C7 26 00 00 00 00 00 A9 0C A9 [10:06:53]RasterBufferAndPrint [10:06:53]line [10:06:53]line [10:06:53]line [10:06:53]line [10:06:53]line [10:06:53]written 0, free lines is 3274 [10:06:53]MH_Cut [10:06:53]Write to MH i2c: D1 01 00 CE 26 01 C6 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: D1 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: D1 01 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: D1 01 00 CE 26 00 C5 [10:06:53]Write to MH i2c: 01 00 00 CF 26 F5 [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1F 75 47 00 09 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 48 25 01 00 F4 03 04 00 BB 66 1C 67 B6 04 01 00 00 49 C9 27 F8 23 3F 8F DF [10:06:53]CommunicateWithHost err = 0 [10:06:53]CheckOFDResponse [10:06:53]1017 (14) - 77093643461234 [10:06:53]1041 (16) - 0000000000871795 [10:06:53]1040 (4) - 75080 [10:06:53]1012 (4) - 26.10.2024 03:49 [10:06:53]1206 (1) - 0 [10:06:53]OFD Sender: Remove packet 75080 [10:06:53]ProducePacketName [10:06:53]name=ofd_packets/00075080 [10:06:53]NVStorageDeleteData [10:06:53]*** Cut start [10:06:53]*** Partial cut [10:06:53]*** CUTSNS_PIN = 1 [10:06:53]OFD Sender: No OFD packet to send [10:06:54]*** CUTSNS_PIN = 0 [10:06:54]*** Brake cut motor [10:06:54]Read from MH i2c: 01 [10:06:54]MH_I2C_Read... [10:06:54]*** Stop cut motor [10:06:54]*** Cut end [10:06:54]Read from MH i2c: 01 07 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: 01 07 00 CF 26 00 00 00 00 00 FF 0F 0A [10:06:54]process_action close_receipt done [10:06:54]requested_data is exist [10:06:54]produce_requested_data [10:06:54]requested_item fm.sn is exist - process it [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 11 00 00 [10:06:54]Write to MH i2c: E2 08 00 D0 26 80 11 00 00 00 00 00 00 70 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 17 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 17 00 D0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C8 [10:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:06:54]wFMCommunicate OK [10:06:54]requested_item fd.num is exist - process it [10:06:54]SAM_PROTO_GetFieldsCounters [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 13 00 00 [10:06:54]Write to MH i2c: E2 08 00 D1 26 80 13 00 00 00 00 00 00 73 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 62 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 62 00 D1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 48 25 01 00 0E 04 04 00 00 02 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 E2 [10:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 48 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetFieldsCounters done [10:06:54]requested_item shift.num is exist - process it [10:06:54]requested_item shift.opened is exist - process it [10:06:54]req_shift_opened [10:06:54]FM_GetShiftState [10:06:54]SAM_PROTO_GetShiftState [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 13 01 00 [10:06:54]Write to MH i2c: E2 08 00 D2 26 80 13 01 00 00 00 00 00 75 [10:06:54]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 0E 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 0E 00 D2 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 90 [10:06:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:06:55]wFMCommunicate OK [10:06:55]SAM_PROTO_GetShiftState done [10:06:55]FM_GetShiftState done [10:06:55]req_shift_opened done [10:06:55]requested_item shift.open_date is exist - process it [10:06:55]req_shift_open_date [10:06:55]req_shift_open_date done [10:06:55]produce_requested_data done [10:06:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75080,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:06:55]process_action_free close_receipt [10:06:55]json_value_free [10:06:55]json_value_free done [10:06:55]process_json_proto returns [10:06:55]Send response to host [10:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75080,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:06:55]free response buf [10:06:55]execute_script done [10:06:55]execute_script returns [10:06:55]free content buf [10:06:55]Sock 9.Close socket [10:06:55]Sock 9.Thread stoped [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:40]accept exits with 10 [10:07:40]New connection [10:07:40]New thread 3066781028 created [10:07:40]Thread 3066924388 joined [10:07:40]Waiting for new connection... [10:07:40] Sock 10.Parse request [10:07:40]Sock 10.Check first char [10:07:40]Sock 10.First char is OK [10:07:40]request: POST /json_proto HTTP/1.0 [10:07:40]Method: POST [10:07:40]URL: /json_proto [10:07:40]Method is POST - this is cgi request [10:07:40]url: /json_proto [10:07:40]query_string will be loaded in cgi processing [10:07:40]execute_cgi json_proto POST (null) [10:07:40]execute_cgi path=json_proto method=POST [10:07:40]POST find Content-Length [10:07:40]Host: 172.17.39.131:8080 [10:07:40]Content-Length: 677 [10:07:40]Content-Type: application/json [10:07:40] [10:07:40]POST finish read [10:07:40]Found Content-Length = 677 [10:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.270, "sum" : 285.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 285.00, "total" : 285.00, "payments": [ { "type": 0, "sum" : 285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:40]execute_script... [10:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.270, "sum" : 285.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 285.00, "total" : 285.00, "payments": [ { "type": 0, "sum" : 285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:40]POST & json_proto [10:07:40]process_json_proto [10:07:40]json parsed OK: [10:07:40]protocol is kg_v1.0 [10:07:40]action value=close_receipt [10:07:40]process_action close_receipt [10:07:40]cmd_close_receipt [10:07:40]MH_GetDate [10:07:40]Write to MH i2c: F0 00 00 D3 26 E8 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 09 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: F0 09 00 D3 26 00 70 BF 1C 67 86 57 24 65 09 [10:07:40]GetLastDocTimeStamp 1729937214 [10:07:40]current date 1729937264 [10:07:40]FM_GetShiftState [10:07:40]SAM_PROTO_GetShiftState [10:07:40]wFMCommunicate request_size=4 [10:07:40]MH_SAM_APDU [10:07:40]CAPDU: 80 13 01 00 [10:07:40]Write to MH i2c: E2 08 00 D4 26 80 13 01 00 00 00 00 00 77 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:40]Read from MH i2c: E2 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 0E 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 0E 00 D4 26 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 92 [10:07:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:07:40]wFMCommunicate OK [10:07:40]SAM_PROTO_GetShiftState done [10:07:40]FM_GetShiftState done [10:07:40]opened in 1729902166 [10:07:40]opened+sec_in_day 1729988566 [10:07:40]quantity*price = 28566 [10:07:40]sum+1 = 28567 [10:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 285.00 Внесено: 285.00 СДАЧА: 0.00 НСП 1% : 2.53 НДС 12% : 30.34 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 73 26.10.2024 10:07 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75081 ФПД: 221077987497477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100744&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75081&fm=221077987497477&tin=02508201610067®Number=0000000000091691&sum=28500 [10:07:41]StoreToDocumentArchive [10:07:41]shift 512 fd 75081 [10:07:41]save to /storage/0512/doc_00075081 [10:07:41]save last doc name /storage/0512/doc_00075081 to /storage/kkm_last_doc_name [10:07:41]save OK [10:07:41]Clear old archive folders... [10:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:41]tlvbuf is 008DB560 [10:07:41]SAM_PROTO_ClearQueue [10:07:41]wFMCommunicate request_size=4 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 09 00 00 [10:07:41]Write to MH i2c: E2 08 00 E1 26 80 09 00 00 00 00 00 00 79 [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [10:07:41]RAPDU: 90 00 [10:07:41]wFMCommunicate OK [10:07:41]SAM_PROTO_ClearQueue done [10:07:41]KKMCreateOFDPacket [10:07:41]OFDProtocolAddRootSTLVToBuf [10:07:41]FM_MakeSignedData [10:07:41]FM_MakeSignedData [10:07:41]SAM_PROTO_SignData [10:07:41]wFMCommunicate request_size=4 [10:07:41]MH_SAM_APDU [10:07:41]CAPDU: 80 0D 01 02 [10:07:41]Write to MH i2c: E2 08 00 E2 26 80 0D 01 02 00 00 00 00 81 [10:07:41]Write i2c OK [10:07:41]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [10:07:41]RAPDU: 90 00 [10:07:41]wFMCommunicate OK [10:07:41]wFMCommunicate request_size=255 [10:07:41]MH_SAM_APDU [10:07: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 AE 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 70 BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 49 25 01 00 35 04 06 00 C9 [10:07:42]Write to MH i2c: E2 02 01 E3 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 AE 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 70 BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 49 25 01 00 35 04 06 00 C9 00 00 2D [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [10:07:42]RAPDU: 90 00 [10:07:42]wFMCommunicate OK [10:07:42]wFMCommunicate request_size=10 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 0D 02 02 05 11 BA E9 96 05 [10:07:42]Write to MH i2c: E2 0D 00 E4 26 80 0D 02 02 05 00 11 BA E9 96 05 00 00 DD [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [10:07:42]RAPDU: 90 00 [10:07:42]wFMCommunicate OK [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 0D 03 02 [10:07:42]Write to MH i2c: E2 08 00 E5 26 80 0D 03 02 00 00 00 00 86 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 0B 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 0B 00 E5 26 00 07 C8 68 30 29 CE 61 E4 90 00 2A [10:07:42]RAPDU: 07 C8 68 30 29 CE 61 E4 90 00 [10:07:42]wFMCommunicate OK [10:07:42]SAM_PROTO_SignData done [10:07:42]FM_MakeSignedData done [10:07:42]CreateOFDProtocolMessage [10:07:42]wFMCommunicate request_size=4 [10:07:42]MH_SAM_APDU [10:07:42]CAPDU: 80 11 00 00 [10:07:42]Write to MH i2c: E2 08 00 E6 26 80 11 00 00 00 00 00 00 86 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:42]Read from MH i2c: E2 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 17 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: E2 17 00 E6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DE [10:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:07:42]wFMCommunicate OK [10:07:42]CreateOFDProtocolMessage done [10:07:42]OFDSenderStorePacket 75081 [10:07:42]StoreOFDPacket docnum=75081 [10:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 75 70 07 01 CB 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 70 BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 49 25 01 00 35 04 06 00 C9 11 BA E9 96 05 07 C8 68 30 29 CE 61 E4 [10:07:42]CheckFolder [10:07:42]dirname=/storage/ofd_packets [10:07:42]CheckFolder done [10:07:42]ProducePacketName [10:07:42]name=ofd_packets/00075081 [10:07:42]NVStorageSaveData ofd_packets/00075081 [10:07:42]File name is /storage/ofd_packets/00075081 [10:07:42]Write 301 bytes [10:07:42]NVStorageSaveData done [10:07:42]OFDSenderStorePacket done [10:07:42]KKMCreateOFDPacket done [10:07:42]NVStorageSaveData kkm_last_timestamp [10:07:42]File name is /storage/kkm_last_timestamp [10:07:42]Write 4 bytes [10:07:42]NVStorageSaveData done [10:07:42]ExternCall_PrintAddStr [10:07:42]wPrintStart [10:07:42]Write to MH i2c: 01 00 00 E7 26 0D [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 FF 0F 22 [10:07:42]RasterBufferAndPrint [10:07:42]line Счет N : (1)191053 [10:07:42]line ИНН: 02508201610067 [10:07:42]line Контрольно-Кассовый Чек [10:07:42]line ПРОДАЖА [10:07:42]line ТРК (МРК, ГНК) : 21 [10:07:42]line Товар: 2710124130 [10:07:42]line Аи-92-К-5 [10:07:42]line 4.270 * 66.90 [10:07:42]line = 285.66 [10:07:42]line НДС 12% НСП 1% [10:07:42]line > о реализуемом товаре [10:07:42]line ОКРУГЛЕНИЕ: -0.66 [10:07:42]line ИТОГО: 285.00 [10:07:42]line Внесено: 285.00 [10:07:42]line СДАЧА: 0.00 [10:07:42]line НСП 1% : 2.53 [10:07:42]line НДС 12% : 30.34 [10:07:42]line Наличными: 285.00 [10:07:42]line Безнал.: 0.00 [10:07:42]line Место: АЗС № 142 "Партнер Нефть" [10:07:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:07:42]line СНО: Общий режим [10:07:42]line Чек 73 26.10.2024 10:07 [10:07:42]line Смена: 512 ФФД: 1.0 [10:07:42]line ЗНМ: 0300000089 [10:07:42]line РНМ: 0000000000091691 [10:07:42]line Версия ККМ: 001 [10:07:42]line ФМ: 0000000000871795 [10:07:42]line ФД: 75081 [10:07:42]line ФПД: 221077987497477 [10:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100744&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75081&fm=221077987497477&tin=02508201610067®Number=0000000000091691&sum=28500 [10:07:42]written 0, free lines is 4095 [10:07:42]OFD Sender: Processing packet 75081 [packets to send 13, broken 12] [10:07:42]ProducePacketName [10:07:42]name=ofd_packets/00075081 [10:07:42]OFD Sender: To server: pG, [10:07:42]CommunicateWithHost lk.salyk.kg:30040 [10:07:42]ConnectInit lk.salyk.kg [10:07:43]Connected sock=9 [10:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 75 70 07 01 CB 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 70 BF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 49 25 01 00 35 04 06 00 C9 11 BA E9 96 05 07 C8 68 30 29 CE 61 E4 [10:07:43]Write to MH i2c: 01 00 00 12 27 39 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 C8 0C 14 [10:07:43]RasterBufferAndPrint [10:07:43]line [10:07:43]line [10:07:43]line [10:07:43]line [10:07:43]line [10:07:43]written 0, free lines is 3301 [10:07:43]MH_Cut [10:07:43]Write to MH i2c: D1 01 00 19 27 01 12 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D1 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D1 01 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D1 01 00 19 27 00 11 [10:07:43]Write to MH i2c: 01 00 00 1A 27 41 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7C A1 47 00 8D 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 38 37 31 37 39 35 10 04 04 00 49 25 01 00 F4 03 04 00 ED 66 1C 67 B6 04 01 00 00 AE 0D 48 7E 18 BA 7C B2 [10:07:43]CommunicateWithHost err = 0 [10:07:43]CheckOFDResponse [10:07:43]1017 (14) - 77093643461234 [10:07:43]1041 (16) - 0000000000871795 [10:07:43]1040 (4) - 75081 [10:07:43]1012 (4) - 26.10.2024 03:50 [10:07:43]1206 (1) - 0 [10:07:43]OFD Sender: Remove packet 75081 [10:07:43]ProducePacketName [10:07:43]name=ofd_packets/00075081 [10:07:43]NVStorageDeleteData [10:07:44]*** Cut start [10:07:44]*** Partial cut [10:07:44]*** CUTSNS_PIN = 1 [10:07:44]*** CUTSNS_PIN = 0 [10:07:44]OFD Sender: No OFD packet to send [10:07:44]*** Brake cut motor [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]*** Stop cut motor [10:07:44]*** Cut end [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [10:07:44]process_action close_receipt done [10:07:44]requested_data is exist [10:07:44]produce_requested_data [10:07:44]requested_item fm.sn is exist - process it [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 11 00 00 [10:07:44]Write to MH i2c: E2 08 00 1B 27 80 11 00 00 00 00 00 00 BC [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 1B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 14 [10:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:07:44]wFMCommunicate OK [10:07:44]requested_item fd.num is exist - process it [10:07:44]SAM_PROTO_GetFieldsCounters [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 13 00 00 [10:07:44]Write to MH i2c: E2 08 00 1C 27 80 13 00 00 00 00 00 00 BF [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:45]Read from MH i2c: E2 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 62 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 62 00 1C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 49 25 01 00 0E 04 04 00 00 02 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 32 [10:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 49 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:45]wFMCommunicate OK [10:07:45]SAM_PROTO_GetFieldsCounters done [10:07:45]requested_item shift.num is exist - process it [10:07:45]requested_item shift.opened is exist - process it [10:07:45]req_shift_opened [10:07:45]FM_GetShiftState [10:07:45]SAM_PROTO_GetShiftState [10:07:45]wFMCommunicate request_size=4 [10:07:45]MH_SAM_APDU [10:07:45]CAPDU: 80 13 01 00 [10:07:45]Write to MH i2c: E2 08 00 1D 27 80 13 01 00 00 00 00 00 C1 [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:45]Read from MH i2c: E2 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 0E 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 0E 00 1D 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DC [10:07:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:07:45]wFMCommunicate OK [10:07:45]SAM_PROTO_GetShiftState done [10:07:45]FM_GetShiftState done [10:07:45]req_shift_opened done [10:07:45]requested_item shift.open_date is exist - process it [10:07:45]req_shift_open_date [10:07:45]req_shift_open_date done [10:07:45]produce_requested_data done [10:07:45]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75081,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:07:45]process_action_free close_receipt [10:07:45]json_value_free [10:07:45]json_value_free done [10:07:45]process_json_proto returns [10:07:45]Send response to host [10:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75081,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:07:45]free response buf [10:07:45]execute_script done [10:07:45]execute_script returns [10:07:45]free content buf [10:07:45]Sock 10.Close socket [10:07:45]Sock 10.Thread stoped [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:11]ConnectInit Can't connect to host [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:11]accept exits with 8 [10:13:11]New connection [10:13:11]New thread 3066924388 created [10:13:11]Thread 3066781028 joined [10:13:11]Waiting for new connection... [10:13:11] Sock 8.Parse request [10:13:11]Sock 8.Check first char [10:13:11]Sock 8.First char is OK [10:13:11]request: POST /json_proto HTTP/1.0 [10:13:11]Method: POST [10:13:11]URL: /json_proto [10:13:11]Method is POST - this is cgi request [10:13:11]url: /json_proto [10:13:11]query_string will be loaded in cgi processing [10:13:11]execute_cgi json_proto POST (null) [10:13:11]execute_cgi path=json_proto method=POST [10:13:11]POST find Content-Length [10:13:11]Host: 172.17.39.131:8080 [10:13:11]Content-Length: 677 [10:13:11]Content-Type: application/json [10:13:11] [10:13:11]POST finish read [10:13:11]Found Content-Length = 677 [10:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:13:11]execute_script... [10:13:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:13:11]POST & json_proto [10:13:11]process_json_proto [10:13:11]json parsed OK: [10:13:11]protocol is kg_v1.0 [10:13:11]action value=close_receipt [10:13:11]process_action close_receipt [10:13:11]cmd_close_receipt [10:13:11]MH_GetDate [10:13:11]Write to MH i2c: F0 00 00 1E 27 34 [10:13:11]Write i2c OK [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 09 00 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: F0 09 00 1E 27 00 BB C0 1C 67 86 57 24 65 A1 [10:13:11]GetLastDocTimeStamp 1729937264 [10:13:11]current date 1729937595 [10:13:11]FM_GetShiftState [10:13:11]SAM_PROTO_GetShiftState [10:13:11]wFMCommunicate request_size=4 [10:13:11]MH_SAM_APDU [10:13:11]CAPDU: 80 13 01 00 [10:13:11]Write to MH i2c: E2 08 00 1F 27 80 13 01 00 00 00 00 00 C3 [10:13:11]Write i2c OK [10:13:11]MH_I2C_Read... [10:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:11]Read from MH i2c: E2 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: E2 0E 00 [10:13:11]MH_I2C_Read... [10:13:11]Read from MH i2c: E2 0E 00 1F 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DE [10:13:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:13:11]wFMCommunicate OK [10:13:11]SAM_PROTO_GetShiftState done [10:13:11]FM_GetShiftState done [10:13:11]opened in 1729902166 [10:13:11]opened+sec_in_day 1729988566 [10:13:11]quantity*price = 20003 [10:13:11]sum+1 = 20004 [10:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 74 26.10.2024 10:13 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75082 ФПД: 168748956234673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101315&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75082&fm=168748956234673&tin=02508201610067®Number=0000000000091691&sum=20000 [10:13:12]StoreToDocumentArchive [10:13:12]shift 512 fd 75082 [10:13:12]save to /storage/0512/doc_00075082 [10:13:12]save last doc name /storage/0512/doc_00075082 to /storage/kkm_last_doc_name [10:13:12]save OK [10:13:12]Clear old archive folders... [10:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:12]tlvbuf is B6ED3D70 [10:13:12]SAM_PROTO_ClearQueue [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 09 00 00 [10:13:12]Write to MH i2c: E2 08 00 2C 27 80 09 00 00 00 00 00 00 C5 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]SAM_PROTO_ClearQueue done [10:13:12]KKMCreateOFDPacket [10:13:12]OFDProtocolAddRootSTLVToBuf [10:13:12]FM_MakeSignedData [10:13:12]FM_MakeSignedData [10:13:12]SAM_PROTO_SignData [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 01 02 [10:13:12]Write to MH i2c: E2 08 00 2D 27 80 0D 01 02 00 00 00 00 CD [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=255 [10:13:12]MH_SAM_APDU [10:13: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 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 4A 00 00 00 F4 03 04 00 BB C0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4A 25 01 00 35 04 06 00 99 [10:13:12]Write to MH i2c: E2 02 01 2E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BB C0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4A 25 01 00 35 04 06 00 99 00 00 77 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=10 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 02 02 05 79 ED 97 B3 B1 [10:13:12]Write to MH i2c: E2 0D 00 2F 27 80 0D 02 02 05 00 79 ED 97 B3 B1 00 00 3B [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 03 02 [10:13:12]Write to MH i2c: E2 08 00 30 27 80 0D 03 02 00 00 00 00 D2 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 0B 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 0B 00 30 27 00 CD 50 DE 58 E9 3F 77 7C 90 00 41 [10:13:12]RAPDU: CD 50 DE 58 E9 3F 77 7C 90 00 [10:13:12]wFMCommunicate OK [10:13:12]SAM_PROTO_SignData done [10:13:12]FM_MakeSignedData done [10:13:12]CreateOFDProtocolMessage [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 11 00 00 [10:13:12]Write to MH i2c: E2 08 00 31 27 80 11 00 00 00 00 00 00 D2 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:13]Read from MH i2c: E2 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 17 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: E2 17 00 31 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2A [10:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:13:13]wFMCommunicate OK [10:13:13]CreateOFDProtocolMessage done [10:13:13]OFDSenderStorePacket 75082 [10:13:13]StoreOFDPacket docnum=75082 [10:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 2E B1 07 01 2D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BB C0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4A 25 01 00 35 04 06 00 99 79 ED 97 B3 B1 CD 50 DE 58 E9 3F 77 7C [10:13:13]CheckFolder [10:13:13]dirname=/storage/ofd_packets [10:13:13]CheckFolder done [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00075082 [10:13:13]NVStorageSaveData ofd_packets/00075082 [10:13:13]File name is /storage/ofd_packets/00075082 [10:13:13]Write 301 bytes [10:13:13]NVStorageSaveData done [10:13:13]OFDSenderStorePacket done [10:13:13]KKMCreateOFDPacket done [10:13:13]NVStorageSaveData kkm_last_timestamp [10:13:13]File name is /storage/kkm_last_timestamp [10:13:13]Write 4 bytes [10:13:13]NVStorageSaveData done [10:13:13]ExternCall_PrintAddStr [10:13:13]wPrintStart [10:13:13]Write to MH i2c: 01 00 00 32 27 59 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 FF 0F 6E [10:13:13]RasterBufferAndPrint [10:13:13]line Счет N : (1)191054 [10:13:13]line ИНН: 02508201610067 [10:13:13]line Контрольно-Кассовый Чек [10:13:13]line ПРОДАЖА [10:13:13]line ТРК (МРК, ГНК) : 21 [10:13:13]line Товар: 2710124130 [10:13:13]line Аи-92-К-5 [10:13:13]line 2.990 * 66.90 [10:13:13]line = 200.03 [10:13:13]line НДС 12% НСП 1% [10:13:13]line > о реализуемом товаре [10:13:13]line ОКРУГЛЕНИЕ: -0.03 [10:13:13]line ИТОГО: 200.00 [10:13:13]line Внесено: 200.00 [10:13:13]line СДАЧА: 0.00 [10:13:13]line НСП 1% : 1.77 [10:13:13]line НДС 12% : 21.24 [10:13:13]line Наличными: 200.00 [10:13:13]line Безнал.: 0.00 [10:13:13]line Место: АЗС № 142 "Партнер Нефть" [10:13:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:13:13]line СНО: Общий режим [10:13:13]line Чек 74 26.10.2024 10:13 [10:13:13]line Смена: 512 ФФД: 1.0 [10:13:13]line ЗНМ: 0300000089 [10:13:13]line РНМ: 0000000000091691 [10:13:13]line Версия ККМ: 001 [10:13:13]line ФМ: 0000000000871795 [10:13:13]line ФД: 75082 [10:13:13]line ФПД: 168748956234673 [10:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101315&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75082&fm=168748956234673&tin=02508201610067®Number=0000000000091691&sum=20000 [10:13:13]written 0, free lines is 4095 [10:13:13]OFD Sender: Processing packet 75082 [packets to send 13, broken 12] [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00075082 [10:13:13]OFD Sender: To server: pG, [10:13:13]CommunicateWithHost lk.salyk.kg:30040 [10:13:13]ConnectInit lk.salyk.kg [10:13:13]Connected sock=10 [10:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 2E B1 07 01 2D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BB C0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4A 25 01 00 35 04 06 00 99 79 ED 97 B3 B1 CD 50 DE 58 E9 3F 77 7C [10:13:13]Write to MH i2c: 01 00 00 5D 27 84 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 AD 0C 44 [10:13:13]RasterBufferAndPrint [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]written 0, free lines is 3251 [10:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E4 A0 47 00 1E 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 38 37 31 37 39 35 10 04 04 00 4A 25 01 00 F4 03 04 00 38 68 1C 67 B6 04 01 00 00 05 61 5D 59 31 14 84 BA [10:13:13]CommunicateWithHost err = 0 [10:13:13]CheckOFDResponse [10:13:13]1017 (14) - 77093643461234 [10:13:13]1041 (16) - 0000000000871795 [10:13:13]1040 (4) - 75082 [10:13:13]1012 (4) - 26.10.2024 03:55 [10:13:13]1206 (1) - 0 [10:13:13]OFD Sender: Remove packet 75082 [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00075082 [10:13:13]NVStorageDeleteData [10:13:13]MH_Cut [10:13:13]Write to MH i2c: D1 01 00 64 27 01 5D [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 01 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 01 00 64 27 00 5C [10:13:13]Write to MH i2c: 01 00 00 65 27 8C [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:14]OFD Sender: No OFD packet to send [10:13:14]*** Cut start [10:13:14]*** Partial cut [10:13:14]*** CUTSNS_PIN = 1 [10:13:14]*** CUTSNS_PIN = 0 [10:13:14]*** Brake cut motor [10:13:15]Read from MH i2c: 01 [10:13:15]MH_I2C_Read... [10:13:15]*** Stop cut motor [10:13:15]*** Cut end [10:13:15]Read from MH i2c: 01 07 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [10:13:15]process_action close_receipt done [10:13:15]requested_data is exist [10:13:15]produce_requested_data [10:13:15]requested_item fm.sn is exist - process it [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 11 00 00 [10:13:15]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5F [10:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:13:15]wFMCommunicate OK [10:13:15]requested_item fd.num is exist - process it [10:13:15]SAM_PROTO_GetFieldsCounters [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 00 00 [10:13:15]Write to MH i2c: E2 08 00 67 27 80 13 00 00 00 00 00 00 0A [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 67 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4A 25 01 00 0E 04 04 00 00 02 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 81 [10:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4A 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetFieldsCounters done [10:13:15]requested_item shift.num is exist - process it [10:13:15]requested_item shift.opened is exist - process it [10:13:15]req_shift_opened [10:13:15]FM_GetShiftState [10:13:15]SAM_PROTO_GetShiftState [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 01 00 [10:13:15]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 27 [10:13:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetShiftState done [10:13:15]FM_GetShiftState done [10:13:15]req_shift_opened done [10:13:15]requested_item shift.open_date is exist - process it [10:13:15]req_shift_open_date [10:13:15]req_shift_open_date done [10:13:15]produce_requested_data done [10:13:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75082,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:13:15]process_action_free close_receipt [10:13:15]json_value_free [10:13:15]json_value_free done [10:13:15]process_json_proto returns [10:13:15]Send response to host [10:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75082,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:13:15]free response buf [10:13:15]execute_script done [10:13:15]execute_script returns [10:13:15]free content buf [10:13:15]Sock 8.Close socket [10:13:15]Sock 8.Thread stoped [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [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:25]recv_with_timeout no data received [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:22]accept exits with 9 [10:17:22]New connection [10:17:22]New thread 3066781028 created [10:17:22]Thread 3066924388 joined [10:17:22]Waiting for new connection... [10:17:22] Sock 9.Parse request [10:17:22]Sock 9.Check first char [10:17:22]Sock 9.First char is OK [10:17:22]request: POST /json_proto HTTP/1.0 [10:17:22]Method: POST [10:17:22]URL: /json_proto [10:17:22]Method is POST - this is cgi request [10:17:22]url: /json_proto [10:17:22]query_string will be loaded in cgi processing [10:17:22]execute_cgi json_proto POST (null) [10:17:22]execute_cgi path=json_proto method=POST [10:17:22]POST find Content-Length [10:17:22]Host: 172.17.39.131:8080 [10:17:22]Content-Length: 766 [10:17:22]Content-Type: application/json [10:17:22] [10:17:22]POST finish read [10:17:22]Found Content-Length = 766 [10:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:17:22]execute_script... [10:17: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)191055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:17:22]POST & json_proto [10:17:22]process_json_proto [10:17:22]json parsed OK: [10:17:22]protocol is kg_v1.0 [10:17:22]action value=close_receipt [10:17:22]process_action close_receipt [10:17:22]cmd_close_receipt [10:17:22]MH_GetDate [10:17:22]Write to MH i2c: F0 00 00 69 27 7F [10:17:22]Write i2c OK [10:17:22]MH_I2C_Read... [10:17:22]Read from MH i2c: F0 [10:17:22]MH_I2C_Read... [10:17:22]Read from MH i2c: F0 09 00 [10:17:22]MH_I2C_Read... [10:17:22]Read from MH i2c: F0 09 00 69 27 00 B6 C1 1C 67 86 57 24 65 E8 [10:17:22]GetLastDocTimeStamp 1729937595 [10:17:22]current date 1729937846 [10:17:22]FM_GetShiftState [10:17:22]SAM_PROTO_GetShiftState [10:17:22]wFMCommunicate request_size=4 [10:17:22]MH_SAM_APDU [10:17:22]CAPDU: 80 13 01 00 [10:17:22]Write to MH i2c: E2 08 00 6A 27 80 13 01 00 00 00 00 00 0E [10:17:22]Write i2c OK [10:17:22]MH_I2C_Read... [10:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:22]Read from MH i2c: E2 [10:17:22]MH_I2C_Read... [10:17:22]Read from MH i2c: E2 0E 00 [10:17:22]MH_I2C_Read... [10:17:22]Read from MH i2c: E2 0E 00 6A 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 29 [10:17:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:17:22]wFMCommunicate OK [10:17:22]SAM_PROTO_GetShiftState done [10:17:22]FM_GetShiftState done [10:17:22]opened in 1729902166 [10:17:22]opened+sec_in_day 1729988566 [10:17:22]quantity*price = 50041 [10:17:22]sum+1 = 50042 [10:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 75 26.10.2024 10:17 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75083 ФПД: 66358382855561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101726&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75083&fm=66358382855561&tin=02508201610067®Number=0000000000091691&sum=50041 [10:17:23]StoreToDocumentArchive [10:17:23]shift 512 fd 75083 [10:17:23]save to /storage/0512/doc_00075083 [10:17:23]save last doc name /storage/0512/doc_00075083 to /storage/kkm_last_doc_name [10:17:23]save OK [10:17:23]Clear old archive folders... [10:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:23]tlvbuf is 008AF770 [10:17:23]SAM_PROTO_ClearQueue [10:17:23]wFMCommunicate request_size=4 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 09 00 00 [10:17:23]Write to MH i2c: E2 08 00 77 27 80 09 00 00 00 00 00 00 10 [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [10:17:23]RAPDU: 90 00 [10:17:23]wFMCommunicate OK [10:17:23]SAM_PROTO_ClearQueue done [10:17:23]KKMCreateOFDPacket [10:17:23]OFDProtocolAddRootSTLVToBuf [10:17:23]FM_MakeSignedData [10:17:23]FM_MakeSignedData [10:17:23]SAM_PROTO_SignData [10:17:23]wFMCommunicate request_size=4 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 0D 01 02 [10:17:23]Write to MH i2c: E2 08 00 78 27 80 0D 01 02 00 00 00 00 18 [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [10:17:23]RAPDU: 90 00 [10:17:23]wFMCommunicate OK [10:17:23]wFMCommunicate request_size=255 [10:17:23]MH_SAM_APDU [10:17: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 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 4B 00 00 00 F4 03 04 00 B6 C1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4B 25 01 00 35 04 06 00 3C [10:17:23]Write to MH i2c: E2 02 01 79 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 00 00 00 F4 03 04 00 B6 C1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4B 25 01 00 35 04 06 00 3C 00 00 F3 [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [10:17:23]RAPDU: 90 00 [10:17:23]wFMCommunicate OK [10:17:23]wFMCommunicate request_size=10 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 0D 02 02 05 5A 43 D6 85 89 [10:17:23]Write to MH i2c: E2 0D 00 7A 27 80 0D 02 02 05 00 5A 43 D6 85 89 00 00 A6 [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [10:17:23]RAPDU: 90 00 [10:17:23]wFMCommunicate OK [10:17:23]wFMCommunicate request_size=4 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 0D 03 02 [10:17:23]Write to MH i2c: E2 08 00 7B 27 80 0D 03 02 00 00 00 00 1D [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 0B 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 0B 00 7B 27 00 5F D3 1E 0A E1 88 07 E6 90 00 CE [10:17:23]RAPDU: 5F D3 1E 0A E1 88 07 E6 90 00 [10:17:23]wFMCommunicate OK [10:17:23]SAM_PROTO_SignData done [10:17:23]FM_MakeSignedData done [10:17:23]CreateOFDProtocolMessage [10:17:23]wFMCommunicate request_size=4 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 11 00 00 [10:17:23]Write to MH i2c: E2 08 00 7C 27 80 11 00 00 00 00 00 00 1D [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 17 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 17 00 7C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [10:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:17:23]wFMCommunicate OK [10:17:23]CreateOFDProtocolMessage done [10:17:23]OFDSenderStorePacket 75083 [10:17:23]StoreOFDPacket docnum=75083 [10:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F4 1A 07 01 D9 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 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 4B 00 00 00 F4 03 04 00 B6 C1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4B 25 01 00 35 04 06 00 3C 5A 43 D6 85 89 5F D3 1E 0A E1 88 07 E6 [10:17:23]CheckFolder [10:17:23]dirname=/storage/ofd_packets [10:17:23]CheckFolder done [10:17:23]ProducePacketName [10:17:23]name=ofd_packets/00075083 [10:17:23]NVStorageSaveData ofd_packets/00075083 [10:17:23]File name is /storage/ofd_packets/00075083 [10:17:23]Write 301 bytes [10:17:23]NVStorageSaveData done [10:17:23]OFDSenderStorePacket done [10:17:23]KKMCreateOFDPacket done [10:17:23]NVStorageSaveData kkm_last_timestamp [10:17:23]File name is /storage/kkm_last_timestamp [10:17:23]Write 4 bytes [10:17:23]NVStorageSaveData done [10:17:23]ExternCall_PrintAddStr [10:17:23]wPrintStart [10:17:23]Write to MH i2c: 01 00 00 7D 27 A4 [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: 01 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: 01 07 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [10:17:23]RasterBufferAndPrint [10:17:23]line Счет N : (1)191055 [10:17:23]line ИНН: 02508201610067 [10:17:23]line Контрольно-Кассовый Чек [10:17:23]line ПРОДАЖА [10:17:23]line ТРК (МРК, ГНК) : 21 [10:17:23]line Товар: 2710124130 [10:17:23]line Аи-92-К-5 [10:17:23]line 7.480 * 66.90 [10:17:23]line = 500.41 [10:17:23]line НДС 12% НСП 1% [10:17:23]line > о реализуемом товаре [10:17:23]line ИТОГО: 500.41 [10:17:23]line НСП 1% : 4.43 [10:17:23]line НДС 12% : 53.14 [10:17:23]line Наличными: 0.00 [10:17:23]line Безнал.: 500.41 [10:17:23]line Место: АЗС № 142 "Партнер Нефть" [10:17:23]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:17:23]line СНО: Общий режим [10:17:23]line Чек 75 26.10.2024 10:17 [10:17:23]line Смена: 512 ФФД: 1.0 [10:17:23]line ЗНМ: 0300000089 [10:17:23]line РНМ: 0000000000091691 [10:17:23]line Версия ККМ: 001 [10:17:23]line Платежная система: Mbank [10:17:23]line ФМ: 0000000000871795 [10:17:23]line ФД: 75083 [10:17:23]line ФПД: 66358382855561 [10:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101726&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75083&fm=66358382855561&tin=02508201610067®Number=0000000000091691&sum=50041 [10:17:23]written 0, free lines is 4095 [10:17:23]OFD Sender: Processing packet 75083 [packets to send 13, broken 12] [10:17:23]ProducePacketName [10:17:23]name=ofd_packets/00075083 [10:17:24]OFD Sender: To server: pG, [10:17:24]CommunicateWithHost lk.salyk.kg:30040 [10:17:24]ConnectInit lk.salyk.kg [10:17:24]Write to MH i2c: 01 00 00 A6 27 CD [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: 01 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: 01 07 00 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: 01 07 00 A6 27 00 00 00 00 00 C7 0C A7 [10:17:24]RasterBufferAndPrint [10:17:24]line [10:17:24]line [10:17:24]line [10:17:24]line [10:17:24]line [10:17:24]written 0, free lines is 3275 [10:17:24]MH_Cut [10:17:24]Write to MH i2c: D1 01 00 AD 27 01 A6 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: D1 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: D1 01 00 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: D1 01 00 AD 27 00 A5 [10:17:24]Write to MH i2c: 01 00 00 AE 27 D5 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]Connected sock=11 [10:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F4 1A 07 01 D9 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 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 4B 00 00 00 F4 03 04 00 B6 C1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4B 25 01 00 35 04 06 00 3C 5A 43 D6 85 89 5F D3 1E 0A E1 88 07 E6 [10:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B7 AF 47 00 D3 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 38 37 31 37 39 35 10 04 04 00 4B 25 01 00 F4 03 04 00 33 69 1C 67 B6 04 01 00 00 29 A1 B3 8E DB 3B 3C 69 [10:17:24]CommunicateWithHost err = 0 [10:17:24]CheckOFDResponse [10:17:24]1017 (14) - 77093643461234 [10:17:24]1041 (16) - 0000000000871795 [10:17:24]1040 (4) - 75083 [10:17:24]1012 (4) - 26.10.2024 03:59 [10:17:24]1206 (1) - 0 [10:17:24]OFD Sender: Remove packet 75083 [10:17:24]ProducePacketName [10:17:24]name=ofd_packets/00075083 [10:17:24]NVStorageDeleteData [10:17:25]*** Cut start [10:17:25]*** Partial cut [10:17:25]*** CUTSNS_PIN = 1 [10:17:25]OFD Sender: No OFD packet to send [10:17:25]*** CUTSNS_PIN = 0 [10:17:25]*** Brake cut motor [10:17:25]Read from MH i2c: 01 [10:17:25]MH_I2C_Read... [10:17:25]*** Stop cut motor [10:17:25]*** Cut end [10:17:25]Read from MH i2c: 01 07 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [10:17:25]process_action close_receipt done [10:17:25]requested_data is exist [10:17:25]produce_requested_data [10:17:25]requested_item fm.sn is exist - process it [10:17:25]wFMCommunicate request_size=4 [10:17:25]MH_SAM_APDU [10:17:25]CAPDU: 80 11 00 00 [10:17:25]Write to MH i2c: E2 08 00 AF 27 80 11 00 00 00 00 00 00 50 [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:25]Read from MH i2c: E2 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 17 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 17 00 AF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A8 [10:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:17:25]wFMCommunicate OK [10:17:25]requested_item fd.num is exist - process it [10:17:25]SAM_PROTO_GetFieldsCounters [10:17:25]wFMCommunicate request_size=4 [10:17:25]MH_SAM_APDU [10:17:25]CAPDU: 80 13 00 00 [10:17:25]Write to MH i2c: E2 08 00 B0 27 80 13 00 00 00 00 00 00 53 [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:26]Read from MH i2c: E2 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 62 00 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 62 00 B0 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4B 25 01 00 0E 04 04 00 00 02 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 CE [10:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4B 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:26]wFMCommunicate OK [10:17:26]SAM_PROTO_GetFieldsCounters done [10:17:26]requested_item shift.num is exist - process it [10:17:26]requested_item shift.opened is exist - process it [10:17:26]req_shift_opened [10:17:26]FM_GetShiftState [10:17:26]SAM_PROTO_GetShiftState [10:17:26]wFMCommunicate request_size=4 [10:17:26]MH_SAM_APDU [10:17:26]CAPDU: 80 13 01 00 [10:17:26]Write to MH i2c: E2 08 00 B1 27 80 13 01 00 00 00 00 00 55 [10:17:26]Write i2c OK [10:17:26]MH_I2C_Read... [10:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:26]Read from MH i2c: E2 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 0E 00 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 0E 00 B1 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 70 [10:17:26]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:17:26]wFMCommunicate OK [10:17:26]SAM_PROTO_GetShiftState done [10:17:26]FM_GetShiftState done [10:17:26]req_shift_opened done [10:17:26]requested_item shift.open_date is exist - process it [10:17:26]req_shift_open_date [10:17:26]req_shift_open_date done [10:17:26]produce_requested_data done [10:17:26]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75083,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:17:26]process_action_free close_receipt [10:17:26]json_value_free [10:17:26]json_value_free done [10:17:26]process_json_proto returns [10:17:26]Send response to host [10:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75083,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:17:26]free response buf [10:17:26]execute_script done [10:17:26]execute_script returns [10:17:26]free content buf [10:17:26]Sock 9.Close socket [10:17:26]Sock 9.Thread stoped [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [10:22:05]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]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:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:39]accept exits with 8 [10:26:39]New connection [10:26:39]New thread 3066924388 created [10:26:39]Thread 3066781028 joined [10:26:39]Waiting for new connection... [10:26:39] Sock 8.Parse request [10:26:39]Sock 8.Check first char [10:26:39]Sock 8.First char is OK [10:26:39]request: POST /json_proto HTTP/1.0 [10:26:39]Method: POST [10:26:39]URL: /json_proto [10:26:39]Method is POST - this is cgi request [10:26:39]url: /json_proto [10:26:39]query_string will be loaded in cgi processing [10:26:39]execute_cgi json_proto POST (null) [10:26:39]execute_cgi path=json_proto method=POST [10:26:39]POST find Content-Length [10:26:39]Host: 172.17.39.131:8080 [10:26:39]Content-Length: 677 [10:26:39]Content-Type: application/json [10:26:39] [10:26:39]POST finish read [10:26:39]Found Content-Length = 677 [10:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:26:39]execute_script... [10:26: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)191056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:26:39]POST & json_proto [10:26:39]process_json_proto [10:26:39]json parsed OK: [10:26:39]protocol is kg_v1.0 [10:26:39]action value=close_receipt [10:26:39]process_action close_receipt [10:26:39]cmd_close_receipt [10:26:39]MH_GetDate [10:26:39]Write to MH i2c: F0 00 00 B2 27 C8 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 09 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: F0 09 00 B2 27 00 E3 C3 1C 67 86 57 24 65 60 [10:26:39]GetLastDocTimeStamp 1729937846 [10:26:39]current date 1729938403 [10:26:39]FM_GetShiftState [10:26:39]SAM_PROTO_GetShiftState [10:26:39]wFMCommunicate request_size=4 [10:26:39]MH_SAM_APDU [10:26:39]CAPDU: 80 13 01 00 [10:26:39]Write to MH i2c: E2 08 00 B3 27 80 13 01 00 00 00 00 00 57 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:39]Read from MH i2c: E2 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 B3 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 72 [10:26:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:26:39]wFMCommunicate OK [10:26:39]SAM_PROTO_GetShiftState done [10:26:39]FM_GetShiftState done [10:26:39]opened in 1729902166 [10:26:39]opened+sec_in_day 1729988566 [10:26:39]quantity*price = 50041 [10:26:39]sum+1 = 50042 [10:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 76 26.10.2024 10:26 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75084 ФПД: 96854505476995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102643&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75084&fm=96854505476995&tin=02508201610067®Number=0000000000091691&sum=50000 [10:26:40]StoreToDocumentArchive [10:26:40]shift 512 fd 75084 [10:26:40]save to /storage/0512/doc_00075084 [10:26:40]save last doc name /storage/0512/doc_00075084 to /storage/kkm_last_doc_name [10:26:40]save OK [10:26:40]Clear old archive folders... [10:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:40]tlvbuf is 008456A0 [10:26:40]SAM_PROTO_ClearQueue [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 09 00 00 [10:26:40]Write to MH i2c: E2 08 00 C0 27 80 09 00 00 00 00 00 00 59 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_ClearQueue done [10:26:40]KKMCreateOFDPacket [10:26:40]OFDProtocolAddRootSTLVToBuf [10:26:40]FM_MakeSignedData [10:26:40]FM_MakeSignedData [10:26:40]SAM_PROTO_SignData [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 01 02 [10:26:40]Write to MH i2c: E2 08 00 C1 27 80 0D 01 02 00 00 00 00 61 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=255 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 F4 03 04 00 E3 C3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4C 25 01 00 35 04 06 00 58 [10:26:40]Write to MH i2c: E2 02 01 C2 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E3 C3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4C 25 01 00 35 04 06 00 58 00 00 37 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=10 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 02 02 05 16 B2 64 D3 83 [10:26:40]Write to MH i2c: E2 0D 00 C3 27 80 0D 02 02 05 00 16 B2 64 D3 83 00 00 F0 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 03 02 [10:26:40]Write to MH i2c: E2 08 00 C4 27 80 0D 03 02 00 00 00 00 66 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0B 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0B 00 C4 27 00 A0 DD A4 FB 58 BE 5B 46 90 00 3A [10:26:40]RAPDU: A0 DD A4 FB 58 BE 5B 46 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_SignData done [10:26:40]FM_MakeSignedData done [10:26:40]CreateOFDProtocolMessage [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 11 00 00 [10:26:40]Write to MH i2c: E2 08 00 C5 27 80 11 00 00 00 00 00 00 66 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]OFD Sender: No OFD packet to send [10:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 17 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 17 00 C5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BE [10:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:26:40]wFMCommunicate OK [10:26:40]CreateOFDProtocolMessage done [10:26:40]OFDSenderStorePacket 75084 [10:26:40]StoreOFDPacket docnum=75084 [10:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CD 3E 07 01 EB 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 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 4C 00 00 00 F4 03 04 00 E3 C3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4C 25 01 00 35 04 06 00 58 16 B2 64 D3 83 A0 DD A4 FB 58 BE 5B 46 [10:26:40]CheckFolder [10:26:40]dirname=/storage/ofd_packets [10:26:40]CheckFolder done [10:26:40]ProducePacketName [10:26:40]name=ofd_packets/00075084 [10:26:40]NVStorageSaveData ofd_packets/00075084 [10:26:40]File name is /storage/ofd_packets/00075084 [10:26:40]Write 301 bytes [10:26:40]NVStorageSaveData done [10:26:40]OFDSenderStorePacket done [10:26:40]KKMCreateOFDPacket done [10:26:40]NVStorageSaveData kkm_last_timestamp [10:26:40]File name is /storage/kkm_last_timestamp [10:26:40]Write 4 bytes [10:26:40]NVStorageSaveData done [10:26:40]ExternCall_PrintAddStr [10:26:40]wPrintStart [10:26:40]Write to MH i2c: 01 00 00 C6 27 ED [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 07 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 07 00 C6 27 00 00 00 00 00 FF 0F 02 [10:26:40]RasterBufferAndPrint [10:26:40]line Счет N : (1)191056 [10:26:40]line ИНН: 02508201610067 [10:26:40]line Контрольно-Кассовый Чек [10:26:40]line ПРОДАЖА [10:26:40]line ТРК (МРК, ГНК) : 21 [10:26:40]line Товар: 2710124130 [10:26:40]line Аи-92-К-5 [10:26:40]line 7.480 * 66.90 [10:26:40]line = 500.41 [10:26:40]line НДС 12% НСП 1% [10:26:40]line > о реализуемом товаре [10:26:40]line ОКРУГЛЕНИЕ: -0.41 [10:26:40]line ИТОГО: 500.00 [10:26:40]line Внесено: 500.00 [10:26:40]line СДАЧА: 0.00 [10:26:40]line НСП 1% : 4.43 [10:26:40]line НДС 12% : 53.14 [10:26:40]line Наличными: 500.00 [10:26:40]line Безнал.: 0.00 [10:26:40]line Место: АЗС № 142 "Партнер Нефть" [10:26:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:26:40]line СНО: Общий режим [10:26:40]line Чек 76 26.10.2024 10:26 [10:26:40]line Смена: 512 ФФД: 1.0 [10:26:40]line ЗНМ: 0300000089 [10:26:40]line РНМ: 0000000000091691 [10:26:40]line Версия ККМ: 001 [10:26:40]line ФМ: 0000000000871795 [10:26:40]line ФД: 75084 [10:26:40]line ФПД: 96854505476995 [10:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102643&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75084&fm=96854505476995&tin=02508201610067®Number=0000000000091691&sum=50000 [10:26:41]OFD Sender: Processing packet 75084 [packets to send 13, broken 12] [10:26:41]ProducePacketName [10:26:41]name=ofd_packets/00075084 [10:26:41]OFD Sender: To server: pG, [10:26:41]CommunicateWithHost lk.salyk.kg:30040 [10:26:41]ConnectInit lk.salyk.kg [10:26:41]written 0, free lines is 4095 [10:26:41]Connected sock=10 [10:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CD 3E 07 01 EB 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 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 4C 00 00 00 F4 03 04 00 E3 C3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4C 25 01 00 35 04 06 00 58 16 B2 64 D3 83 A0 DD A4 FB 58 BE 5B 46 [10:26:41]Write to MH i2c: 01 00 00 F1 27 18 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 07 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 B5 0C E0 [10:26:41]RasterBufferAndPrint [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]written 0, free lines is 3260 [10:26:41]MH_Cut [10:26:41]Write to MH i2c: D1 01 00 F8 27 01 F1 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 01 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 01 00 F8 27 00 F0 [10:26:41]Write to MH i2c: 01 00 00 F9 27 20 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B6 64 47 00 C5 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 38 37 31 37 39 35 10 04 04 00 4C 25 01 00 F4 03 04 00 60 6B 1C 67 B6 04 01 00 00 28 68 4A 5F C6 E2 8F 03 [10:26:41]CommunicateWithHost err = 0 [10:26:41]CheckOFDResponse [10:26:41]1017 (14) - 77093643461234 [10:26:41]1041 (16) - 0000000000871795 [10:26:41]1040 (4) - 75084 [10:26:41]1012 (4) - 26.10.2024 04:09 [10:26:41]1206 (1) - 0 [10:26:41]OFD Sender: Remove packet 75084 [10:26:41]ProducePacketName [10:26:41]name=ofd_packets/00075084 [10:26:41]NVStorageDeleteData [10:26:42]OFD Sender: No OFD packet to send [10:26:42]*** Cut start [10:26:42]*** Partial cut [10:26:42]*** CUTSNS_PIN = 1 [10:26:42]*** CUTSNS_PIN = 0 [10:26:42]*** Brake cut motor [10:26:43]Read from MH i2c: 01 [10:26:43]MH_I2C_Read... [10:26:43]*** Stop cut motor [10:26:43]*** Cut end [10:26:43]Read from MH i2c: 01 07 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 FF 0F 35 [10:26:43]process_action close_receipt done [10:26:43]requested_data is exist [10:26:43]produce_requested_data [10:26:43]requested_item fm.sn is exist - process it [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 11 00 00 [10:26:43]Write to MH i2c: E2 08 00 FA 27 80 11 00 00 00 00 00 00 9B [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 17 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 17 00 FA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F3 [10:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:26:43]wFMCommunicate OK [10:26:43]requested_item fd.num is exist - process it [10:26:43]SAM_PROTO_GetFieldsCounters [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 13 00 00 [10:26:43]Write to MH i2c: E2 08 00 FB 27 80 13 00 00 00 00 00 00 9E [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 62 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 62 00 FB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4C 25 01 00 0E 04 04 00 00 02 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 1D [10:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4C 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:43]wFMCommunicate OK [10:26:43]SAM_PROTO_GetFieldsCounters done [10:26:43]requested_item shift.num is exist - process it [10:26:43]requested_item shift.opened is exist - process it [10:26:43]req_shift_opened [10:26:43]FM_GetShiftState [10:26:43]SAM_PROTO_GetShiftState [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 13 01 00 [10:26:43]Write to MH i2c: E2 08 00 FC 27 80 13 01 00 00 00 00 00 A0 [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:43]Read from MH i2c: E2 0E 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 0E 00 FC 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BB [10:26:43]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:26:43]wFMCommunicate OK [10:26:43]SAM_PROTO_GetShiftState done [10:26:43]FM_GetShiftState done [10:26:43]req_shift_opened done [10:26:43]requested_item shift.open_date is exist - process it [10:26:43]req_shift_open_date [10:26:43]req_shift_open_date done [10:26:43]produce_requested_data done [10:26:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75084,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:26:43]process_action_free close_receipt [10:26:43]json_value_free [10:26:43]json_value_free done [10:26:43]process_json_proto returns [10:26:43]Send response to host [10:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75084,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:26:43]free response buf [10:26:43]execute_script done [10:26:43]execute_script returns [10:26:43]free content buf [10:26:43]Sock 8.Close socket [10:26:43]Sock 8.Thread stoped [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [10:30:26]New connection [10:30:26]New thread 3066781028 created [10:30:26]Thread 3066924388 joined [10:30:26]Waiting for new connection... [10:30:26] Sock 9.Parse request [10:30:26]Sock 9.Check first char [10:30:26]Sock 9.First char is OK [10:30:26]request: POST /json_proto HTTP/1.0 [10:30:26]Method: POST [10:30:26]URL: /json_proto [10:30:26]Method is POST - this is cgi request [10:30:26]url: /json_proto [10:30:26]query_string will be loaded in cgi processing [10:30:26]execute_cgi json_proto POST (null) [10:30:26]execute_cgi path=json_proto method=POST [10:30:26]POST find Content-Length [10:30:26]Host: 172.17.39.131:8080 [10:30:26]Content-Length: 682 [10:30:26]Content-Type: application/json [10:30:26] [10:30:26]POST finish read [10:30:26]Found Content-Length = 682 [10:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [10:30:26]execute_script... [10:30: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)191057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [10:30:26]POST & json_proto [10:30:26]process_json_proto [10:30:26]json parsed OK: [10:30:26]protocol is kg_v1.0 [10:30:26]action value=close_receipt [10:30:26]process_action close_receipt [10:30:26]cmd_close_receipt [10:30:26]MH_GetDate [10:30:26]Write to MH i2c: F0 00 00 FD 27 13 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: F0 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: F0 09 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: F0 09 00 FD 27 00 C6 C4 1C 67 86 57 24 65 8F [10:30:26]GetLastDocTimeStamp 1729938403 [10:30:26]current date 1729938630 [10:30:26]FM_GetShiftState [10:30:26]SAM_PROTO_GetShiftState [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 13 01 00 [10:30:26]Write to MH i2c: E2 08 00 FE 27 80 13 01 00 00 00 00 00 A2 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0E 00 FE 27 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BD [10:30:26]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_GetShiftState done [10:30:26]FM_GetShiftState done [10:30:26]opened in 1729902166 [10:30:26]opened+sec_in_day 1729988566 [10:30:26]quantity*price = 120018 [10:30:26]sum+1 = 120020 [10:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 77 26.10.2024 10:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75085 ФПД: 198949780679458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103030&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75085&fm=198949780679458&tin=02508201610067®Number=0000000000091691&sum=120000 [10:30:27]StoreToDocumentArchive [10:30:27]shift 512 fd 75085 [10:30:27]save to /storage/0512/doc_00075085 [10:30:27]save last doc name /storage/0512/doc_00075085 to /storage/kkm_last_doc_name [10:30:27]save OK [10:30:27]Clear old archive folders... [10:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:27]tlvbuf is 007FDD50 [10:30:27]SAM_PROTO_ClearQueue [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 09 00 00 [10:30:27]Write to MH i2c: E2 08 00 0B 28 80 09 00 00 00 00 00 00 A5 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 0B 28 00 90 00 A7 [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]SAM_PROTO_ClearQueue done [10:30:27]KKMCreateOFDPacket [10:30:27]OFDProtocolAddRootSTLVToBuf [10:30:27]FM_MakeSignedData [10:30:27]FM_MakeSignedData [10:30:27]SAM_PROTO_SignData [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 0D 01 02 [10:30:27]Write to MH i2c: E2 08 00 0C 28 80 0D 01 02 00 00 00 00 AD [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [10:30:27]RAPDU: 90 00 [10:30:27]wFMCommunicate OK [10:30:27]wFMCommunicate request_size=255 [10:30:27]MH_SAM_APDU [10:30: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 4D 00 00 00 F4 03 04 00 C6 C4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4D 25 01 00 35 04 06 00 B4 [10:30:27]Write to MH i2c: E2 02 01 0D 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 4D 00 00 00 F4 03 04 00 C6 C4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4D 25 01 00 35 04 06 00 B4 00 00 CC [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 03 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [10:30:28]RAPDU: 90 00 [10:30:28]wFMCommunicate OK [10:30:28]wFMCommunicate request_size=10 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 0D 02 02 05 F1 9B 01 6B 22 [10:30:28]Write to MH i2c: E2 0D 00 0E 28 80 0D 02 02 05 00 F1 9B 01 6B 22 00 00 D4 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 03 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [10:30:28]RAPDU: 90 00 [10:30:28]wFMCommunicate OK [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 0D 03 02 [10:30:28]Write to MH i2c: E2 08 00 0F 28 80 0D 03 02 00 00 00 00 B2 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0B 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0B 00 0F 28 00 D5 2E 13 AA 16 0C B8 E0 90 00 2D [10:30:28]RAPDU: D5 2E 13 AA 16 0C B8 E0 90 00 [10:30:28]wFMCommunicate OK [10:30:28]SAM_PROTO_SignData done [10:30:28]FM_MakeSignedData done [10:30:28]CreateOFDProtocolMessage [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 11 00 00 [10:30:28]Write to MH i2c: E2 08 00 10 28 80 11 00 00 00 00 00 00 B2 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 10 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0A [10:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:30:28]wFMCommunicate OK [10:30:28]CreateOFDProtocolMessage done [10:30:28]OFDSenderStorePacket 75085 [10:30:28]StoreOFDPacket docnum=75085 [10:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 74 FA 07 01 C8 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 4D 00 00 00 F4 03 04 00 C6 C4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4D 25 01 00 35 04 06 00 B4 F1 9B 01 6B 22 D5 2E 13 AA 16 0C B8 E0 [10:30:28]CheckFolder [10:30:28]dirname=/storage/ofd_packets [10:30:28]CheckFolder done [10:30:28]ProducePacketName [10:30:28]name=ofd_packets/00075085 [10:30:28]NVStorageSaveData ofd_packets/00075085 [10:30:28]File name is /storage/ofd_packets/00075085 [10:30:28]Write 301 bytes [10:30:28]NVStorageSaveData done [10:30:28]OFDSenderStorePacket done [10:30:28]KKMCreateOFDPacket done [10:30:28]NVStorageSaveData kkm_last_timestamp [10:30:28]File name is /storage/kkm_last_timestamp [10:30:28]Write 4 bytes [10:30:28]NVStorageSaveData done [10:30:28]ExternCall_PrintAddStr [10:30:28]wPrintStart [10:30:28]Write to MH i2c: 01 00 00 11 28 39 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 11 28 00 00 00 00 00 FF 0F 4E [10:30:28]RasterBufferAndPrint [10:30:28]line Счет N : (1)191057 [10:30:28]line ИНН: 02508201610067 [10:30:28]line Контрольно-Кассовый Чек [10:30:28]line ПРОДАЖА [10:30:28]line ТРК (МРК, ГНК) : 21 [10:30:28]line Товар: 2710124130 [10:30:28]line Аи-92-К-5 [10:30:28]line 17.940 * 66.90 [10:30:28]line = 1200.19 [10:30:28]line НДС 12% НСП 1% [10:30:28]line > о реализуемом товаре [10:30:28]line ОКРУГЛЕНИЕ: -0.19 [10:30:28]line ИТОГО: 1200.00 [10:30:28]line Внесено: 1200.00 [10:30:28]line СДАЧА: 0.00 [10:30:28]line НСП 1% : 10.62 [10:30:28]line НДС 12% : 127.45 [10:30:28]line Наличными: 1200.00 [10:30:28]line Безнал.: 0.00 [10:30:28]line Место: АЗС № 142 "Партнер Нефть" [10:30:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:30:28]line СНО: Общий режим [10:30:28]line Чек 77 26.10.2024 10:30 [10:30:28]line Смена: 512 ФФД: 1.0 [10:30:28]line ЗНМ: 0300000089 [10:30:28]line РНМ: 0000000000091691 [10:30:28]line Версия ККМ: 001 [10:30:28]line ФМ: 0000000000871795 [10:30:28]line ФД: 75085 [10:30:28]line ФПД: 198949780679458 [10:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103030&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75085&fm=198949780679458&tin=02508201610067®Number=0000000000091691&sum=120000 [10:30:28]written 0, free lines is 4095 [10:30:28]OFD Sender: Processing packet 75085 [packets to send 13, broken 12] [10:30:28]ProducePacketName [10:30:28]name=ofd_packets/00075085 [10:30:28]OFD Sender: To server: pG, [10:30:28]CommunicateWithHost lk.salyk.kg:30040 [10:30:28]ConnectInit lk.salyk.kg [10:30:28]Connected sock=10 [10:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 74 FA 07 01 C8 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 4D 00 00 00 F4 03 04 00 C6 C4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4D 25 01 00 35 04 06 00 B4 F1 9B 01 6B 22 D5 2E 13 AA 16 0C B8 E0 [10:30:28]Write to MH i2c: 01 00 00 3C 28 64 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 A5 0C 1C [10:30:28]RasterBufferAndPrint [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]line [10:30:28]written 0, free lines is 3242 [10:30:29]MH_Cut [10:30:29]Write to MH i2c: D1 01 00 43 28 01 3D [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D1 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D1 01 00 [10:30:29]MH_I2C_Read... [10:30:29]Read from MH i2c: D1 01 00 43 28 00 3C [10:30:29]Write to MH i2c: 01 00 00 44 28 6C [10:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 6C B7 47 00 95 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 38 37 31 37 39 35 10 04 04 00 4D 25 01 00 F4 03 04 00 43 6C 1C 67 B6 04 01 00 00 C2 38 80 94 A6 F3 8C 6F [10:30:29]CommunicateWithHost err = 0 [10:30:29]CheckOFDResponse [10:30:29]1017 (14) - 77093643461234 [10:30:29]1041 (16) - 0000000000871795 [10:30:29]1040 (4) - 75085 [10:30:29]1012 (4) - 26.10.2024 04:12 [10:30:29]1206 (1) - 0 [10:30:29]OFD Sender: Remove packet 75085 [10:30:29]ProducePacketName [10:30:29]name=ofd_packets/00075085 [10:30:29]NVStorageDeleteData [10:30:29]Write i2c OK [10:30:29]MH_I2C_Read... [10:30:29]OFD Sender: No OFD packet to send [10:30:29]*** Cut start [10:30:29]*** Partial cut [10:30:29]*** CUTSNS_PIN = 1 [10:30:29]*** CUTSNS_PIN = 0 [10:30:30]*** Brake cut motor [10:30:30]Read from MH i2c: 01 [10:30:30]MH_I2C_Read... [10:30:30]*** Stop cut motor [10:30:30]*** Cut end [10:30:30]Read from MH i2c: 01 07 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 07 00 44 28 00 00 00 00 00 FF 0F 81 [10:30:30]process_action close_receipt done [10:30:30]requested_data is exist [10:30:30]produce_requested_data [10:30:30]requested_item fm.sn is exist - process it [10:30:30]wFMCommunicate request_size=4 [10:30:30]MH_SAM_APDU [10:30:30]CAPDU: 80 11 00 00 [10:30:30]Write to MH i2c: E2 08 00 45 28 80 11 00 00 00 00 00 00 E7 [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:30]Read from MH i2c: E2 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 17 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 17 00 45 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3F [10:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:30:30]wFMCommunicate OK [10:30:30]requested_item fd.num is exist - process it [10:30:30]SAM_PROTO_GetFieldsCounters [10:30:30]wFMCommunicate request_size=4 [10:30:30]MH_SAM_APDU [10:30:30]CAPDU: 80 13 00 00 [10:30:30]Write to MH i2c: E2 08 00 46 28 80 13 00 00 00 00 00 00 EA [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:30]Read from MH i2c: E2 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 62 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 62 00 46 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4D 25 01 00 0E 04 04 00 00 02 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 6D [10:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4D 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:30]wFMCommunicate OK [10:30:30]SAM_PROTO_GetFieldsCounters done [10:30:30]requested_item shift.num is exist - process it [10:30:30]requested_item shift.opened is exist - process it [10:30:30]req_shift_opened [10:30:30]FM_GetShiftState [10:30:30]SAM_PROTO_GetShiftState [10:30:30]wFMCommunicate request_size=4 [10:30:30]MH_SAM_APDU [10:30:30]CAPDU: 80 13 01 00 [10:30:30]Write to MH i2c: E2 08 00 47 28 80 13 01 00 00 00 00 00 EC [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:30]Read from MH i2c: E2 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 47 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 07 [10:30:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:30:30]wFMCommunicate OK [10:30:30]SAM_PROTO_GetShiftState done [10:30:30]FM_GetShiftState done [10:30:30]req_shift_opened done [10:30:30]requested_item shift.open_date is exist - process it [10:30:30]req_shift_open_date [10:30:30]req_shift_open_date done [10:30:30]produce_requested_data done [10:30:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75085,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:30:30]process_action_free close_receipt [10:30:30]json_value_free [10:30:30]json_value_free done [10:30:30]process_json_proto returns [10:30:30]Send response to host [10:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75085,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:30:30]free response buf [10:30:30]execute_script done [10:30:30]execute_script returns [10:30:30]free content buf [10:30:30]Sock 9.Close socket [10:30:30]Sock 9.Thread stoped [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [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:13]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:18]accept exits with 8 [10:48:18]New connection [10:48:18]New thread 3066924388 created [10:48:18]Thread 3066781028 joined [10:48:18]Waiting for new connection... [10:48:18] Sock 8.Parse request [10:48:18]Sock 8.Check first char [10:48:18]Sock 8.First char is OK [10:48:18]request: POST /json_proto HTTP/1.0 [10:48:18]Method: POST [10:48:18]URL: /json_proto [10:48:18]Method is POST - this is cgi request [10:48:18]url: /json_proto [10:48:18]query_string will be loaded in cgi processing [10:48:18]execute_cgi json_proto POST (null) [10:48:18]execute_cgi path=json_proto method=POST [10:48:18]POST find Content-Length [10:48:18]Host: 172.17.39.131:8080 [10:48:18]Content-Length: 685 [10:48:18]Content-Type: application/json [10:48:18] [10:48:18]POST finish read [10:48:18]Found Content-Length = 685 [10:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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:48:18]execute_script... [10:48: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)191058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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:48:18]POST & json_proto [10:48:18]process_json_proto [10:48:18]json parsed OK: [10:48:18]protocol is kg_v1.0 [10:48:18]action value=close_receipt [10:48:18]process_action close_receipt [10:48:18]cmd_close_receipt [10:48:18]MH_GetDate [10:48:18]Write to MH i2c: F0 00 00 48 28 5F [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: F0 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: F0 09 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: F0 09 00 48 28 00 F7 C8 1C 67 86 57 24 65 10 [10:48:18]GetLastDocTimeStamp 1729938630 [10:48:18]current date 1729939703 [10:48:18]FM_GetShiftState [10:48:18]SAM_PROTO_GetShiftState [10:48:18]wFMCommunicate request_size=4 [10:48:18]MH_SAM_APDU [10:48:18]CAPDU: 80 13 01 00 [10:48:18]Write to MH i2c: E2 08 00 49 28 80 13 01 00 00 00 00 00 EE [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:18]Read from MH i2c: E2 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 0E 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 0E 00 49 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 09 [10:48:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:48:18]wFMCommunicate OK [10:48:18]SAM_PROTO_GetShiftState done [10:48:18]FM_GetShiftState done [10:48:18]opened in 1729902166 [10:48:18]opened+sec_in_day 1729988566 [10:48:18]quantity*price = 200023 [10:48:18]sum+1 = 200025 [10:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 78 26.10.2024 10:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75086 ФПД: 23319532465215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104823&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75086&fm=23319532465215&tin=02508201610067®Number=0000000000091691&sum=200000 [10:48:20]StoreToDocumentArchive [10:48:20]shift 512 fd 75086 [10:48:20]save to /storage/0512/doc_00075086 [10:48:20]save last doc name /storage/0512/doc_00075086 to /storage/kkm_last_doc_name [10:48:20]save OK [10:48:20]Clear old archive folders... [10:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:48:20]tlvbuf is 007FAEC0 [10:48:20]SAM_PROTO_ClearQueue [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 09 00 00 [10:48:20]Write to MH i2c: E2 08 00 56 28 80 09 00 00 00 00 00 00 F0 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 56 28 00 90 00 F2 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_ClearQueue done [10:48:20]KKMCreateOFDPacket [10:48:20]OFDProtocolAddRootSTLVToBuf [10:48:20]FM_MakeSignedData [10:48:20]FM_MakeSignedData [10:48:20]SAM_PROTO_SignData [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 01 02 [10:48:20]Write to MH i2c: E2 08 00 57 28 80 0D 01 02 00 00 00 00 F8 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=255 [10:48:20]MH_SAM_APDU [10:48: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 39 30 30 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 4E 00 00 00 F4 03 04 00 F7 C8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4E 25 01 00 35 04 06 00 15 35 [10:48:20]Write to MH i2c: E2 02 01 58 28 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 39 30 30 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 4E 00 00 00 F4 03 04 00 F7 C8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4E 25 01 00 35 04 06 00 15 35 00 00 25 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]OFD Sender: No OFD packet to send [10:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=9 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 02 02 04 80 72 EC 3F [10:48:20]Write to MH i2c: E2 0C 00 59 28 80 0D 02 02 04 00 80 72 EC 3F 00 00 20 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 03 02 [10:48:20]Write to MH i2c: E2 08 00 5A 28 80 0D 03 02 00 00 00 00 FD [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0B 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0B 00 5A 28 00 7D 60 CD 4C D9 AD 68 D9 90 00 BB [10:48:20]RAPDU: 7D 60 CD 4C D9 AD 68 D9 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_SignData done [10:48:20]FM_MakeSignedData done [10:48:20]CreateOFDProtocolMessage [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 11 00 00 [10:48:20]Write to MH i2c: E2 08 00 5B 28 80 11 00 00 00 00 00 00 FD [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 5B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 55 [10:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:48:20]wFMCommunicate OK [10:48:20]CreateOFDProtocolMessage done [10:48:20]OFDSenderStorePacket 75086 [10:48:20]StoreOFDPacket docnum=75086 [10:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 1D 94 06 01 A6 4E 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 39 30 30 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 4E 00 00 00 F4 03 04 00 F7 C8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4E 25 01 00 35 04 06 00 15 35 80 72 EC 3F 7D 60 CD 4C D9 AD 68 D9 [10:48:20]CheckFolder [10:48:20]dirname=/storage/ofd_packets [10:48:20]CheckFolder done [10:48:20]ProducePacketName [10:48:20]name=ofd_packets/00075086 [10:48:20]NVStorageSaveData ofd_packets/00075086 [10:48:20]File name is /storage/ofd_packets/00075086 [10:48:20]Write 300 bytes [10:48:20]NVStorageSaveData done [10:48:20]OFDSenderStorePacket done [10:48:20]KKMCreateOFDPacket done [10:48:20]NVStorageSaveData kkm_last_timestamp [10:48:20]File name is /storage/kkm_last_timestamp [10:48:20]Write 4 bytes [10:48:20]NVStorageSaveData done [10:48:20]ExternCall_PrintAddStr [10:48:20]wPrintStart [10:48:20]Write to MH i2c: 01 00 00 5C 28 84 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 07 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 07 00 5C 28 00 00 00 00 00 FF 0F 99 [10:48:20]RasterBufferAndPrint [10:48:20]line Счет N : (1)191058 [10:48:20]line ИНН: 02508201610067 [10:48:20]line Контрольно-Кассовый Чек [10:48:20]line ПРОДАЖА [10:48:20]line ТРК (МРК, ГНК) : 51 [10:48:20]line Товар: 2711190000 [10:48:20]line ГАЗ-К-3 [10:48:20]line 51.420 * 38.90 [10:48:20]line = 2000.24 [10:48:20]line НДС 12% НСП 1% [10:48:20]line > о реализуемом товаре [10:48:20]line ОКРУГЛЕНИЕ: -0.24 [10:48:20]line ИТОГО: 2000.00 [10:48:20]line Внесено: 2000.00 [10:48:20]line СДАЧА: 0.00 [10:48:20]line НСП 1% : 17.70 [10:48:20]line НДС 12% : 212.41 [10:48:20]line Наличными: 2000.00 [10:48:20]line Безнал.: 0.00 [10:48:20]line Место: АЗС № 142 "Партнер Нефть" [10:48:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:48:20]line СНО: Общий режим [10:48:20]line Чек 78 26.10.2024 10:48 [10:48:20]line Смена: 512 ФФД: 1.0 [10:48:20]line ЗНМ: 0300000089 [10:48:20]line РНМ: 0000000000091691 [10:48:20]line Версия ККМ: 001 [10:48:20]line ФМ: 0000000000871795 [10:48:20]line ФД: 75086 [10:48:20]line ФПД: 23319532465215 [10:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104823&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75086&fm=23319532465215&tin=02508201610067®Number=0000000000091691&sum=200000 [10:48:20]OFD Sender: Processing packet 75086 [packets to send 13, broken 12] [10:48:20]ProducePacketName [10:48:20]name=ofd_packets/00075086 [10:48:20]OFD Sender: To server: pG, [10:48:20]CommunicateWithHost lk.salyk.kg:30040 [10:48:20]ConnectInit lk.salyk.kg [10:48:20]written 0, free lines is 4095 [10:48:21]Connected sock=10 [10:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 1D 94 06 01 A6 4E 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 39 30 30 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 4E 00 00 00 F4 03 04 00 F7 C8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4E 25 01 00 35 04 06 00 15 35 80 72 EC 3F 7D 60 CD 4C D9 AD 68 D9 [10:48:21]Write to MH i2c: 01 00 00 87 28 AF [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 B0 0C 72 [10:48:21]RasterBufferAndPrint [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]written 0, free lines is 3255 [10:48:21]MH_Cut [10:48:21]Write to MH i2c: D1 01 00 8E 28 01 88 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 01 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 01 00 8E 28 00 87 [10:48:21]Write to MH i2c: 01 00 00 8F 28 B7 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B4 B4 47 00 D0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4E 25 01 00 F4 03 04 00 73 70 1C 67 B6 04 01 00 00 CF 1E 97 DE 14 2C A3 3D [10:48:21]CommunicateWithHost err = 0 [10:48:21]CheckOFDResponse [10:48:21]1017 (14) - 77093643461234 [10:48:21]1041 (16) - 0000000000871795 [10:48:21]1040 (4) - 75086 [10:48:21]1012 (4) - 26.10.2024 04:30 [10:48:21]1206 (1) - 0 [10:48:21]OFD Sender: Remove packet 75086 [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00075086 [10:48:21]NVStorageDeleteData [10:48:22]OFD Sender: No OFD packet to send [10:48:22]*** Cut start [10:48:22]*** Partial cut [10:48:22]*** CUTSNS_PIN = 1 [10:48:22]*** CUTSNS_PIN = 0 [10:48:22]*** Brake cut motor [10:48:22]Read from MH i2c: 01 [10:48:22]MH_I2C_Read... [10:48:22]*** Stop cut motor [10:48:22]*** Cut end [10:48:22]Read from MH i2c: 01 07 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: 01 07 00 8F 28 00 00 00 00 00 FF 0F CC [10:48:22]process_action close_receipt done [10:48:22]requested_data is exist [10:48:22]produce_requested_data [10:48:22]requested_item fm.sn is exist - process it [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 11 00 00 [10:48:22]Write to MH i2c: E2 08 00 90 28 80 11 00 00 00 00 00 00 32 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 17 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 17 00 90 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8A [10:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:48:22]wFMCommunicate OK [10:48:22]requested_item fd.num is exist - process it [10:48:22]SAM_PROTO_GetFieldsCounters [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 13 00 00 [10:48:22]Write to MH i2c: E2 08 00 91 28 80 13 00 00 00 00 00 00 35 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 91 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4E 25 01 00 0E 04 04 00 00 02 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 BC [10:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4E 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetFieldsCounters done [10:48:23]requested_item shift.num is exist - process it [10:48:23]requested_item shift.opened is exist - process it [10:48:23]req_shift_opened [10:48:23]FM_GetShiftState [10:48:23]SAM_PROTO_GetShiftState [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 01 00 [10:48:23]Write to MH i2c: E2 08 00 92 28 80 13 01 00 00 00 00 00 37 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 92 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 52 [10:48:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetShiftState done [10:48:23]FM_GetShiftState done [10:48:23]req_shift_opened done [10:48:23]requested_item shift.open_date is exist - process it [10:48:23]req_shift_open_date [10:48:23]req_shift_open_date done [10:48:23]produce_requested_data done [10:48:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75086,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:48:23]process_action_free close_receipt [10:48:23]json_value_free [10:48:23]json_value_free done [10:48:23]process_json_proto returns [10:48:23]Send response to host [10:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75086,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:48:23]free response buf [10:48:23]execute_script done [10:48:23]execute_script returns [10:48:23]free content buf [10:48:23]Sock 8.Close socket [10:48:23]Sock 8.Thread stoped [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:41]accept exits with 9 [10:48:41]New connection [10:48:41]New thread 3066781028 created [10:48:41]Thread 3066924388 joined [10:48:41]Waiting for new connection... [10:48:41] Sock 9.Parse request [10:48:41]Sock 9.Check first char [10:48:41]Sock 9.First char is OK [10:48:41]request: POST /json_proto HTTP/1.0 [10:48:41]Method: POST [10:48:41]URL: /json_proto [10:48:41]Method is POST - this is cgi request [10:48:41]url: /json_proto [10:48:41]query_string will be loaded in cgi processing [10:48:41]execute_cgi json_proto POST (null) [10:48:41]execute_cgi path=json_proto method=POST [10:48:41]POST find Content-Length [10:48:41]Host: 172.17.39.131:8080 [10:48:41]Content-Length: 677 [10:48:41]Content-Type: application/json [10:48:41] [10:48:41]POST finish read [10:48:41]Found Content-Length = 677 [10:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:48:41]execute_script... [10:48: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)191059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:48:41]POST & json_proto [10:48:41]process_json_proto [10:48:41]json parsed OK: [10:48:41]protocol is kg_v1.0 [10:48:41]action value=close_receipt [10:48:41]process_action close_receipt [10:48:41]cmd_close_receipt [10:48:41]MH_GetDate [10:48:41]Write to MH i2c: F0 00 00 93 28 AA [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: F0 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: F0 09 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: F0 09 00 93 28 00 0E C9 1C 67 86 57 24 65 73 [10:48:41]GetLastDocTimeStamp 1729939703 [10:48:41]current date 1729939726 [10:48:41]FM_GetShiftState [10:48:41]SAM_PROTO_GetShiftState [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 13 01 00 [10:48:41]Write to MH i2c: E2 08 00 94 28 80 13 01 00 00 00 00 00 39 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:42]Read from MH i2c: E2 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0E 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0E 00 94 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 54 [10:48:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:48:42]wFMCommunicate OK [10:48:42]SAM_PROTO_GetShiftState done [10:48:42]FM_GetShiftState done [10:48:42]opened in 1729902166 [10:48:42]opened+sec_in_day 1729988566 [10:48:42]quantity*price = 35055 [10:48:42]sum+1 = 35057 [10:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 79 26.10.2024 10:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75087 ФПД: 214310418003655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104846&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75087&fm=214310418003655&tin=02508201610067®Number=0000000000091691&sum=35000 [10:48:43]StoreToDocumentArchive [10:48:43]shift 512 fd 75087 [10:48:43]save to /storage/0512/doc_00075087 [10:48:43]save last doc name /storage/0512/doc_00075087 to /storage/kkm_last_doc_name [10:48:43]save OK [10:48:43]Clear old archive folders... [10:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:43]tlvbuf is B6EA1090 [10:48:43]SAM_PROTO_ClearQueue [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 09 00 00 [10:48:43]Write to MH i2c: E2 08 00 A1 28 80 09 00 00 00 00 00 00 3B [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 A1 28 00 90 00 3D [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_ClearQueue done [10:48:43]KKMCreateOFDPacket [10:48:43]OFDProtocolAddRootSTLVToBuf [10:48:43]FM_MakeSignedData [10:48:43]FM_MakeSignedData [10:48:43]SAM_PROTO_SignData [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 0D 01 02 [10:48:43]Write to MH i2c: E2 08 00 A2 28 80 0D 01 02 00 00 00 00 43 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]wFMCommunicate request_size=255 [10:48:43]MH_SAM_APDU [10:48: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 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 4F 00 00 00 F4 03 04 00 0E C9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4F 25 01 00 35 04 06 00 C2 [10:48:43]Write to MH i2c: E2 02 01 A3 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 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 4F 00 00 00 F4 03 04 00 0E C9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4F 25 01 00 35 04 06 00 C2 00 00 C5 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]wFMCommunicate request_size=10 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 0D 02 02 05 EA 08 56 36 C7 [10:48:43]Write to MH i2c: E2 0D 00 A4 28 80 0D 02 02 05 00 EA 08 56 36 C7 00 00 95 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 0D 03 02 [10:48:43]Write to MH i2c: E2 08 00 A5 28 80 0D 03 02 00 00 00 00 48 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0B 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0B 00 A5 28 00 CE 58 ED F8 7F B4 A1 4F 90 00 77 [10:48:43]RAPDU: CE 58 ED F8 7F B4 A1 4F 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_SignData done [10:48:43]FM_MakeSignedData done [10:48:43]CreateOFDProtocolMessage [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 11 00 00 [10:48:43]Write to MH i2c: E2 08 00 A6 28 80 11 00 00 00 00 00 00 48 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 17 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 17 00 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A0 [10:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:48:43]wFMCommunicate OK [10:48:43]CreateOFDProtocolMessage done [10:48:43]OFDSenderStorePacket 75087 [10:48:43]StoreOFDPacket docnum=75087 [10:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E2 AF 07 01 92 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 00 00 00 F4 03 04 00 0E C9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4F 25 01 00 35 04 06 00 C2 EA 08 56 36 C7 CE 58 ED F8 7F B4 A1 4F [10:48:43]CheckFolder [10:48:43]dirname=/storage/ofd_packets [10:48:43]CheckFolder done [10:48:43]ProducePacketName [10:48:43]name=ofd_packets/00075087 [10:48:43]NVStorageSaveData ofd_packets/00075087 [10:48:43]File name is /storage/ofd_packets/00075087 [10:48:43]Write 301 bytes [10:48:43]NVStorageSaveData done [10:48:43]OFDSenderStorePacket done [10:48:43]KKMCreateOFDPacket done [10:48:43]OFD Sender: Processing packet 75087 [packets to send 13, broken 12] [10:48:43]ProducePacketName [10:48:43]name=ofd_packets/00075087 [10:48:43]OFD Sender: To server: pG, [10:48:43]CommunicateWithHost lk.salyk.kg:30040 [10:48:43]ConnectInit lk.salyk.kg [10:48:43]NVStorageSaveData kkm_last_timestamp [10:48:43]File name is /storage/kkm_last_timestamp [10:48:43]Write 4 bytes [10:48:43]NVStorageSaveData done [10:48:43]ExternCall_PrintAddStr [10:48:43]wPrintStart [10:48:43]Write to MH i2c: 01 00 00 A7 28 CF [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: 01 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: 01 07 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 FF 0F E4 [10:48:43]RasterBufferAndPrint [10:48:43]line Счет N : (1)191059 [10:48:43]line ИНН: 02508201610067 [10:48:43]line Контрольно-Кассовый Чек [10:48:43]line ПРОДАЖА [10:48:43]line ТРК (МРК, ГНК) : 21 [10:48:43]line Товар: 2710124130 [10:48:43]line Аи-92-К-5 [10:48:43]line 5.240 * 66.90 [10:48:43]line = 350.56 [10:48:43]line НДС 12% НСП 1% [10:48:43]line > о реализуемом товаре [10:48:43]line ОКРУГЛЕНИЕ: -0.56 [10:48:43]line ИТОГО: 350.00 [10:48:43]line Внесено: 350.00 [10:48:43]line СДАЧА: 0.00 [10:48:43]line НСП 1% : 3.10 [10:48:43]line НДС 12% : 37.23 [10:48:43]line Наличными: 350.00 [10:48:43]line Безнал.: 0.00 [10:48:43]line Место: АЗС № 142 "Партнер Нефть" [10:48:43]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:48:43]line СНО: Общий режим [10:48:43]line Чек 79 26.10.2024 10:48 [10:48:43]line Смена: 512 ФФД: 1.0 [10:48:43]line ЗНМ: 0300000089 [10:48:43]line РНМ: 0000000000091691 [10:48:43]line Версия ККМ: 001 [10:48:43]line ФМ: 0000000000871795 [10:48:43]line ФД: 75087 [10:48:43]line ФПД: 214310418003655 [10:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104846&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75087&fm=214310418003655&tin=02508201610067®Number=0000000000091691&sum=35000 [10:48:44]Connected sock=10 [10:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E2 AF 07 01 92 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 00 00 00 F4 03 04 00 0E C9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 4F 25 01 00 35 04 06 00 C2 EA 08 56 36 C7 CE 58 ED F8 7F B4 A1 4F [10:48:44]written 0, free lines is 4095 [10:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 39 8D 47 00 26 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 38 37 31 37 39 35 10 04 04 00 4F 25 01 00 F4 03 04 00 8A 70 1C 67 B6 04 01 00 00 09 A8 61 38 64 B3 0B 73 [10:48:44]CommunicateWithHost err = 0 [10:48:44]CheckOFDResponse [10:48:44]1017 (14) - 77093643461234 [10:48:44]1041 (16) - 0000000000871795 [10:48:44]1040 (4) - 75087 [10:48:44]1012 (4) - 26.10.2024 04:31 [10:48:44]1206 (1) - 0 [10:48:44]OFD Sender: Remove packet 75087 [10:48:44]ProducePacketName [10:48:44]name=ofd_packets/00075087 [10:48:44]NVStorageDeleteData [10:48:44]Write to MH i2c: 01 00 00 D2 28 FA [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 A6 0C B3 [10:48:44]RasterBufferAndPrint [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]written 0, free lines is 3246 [10:48:44]MH_Cut [10:48:44]Write to MH i2c: D1 01 00 D9 28 01 D3 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 01 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 01 00 D9 28 00 D2 [10:48:44]Write to MH i2c: 01 00 00 DA 28 02 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]OFD Sender: No OFD packet to send [10:48:45]*** Cut start [10:48:45]*** Partial cut [10:48:45]*** CUTSNS_PIN = 1 [10:48:45]*** CUTSNS_PIN = 0 [10:48:45]*** Brake cut motor [10:48:46]Read from MH i2c: 01 [10:48:46]MH_I2C_Read... [10:48:46]*** Stop cut motor [10:48:46]*** Cut end [10:48:46]Read from MH i2c: 01 07 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [10:48:46]process_action close_receipt done [10:48:46]requested_data is exist [10:48:46]produce_requested_data [10:48:46]requested_item fm.sn is exist - process it [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 11 00 00 [10:48:46]Write to MH i2c: E2 08 00 DB 28 80 11 00 00 00 00 00 00 7D [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 DB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D5 [10:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:48:46]wFMCommunicate OK [10:48:46]requested_item fd.num is exist - process it [10:48:46]SAM_PROTO_GetFieldsCounters [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 00 00 [10:48:46]Write to MH i2c: E2 08 00 DC 28 80 13 00 00 00 00 00 00 80 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 62 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 62 00 DC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4F 25 01 00 0E 04 04 00 00 02 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 0B [10:48:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 4F 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetFieldsCounters done [10:48:46]requested_item shift.num is exist - process it [10:48:46]requested_item shift.opened is exist - process it [10:48:46]req_shift_opened [10:48:46]FM_GetShiftState [10:48:46]SAM_PROTO_GetShiftState [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 01 00 [10:48:46]Write to MH i2c: E2 08 00 DD 28 80 13 01 00 00 00 00 00 82 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:46]Read from MH i2c: E2 0E 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 DD 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9D [10:48:46]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetShiftState done [10:48:46]FM_GetShiftState done [10:48:46]req_shift_opened done [10:48:46]requested_item shift.open_date is exist - process it [10:48:46]req_shift_open_date [10:48:46]req_shift_open_date done [10:48:46]produce_requested_data done [10:48:46]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75087,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:48:46]process_action_free close_receipt [10:48:46]json_value_free [10:48:46]json_value_free done [10:48:46]process_json_proto returns [10:48:46]Send response to host [10:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75087,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:48:46]free response buf [10:48:46]execute_script done [10:48:46]execute_script returns [10:48:46]free content buf [10:48:46]Sock 9.Close socket [10:48:46]Sock 9.Thread stoped [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:41]accept exits with 8 [10:54:41]New connection [10:54:41]New thread 3066924388 created [10:54:41]Thread 3066781028 joined [10:54:41]Waiting for new connection... [10:54:41] Sock 8.Parse request [10:54:41]Sock 8.Check first char [10:54:41]Sock 8.First char is OK [10:54:41]request: POST /json_proto HTTP/1.0 [10:54:41]Method: POST [10:54:41]URL: /json_proto [10:54:41]Method is POST - this is cgi request [10:54:41]url: /json_proto [10:54:41]query_string will be loaded in cgi processing [10:54:41]execute_cgi json_proto POST (null) [10:54:41]execute_cgi path=json_proto method=POST [10:54:41]POST find Content-Length [10:54:41]Host: 172.17.39.131:8080 [10:54:41]Content-Length: 766 [10:54:41]Content-Type: application/json [10:54:41] [10:54:41]POST finish read [10:54:41]Found Content-Length = 766 [10:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:54:41]execute_script... [10:54: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)191060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [10:54:41]POST & json_proto [10:54:41]process_json_proto [10:54:41]json parsed OK: [10:54:41]protocol is kg_v1.0 [10:54:41]action value=close_receipt [10:54:41]process_action close_receipt [10:54:41]cmd_close_receipt [10:54:41]MH_GetDate [10:54:41]Write to MH i2c: F0 00 00 DE 28 F5 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: F0 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: F0 09 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: F0 09 00 DE 28 00 75 CA 1C 67 86 57 24 65 26 [10:54:41]GetLastDocTimeStamp 1729939726 [10:54:41]current date 1729940085 [10:54:41]FM_GetShiftState [10:54:41]SAM_PROTO_GetShiftState [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 13 01 00 [10:54:41]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9F [10:54:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_GetShiftState done [10:54:41]FM_GetShiftState done [10:54:41]opened in 1729902166 [10:54:41]opened+sec_in_day 1729988566 [10:54:41]quantity*price = 20003 [10:54:41]sum+1 = 20004 [10:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 80 26.10.2024 10:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75088 ФПД: 24377769477617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105445&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75088&fm=24377769477617&tin=02508201610067®Number=0000000000091691&sum=20003 [10:54:42]StoreToDocumentArchive [10:54:42]shift 512 fd 75088 [10:54:42]save to /storage/0512/doc_00075088 [10:54:42]save last doc name /storage/0512/doc_00075088 to /storage/kkm_last_doc_name [10:54:42]save OK [10:54:42]Clear old archive folders... [10:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:42]tlvbuf is 00836710 [10:54:42]SAM_PROTO_ClearQueue [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 09 00 00 [10:54:42]Write to MH i2c: E2 08 00 EC 28 80 09 00 00 00 00 00 00 86 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [10:54:42]RAPDU: 90 00 [10:54:42]wFMCommunicate OK [10:54:42]SAM_PROTO_ClearQueue done [10:54:42]KKMCreateOFDPacket [10:54:42]OFDProtocolAddRootSTLVToBuf [10:54:42]FM_MakeSignedData [10:54:42]FM_MakeSignedData [10:54:42]SAM_PROTO_SignData [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 0D 01 02 [10:54:42]Write to MH i2c: E2 08 00 ED 28 80 0D 01 02 00 00 00 00 8E [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [10:54:42]RAPDU: 90 00 [10:54:42]wFMCommunicate OK [10:54:42]wFMCommunicate request_size=255 [10:54:42]MH_SAM_APDU [10:54: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 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 50 00 00 00 F4 03 04 00 75 CA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 50 25 01 00 35 04 06 00 16 [10:54:42]Write to MH i2c: E2 02 01 EE 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 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 50 00 00 00 F4 03 04 00 75 CA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 50 25 01 00 35 04 06 00 16 00 00 8B [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [10:54:42]RAPDU: 90 00 [10:54:42]wFMCommunicate OK [10:54:42]wFMCommunicate request_size=10 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 0D 02 02 05 2B E4 4A 45 F1 [10:54:42]Write to MH i2c: E2 0D 00 EF 28 80 0D 02 02 05 00 2B E4 4A 45 F1 00 00 2A [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [10:54:42]RAPDU: 90 00 [10:54:42]wFMCommunicate OK [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 0D 03 02 [10:54:42]Write to MH i2c: E2 08 00 F0 28 80 0D 03 02 00 00 00 00 93 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 0B 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 0B 00 F0 28 00 9B 55 3F 50 95 9B 5A 35 90 00 D2 [10:54:42]RAPDU: 9B 55 3F 50 95 9B 5A 35 90 00 [10:54:42]wFMCommunicate OK [10:54:42]SAM_PROTO_SignData done [10:54:42]FM_MakeSignedData done [10:54:42]CreateOFDProtocolMessage [10:54:42]wFMCommunicate request_size=4 [10:54:42]MH_SAM_APDU [10:54:42]CAPDU: 80 11 00 00 [10:54:42]Write to MH i2c: E2 08 00 F1 28 80 11 00 00 00 00 00 00 93 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:42]Read from MH i2c: E2 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 17 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: E2 17 00 F1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EB [10:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:54:42]wFMCommunicate OK [10:54:42]CreateOFDProtocolMessage done [10:54:42]OFDSenderStorePacket 75088 [10:54:42]StoreOFDPacket docnum=75088 [10:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3C 6C 07 01 E1 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 75 CA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 50 25 01 00 35 04 06 00 16 2B E4 4A 45 F1 9B 55 3F 50 95 9B 5A 35 [10:54:42]CheckFolder [10:54:42]dirname=/storage/ofd_packets [10:54:42]CheckFolder done [10:54:42]ProducePacketName [10:54:42]name=ofd_packets/00075088 [10:54:42]NVStorageSaveData ofd_packets/00075088 [10:54:42]File name is /storage/ofd_packets/00075088 [10:54:42]Write 301 bytes [10:54:42]NVStorageSaveData done [10:54:42]OFDSenderStorePacket done [10:54:42]KKMCreateOFDPacket done [10:54:42]NVStorageSaveData kkm_last_timestamp [10:54:42]File name is /storage/kkm_last_timestamp [10:54:42]Write 4 bytes [10:54:42]NVStorageSaveData done [10:54:42]ExternCall_PrintAddStr [10:54:42]wPrintStart [10:54:42]Write to MH i2c: 01 00 00 F2 28 1A [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 07 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 07 00 F2 28 00 00 00 00 00 FF 0F 2F [10:54:42]RasterBufferAndPrint [10:54:42]line Счет N : (1)191060 [10:54:42]line ИНН: 02508201610067 [10:54:42]line Контрольно-Кассовый Чек [10:54:42]line ПРОДАЖА [10:54:42]line ТРК (МРК, ГНК) : 21 [10:54:42]line Товар: 2710124130 [10:54:42]line Аи-92-К-5 [10:54:42]line 2.990 * 66.90 [10:54:42]line = 200.03 [10:54:42]line НДС 12% НСП 1% [10:54:42]line > о реализуемом товаре [10:54:42]line ИТОГО: 200.03 [10:54:42]line НСП 1% : 1.77 [10:54:42]line НДС 12% : 21.24 [10:54:42]line Наличными: 0.00 [10:54:42]line Безнал.: 200.03 [10:54:42]line Место: АЗС № 142 "Партнер Нефть" [10:54:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [10:54:42]line СНО: Общий режим [10:54:42]line Чек 80 26.10.2024 10:54 [10:54:42]line Смена: 512 ФФД: 1.0 [10:54:42]line ЗНМ: 0300000089 [10:54:42]line РНМ: 0000000000091691 [10:54:42]line Версия ККМ: 001 [10:54:42]line Платежная система: Mbank [10:54:42]line ФМ: 0000000000871795 [10:54:42]line ФД: 75088 [10:54:42]line ФПД: 24377769477617 [10:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105445&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75088&fm=24377769477617&tin=02508201610067®Number=0000000000091691&sum=20003 [10:54:42]written 0, free lines is 4095 [10:54:42]OFD Sender: Processing packet 75088 [packets to send 13, broken 12] [10:54:42]ProducePacketName [10:54:42]name=ofd_packets/00075088 [10:54:42]OFD Sender: To server: pG, [10:54:42]CommunicateWithHost lk.salyk.kg:30040 [10:54:42]ConnectInit lk.salyk.kg [10:54:43]Connected sock=10 [10:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 3C 6C 07 01 E1 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 75 CA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 50 25 01 00 35 04 06 00 16 2B E4 4A 45 F1 9B 55 3F 50 95 9B 5A 35 [10:54:43]Write to MH i2c: 01 00 00 1B 29 44 [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: 01 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: 01 07 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: 01 07 00 1B 29 00 00 00 00 00 D4 0C 2B [10:54:43]RasterBufferAndPrint [10:54:43]line [10:54:43]line [10:54:43]line [10:54:43]line [10:54:43]line [10:54:43]written 0, free lines is 3291 [10:54:43]MH_Cut [10:54:43]Write to MH i2c: D1 01 00 22 29 01 1D [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: D1 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: D1 01 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: D1 01 00 22 29 00 1C [10:54:43]Write to MH i2c: 01 00 00 23 29 4C [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 52 37 47 00 9E 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 38 37 31 37 39 35 10 04 04 00 50 25 01 00 F4 03 04 00 F1 71 1C 67 B6 04 01 00 00 F6 61 9F A9 9A 5C C9 01 [10:54:43]CommunicateWithHost err = 0 [10:54:43]CheckOFDResponse [10:54:43]1017 (14) - 77093643461234 [10:54:43]1041 (16) - 0000000000871795 [10:54:43]1040 (4) - 75088 [10:54:43]1012 (4) - 26.10.2024 04:37 [10:54:43]1206 (1) - 0 [10:54:43]OFD Sender: Remove packet 75088 [10:54:43]ProducePacketName [10:54:43]name=ofd_packets/00075088 [10:54:43]NVStorageDeleteData [10:54:44]OFD Sender: No OFD packet to send [10:54:44]*** Cut start [10:54:44]*** Partial cut [10:54:44]*** CUTSNS_PIN = 1 [10:54:44]*** CUTSNS_PIN = 0 [10:54:44]*** Brake cut motor [10:54:44]Read from MH i2c: 01 [10:54:44]MH_I2C_Read... [10:54:44]*** Stop cut motor [10:54:44]*** Cut end [10:54:44]Read from MH i2c: 01 07 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: 01 07 00 23 29 00 00 00 00 00 FF 0F 61 [10:54:44]process_action close_receipt done [10:54:44]requested_data is exist [10:54:44]produce_requested_data [10:54:44]requested_item fm.sn is exist - process it [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 11 00 00 [10:54:44]Write to MH i2c: E2 08 00 24 29 80 11 00 00 00 00 00 00 C7 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 17 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 17 00 24 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1F [10:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [10:54:44]wFMCommunicate OK [10:54:44]requested_item fd.num is exist - process it [10:54:44]SAM_PROTO_GetFieldsCounters [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 13 00 00 [10:54:44]Write to MH i2c: E2 08 00 25 29 80 13 00 00 00 00 00 00 CA [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 62 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 62 00 25 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 50 25 01 00 0E 04 04 00 00 02 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 59 [10:54:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 50 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_GetFieldsCounters done [10:54:45]requested_item shift.num is exist - process it [10:54:45]requested_item shift.opened is exist - process it [10:54:45]req_shift_opened [10:54:45]FM_GetShiftState [10:54:45]SAM_PROTO_GetShiftState [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 13 01 00 [10:54:45]Write to MH i2c: E2 08 00 26 29 80 13 01 00 00 00 00 00 CC [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0E 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0E 00 26 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E7 [10:54:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_GetShiftState done [10:54:45]FM_GetShiftState done [10:54:45]req_shift_opened done [10:54:45]requested_item shift.open_date is exist - process it [10:54:45]req_shift_open_date [10:54:45]req_shift_open_date done [10:54:45]produce_requested_data done [10:54:45]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75088,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [10:54:45]process_action_free close_receipt [10:54:45]json_value_free [10:54:45]json_value_free done [10:54:45]process_json_proto returns [10:54:45]Send response to host [10:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75088,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [10:54:45]free response buf [10:54:45]execute_script done [10:54:45]execute_script returns [10:54:45]free content buf [10:54:45]Sock 8.Close socket [10:54:45]Sock 8.Thread stoped [10:54:49]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:53]accept exits with 9 [11:01:53]New connection [11:01:53]New thread 3066781028 created [11:01:53]Thread 3066924388 joined [11:01:53]Waiting for new connection... [11:01:53] Sock 9.Parse request [11:01:53]Sock 9.Check first char [11:01:53]Sock 9.First char is OK [11:01:53]request: POST /json_proto HTTP/1.0 [11:01:53]Method: POST [11:01:53]URL: /json_proto [11:01:53]Method is POST - this is cgi request [11:01:53]url: /json_proto [11:01:53]query_string will be loaded in cgi processing [11:01:53]execute_cgi json_proto POST (null) [11:01:53]execute_cgi path=json_proto method=POST [11:01:53]POST find Content-Length [11:01:53]Host: 172.17.39.131:8080 [11:01:53]Content-Length: 797 [11:01:53]Content-Type: application/json [11:01:53] [11:01:53]POST finish read [11:01:53]Found Content-Length = 797 [11:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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\u000A4348494", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:53]execute_script... [11: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)191061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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\u000A4348494", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:53]POST & json_proto [11:01:53]process_json_proto [11:01:53]json parsed OK: [11:01:53]protocol is kg_v1.0 [11:01:53]action value=close_receipt [11:01:53]process_action close_receipt [11:01:53]cmd_close_receipt [11:01:53]MH_GetDate [11:01:53]Write to MH i2c: F0 00 00 27 29 3F [11:01:53]Write i2c OK [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: F0 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: F0 09 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: F0 09 00 27 29 00 25 CC 1C 67 86 57 24 65 22 [11:01:53]GetLastDocTimeStamp 1729940085 [11:01:53]current date 1729940517 [11:01:53]FM_GetShiftState [11:01:53]SAM_PROTO_GetShiftState [11:01:53]wFMCommunicate request_size=4 [11:01:53]MH_SAM_APDU [11:01:53]CAPDU: 80 13 01 00 [11:01:53]Write to MH i2c: E2 08 00 28 29 80 13 01 00 00 00 00 00 CE [11:01:53]Write i2c OK [11:01:53]MH_I2C_Read... [11:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:53]Read from MH i2c: E2 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 0E 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 0E 00 28 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E9 [11:01:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:01:53]wFMCommunicate OK [11:01:53]SAM_PROTO_GetShiftState done [11:01:53]FM_GetShiftState done [11:01:53]opened in 1729902166 [11:01:53]opened+sec_in_day 1729988566 [11:01:53]quantity*price = 0 [11:01:53]sum+1 = 1 [11:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 81 26.10.2024 11:01 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4348494 ФМ: 0000000000871795 ФД: 75089 ФПД: 42018550245183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110157&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75089&fm=42018550245183&tin=02508201610067®Number=0000000000091691&sum=0 [11:01:54]StoreToDocumentArchive [11:01:54]shift 512 fd 75089 [11:01:54]save to /storage/0512/doc_00075089 [11:01:54]save last doc name /storage/0512/doc_00075089 to /storage/kkm_last_doc_name [11:01:54]save OK [11:01:54]Clear old archive folders... [11:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:54]tlvbuf is 007FD580 [11:01:54]SAM_PROTO_ClearQueue [11:01:54]wFMCommunicate request_size=4 [11:01:54]MH_SAM_APDU [11:01:54]CAPDU: 80 09 00 00 [11:01:54]Write to MH i2c: E2 08 00 35 29 80 09 00 00 00 00 00 00 D0 [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:54]OFD Sender: No OFD packet to send [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 35 29 00 90 00 D2 [11:01:54]RAPDU: 90 00 [11:01:54]wFMCommunicate OK [11:01:54]SAM_PROTO_ClearQueue done [11:01:54]KKMCreateOFDPacket [11:01:54]OFDProtocolAddRootSTLVToBuf [11:01:54]FM_MakeSignedData [11:01:54]FM_MakeSignedData [11:01:54]SAM_PROTO_SignData [11:01:54]wFMCommunicate request_size=4 [11:01:54]MH_SAM_APDU [11:01:54]CAPDU: 80 0D 01 02 [11:01:54]Write to MH i2c: E2 08 00 36 29 80 0D 01 02 00 00 00 00 D8 [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [11:01:54]RAPDU: 90 00 [11:01:54]wFMCommunicate OK [11:01:54]wFMCommunicate request_size=255 [11:01:54]MH_SAM_APDU [11:01: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 34 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 51 00 00 00 F4 03 04 00 25 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 51 25 01 00 35 04 06 00 26 37 34 C2 [11:01:54]Write to MH i2c: E2 02 01 37 29 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 34 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 51 00 00 00 F4 03 04 00 25 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 51 25 01 00 35 04 06 00 26 37 34 C2 00 00 39 [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [11:01:54]RAPDU: 90 00 [11:01:54]wFMCommunicate OK [11:01:54]wFMCommunicate request_size=7 [11:01:54]MH_SAM_APDU [11:01:54]CAPDU: 80 0D 02 02 02 E7 3F [11:01:54]Write to MH i2c: E2 0A 00 38 29 80 0D 02 02 02 00 E7 3F 00 00 05 [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [11:01:54]RAPDU: 90 00 [11:01:54]wFMCommunicate OK [11:01:54]wFMCommunicate request_size=4 [11:01:54]MH_SAM_APDU [11:01:54]CAPDU: 80 0D 03 02 [11:01:54]Write to MH i2c: E2 08 00 39 29 80 0D 03 02 00 00 00 00 DD [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 0B 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 0B 00 39 29 00 4E C0 93 80 BE 85 BB 2C 90 00 29 [11:01:54]RAPDU: 4E C0 93 80 BE 85 BB 2C 90 00 [11:01:54]wFMCommunicate OK [11:01:54]SAM_PROTO_SignData done [11:01:54]FM_MakeSignedData done [11:01:54]CreateOFDProtocolMessage [11:01:54]wFMCommunicate request_size=4 [11:01:54]MH_SAM_APDU [11:01:54]CAPDU: 80 11 00 00 [11:01:54]Write to MH i2c: E2 08 00 3A 29 80 11 00 00 00 00 00 00 DD [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:54]Read from MH i2c: E2 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 17 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: E2 17 00 3A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 35 [11:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:01:54]wFMCommunicate OK [11:01:54]CreateOFDProtocolMessage done [11:01:54]OFDSenderStorePacket 75089 [11:01:54]StoreOFDPacket docnum=75089 [11:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 45 7F 04 01 E5 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 34 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 51 00 00 00 F4 03 04 00 25 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 51 25 01 00 35 04 06 00 26 37 34 C2 E7 3F 4E C0 93 80 BE 85 BB 2C [11:01:54]CheckFolder [11:01:54]dirname=/storage/ofd_packets [11:01:54]CheckFolder done [11:01:54]ProducePacketName [11:01:54]name=ofd_packets/00075089 [11:01:54]NVStorageSaveData ofd_packets/00075089 [11:01:54]File name is /storage/ofd_packets/00075089 [11:01:54]Write 298 bytes [11:01:54]NVStorageSaveData done [11:01:54]OFDSenderStorePacket done [11:01:54]KKMCreateOFDPacket done [11:01:54]NVStorageSaveData kkm_last_timestamp [11:01:54]File name is /storage/kkm_last_timestamp [11:01:54]Write 4 bytes [11:01:54]NVStorageSaveData done [11:01:54]ExternCall_PrintAddStr [11:01:54]wPrintStart [11:01:54]Write to MH i2c: 01 00 00 3B 29 64 [11:01:54]Write i2c OK [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: 01 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: 01 07 00 [11:01:54]MH_I2C_Read... [11:01:54]Read from MH i2c: 01 07 00 3B 29 00 00 00 00 00 FF 0F 79 [11:01:54]RasterBufferAndPrint [11:01:54]line Счет N : (1)191061 [11:01:54]line ИНН: 02508201610067 [11:01:54]line Контрольно-Кассовый Чек [11:01:54]line ПРОДАЖА [11:01:54]line ТРК (МРК, ГНК) : 31 [11:01:54]line Товар: 2710194210 [11:01:54]line ДТ-К-4 [11:01:54]line 20.000 * 0.00 [11:01:54]line = 0.00 [11:01:54]line НДС 12% НСП 1% [11:01:54]line > о реализуемом товаре [11:01:54]line ИТОГО: 0.00 [11:01:54]line НСП 1% : 0.00 [11:01:54]line НДС 12% : 0.00 [11:01:54]line Наличными: 0.00 [11:01:54]line Безнал.: 0.00 [11:01:54]line Место: АЗС № 142 "Партнер Нефть" [11:01:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:01:54]line СНО: Общий режим [11:01:54]line Чек 81 26.10.2024 11:01 [11:01:54]line Смена: 512 ФФД: 1.0 [11:01:54]line ЗНМ: 0300000089 [11:01:54]line РНМ: 0000000000091691 [11:01:54]line Версия ККМ: 001 [11:01:54]line Талоны: Топливные Талоны [11:01:54]line 4348494 [11:01:54]line ФМ: 0000000000871795 [11:01:54]line ФД: 75089 [11:01:54]line ФПД: 42018550245183 [11:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110157&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75089&fm=42018550245183&tin=02508201610067®Number=0000000000091691&sum=0 [11:01:55]OFD Sender: Processing packet 75089 [packets to send 13, broken 12] [11:01:55]ProducePacketName [11:01:55]name=ofd_packets/00075089 [11:01:55]OFD Sender: To server: pG, [11:01:55]CommunicateWithHost lk.salyk.kg:30040 [11:01:55]ConnectInit lk.salyk.kg [11:01:55]written 0, free lines is 4095 [11:01:55]Connected sock=10 [11:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 45 7F 04 01 E5 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 34 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 51 00 00 00 F4 03 04 00 25 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 51 25 01 00 35 04 06 00 26 37 34 C2 E7 3F 4E C0 93 80 BE 85 BB 2C [11:01:55]Write to MH i2c: 01 00 00 65 29 8E [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: 01 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: 01 07 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: 01 07 00 65 29 00 00 00 00 00 B6 0C 57 [11:01:55]RasterBufferAndPrint [11:01:55]line [11:01:55]line [11:01:55]line [11:01:55]line [11:01:55]line [11:01:55]written 0, free lines is 3260 [11:01:55]MH_Cut [11:01:55]Write to MH i2c: D1 01 00 6C 29 01 67 [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: D1 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: D1 01 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: D1 01 00 6C 29 00 66 [11:01:55]Write to MH i2c: 01 00 00 6D 29 96 [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B1 9A 47 00 8E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 51 25 01 00 F4 03 04 00 A2 73 1C 67 B6 04 01 00 00 DE E4 4B 40 7A 15 4D 48 [11:01:55]CommunicateWithHost err = 0 [11:01:55]CheckOFDResponse [11:01:55]1017 (14) - 77093643461234 [11:01:55]1041 (16) - 0000000000871795 [11:01:55]1040 (4) - 75089 [11:01:55]1012 (4) - 26.10.2024 04:44 [11:01:55]1206 (1) - 0 [11:01:55]OFD Sender: Remove packet 75089 [11:01:55]ProducePacketName [11:01:55]name=ofd_packets/00075089 [11:01:55]NVStorageDeleteData [11:01:56]OFD Sender: No OFD packet to send [11:01:56]*** Cut start [11:01:56]*** Partial cut [11:01:56]*** CUTSNS_PIN = 1 [11:01:56]*** CUTSNS_PIN = 0 [11:01:56]*** Brake cut motor [11:01:57]Read from MH i2c: 01 [11:01:57]MH_I2C_Read... [11:01:57]*** Stop cut motor [11:01:57]*** Cut end [11:01:57]Read from MH i2c: 01 07 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 6D 29 00 00 00 00 00 FF 0F AB [11:01:57]process_action close_receipt done [11:01:57]requested_data is exist [11:01:57]produce_requested_data [11:01:57]requested_item fm.sn is exist - process it [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 11 00 00 [11:01:57]Write to MH i2c: E2 08 00 6E 29 80 11 00 00 00 00 00 00 11 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 6E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 69 [11:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:01:57]wFMCommunicate OK [11:01:57]requested_item fd.num is exist - process it [11:01:57]SAM_PROTO_GetFieldsCounters [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 13 00 00 [11:01:57]Write to MH i2c: E2 08 00 6F 29 80 13 00 00 00 00 00 00 14 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 62 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 62 00 6F 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 51 25 01 00 0E 04 04 00 00 02 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 A7 [11:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 51 25 01 00 0E 04 04 00 00 02 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 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_GetFieldsCounters done [11:01:57]requested_item shift.num is exist - process it [11:01:57]requested_item shift.opened is exist - process it [11:01:57]req_shift_opened [11:01:57]FM_GetShiftState [11:01:57]SAM_PROTO_GetShiftState [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 13 01 00 [11:01:57]Write to MH i2c: E2 08 00 70 29 80 13 01 00 00 00 00 00 16 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0E 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0E 00 70 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 31 [11:01:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_GetShiftState done [11:01:57]FM_GetShiftState done [11:01:57]req_shift_opened done [11:01:57]requested_item shift.open_date is exist - process it [11:01:57]req_shift_open_date [11:01:57]req_shift_open_date done [11:01:57]produce_requested_data done [11:01:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75089,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:01:57]process_action_free close_receipt [11:01:57]json_value_free [11:01:57]json_value_free done [11:01:57]process_json_proto returns [11:01:57]Send response to host [11:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75089,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:01:57]free response buf [11:01:57]execute_script done [11:01:57]execute_script returns [11:01:57]free content buf [11:01:57]Sock 9.Close socket [11:01:57]Sock 9.Thread stoped [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:22]int [11:02:22]Write to MH i2c: 01 00 00 71 29 9A [11:02:22]*** FLAG_PRN_KEY set [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 71 29 00 08 00 00 00 FF 0F B7 [11:02:22]state=0 [11:02:22]Key pressed [11:02:22]Feed [11:02:22]Write to MH i2c: D8 00 00 72 29 72 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D8 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D8 01 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D8 01 00 72 29 00 73 [11:02:22]int [11:02:22]Write to MH i2c: 01 00 00 73 29 9C [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 73 29 00 48 00 00 00 3C 00 27 [11:02:22]state=2 [11:02:22]Key pressed [11:02:23]int [11:02:23]Write to MH i2c: 01 00 00 74 29 9D [11:02:23]*** FLAG_PRN_KEY reset [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 07 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 F7 0F AA [11:02:23]state=2 [11:02:23]Stop feed [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:55]accept exits with 8 [11:03:55]New connection [11:03:55]New thread 3066924388 created [11:03:55]Thread 3066781028 joined [11:03:55]Waiting for new connection... [11:03:55] Sock 8.Parse request [11:03:55]Sock 8.Check first char [11:03:55]Sock 8.First char is OK [11:03:55]request: POST /json_proto HTTP/1.0 [11:03:55]Method: POST [11:03:55]URL: /json_proto [11:03:55]Method is POST - this is cgi request [11:03:55]url: /json_proto [11:03:55]query_string will be loaded in cgi processing [11:03:55]execute_cgi json_proto POST (null) [11:03:55]execute_cgi path=json_proto method=POST [11:03:55]POST find Content-Length [11:03:55]Host: 172.17.39.131:8080 [11:03:55]Content-Length: 682 [11:03:55]Content-Type: application/json [11:03:55] [11:03:55]POST finish read [11:03:55]Found Content-Length = 682 [11:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:03:55]execute_script... [11:03: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)191062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:03:55]POST & json_proto [11:03:55]process_json_proto [11:03:55]json parsed OK: [11:03:55]protocol is kg_v1.0 [11:03:55]action value=close_receipt [11:03:55]process_action close_receipt [11:03:55]cmd_close_receipt [11:03:55]MH_GetDate [11:03:55]Write to MH i2c: F0 00 00 75 29 8D [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 09 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 09 00 75 29 00 A0 CC 1C 67 86 57 24 65 EB [11:03:55]GetLastDocTimeStamp 1729940517 [11:03:55]current date 1729940640 [11:03:55]FM_GetShiftState [11:03:55]SAM_PROTO_GetShiftState [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 13 01 00 [11:03:55]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 37 [11:03:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_GetShiftState done [11:03:55]FM_GetShiftState done [11:03:55]opened in 1729902166 [11:03:55]opened+sec_in_day 1729988566 [11:03:55]quantity*price = 150056 [11:03:55]sum+1 = 150058 [11:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 82 26.10.2024 11:04 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75090 ФПД: 247076232243454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110400&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75090&fm=247076232243454&tin=02508201610067®Number=0000000000091691&sum=150000 [11:03:56]StoreToDocumentArchive [11:03:56]shift 512 fd 75090 [11:03:56]save to /storage/0512/doc_00075090 [11:03:56]save last doc name /storage/0512/doc_00075090 to /storage/kkm_last_doc_name [11:03:56]save OK [11:03:56]Clear old archive folders... [11:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:56]tlvbuf is 007FB710 [11:03:56]SAM_PROTO_ClearQueue [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 09 00 00 [11:03:56]Write to MH i2c: E2 08 00 83 29 80 09 00 00 00 00 00 00 1E [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_ClearQueue done [11:03:56]KKMCreateOFDPacket [11:03:56]OFDProtocolAddRootSTLVToBuf [11:03:56]FM_MakeSignedData [11:03:56]FM_MakeSignedData [11:03:56]SAM_PROTO_SignData [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 0D 01 02 [11:03:56]Write to MH i2c: E2 08 00 84 29 80 0D 01 02 00 00 00 00 26 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]wFMCommunicate request_size=255 [11:03:56]MH_SAM_APDU [11:03: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 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 52 00 00 00 F4 03 04 00 A0 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 52 25 01 00 35 04 06 00 E0 [11:03:56]Write to MH i2c: E2 02 01 85 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 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 52 00 00 00 F4 03 04 00 A0 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 52 25 01 00 35 04 06 00 E0 00 00 9F [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [11:03:57]RAPDU: 90 00 [11:03:57]wFMCommunicate OK [11:03:57]wFMCommunicate request_size=10 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 0D 02 02 05 B6 EB 0E 28 FE [11:03:57]Write to MH i2c: E2 0D 00 86 29 80 0D 02 02 05 00 B6 EB 0E 28 FE 00 00 08 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [11:03:57]RAPDU: 90 00 [11:03:57]wFMCommunicate OK [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 0D 03 02 [11:03:57]Write to MH i2c: E2 08 00 87 29 80 0D 03 02 00 00 00 00 2B [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 0B 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 0B 00 87 29 00 2E 8B 32 E5 C8 C0 48 F1 90 00 BD [11:03:57]RAPDU: 2E 8B 32 E5 C8 C0 48 F1 90 00 [11:03:57]wFMCommunicate OK [11:03:57]SAM_PROTO_SignData done [11:03:57]FM_MakeSignedData done [11:03:57]CreateOFDProtocolMessage [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 11 00 00 [11:03:57]Write to MH i2c: E2 08 00 88 29 80 11 00 00 00 00 00 00 2B [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 17 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 17 00 88 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [11:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:03:57]wFMCommunicate OK [11:03:57]CreateOFDProtocolMessage done [11:03:57]OFDSenderStorePacket 75090 [11:03:57]StoreOFDPacket docnum=75090 [11:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E4 4E 07 01 F3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 A0 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 52 25 01 00 35 04 06 00 E0 B6 EB 0E 28 FE 2E 8B 32 E5 C8 C0 48 F1 [11:03:57]CheckFolder [11:03:57]dirname=/storage/ofd_packets [11:03:57]CheckFolder done [11:03:57]ProducePacketName [11:03:57]name=ofd_packets/00075090 [11:03:57]NVStorageSaveData ofd_packets/00075090 [11:03:57]File name is /storage/ofd_packets/00075090 [11:03:57]Write 301 bytes [11:03:57]NVStorageSaveData done [11:03:57]OFDSenderStorePacket done [11:03:57]KKMCreateOFDPacket done [11:03:57]NVStorageSaveData kkm_last_timestamp [11:03:57]File name is /storage/kkm_last_timestamp [11:03:57]Write 4 bytes [11:03:57]NVStorageSaveData done [11:03:57]ExternCall_PrintAddStr [11:03:57]wPrintStart [11:03:57]Write to MH i2c: 01 00 00 89 29 B2 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 07 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 07 00 89 29 00 00 00 00 00 FF 0F C7 [11:03:57]RasterBufferAndPrint [11:03:57]line Счет N : (1)191062 [11:03:57]line ИНН: 02508201610067 [11:03:57]line Контрольно-Кассовый Чек [11:03:57]line ПРОДАЖА [11:03:57]line ТРК (МРК, ГНК) : 21 [11:03:57]line Товар: 2710124130 [11:03:57]line Аи-92-К-5 [11:03:57]line 22.430 * 66.90 [11:03:57]line = 1500.57 [11:03:57]line НДС 12% НСП 1% [11:03:57]line > о реализуемом товаре [11:03:57]line ОКРУГЛЕНИЕ: -0.57 [11:03:57]line ИТОГО: 1500.00 [11:03:57]line Внесено: 1500.00 [11:03:57]line СДАЧА: 0.00 [11:03:57]line НСП 1% : 13.28 [11:03:57]line НДС 12% : 159.35 [11:03:57]line Наличными: 1500.00 [11:03:57]line Безнал.: 0.00 [11:03:57]line Место: АЗС № 142 "Партнер Нефть" [11:03:57]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:03:57]line СНО: Общий режим [11:03:57]line Чек 82 26.10.2024 11:04 [11:03:57]line Смена: 512 ФФД: 1.0 [11:03:57]line ЗНМ: 0300000089 [11:03:57]line РНМ: 0000000000091691 [11:03:57]line Версия ККМ: 001 [11:03:57]line ФМ: 0000000000871795 [11:03:57]line ФД: 75090 [11:03:57]line ФПД: 247076232243454 [11:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110400&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75090&fm=247076232243454&tin=02508201610067®Number=0000000000091691&sum=150000 [11:03:57]OFD Sender: Processing packet 75090 [packets to send 13, broken 12] [11:03:57]ProducePacketName [11:03:57]name=ofd_packets/00075090 [11:03:57]OFD Sender: To server: pG, [11:03:57]CommunicateWithHost lk.salyk.kg:30040 [11:03:57]ConnectInit lk.salyk.kg [11:03:57]written 0, free lines is 4095 [11:03:57]Connected sock=10 [11:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E4 4E 07 01 F3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 A0 CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 52 25 01 00 35 04 06 00 E0 B6 EB 0E 28 FE 2E 8B 32 E5 C8 C0 48 F1 [11:03:58]Write to MH i2c: 01 00 00 B4 29 DD [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 07 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 A5 0C 95 [11:03:58]RasterBufferAndPrint [11:03:58]line [11:03:58]line [11:03:58]line [11:03:58]line [11:03:58]line [11:03:58]written 0, free lines is 3242 [11:03:58]MH_Cut [11:03:58]Write to MH i2c: D1 01 00 BB 29 01 B6 [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: D1 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: D1 01 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: D1 01 00 BB 29 00 B5 [11:03:58]Write to MH i2c: 01 00 00 BC 29 E5 [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 9C F9 47 00 F9 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 52 25 01 00 F4 03 04 00 1C 74 1C 67 B6 04 01 00 00 21 E9 8A BB CA F7 83 08 [11:03:58]CommunicateWithHost err = 0 [11:03:58]CheckOFDResponse [11:03:58]1017 (14) - 77093643461234 [11:03:58]1041 (16) - 0000000000871795 [11:03:58]1040 (4) - 75090 [11:03:58]1012 (4) - 26.10.2024 04:46 [11:03:58]1206 (1) - 0 [11:03:58]OFD Sender: Remove packet 75090 [11:03:58]ProducePacketName [11:03:58]name=ofd_packets/00075090 [11:03:58]NVStorageDeleteData [11:03:58]OFD Sender: No OFD packet to send [11:03:58]*** Cut start [11:03:58]*** Partial cut [11:03:58]*** CUTSNS_PIN = 1 [11:03:59]*** CUTSNS_PIN = 0 [11:03:59]*** Brake cut motor [11:03:59]Read from MH i2c: 01 [11:03:59]MH_I2C_Read... [11:03:59]*** Stop cut motor [11:03:59]*** Cut end [11:03:59]Read from MH i2c: 01 07 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 BC 29 00 00 00 00 00 FF 0F FA [11:03:59]process_action close_receipt done [11:03:59]requested_data is exist [11:03:59]produce_requested_data [11:03:59]requested_item fm.sn is exist - process it [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 11 00 00 [11:03:59]Write to MH i2c: E2 08 00 BD 29 80 11 00 00 00 00 00 00 60 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 BD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B8 [11:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:03:59]wFMCommunicate OK [11:03:59]requested_item fd.num is exist - process it [11:03:59]SAM_PROTO_GetFieldsCounters [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 00 00 [11:03:59]Write to MH i2c: E2 08 00 BE 29 80 13 00 00 00 00 00 00 63 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 BE 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 52 25 01 00 0E 04 04 00 00 02 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 FA [11:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 52 25 01 00 0E 04 04 00 00 02 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 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetFieldsCounters done [11:03:59]requested_item shift.num is exist - process it [11:03:59]requested_item shift.opened is exist - process it [11:03:59]req_shift_opened [11:03:59]FM_GetShiftState [11:03:59]SAM_PROTO_GetShiftState [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 01 00 [11:03:59]Write to MH i2c: E2 08 00 BF 29 80 13 01 00 00 00 00 00 65 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 BF 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 80 [11:03:59]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetShiftState done [11:03:59]FM_GetShiftState done [11:03:59]req_shift_opened done [11:03:59]requested_item shift.open_date is exist - process it [11:03:59]req_shift_open_date [11:03:59]req_shift_open_date done [11:03:59]produce_requested_data done [11:03:59]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75090,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:03:59]process_action_free close_receipt [11:03:59]json_value_free [11:03:59]json_value_free done [11:03:59]process_json_proto returns [11:03:59]Send response to host [11:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75090,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:03:59]free response buf [11:03:59]execute_script done [11:03:59]execute_script returns [11:03:59]free content buf [11:03:59]Sock 8.Close socket [11:03:59]Sock 8.Thread stoped [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:39]accept exits with 9 [11:04:39]New connection [11:04:39]New thread 3066781028 created [11:04:39]Thread 3066924388 joined [11:04:39]Waiting for new connection... [11:04:39] Sock 9.Parse request [11:04:39]Sock 9.Check first char [11:04:39]Sock 9.First char is OK [11:04:39]request: POST /json_proto HTTP/1.0 [11:04:39]Method: POST [11:04:39]URL: /json_proto [11:04:39]Method is POST - this is cgi request [11:04:39]url: /json_proto [11:04:39]query_string will be loaded in cgi processing [11:04:39]execute_cgi json_proto POST (null) [11:04:39]execute_cgi path=json_proto method=POST [11:04:39]POST find Content-Length [11:04:39]Host: 172.17.39.131:8080 [11:04:39]Content-Length: 677 [11:04:39]Content-Type: application/json [11:04:39] [11:04:39]POST finish read [11:04:39]Found Content-Length = 677 [11:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:04:39]execute_script... [11:04: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)191063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:04:39]POST & json_proto [11:04:39]process_json_proto [11:04:39]json parsed OK: [11:04:39]protocol is kg_v1.0 [11:04:39]action value=close_receipt [11:04:39]process_action close_receipt [11:04:39]cmd_close_receipt [11:04:39]MH_GetDate [11:04:39]Write to MH i2c: F0 00 00 C0 29 D8 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: F0 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: F0 09 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: F0 09 00 C0 29 00 CC CC 1C 67 86 57 24 65 62 [11:04:39]GetLastDocTimeStamp 1729940640 [11:04:39]current date 1729940684 [11:04:39]FM_GetShiftState [11:04:39]SAM_PROTO_GetShiftState [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 13 01 00 [11:04:39]Write to MH i2c: E2 08 00 C1 29 80 13 01 00 00 00 00 00 67 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 0E 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 0E 00 C1 29 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 82 [11:04:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:04:39]wFMCommunicate OK [11:04:39]SAM_PROTO_GetShiftState done [11:04:39]FM_GetShiftState done [11:04:39]opened in 1729902166 [11:04:39]opened+sec_in_day 1729988566 [11:04:39]quantity*price = 50041 [11:04:39]sum+1 = 50042 [11:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 83 26.10.2024 11:04 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75091 ФПД: 121063505651350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110444&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75091&fm=121063505651350&tin=02508201610067®Number=0000000000091691&sum=50000 [11:04:40]StoreToDocumentArchive [11:04:40]shift 512 fd 75091 [11:04:40]save to /storage/0512/doc_00075091 [11:04:40]save last doc name /storage/0512/doc_00075091 to /storage/kkm_last_doc_name [11:04:40]save OK [11:04:40]Clear old archive folders... [11:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:40]tlvbuf is B6F51BD0 [11:04:40]SAM_PROTO_ClearQueue [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 09 00 00 [11:04:40]Write to MH i2c: E2 08 00 CE 29 80 09 00 00 00 00 00 00 69 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 03 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [11:04:40]RAPDU: 90 00 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_ClearQueue done [11:04:40]KKMCreateOFDPacket [11:04:40]OFDProtocolAddRootSTLVToBuf [11:04:40]FM_MakeSignedData [11:04:40]FM_MakeSignedData [11:04:40]SAM_PROTO_SignData [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 0D 01 02 [11:04:40]Write to MH i2c: E2 08 00 CF 29 80 0D 01 02 00 00 00 00 71 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 03 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [11:04:40]RAPDU: 90 00 [11:04:40]wFMCommunicate OK [11:04:40]wFMCommunicate request_size=255 [11:04:40]MH_SAM_APDU [11:04: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 CC CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 53 25 01 00 35 04 06 00 6E [11:04:40]Write to MH i2c: E2 02 01 D0 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CC CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 53 25 01 00 35 04 06 00 6E 00 00 5D [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:41]Read from MH i2c: E2 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 03 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [11:04:41]RAPDU: 90 00 [11:04:41]wFMCommunicate OK [11:04:41]wFMCommunicate request_size=10 [11:04:41]MH_SAM_APDU [11:04:41]CAPDU: 80 0D 02 02 05 1B 4B 3F E6 96 [11:04:41]Write to MH i2c: E2 0D 00 D1 29 80 0D 02 02 05 00 1B 4B 3F E6 96 00 00 9F [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:41]Read from MH i2c: E2 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 03 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [11:04:41]RAPDU: 90 00 [11:04:41]wFMCommunicate OK [11:04:41]wFMCommunicate request_size=4 [11:04:41]MH_SAM_APDU [11:04:41]CAPDU: 80 0D 03 02 [11:04:41]Write to MH i2c: E2 08 00 D2 29 80 0D 03 02 00 00 00 00 76 [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:41]Read from MH i2c: E2 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 0B 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 0B 00 D2 29 00 D1 51 A0 FA 49 F3 20 0A 90 00 99 [11:04:41]RAPDU: D1 51 A0 FA 49 F3 20 0A 90 00 [11:04:41]wFMCommunicate OK [11:04:41]SAM_PROTO_SignData done [11:04:41]FM_MakeSignedData done [11:04:41]CreateOFDProtocolMessage [11:04:41]wFMCommunicate request_size=4 [11:04:41]MH_SAM_APDU [11:04:41]CAPDU: 80 11 00 00 [11:04:41]Write to MH i2c: E2 08 00 D3 29 80 11 00 00 00 00 00 00 76 [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:41]Read from MH i2c: E2 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 17 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: E2 17 00 D3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [11:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:04:41]wFMCommunicate OK [11:04:41]CreateOFDProtocolMessage done [11:04:41]OFDSenderStorePacket 75091 [11:04:41]StoreOFDPacket docnum=75091 [11:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 96 21 07 01 2B 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 CC CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 53 25 01 00 35 04 06 00 6E 1B 4B 3F E6 96 D1 51 A0 FA 49 F3 20 0A [11:04:41]CheckFolder [11:04:41]dirname=/storage/ofd_packets [11:04:41]CheckFolder done [11:04:41]ProducePacketName [11:04:41]name=ofd_packets/00075091 [11:04:41]NVStorageSaveData ofd_packets/00075091 [11:04:41]File name is /storage/ofd_packets/00075091 [11:04:41]Write 301 bytes [11:04:41]NVStorageSaveData done [11:04:41]OFDSenderStorePacket done [11:04:41]KKMCreateOFDPacket done [11:04:41]NVStorageSaveData kkm_last_timestamp [11:04:41]File name is /storage/kkm_last_timestamp [11:04:41]Write 4 bytes [11:04:41]NVStorageSaveData done [11:04:41]ExternCall_PrintAddStr [11:04:41]wPrintStart [11:04:41]Write to MH i2c: 01 00 00 D4 29 FD [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 07 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 07 00 D4 29 00 00 00 00 00 FF 0F 12 [11:04:41]RasterBufferAndPrint [11:04:41]line Счет N : (1)191063 [11:04:41]line ИНН: 02508201610067 [11:04:41]line Контрольно-Кассовый Чек [11:04:41]line ПРОДАЖА [11:04:41]line ТРК (МРК, ГНК) : 21 [11:04:41]line Товар: 2710124130 [11:04:41]line Аи-92-К-5 [11:04:41]line 7.480 * 66.90 [11:04:41]line = 500.41 [11:04:41]line НДС 12% НСП 1% [11:04:41]line > о реализуемом товаре [11:04:41]line ОКРУГЛЕНИЕ: -0.41 [11:04:41]line ИТОГО: 500.00 [11:04:41]line Внесено: 500.00 [11:04:41]line СДАЧА: 0.00 [11:04:41]line НСП 1% : 4.43 [11:04:41]line НДС 12% : 53.14 [11:04:41]line Наличными: 500.00 [11:04:41]line Безнал.: 0.00 [11:04:41]line Место: АЗС № 142 "Партнер Нефть" [11:04:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:04:41]line СНО: Общий режим [11:04:41]line Чек 83 26.10.2024 11:04 [11:04:41]line Смена: 512 ФФД: 1.0 [11:04:41]line ЗНМ: 0300000089 [11:04:41]line РНМ: 0000000000091691 [11:04:41]line Версия ККМ: 001 [11:04:41]line ФМ: 0000000000871795 [11:04:41]line ФД: 75091 [11:04:41]line ФПД: 121063505651350 [11:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110444&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75091&fm=121063505651350&tin=02508201610067®Number=0000000000091691&sum=50000 [11:04:41]written 0, free lines is 4095 [11:04:41]OFD Sender: Processing packet 75091 [packets to send 13, broken 12] [11:04:41]ProducePacketName [11:04:41]name=ofd_packets/00075091 [11:04:41]OFD Sender: To server: pG, [11:04:41]CommunicateWithHost lk.salyk.kg:30040 [11:04:41]ConnectInit lk.salyk.kg [11:04:41]Connected sock=10 [11:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 96 21 07 01 2B 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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 CC CC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 53 25 01 00 35 04 06 00 6E 1B 4B 3F E6 96 D1 51 A0 FA 49 F3 20 0A [11:04:41]Write to MH i2c: 01 00 00 FF 29 28 [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 07 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 B3 0C EE [11:04:41]RasterBufferAndPrint [11:04:41]line [11:04:41]line [11:04:41]line [11:04:41]line [11:04:41]line [11:04:41]written 0, free lines is 3258 [11:04:41]MH_Cut [11:04:41]Write to MH i2c: D1 01 00 06 2A 01 02 [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: D1 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: D1 01 00 [11:04:41]MH_I2C_Read... [11:04:41]Read from MH i2c: D1 01 00 06 2A 00 01 [11:04:41]Write to MH i2c: 01 00 00 07 2A 31 [11:04:41]Write i2c OK [11:04:41]MH_I2C_Read... [11:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 15 02 47 00 F2 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 53 25 01 00 F4 03 04 00 48 74 1C 67 B6 04 01 00 00 BB 06 C5 AB 45 A4 45 C6 [11:04:41]CommunicateWithHost err = 0 [11:04:41]CheckOFDResponse [11:04:41]1017 (14) - 77093643461234 [11:04:41]1041 (16) - 0000000000871795 [11:04:41]1040 (4) - 75091 [11:04:41]1012 (4) - 26.10.2024 04:47 [11:04:42]1206 (1) - 0 [11:04:42]OFD Sender: Remove packet 75091 [11:04:42]ProducePacketName [11:04:42]name=ofd_packets/00075091 [11:04:42]NVStorageDeleteData [11:04:42]OFD Sender: No OFD packet to send [11:04:42]*** Cut start [11:04:42]*** Partial cut [11:04:42]*** CUTSNS_PIN = 1 [11:04:42]*** CUTSNS_PIN = 0 [11:04:43]*** Brake cut motor [11:04:43]Read from MH i2c: 01 [11:04:43]MH_I2C_Read... [11:04:43]*** Stop cut motor [11:04:43]*** Cut end [11:04:43]Read from MH i2c: 01 07 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: 01 07 00 07 2A 00 00 00 00 00 FF 0F 46 [11:04:43]process_action close_receipt done [11:04:43]requested_data is exist [11:04:43]produce_requested_data [11:04:43]requested_item fm.sn is exist - process it [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 11 00 00 [11:04:43]Write to MH i2c: E2 08 00 08 2A 80 11 00 00 00 00 00 00 AC [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 17 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 17 00 08 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 04 [11:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:04:43]wFMCommunicate OK [11:04:43]requested_item fd.num is exist - process it [11:04:43]SAM_PROTO_GetFieldsCounters [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 13 00 00 [11:04:43]Write to MH i2c: E2 08 00 09 2A 80 13 00 00 00 00 00 00 AF [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 62 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 62 00 09 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 53 25 01 00 0E 04 04 00 00 02 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 4A [11:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 53 25 01 00 0E 04 04 00 00 02 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 [11:04:43]wFMCommunicate OK [11:04:43]SAM_PROTO_GetFieldsCounters done [11:04:43]requested_item shift.num is exist - process it [11:04:43]requested_item shift.opened is exist - process it [11:04:43]req_shift_opened [11:04:43]FM_GetShiftState [11:04:43]SAM_PROTO_GetShiftState [11:04:43]wFMCommunicate request_size=4 [11:04:43]MH_SAM_APDU [11:04:43]CAPDU: 80 13 01 00 [11:04:43]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [11:04:43]Write i2c OK [11:04:43]MH_I2C_Read... [11:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:43]Read from MH i2c: E2 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0E 00 [11:04:43]MH_I2C_Read... [11:04:43]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CC [11:04:43]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:04:43]wFMCommunicate OK [11:04:43]SAM_PROTO_GetShiftState done [11:04:43]FM_GetShiftState done [11:04:43]req_shift_opened done [11:04:43]requested_item shift.open_date is exist - process it [11:04:43]req_shift_open_date [11:04:43]req_shift_open_date done [11:04:43]produce_requested_data done [11:04:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75091,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:04:43]process_action_free close_receipt [11:04:43]json_value_free [11:04:43]json_value_free done [11:04:43]process_json_proto returns [11:04:43]Send response to host [11:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75091,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:04:43]free response buf [11:04:43]execute_script done [11:04:43]execute_script returns [11:04:43]free content buf [11:04:43]Sock 9.Close socket [11:04:43]Sock 9.Thread stoped [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:09:59]accept exits with 8 [11:09:59]New connection [11:09:59]New thread 3066924388 created [11:09:59]Thread 3066781028 joined [11:09:59]Waiting for new connection... [11:09:59] Sock 8.Parse request [11:09:59]Sock 8.Check first char [11:09:59]Sock 8.First char is OK [11:09:59]request: POST /json_proto HTTP/1.0 [11:09:59]Method: POST [11:09:59]URL: /json_proto [11:09:59]Method is POST - this is cgi request [11:09:59]url: /json_proto [11:09:59]query_string will be loaded in cgi processing [11:09:59]execute_cgi json_proto POST (null) [11:09:59]execute_cgi path=json_proto method=POST [11:09:59]POST find Content-Length [11:09:59]Host: 172.17.39.131:8080 [11:09:59]Content-Length: 679 [11:09:59]Content-Type: application/json [11:09:59] [11:09:59]POST finish read [11:09:59]Found Content-Length = 679 [11:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:59]execute_script... [11:09: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)191064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:59]POST & json_proto [11:09:59]process_json_proto [11:09:59]json parsed OK: [11:09:59]protocol is kg_v1.0 [11:09:59]action value=close_receipt [11:09:59]process_action close_receipt [11:09:59]cmd_close_receipt [11:09:59]MH_GetDate [11:09:59]Write to MH i2c: F0 00 00 0B 2A 24 [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: F0 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: F0 09 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: F0 09 00 0B 2A 00 0C CE 1C 67 86 57 24 65 F0 [11:09:59]GetLastDocTimeStamp 1729940684 [11:09:59]current date 1729941004 [11:09:59]FM_GetShiftState [11:09:59]SAM_PROTO_GetShiftState [11:09:59]wFMCommunicate request_size=4 [11:09:59]MH_SAM_APDU [11:09:59]CAPDU: 80 13 01 00 [11:09:59]Write to MH i2c: E2 08 00 0C 2A 80 13 01 00 00 00 00 00 B3 [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:59]Read from MH i2c: E2 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: E2 0E 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: E2 0E 00 0C 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CE [11:09:59]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:09:59]wFMCommunicate OK [11:09:59]SAM_PROTO_GetShiftState done [11:09:59]FM_GetShiftState done [11:09:59]opened in 1729902166 [11:09:59]opened+sec_in_day 1729988566 [11:09:59]quantity*price = 150037 [11:09:59]sum+1 = 150039 [11:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 84 26.10.2024 11:10 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75092 ФПД: 43670275919380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111004&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75092&fm=43670275919380&tin=02508201610067®Number=0000000000091691&sum=150000 [11:10:00]StoreToDocumentArchive [11:10:00]shift 512 fd 75092 [11:10:00]save to /storage/0512/doc_00075092 [11:10:00]save last doc name /storage/0512/doc_00075092 to /storage/kkm_last_doc_name [11:10:00]save OK [11:10:00]Clear old archive folders... [11:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:00]tlvbuf is 007FB7F0 [11:10:00]SAM_PROTO_ClearQueue [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 09 00 00 [11:10:00]Write to MH i2c: E2 08 00 19 2A 80 09 00 00 00 00 00 00 B5 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 03 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [11:10:00]RAPDU: 90 00 [11:10:00]wFMCommunicate OK [11:10:00]SAM_PROTO_ClearQueue done [11:10:00]KKMCreateOFDPacket [11:10:00]OFDProtocolAddRootSTLVToBuf [11:10:00]FM_MakeSignedData [11:10:00]FM_MakeSignedData [11:10:00]SAM_PROTO_SignData [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 0D 01 02 [11:10:00]Write to MH i2c: E2 08 00 1A 2A 80 0D 01 02 00 00 00 00 BD [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 03 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [11:10:00]RAPDU: 90 00 [11:10:00]wFMCommunicate OK [11:10:00]wFMCommunicate request_size=255 [11:10:00]MH_SAM_APDU [11:10: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 34 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 54 00 00 00 F4 03 04 00 0C CE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 54 25 01 00 35 04 06 00 27 B7 C7 48 [11:10:00]Write to MH i2c: E2 02 01 1B 2A 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 34 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 54 00 00 00 F4 03 04 00 0C CE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 54 25 01 00 35 04 06 00 27 B7 C7 48 00 00 D8 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 03 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [11:10:01]RAPDU: 90 00 [11:10:01]wFMCommunicate OK [11:10:01]wFMCommunicate request_size=7 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 0D 02 02 02 8E 14 [11:10:01]Write to MH i2c: E2 0A 00 1C 2A 80 0D 02 02 02 00 8E 14 00 00 66 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 03 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [11:10:01]RAPDU: 90 00 [11:10:01]wFMCommunicate OK [11:10:01]wFMCommunicate request_size=4 [11:10:01]MH_SAM_APDU [11:10:01]CAPDU: 80 0D 03 02 [11:10:01]Write to MH i2c: E2 08 00 1D 2A 80 0D 03 02 00 00 00 00 C2 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0B 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0B 00 1D 2A 00 16 99 94 46 C4 7E 6B 0E 90 00 07 [11:10:01]RAPDU: 16 99 94 46 C4 7E 6B 0E 90 00 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_SignData done [11:10:01]FM_MakeSignedData done [11:10:01]CreateOFDProtocolMessage [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 1E 2A 80 11 00 00 00 00 00 00 C2 [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 1E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [11:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:10:01]wFMCommunicate OK [11:10:01]CreateOFDProtocolMessage done [11:10:01]OFDSenderStorePacket 75092 [11:10:01]StoreOFDPacket docnum=75092 [11:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 CB 31 04 01 D4 96 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 34 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 54 00 00 00 F4 03 04 00 0C CE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 54 25 01 00 35 04 06 00 27 B7 C7 48 8E 14 16 99 94 46 C4 7E 6B 0E [11:10:01]CheckFolder [11:10:01]dirname=/storage/ofd_packets [11:10:01]CheckFolder done [11:10:01]ProducePacketName [11:10:01]name=ofd_packets/00075092 [11:10:01]NVStorageSaveData ofd_packets/00075092 [11:10:01]File name is /storage/ofd_packets/00075092 [11:10:01]Write 298 bytes [11:10:01]NVStorageSaveData done [11:10:01]OFDSenderStorePacket done [11:10:01]KKMCreateOFDPacket done [11:10:01]NVStorageSaveData kkm_last_timestamp [11:10:01]File name is /storage/kkm_last_timestamp [11:10:01]Write 4 bytes [11:10:01]NVStorageSaveData done [11:10:01]ExternCall_PrintAddStr [11:10:01]wPrintStart [11:10:01]Write to MH i2c: 01 00 00 1F 2A 49 [11:10:01]Write i2c OK [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: 01 [11:10:01]MH_I2C_Read... [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 1F 2A 00 00 00 00 00 FF 0F 5E [11:10:01]RasterBufferAndPrint [11:10:01]line Счет N : (1)191064 [11:10:01]line ИНН: 02508201610067 [11:10:01]line Контрольно-Кассовый Чек [11:10:01]line ПРОДАЖА [11:10:01]line ТРК (МРК, ГНК) : 31 [11:10:01]line Товар: 2710194210 [11:10:01]line ДТ-К-4 [11:10:01]line 19.690 * 76.20 [11:10:01]line = 1500.38 [11:10:01]line НДС 12% НСП 1% [11:10:01]line > о реализуемом товаре [11:10:01]line ОКРУГЛЕНИЕ: -0.38 [11:10:01]line ИТОГО: 1500.00 [11:10:01]line Внесено: 1500.00 [11:10:01]line СДАЧА: 0.00 [11:10:01]line НСП 1% : 13.28 [11:10:01]line НДС 12% : 159.33 [11:10:01]line Наличными: 1500.00 [11:10:01]line Безнал.: 0.00 [11:10:01]line Место: АЗС № 142 "Партнер Нефть" [11:10:01]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:10:01]line СНО: Общий режим [11:10:01]line Чек 84 26.10.2024 11:10 [11:10:01]line Смена: 512 ФФД: 1.0 [11:10:01]line ЗНМ: 0300000089 [11:10:01]line РНМ: 0000000000091691 [11:10:01]line Версия ККМ: 001 [11:10:01]line ФМ: 0000000000871795 [11:10:01]line ФД: 75092 [11:10:01]line ФПД: 43670275919380 [11:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111004&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75092&fm=43670275919380&tin=02508201610067®Number=0000000000091691&sum=150000 [11:10:01]OFD Sender: Processing packet 75092 [packets to send 13, broken 12] [11:10:01]ProducePacketName [11:10:01]name=ofd_packets/00075092 [11:10:01]OFD Sender: To server: pG, [11:10:01]CommunicateWithHost lk.salyk.kg:30040 [11:10:01]ConnectInit lk.salyk.kg [11:10:01]written 0, free lines is 4095 [11:10:01]Connected sock=10 [11:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 CB 31 04 01 D4 96 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 34 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 54 00 00 00 F4 03 04 00 0C CE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 54 25 01 00 35 04 06 00 27 B7 C7 48 8E 14 16 99 94 46 C4 7E 6B 0E [11:10:02]Write to MH i2c: 01 00 00 4A 2A 74 [11:10:02]Write i2c OK [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: 01 [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: 01 07 00 [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: 01 07 00 4A 2A 00 00 00 00 00 A0 0C 27 [11:10:02]RasterBufferAndPrint [11:10:02]line [11:10:02]line [11:10:02]line [11:10:02]line [11:10:02]line [11:10:02]written 0, free lines is 3237 [11:10:02]MH_Cut [11:10:02]Write to MH i2c: D1 01 00 51 2A 01 4D [11:10:02]Write i2c OK [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: D1 [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: D1 01 00 [11:10:02]MH_I2C_Read... [11:10:02]Read from MH i2c: D1 01 00 51 2A 00 4C [11:10:02]Write to MH i2c: 01 00 00 52 2A 7C [11:10:02]Write i2c OK [11:10:02]MH_I2C_Read... [11:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4A A1 47 00 9B 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 54 25 01 00 F4 03 04 00 88 75 1C 67 B6 04 01 00 00 15 01 17 D9 76 27 3D EA [11:10:02]CommunicateWithHost err = 0 [11:10:02]CheckOFDResponse [11:10:02]1017 (14) - 77093643461234 [11:10:02]1041 (16) - 0000000000871795 [11:10:02]1040 (4) - 75092 [11:10:02]1012 (4) - 26.10.2024 04:52 [11:10:02]1206 (1) - 0 [11:10:02]OFD Sender: Remove packet 75092 [11:10:02]ProducePacketName [11:10:02]name=ofd_packets/00075092 [11:10:02]NVStorageDeleteData [11:10:02]OFD Sender: No OFD packet to send [11:10:03]*** Cut start [11:10:03]*** Partial cut [11:10:03]*** CUTSNS_PIN = 1 [11:10:03]*** CUTSNS_PIN = 0 [11:10:03]*** Brake cut motor [11:10:03]Read from MH i2c: 01 [11:10:03]MH_I2C_Read... [11:10:03]*** Stop cut motor [11:10:03]*** Cut end [11:10:03]Read from MH i2c: 01 07 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: 01 07 00 52 2A 00 00 00 00 00 FF 0F 91 [11:10:03]process_action close_receipt done [11:10:03]requested_data is exist [11:10:03]produce_requested_data [11:10:03]requested_item fm.sn is exist - process it [11:10:03]wFMCommunicate request_size=4 [11:10:03]MH_SAM_APDU [11:10:03]CAPDU: 80 11 00 00 [11:10:03]Write to MH i2c: E2 08 00 53 2A 80 11 00 00 00 00 00 00 F7 [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:03]Read from MH i2c: E2 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 17 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 17 00 53 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4F [11:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:10:03]wFMCommunicate OK [11:10:03]requested_item fd.num is exist - process it [11:10:03]SAM_PROTO_GetFieldsCounters [11:10:03]wFMCommunicate request_size=4 [11:10:03]MH_SAM_APDU [11:10:03]CAPDU: 80 13 00 00 [11:10:03]Write to MH i2c: E2 08 00 54 2A 80 13 00 00 00 00 00 00 FA [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:03]Read from MH i2c: E2 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 62 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 62 00 54 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 54 25 01 00 0E 04 04 00 00 02 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 99 [11:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 54 25 01 00 0E 04 04 00 00 02 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 [11:10:03]wFMCommunicate OK [11:10:03]SAM_PROTO_GetFieldsCounters done [11:10:03]requested_item shift.num is exist - process it [11:10:03]requested_item shift.opened is exist - process it [11:10:03]req_shift_opened [11:10:03]FM_GetShiftState [11:10:03]SAM_PROTO_GetShiftState [11:10:03]wFMCommunicate request_size=4 [11:10:03]MH_SAM_APDU [11:10:03]CAPDU: 80 13 01 00 [11:10:03]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:03]Read from MH i2c: E2 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 17 [11:10:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:10:03]wFMCommunicate OK [11:10:03]SAM_PROTO_GetShiftState done [11:10:03]FM_GetShiftState done [11:10:03]req_shift_opened done [11:10:03]requested_item shift.open_date is exist - process it [11:10:03]req_shift_open_date [11:10:03]req_shift_open_date done [11:10:03]produce_requested_data done [11:10:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75092,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:10:03]process_action_free close_receipt [11:10:03]json_value_free [11:10:03]json_value_free done [11:10:03]process_json_proto returns [11:10:03]Send response to host [11:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75092,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:10:03]free response buf [11:10:03]execute_script done [11:10:03]execute_script returns [11:10:03]free content buf [11:10:03]Sock 8.Close socket [11:10:03]Sock 8.Thread stoped [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13: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:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:27]accept exits with 9 [11:22:27]New connection [11:22:27]New thread 3066781028 created [11:22:27]Thread 3066924388 joined [11:22:27]Waiting for new connection... [11:22:27] Sock 9.Parse request [11:22:27]Sock 9.Check first char [11:22:27]Sock 9.First char is OK [11:22:27]request: POST /json_proto HTTP/1.0 [11:22:27]Method: POST [11:22:27]URL: /json_proto [11:22:27]Method is POST - this is cgi request [11:22:27]url: /json_proto [11:22:27]query_string will be loaded in cgi processing [11:22:27]execute_cgi json_proto POST (null) [11:22:27]execute_cgi path=json_proto method=POST [11:22:27]POST find Content-Length [11:22:27]Host: 172.17.39.131:8080 [11:22:27]Content-Length: 677 [11:22:27]Content-Type: application/json [11:22:27] [11:22:27]POST finish read [11:22:27]Found Content-Length = 677 [11:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:22:27]execute_script... [11:22: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)191065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:22:27]POST & json_proto [11:22:27]process_json_proto [11:22:27]json parsed OK: [11:22:27]protocol is kg_v1.0 [11:22:27]action value=close_receipt [11:22:27]process_action close_receipt [11:22:27]cmd_close_receipt [11:22:27]MH_GetDate [11:22:27]Write to MH i2c: F0 00 00 56 2A 6F [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 56 2A 00 F7 D0 1C 67 86 57 24 65 28 [11:22:27]GetLastDocTimeStamp 1729941004 [11:22:27]current date 1729941751 [11:22:27]FM_GetShiftState [11:22:27]SAM_PROTO_GetShiftState [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 13 01 00 [11:22:27]Write to MH i2c: E2 08 00 57 2A 80 13 01 00 00 00 00 00 FE [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 57 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [11:22:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_GetShiftState done [11:22:27]FM_GetShiftState done [11:22:27]opened in 1729902166 [11:22:27]opened+sec_in_day 1729988566 [11:22:27]quantity*price = 60009 [11:22:27]sum+1 = 60010 [11:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 85 26.10.2024 11:22 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75093 ФПД: 220126200030073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112231&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75093&fm=220126200030073&tin=02508201610067®Number=0000000000091691&sum=60000 [11:22:28]StoreToDocumentArchive [11:22:28]shift 512 fd 75093 [11:22:28]save to /storage/0512/doc_00075093 [11:22:28]save last doc name /storage/0512/doc_00075093 to /storage/kkm_last_doc_name [11:22:28]save OK [11:22:28]Clear old archive folders... [11:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:28]tlvbuf is 007FDD20 [11:22:28]SAM_PROTO_ClearQueue [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 09 00 00 [11:22:28]Write to MH i2c: E2 08 00 64 2A 80 09 00 00 00 00 00 00 00 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]SAM_PROTO_ClearQueue done [11:22:28]KKMCreateOFDPacket [11:22:28]OFDProtocolAddRootSTLVToBuf [11:22:28]FM_MakeSignedData [11:22:28]FM_MakeSignedData [11:22:28]SAM_PROTO_SignData [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 01 02 [11:22:28]Write to MH i2c: E2 08 00 65 2A 80 0D 01 02 00 00 00 00 08 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=255 [11:22:28]MH_SAM_APDU [11:22: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 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 F7 D0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 55 25 01 00 35 04 06 00 C8 [11:22:28]Write to MH i2c: E2 02 01 66 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 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 F7 D0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 55 25 01 00 35 04 06 00 C8 00 00 5E [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]OFD Sender: No OFD packet to send [11:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=10 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 02 02 05 34 1F F5 63 79 [11:22:28]Write to MH i2c: E2 0D 00 67 2A 80 0D 02 02 05 00 34 1F F5 63 79 00 00 39 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 03 00 67 2A 00 90 00 05 [11:22:28]RAPDU: 90 00 [11:22:28]wFMCommunicate OK [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 0D 03 02 [11:22:28]Write to MH i2c: E2 08 00 68 2A 80 0D 03 02 00 00 00 00 0D [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0B 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0B 00 68 2A 00 C0 31 B8 9D 05 62 95 35 90 00 85 [11:22:28]RAPDU: C0 31 B8 9D 05 62 95 35 90 00 [11:22:28]wFMCommunicate OK [11:22:28]SAM_PROTO_SignData done [11:22:28]FM_MakeSignedData done [11:22:28]CreateOFDProtocolMessage [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 11 00 00 [11:22:28]Write to MH i2c: E2 08 00 69 2A 80 11 00 00 00 00 00 00 0D [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 17 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 17 00 69 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [11:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:22:28]wFMCommunicate OK [11:22:28]CreateOFDProtocolMessage done [11:22:28]OFDSenderStorePacket 75093 [11:22:28]StoreOFDPacket docnum=75093 [11:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4A 4A 07 01 95 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 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 F7 D0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 55 25 01 00 35 04 06 00 C8 34 1F F5 63 79 C0 31 B8 9D 05 62 95 35 [11:22:28]CheckFolder [11:22:28]dirname=/storage/ofd_packets [11:22:28]CheckFolder done [11:22:28]ProducePacketName [11:22:28]name=ofd_packets/00075093 [11:22:28]NVStorageSaveData ofd_packets/00075093 [11:22:28]File name is /storage/ofd_packets/00075093 [11:22:28]Write 301 bytes [11:22:28]NVStorageSaveData done [11:22:28]OFDSenderStorePacket done [11:22:28]KKMCreateOFDPacket done [11:22:28]NVStorageSaveData kkm_last_timestamp [11:22:28]File name is /storage/kkm_last_timestamp [11:22:28]Write 4 bytes [11:22:28]NVStorageSaveData done [11:22:28]ExternCall_PrintAddStr [11:22:28]wPrintStart [11:22:28]Write to MH i2c: 01 00 00 6A 2A 94 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 07 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 07 00 6A 2A 00 00 00 00 00 FF 0F A9 [11:22:28]RasterBufferAndPrint [11:22:28]line Счет N : (1)191065 [11:22:28]line ИНН: 02508201610067 [11:22:28]line Контрольно-Кассовый Чек [11:22:28]line ПРОДАЖА [11:22:28]line ТРК (МРК, ГНК) : 21 [11:22:28]line Товар: 2710124130 [11:22:28]line Аи-92-К-5 [11:22:28]line 8.970 * 66.90 [11:22:28]line = 600.09 [11:22:28]line НДС 12% НСП 1% [11:22:28]line > о реализуемом товаре [11:22:28]line ОКРУГЛЕНИЕ: -0.09 [11:22:28]line ИТОГО: 600.00 [11:22:28]line Внесено: 600.00 [11:22:28]line СДАЧА: 0.00 [11:22:28]line НСП 1% : 5.31 [11:22:28]line НДС 12% : 63.73 [11:22:28]line Наличными: 600.00 [11:22:28]line Безнал.: 0.00 [11:22:28]line Место: АЗС № 142 "Партнер Нефть" [11:22:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:22:28]line СНО: Общий режим [11:22:28]line Чек 85 26.10.2024 11:22 [11:22:28]line Смена: 512 ФФД: 1.0 [11:22:28]line ЗНМ: 0300000089 [11:22:28]line РНМ: 0000000000091691 [11:22:28]line Версия ККМ: 001 [11:22:28]line ФМ: 0000000000871795 [11:22:28]line ФД: 75093 [11:22:28]line ФПД: 220126200030073 [11:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112231&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75093&fm=220126200030073&tin=02508201610067®Number=0000000000091691&sum=60000 [11:22:28]written 0, free lines is 4095 [11:22:28]OFD Sender: Processing packet 75093 [packets to send 13, broken 12] [11:22:28]ProducePacketName [11:22:28]name=ofd_packets/00075093 [11:22:28]OFD Sender: To server: pG, [11:22:28]CommunicateWithHost lk.salyk.kg:30040 [11:22:28]ConnectInit lk.salyk.kg [11:22:29]Connected sock=11 [11:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4A 4A 07 01 95 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 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 F7 D0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 55 25 01 00 35 04 06 00 C8 34 1F F5 63 79 C0 31 B8 9D 05 62 95 35 [11:22:29]Write to MH i2c: 01 00 00 95 2A BF [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 AA 0C 7C [11:22:29]RasterBufferAndPrint [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]line [11:22:29]written 0, free lines is 3248 [11:22:29]MH_Cut [11:22:29]Write to MH i2c: D1 01 00 9C 2A 01 98 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 01 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: D1 01 00 9C 2A 00 97 [11:22:29]Write to MH i2c: 01 00 00 9D 2A C7 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0F C9 47 00 EF F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 55 25 01 00 F4 03 04 00 73 78 1C 67 B6 04 01 00 00 E0 35 70 30 43 9D 35 04 [11:22:29]CommunicateWithHost err = 0 [11:22:29]CheckOFDResponse [11:22:29]1017 (14) - 77093643461234 [11:22:29]1041 (16) - 0000000000871795 [11:22:29]1040 (4) - 75093 [11:22:29]1012 (4) - 26.10.2024 05:04 [11:22:29]1206 (1) - 0 [11:22:29]OFD Sender: Remove packet 75093 [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00075093 [11:22:29]NVStorageDeleteData [11:22:29]OFD Sender: No OFD packet to send [11:22:30]*** Cut start [11:22:30]*** Partial cut [11:22:30]*** CUTSNS_PIN = 1 [11:22:30]*** CUTSNS_PIN = 0 [11:22:30]*** Brake cut motor [11:22:30]Read from MH i2c: 01 [11:22:30]MH_I2C_Read... [11:22:30]*** Stop cut motor [11:22:30]*** Cut end [11:22:30]Read from MH i2c: 01 07 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: 01 07 00 9D 2A 00 00 00 00 00 FF 0F DC [11:22:30]process_action close_receipt done [11:22:30]requested_data is exist [11:22:30]produce_requested_data [11:22:30]requested_item fm.sn is exist - process it [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 11 00 00 [11:22:30]Write to MH i2c: E2 08 00 9E 2A 80 11 00 00 00 00 00 00 42 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 17 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 17 00 9E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9A [11:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:22:30]wFMCommunicate OK [11:22:30]requested_item fd.num is exist - process it [11:22:30]SAM_PROTO_GetFieldsCounters [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 13 00 00 [11:22:30]Write to MH i2c: E2 08 00 9F 2A 80 13 00 00 00 00 00 00 45 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 62 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 62 00 9F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 55 25 01 00 0E 04 04 00 00 02 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 E8 [11:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 55 25 01 00 0E 04 04 00 00 02 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 [11:22:30]wFMCommunicate OK [11:22:30]SAM_PROTO_GetFieldsCounters done [11:22:30]requested_item shift.num is exist - process it [11:22:30]requested_item shift.opened is exist - process it [11:22:30]req_shift_opened [11:22:30]FM_GetShiftState [11:22:30]SAM_PROTO_GetShiftState [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 13 01 00 [11:22:30]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 62 [11:22:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetShiftState done [11:22:31]FM_GetShiftState done [11:22:31]req_shift_opened done [11:22:31]requested_item shift.open_date is exist - process it [11:22:31]req_shift_open_date [11:22:31]req_shift_open_date done [11:22:31]produce_requested_data done [11:22:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75093,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:22:31]process_action_free close_receipt [11:22:31]json_value_free [11:22:31]json_value_free done [11:22:31]process_json_proto returns [11:22:31]Send response to host [11:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75093,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:22:31]free response buf [11:22:31]execute_script done [11:22:31]execute_script returns [11:22:31]free content buf [11:22:31]Sock 9.Close socket [11:22:31]Sock 9.Thread stoped [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:37]accept exits with 10 [11:23:37]New connection [11:23:37]New thread 3066924388 created [11:23:37]Thread 3066781028 joined [11:23:37]Waiting for new connection... [11:23:37] Sock 10.Parse request [11:23:37]Sock 10.Check first char [11:23:37]Sock 10.First char is OK [11:23:37]request: POST /json_proto HTTP/1.0 [11:23:37]Method: POST [11:23:37]URL: /json_proto [11:23:37]Method is POST - this is cgi request [11:23:37]url: /json_proto [11:23:37]query_string will be loaded in cgi processing [11:23:37]execute_cgi json_proto POST (null) [11:23:37]execute_cgi path=json_proto method=POST [11:23:37]POST find Content-Length [11:23:37]Host: 172.17.39.131:8080 [11:23:37]Content-Length: 677 [11:23:37]Content-Type: application/json [11:23:37] [11:23:37]POST finish read [11:23:37]Found Content-Length = 677 [11:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:23:37]execute_script... [11:23: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)191066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:23:37]POST & json_proto [11:23:37]process_json_proto [11:23:37]json parsed OK: [11:23:37]protocol is kg_v1.0 [11:23:37]action value=close_receipt [11:23:37]process_action close_receipt [11:23:37]cmd_close_receipt [11:23:37]MH_GetDate [11:23:37]Write to MH i2c: F0 00 00 A1 2A BA [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: F0 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: F0 09 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: F0 09 00 A1 2A 00 3E D1 1C 67 86 57 24 65 BB [11:23:37]GetLastDocTimeStamp 1729941751 [11:23:37]current date 1729941822 [11:23:37]FM_GetShiftState [11:23:37]SAM_PROTO_GetShiftState [11:23:37]wFMCommunicate request_size=4 [11:23:37]MH_SAM_APDU [11:23:37]CAPDU: 80 13 01 00 [11:23:37]Write to MH i2c: E2 08 00 A2 2A 80 13 01 00 00 00 00 00 49 [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:37]Read from MH i2c: E2 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 0E 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 0E 00 A2 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 64 [11:23:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:23:37]wFMCommunicate OK [11:23:37]SAM_PROTO_GetShiftState done [11:23:37]FM_GetShiftState done [11:23:37]opened in 1729902166 [11:23:37]opened+sec_in_day 1729988566 [11:23:37]quantity*price = 20003 [11:23:37]sum+1 = 20004 [11:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 86 26.10.2024 11:23 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75094 ФПД: 165980667928674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75094&fm=165980667928674&tin=02508201610067®Number=0000000000091691&sum=20000 [11:23:38]StoreToDocumentArchive [11:23:38]shift 512 fd 75094 [11:23:38]save to /storage/0512/doc_00075094 [11:23:38]save last doc name /storage/0512/doc_00075094 to /storage/kkm_last_doc_name [11:23:38]save OK [11:23:38]Clear old archive folders... [11:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:38]tlvbuf is B6ED3B20 [11:23:38]SAM_PROTO_ClearQueue [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 09 00 00 [11:23:38]Write to MH i2c: E2 08 00 AF 2A 80 09 00 00 00 00 00 00 4B [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 03 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [11:23:38]RAPDU: 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_ClearQueue done [11:23:38]KKMCreateOFDPacket [11:23:38]OFDProtocolAddRootSTLVToBuf [11:23:38]FM_MakeSignedData [11:23:38]FM_MakeSignedData [11:23:38]SAM_PROTO_SignData [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 0D 01 02 [11:23:38]Write to MH i2c: E2 08 00 B0 2A 80 0D 01 02 00 00 00 00 53 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 03 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [11:23:38]RAPDU: 90 00 [11:23:38]wFMCommunicate OK [11:23:38]wFMCommunicate request_size=255 [11:23:38]MH_SAM_APDU [11:23: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 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 56 00 00 00 F4 03 04 00 3E D1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 56 25 01 00 35 04 06 00 96 [11:23:38]Write to MH i2c: E2 02 01 B1 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 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 56 00 00 00 F4 03 04 00 3E D1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 56 25 01 00 35 04 06 00 96 00 00 A6 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 03 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 03 00 B1 2A 00 90 00 4F [11:23:39]RAPDU: 90 00 [11:23:39]wFMCommunicate OK [11:23:39]wFMCommunicate request_size=10 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 0D 02 02 05 F5 62 C0 60 62 [11:23:39]Write to MH i2c: E2 0D 00 B2 2A 80 0D 02 02 05 00 F5 62 C0 60 62 00 00 39 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 03 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 03 00 B2 2A 00 90 00 50 [11:23:39]RAPDU: 90 00 [11:23:39]wFMCommunicate OK [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 0D 03 02 [11:23:39]Write to MH i2c: E2 08 00 B3 2A 80 0D 03 02 00 00 00 00 58 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0B 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0B 00 B3 2A 00 40 10 AC 9F 6E 13 FD 29 90 00 9B [11:23:39]RAPDU: 40 10 AC 9F 6E 13 FD 29 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_SignData done [11:23:39]FM_MakeSignedData done [11:23:39]CreateOFDProtocolMessage [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 11 00 00 [11:23:39]Write to MH i2c: E2 08 00 B4 2A 80 11 00 00 00 00 00 00 58 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 17 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 17 00 B4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B0 [11:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:23:39]wFMCommunicate OK [11:23:39]CreateOFDProtocolMessage done [11:23:39]OFDSenderStorePacket 75094 [11:23:39]StoreOFDPacket docnum=75094 [11:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 83 D9 07 01 AB 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 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 56 00 00 00 F4 03 04 00 3E D1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 56 25 01 00 35 04 06 00 96 F5 62 C0 60 62 40 10 AC 9F 6E 13 FD 29 [11:23:39]CheckFolder [11:23:39]dirname=/storage/ofd_packets [11:23:39]CheckFolder done [11:23:39]ProducePacketName [11:23:39]name=ofd_packets/00075094 [11:23:39]NVStorageSaveData ofd_packets/00075094 [11:23:39]File name is /storage/ofd_packets/00075094 [11:23:39]Write 301 bytes [11:23:39]NVStorageSaveData done [11:23:39]OFDSenderStorePacket done [11:23:39]KKMCreateOFDPacket done [11:23:39]NVStorageSaveData kkm_last_timestamp [11:23:39]File name is /storage/kkm_last_timestamp [11:23:39]Write 4 bytes [11:23:39]NVStorageSaveData done [11:23:39]ExternCall_PrintAddStr [11:23:39]wPrintStart [11:23:39]Write to MH i2c: 01 00 00 B5 2A DF [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 07 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 07 00 B5 2A 00 00 00 00 00 FF 0F F4 [11:23:39]RasterBufferAndPrint [11:23:39]line Счет N : (1)191066 [11:23:39]line ИНН: 02508201610067 [11:23:39]line Контрольно-Кассовый Чек [11:23:39]line ПРОДАЖА [11:23:39]line ТРК (МРК, ГНК) : 21 [11:23:39]line Товар: 2710124130 [11:23:39]line Аи-92-К-5 [11:23:39]line 2.990 * 66.90 [11:23:39]line = 200.03 [11:23:39]line НДС 12% НСП 1% [11:23:39]line > о реализуемом товаре [11:23:39]line ОКРУГЛЕНИЕ: -0.03 [11:23:39]line ИТОГО: 200.00 [11:23:39]line Внесено: 200.00 [11:23:39]line СДАЧА: 0.00 [11:23:39]line НСП 1% : 1.77 [11:23:39]line НДС 12% : 21.24 [11:23:39]line Наличными: 200.00 [11:23:39]line Безнал.: 0.00 [11:23:39]line Место: АЗС № 142 "Партнер Нефть" [11:23:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:23:39]line СНО: Общий режим [11:23:39]line Чек 86 26.10.2024 11:23 [11:23:39]line Смена: 512 ФФД: 1.0 [11:23:39]line ЗНМ: 0300000089 [11:23:39]line РНМ: 0000000000091691 [11:23:39]line Версия ККМ: 001 [11:23:39]line ФМ: 0000000000871795 [11:23:39]line ФД: 75094 [11:23:39]line ФПД: 165980667928674 [11:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75094&fm=165980667928674&tin=02508201610067®Number=0000000000091691&sum=20000 [11:23:39]written 0, free lines is 4095 [11:23:39]OFD Sender: Processing packet 75094 [packets to send 13, broken 12] [11:23:39]ProducePacketName [11:23:39]name=ofd_packets/00075094 [11:23:39]OFD Sender: To server: pG, [11:23:39]CommunicateWithHost lk.salyk.kg:30040 [11:23:39]ConnectInit lk.salyk.kg [11:23:39]Connected sock=9 [11:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 83 D9 07 01 AB 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 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 56 00 00 00 F4 03 04 00 3E D1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 56 25 01 00 35 04 06 00 96 F5 62 C0 60 62 40 10 AC 9F 6E 13 FD 29 [11:23:39]Write to MH i2c: 01 00 00 E0 2A 0A [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 07 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 AA 0C C7 [11:23:39]RasterBufferAndPrint [11:23:39]line [11:23:39]line [11:23:39]line [11:23:39]line [11:23:39]line [11:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 86 9B 47 00 CD 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 38 37 31 37 39 35 10 04 04 00 56 25 01 00 F4 03 04 00 BA 78 1C 67 B6 04 01 00 00 DA 08 E0 E2 84 F6 D8 F4 [11:23:39]CommunicateWithHost err = 0 [11:23:39]CheckOFDResponse [11:23:39]1017 (14) - 77093643461234 [11:23:39]1041 (16) - 0000000000871795 [11:23:39]1040 (4) - 75094 [11:23:39]1012 (4) - 26.10.2024 05:06 [11:23:39]1206 (1) - 0 [11:23:39]OFD Sender: Remove packet 75094 [11:23:39]ProducePacketName [11:23:39]name=ofd_packets/00075094 [11:23:39]NVStorageDeleteData [11:23:39]written 0, free lines is 3251 [11:23:39]MH_Cut [11:23:39]Write to MH i2c: D1 01 00 E7 2A 01 E3 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: D1 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: D1 01 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: D1 01 00 E7 2A 00 E2 [11:23:39]Write to MH i2c: 01 00 00 E8 2A 12 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:40]OFD Sender: No OFD packet to send [11:23:40]*** Cut start [11:23:40]*** Partial cut [11:23:40]*** CUTSNS_PIN = 1 [11:23:40]*** CUTSNS_PIN = 0 [11:23:40]*** Brake cut motor [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]*** Stop cut motor [11:23:41]*** Cut end [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 FF 0F 27 [11:23:41]process_action close_receipt done [11:23:41]requested_data is exist [11:23:41]produce_requested_data [11:23:41]requested_item fm.sn is exist - process it [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 11 00 00 [11:23:41]Write to MH i2c: E2 08 00 E9 2A 80 11 00 00 00 00 00 00 8D [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 E9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E5 [11:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:23:41]wFMCommunicate OK [11:23:41]requested_item fd.num is exist - process it [11:23:41]SAM_PROTO_GetFieldsCounters [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 13 00 00 [11:23:41]Write to MH i2c: E2 08 00 EA 2A 80 13 00 00 00 00 00 00 90 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 62 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 62 00 EA 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 56 25 01 00 0E 04 04 00 00 02 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 37 [11:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 56 25 01 00 0E 04 04 00 00 02 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 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_GetFieldsCounters done [11:23:41]requested_item shift.num is exist - process it [11:23:41]requested_item shift.opened is exist - process it [11:23:41]req_shift_opened [11:23:41]FM_GetShiftState [11:23:41]SAM_PROTO_GetShiftState [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 13 01 00 [11:23:41]Write to MH i2c: E2 08 00 EB 2A 80 13 01 00 00 00 00 00 92 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0E 00 EB 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AD [11:23:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_GetShiftState done [11:23:41]FM_GetShiftState done [11:23:41]req_shift_opened done [11:23:41]requested_item shift.open_date is exist - process it [11:23:41]req_shift_open_date [11:23:41]req_shift_open_date done [11:23:41]produce_requested_data done [11:23:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75094,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:23:41]process_action_free close_receipt [11:23:41]json_value_free [11:23:41]json_value_free done [11:23:41]process_json_proto returns [11:23:41]Send response to host [11:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75094,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:23:41]free response buf [11:23:41]execute_script done [11:23:41]execute_script returns [11:23:41]free content buf [11:23:41]Sock 10.Close socket [11:23:41]Sock 10.Thread stoped [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30: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:30]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [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:38]accept exits with 8 [11:33:38]New connection [11:33:38]New thread 3066781028 created [11:33:38]Thread 3066924388 joined [11:33:38]Waiting for new connection... [11:33:38] Sock 8.Parse request [11:33:38]Sock 8.Check first char [11:33:38]Sock 8.First char is OK [11:33:38]request: POST /json_proto HTTP/1.0 [11:33:38]Method: POST [11:33:38]URL: /json_proto [11:33:38]Method is POST - this is cgi request [11:33:38]url: /json_proto [11:33:38]query_string will be loaded in cgi processing [11:33:38]execute_cgi json_proto POST (null) [11:33:38]execute_cgi path=json_proto method=POST [11:33:38]POST find Content-Length [11:33:38]Host: 172.17.39.131:8080 [11:33:38]Content-Length: 671 [11:33:38]Content-Type: application/json [11:33:38] [11:33:38]POST finish read [11:33:38]Found Content-Length = 671 [11:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.140, "sum" : 9.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 9.00, "payments": [ { "type": 0, "sum" : 9.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:38]execute_script... [11:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.140, "sum" : 9.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 9.00, "payments": [ { "type": 0, "sum" : 9.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:38]POST & json_proto [11:33:38]process_json_proto [11:33:38]json parsed OK: [11:33:38]protocol is kg_v1.0 [11:33:38]action value=close_receipt [11:33:38]process_action close_receipt [11:33:38]cmd_close_receipt [11:33:38]MH_GetDate [11:33:38]Write to MH i2c: F0 00 00 EC 2A 05 [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 09 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 09 00 EC 2A 00 96 D3 1C 67 86 57 24 65 60 [11:33:38]GetLastDocTimeStamp 1729941822 [11:33:38]current date 1729942422 [11:33:38]FM_GetShiftState [11:33:38]SAM_PROTO_GetShiftState [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 13 01 00 [11:33:38]Write to MH i2c: E2 08 00 ED 2A 80 13 01 00 00 00 00 00 94 [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 ED 2A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AF [11:33:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:33:38]wFMCommunicate OK [11:33:38]SAM_PROTO_GetShiftState done [11:33:38]FM_GetShiftState done [11:33:38]opened in 1729902166 [11:33:38]opened+sec_in_day 1729988566 [11:33:38]quantity*price = 936 [11:33:38]sum+1 = 938 [11:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 9.00 Внесено: 500.00 СДАЧА: 491.00 НСП 1% : 0.08 НДС 12% : 0.99 Наличными: 9.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 87 26.10.2024 11:33 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75095 ФПД: 242136089504379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75095&fm=242136089504379&tin=02508201610067®Number=0000000000091691&sum=900 [11:33:39]StoreToDocumentArchive [11:33:39]shift 512 fd 75095 [11:33:39]save to /storage/0512/doc_00075095 [11:33:39]save last doc name /storage/0512/doc_00075095 to /storage/kkm_last_doc_name [11:33:39]save OK [11:33:39]Clear old archive folders... [11:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:39]tlvbuf is B6F51BC0 [11:33:39]SAM_PROTO_ClearQueue [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 09 00 00 [11:33:39]Write to MH i2c: E2 08 00 FA 2A 80 09 00 00 00 00 00 00 96 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_ClearQueue done [11:33:39]KKMCreateOFDPacket [11:33:39]OFDProtocolAddRootSTLVToBuf [11:33:39]FM_MakeSignedData [11:33:39]FM_MakeSignedData [11:33:39]SAM_PROTO_SignData [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 0D 01 02 [11:33:39]Write to MH i2c: E2 08 00 FB 2A 80 0D 01 02 00 00 00 00 9E [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 FB 2A 00 90 00 99 [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=255 [11:33:39]MH_SAM_APDU [11:33: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 8C 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A9 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 84 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 96 D3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 57 25 01 00 35 04 06 00 DC [11:33:39]Write to MH i2c: E2 02 01 FC 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 8C 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A9 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 84 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 96 D3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 57 25 01 00 35 04 06 00 DC 00 00 39 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 FC 2A 00 90 00 9A [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=10 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 0D 02 02 05 38 B3 9A 2A 7B [11:33:39]Write to MH i2c: E2 0D 00 FD 2A 80 0D 02 02 05 00 38 B3 9A 2A 7B 00 00 D5 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 FD 2A 00 90 00 9B [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 0D 03 02 [11:33:39]Write to MH i2c: E2 08 00 FE 2A 80 0D 03 02 00 00 00 00 A3 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0B 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0B 00 FE 2A 00 EB B6 76 E1 28 58 17 3F 90 00 72 [11:33:39]RAPDU: EB B6 76 E1 28 58 17 3F 90 00 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_SignData done [11:33:39]FM_MakeSignedData done [11:33:39]CreateOFDProtocolMessage [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 11 00 00 [11:33:39]Write to MH i2c: E2 08 00 FF 2A 80 11 00 00 00 00 00 00 A3 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 FF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FB [11:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:33:39]wFMCommunicate OK [11:33:39]CreateOFDProtocolMessage done [11:33:39]OFDSenderStorePacket 75095 [11:33:39]StoreOFDPacket docnum=75095 [11:33:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 59 24 07 01 D9 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A9 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 84 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 96 D3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 57 25 01 00 35 04 06 00 DC 38 B3 9A 2A 7B EB B6 76 E1 28 58 17 3F [11:33:39]CheckFolder [11:33:39]dirname=/storage/ofd_packets [11:33:39]CheckFolder done [11:33:39]ProducePacketName [11:33:39]name=ofd_packets/00075095 [11:33:39]NVStorageSaveData ofd_packets/00075095 [11:33:39]File name is /storage/ofd_packets/00075095 [11:33:39]Write 301 bytes [11:33:39]NVStorageSaveData done [11:33:39]OFDSenderStorePacket done [11:33:39]KKMCreateOFDPacket done [11:33:39]NVStorageSaveData kkm_last_timestamp [11:33:39]File name is /storage/kkm_last_timestamp [11:33:39]Write 4 bytes [11:33:39]NVStorageSaveData done [11:33:39]ExternCall_PrintAddStr [11:33:39]wPrintStart [11:33:39]Write to MH i2c: 01 00 00 00 2B 2B [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: 01 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: 01 07 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: 01 07 00 00 2B 00 00 00 00 00 FF 0F 40 [11:33:39]RasterBufferAndPrint [11:33:39]line Счет N : (1)191067 [11:33:39]line ИНН: 02508201610067 [11:33:39]line Контрольно-Кассовый Чек [11:33:39]line ПРОДАЖА [11:33:39]line ТРК (МРК, ГНК) : 21 [11:33:39]line Товар: 2710124130 [11:33:39]line Аи-92-К-5 [11:33:39]line 0.140 * 66.90 [11:33:39]line = 9.37 [11:33:39]line НДС 12% НСП 1% [11:33:39]line > о реализуемом товаре [11:33:39]line ОКРУГЛЕНИЕ: -0.37 [11:33:39]line ИТОГО: 9.00 [11:33:39]line Внесено: 500.00 [11:33:39]line СДАЧА: 491.00 [11:33:39]line НСП 1% : 0.08 [11:33:39]line НДС 12% : 0.99 [11:33:39]line Наличными: 9.00 [11:33:39]line Безнал.: 0.00 [11:33:39]line Место: АЗС № 142 "Партнер Нефть" [11:33:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:33:39]line СНО: Общий режим [11:33:39]line Чек 87 26.10.2024 11:33 [11:33:39]line Смена: 512 ФФД: 1.0 [11:33:39]line ЗНМ: 0300000089 [11:33:39]line РНМ: 0000000000091691 [11:33:39]line Версия ККМ: 001 [11:33:39]line ФМ: 0000000000871795 [11:33:39]line ФД: 75095 [11:33:39]line ФПД: 242136089504379 [11:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113342&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75095&fm=242136089504379&tin=02508201610067®Number=0000000000091691&sum=900 [11:33:40]written 0, free lines is 4095 [11:33:40]OFD Sender: Processing packet 75095 [packets to send 13, broken 12] [11:33:40]ProducePacketName [11:33:40]name=ofd_packets/00075095 [11:33:40]OFD Sender: To server: pG, [11:33:40]CommunicateWithHost lk.salyk.kg:30040 [11:33:40]ConnectInit lk.salyk.kg [11:33:40]Connected sock=10 [11:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 59 24 07 01 D9 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A9 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 00 00 00 00 00 07 04 06 00 84 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 96 D3 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 57 25 01 00 35 04 06 00 DC 38 B3 9A 2A 7B EB B6 76 E1 28 58 17 3F [11:33:40]Write to MH i2c: 01 00 00 2B 2B 56 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 2B 2B 00 00 00 00 00 A0 0C 09 [11:33:40]RasterBufferAndPrint [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]written 0, free lines is 3239 [11:33:40]MH_Cut [11:33:40]Write to MH i2c: D1 01 00 32 2B 01 2F [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 01 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 01 00 32 2B 00 2E [11:33:40]Write to MH i2c: 01 00 00 33 2B 5E [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CA 5A 47 00 CE 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 57 25 01 00 F4 03 04 00 13 7B 1C 67 B6 04 01 00 00 47 03 7F 15 6F 18 20 87 [11:33:40]CommunicateWithHost err = 0 [11:33:40]CheckOFDResponse [11:33:40]1017 (14) - 77093643461234 [11:33:40]1041 (16) - 0000000000871795 [11:33:40]1040 (4) - 75095 [11:33:40]1012 (4) - 26.10.2024 05:16 [11:33:40]1206 (1) - 0 [11:33:40]OFD Sender: Remove packet 75095 [11:33:40]ProducePacketName [11:33:40]name=ofd_packets/00075095 [11:33:40]NVStorageDeleteData [11:33:41]OFD Sender: No OFD packet to send [11:33:41]*** Cut start [11:33:41]*** Partial cut [11:33:41]*** CUTSNS_PIN = 1 [11:33:41]*** CUTSNS_PIN = 0 [11:33:41]*** Brake cut motor [11:33:42]Read from MH i2c: 01 [11:33:42]MH_I2C_Read... [11:33:42]*** Stop cut motor [11:33:42]*** Cut end [11:33:42]Read from MH i2c: 01 07 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 33 2B 00 00 00 00 00 FF 0F 73 [11:33:42]process_action close_receipt done [11:33:42]requested_data is exist [11:33:42]produce_requested_data [11:33:42]requested_item fm.sn is exist - process it [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 11 00 00 [11:33:42]Write to MH i2c: E2 08 00 34 2B 80 11 00 00 00 00 00 00 D9 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 34 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [11:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:33:42]wFMCommunicate OK [11:33:42]requested_item fd.num is exist - process it [11:33:42]SAM_PROTO_GetFieldsCounters [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 13 00 00 [11:33:42]Write to MH i2c: E2 08 00 35 2B 80 13 00 00 00 00 00 00 DC [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 62 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 62 00 35 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 57 25 01 00 0E 04 04 00 00 02 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 87 [11:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 57 25 01 00 0E 04 04 00 00 02 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 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_GetFieldsCounters done [11:33:42]requested_item shift.num is exist - process it [11:33:42]requested_item shift.opened is exist - process it [11:33:42]req_shift_opened [11:33:42]FM_GetShiftState [11:33:42]SAM_PROTO_GetShiftState [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 13 01 00 [11:33:42]Write to MH i2c: E2 08 00 36 2B 80 13 01 00 00 00 00 00 DE [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 0E 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 0E 00 36 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F9 [11:33:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_GetShiftState done [11:33:42]FM_GetShiftState done [11:33:42]req_shift_opened done [11:33:42]requested_item shift.open_date is exist - process it [11:33:42]req_shift_open_date [11:33:42]req_shift_open_date done [11:33:42]produce_requested_data done [11:33:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75095,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:33:42]process_action_free close_receipt [11:33:42]json_value_free [11:33:42]json_value_free done [11:33:42]process_json_proto returns [11:33:42]Send response to host [11:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75095,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:33:42]free response buf [11:33:42]execute_script done [11:33:42]execute_script returns [11:33:42]free content buf [11:33:42]Sock 8.Close socket [11:33:42]Sock 8.Thread stoped [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:27]accept exits with 9 [11:35:27]New connection [11:35:27]New thread 3066924388 created [11:35:27]Thread 3066781028 joined [11:35:27]Waiting for new connection... [11:35:27] Sock 9.Parse request [11:35:27]Sock 9.Check first char [11:35:27]Sock 9.First char is OK [11:35:27]request: POST /json_proto HTTP/1.0 [11:35:27]Method: POST [11:35:27]URL: /json_proto [11:35:27]Method is POST - this is cgi request [11:35:27]url: /json_proto [11:35:27]query_string will be loaded in cgi processing [11:35:27]execute_cgi json_proto POST (null) [11:35:27]execute_cgi path=json_proto method=POST [11:35:27]POST find Content-Length [11:35:27]Host: 172.17.39.131:8080 [11:35:27]Content-Length: 677 [11:35:27]Content-Type: application/json [11:35:27] [11:35:27]POST finish read [11:35:27]Found Content-Length = 677 [11:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.340, "sum" : 491.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 491.00, "total" : 491.00, "payments": [ { "type": 0, "sum" : 491.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:27]execute_script... [11:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.340, "sum" : 491.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 491.00, "total" : 491.00, "payments": [ { "type": 0, "sum" : 491.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:27]POST & json_proto [11:35:27]process_json_proto [11:35:27]json parsed OK: [11:35:27]protocol is kg_v1.0 [11:35:27]action value=close_receipt [11:35:27]process_action close_receipt [11:35:27]cmd_close_receipt [11:35:27]MH_GetDate [11:35:27]Write to MH i2c: F0 00 00 37 2B 51 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: F0 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: F0 09 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: F0 09 00 37 2B 00 04 D4 1C 67 86 57 24 65 1B [11:35:27]GetLastDocTimeStamp 1729942422 [11:35:27]current date 1729942532 [11:35:27]FM_GetShiftState [11:35:27]SAM_PROTO_GetShiftState [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 13 01 00 [11:35:27]Write to MH i2c: E2 08 00 38 2B 80 13 01 00 00 00 00 00 E0 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 0E 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 0E 00 38 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FB [11:35:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:35:27]wFMCommunicate OK [11:35:27]SAM_PROTO_GetShiftState done [11:35:27]FM_GetShiftState done [11:35:27]opened in 1729902166 [11:35:27]opened+sec_in_day 1729988566 [11:35:27]quantity*price = 49104 [11:35:27]sum+1 = 49106 [11:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 491.00 Внесено: 491.00 СДАЧА: 0.00 НСП 1% : 4.35 НДС 12% : 52.15 Наличными: 491.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 88 26.10.2024 11:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75096 ФПД: 98412645462444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113532&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75096&fm=98412645462444&tin=02508201610067®Number=0000000000091691&sum=49100 [11:35:29]StoreToDocumentArchive [11:35:29]shift 512 fd 75096 [11:35:29]save to /storage/0512/doc_00075096 [11:35:29]save last doc name /storage/0512/doc_00075096 to /storage/kkm_last_doc_name [11:35:29]save OK [11:35:29]Clear old archive folders... [11:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:29]tlvbuf is 007FB630 [11:35:29]SAM_PROTO_ClearQueue [11:35:29]wFMCommunicate request_size=4 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 09 00 00 [11:35:29]Write to MH i2c: E2 08 00 45 2B 80 09 00 00 00 00 00 00 E2 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [11:35:29]RAPDU: 90 00 [11:35:29]wFMCommunicate OK [11:35:29]SAM_PROTO_ClearQueue done [11:35:29]KKMCreateOFDPacket [11:35:29]OFDProtocolAddRootSTLVToBuf [11:35:29]FM_MakeSignedData [11:35:29]FM_MakeSignedData [11:35:29]SAM_PROTO_SignData [11:35:29]wFMCommunicate request_size=4 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 0D 01 02 [11:35:29]Write to MH i2c: E2 08 00 46 2B 80 0D 01 02 00 00 00 00 EA [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 46 2B 00 90 00 E5 [11:35:29]RAPDU: 90 00 [11:35:29]wFMCommunicate OK [11:35:29]wFMCommunicate request_size=255 [11:35:29]MH_SAM_APDU [11:35: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 AC 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 14 00 00 00 00 07 04 06 00 CC BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 D4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 58 25 01 00 35 04 06 00 59 [11:35:29]Write to MH i2c: E2 02 01 47 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 AC 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 14 00 00 00 00 07 04 06 00 CC BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 D4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 58 25 01 00 35 04 06 00 59 00 00 57 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 47 2B 00 90 00 E6 [11:35:29]RAPDU: 90 00 [11:35:29]wFMCommunicate OK [11:35:29]wFMCommunicate request_size=10 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 0D 02 02 05 81 7A C6 31 AC [11:35:29]Write to MH i2c: E2 0D 00 48 2B 80 0D 02 02 05 00 81 7A C6 31 AC 00 00 95 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 03 00 48 2B 00 90 00 E7 [11:35:29]RAPDU: 90 00 [11:35:29]wFMCommunicate OK [11:35:29]wFMCommunicate request_size=4 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 0D 03 02 [11:35:29]Write to MH i2c: E2 08 00 49 2B 80 0D 03 02 00 00 00 00 EF [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 0B 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 0B 00 49 2B 00 AF BD B5 BE BC 40 75 F0 90 00 30 [11:35:29]RAPDU: AF BD B5 BE BC 40 75 F0 90 00 [11:35:29]wFMCommunicate OK [11:35:29]SAM_PROTO_SignData done [11:35:29]FM_MakeSignedData done [11:35:29]CreateOFDProtocolMessage [11:35:29]wFMCommunicate request_size=4 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 11 00 00 [11:35:29]Write to MH i2c: E2 08 00 4A 2B 80 11 00 00 00 00 00 00 EF [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:29]Read from MH i2c: E2 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 17 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: E2 17 00 4A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 47 [11:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:35:29]wFMCommunicate OK [11:35:29]CreateOFDProtocolMessage done [11:35:29]OFDSenderStorePacket 75096 [11:35:29]StoreOFDPacket docnum=75096 [11:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F8 5D 07 01 F8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 14 00 00 00 00 07 04 06 00 CC BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 D4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 58 25 01 00 35 04 06 00 59 81 7A C6 31 AC AF BD B5 BE BC 40 75 F0 [11:35:29]CheckFolder [11:35:29]dirname=/storage/ofd_packets [11:35:29]CheckFolder done [11:35:29]ProducePacketName [11:35:29]name=ofd_packets/00075096 [11:35:29]NVStorageSaveData ofd_packets/00075096 [11:35:29]File name is /storage/ofd_packets/00075096 [11:35:29]Write 301 bytes [11:35:29]NVStorageSaveData done [11:35:29]OFDSenderStorePacket done [11:35:29]KKMCreateOFDPacket done [11:35:29]NVStorageSaveData kkm_last_timestamp [11:35:29]File name is /storage/kkm_last_timestamp [11:35:29]Write 4 bytes [11:35:29]NVStorageSaveData done [11:35:29]ExternCall_PrintAddStr [11:35:29]wPrintStart [11:35:29]Write to MH i2c: 01 00 00 4B 2B 76 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 4B 2B 00 00 00 00 00 FF 0F 8B [11:35:29]RasterBufferAndPrint [11:35:29]line Счет N : (1)191068 [11:35:29]line ИНН: 02508201610067 [11:35:29]line Контрольно-Кассовый Чек [11:35:29]line ПРОДАЖА [11:35:29]line ТРК (МРК, ГНК) : 21 [11:35:29]line Товар: 2710124130 [11:35:29]line Аи-92-К-5 [11:35:29]line 7.340 * 66.90 [11:35:29]line = 491.05 [11:35:29]line НДС 12% НСП 1% [11:35:29]line > о реализуемом товаре [11:35:29]line ОКРУГЛЕНИЕ: -0.05 [11:35:29]line ИТОГО: 491.00 [11:35:29]line Внесено: 491.00 [11:35:29]line СДАЧА: 0.00 [11:35:29]line НСП 1% : 4.35 [11:35:29]line НДС 12% : 52.15 [11:35:29]line Наличными: 491.00 [11:35:29]line Безнал.: 0.00 [11:35:29]line Место: АЗС № 142 "Партнер Нефть" [11:35:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:35:29]line СНО: Общий режим [11:35:29]line Чек 88 26.10.2024 11:35 [11:35:29]line Смена: 512 ФФД: 1.0 [11:35:29]line ЗНМ: 0300000089 [11:35:29]line РНМ: 0000000000091691 [11:35:29]line Версия ККМ: 001 [11:35:29]line ФМ: 0000000000871795 [11:35:29]line ФД: 75096 [11:35:29]line ФПД: 98412645462444 [11:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113532&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75096&fm=98412645462444&tin=02508201610067®Number=0000000000091691&sum=49100 [11:35:29]written 0, free lines is 4095 [11:35:29]OFD Sender: Processing packet 75096 [packets to send 13, broken 12] [11:35:29]ProducePacketName [11:35:29]name=ofd_packets/00075096 [11:35:29]OFD Sender: To server: pG, [11:35:29]CommunicateWithHost lk.salyk.kg:30040 [11:35:29]ConnectInit lk.salyk.kg [11:35:30]Connected sock=10 [11:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F8 5D 07 01 F8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 14 00 00 00 00 07 04 06 00 CC BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 D4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 58 25 01 00 35 04 06 00 59 81 7A C6 31 AC AF BD B5 BE BC 40 75 F0 [11:35:30]Write to MH i2c: 01 00 00 76 2B A1 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 07 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 07 00 76 2B 00 00 00 00 00 AE 0C 62 [11:35:30]RasterBufferAndPrint [11:35:30]line [11:35:30]line [11:35:30]line [11:35:30]line [11:35:30]line [11:35:30]written 0, free lines is 3252 [11:35:30]MH_Cut [11:35:30]Write to MH i2c: D1 01 00 7D 2B 01 7A [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: D1 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: D1 01 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: D1 01 00 7D 2B 00 79 [11:35:30]Write to MH i2c: 01 00 00 7E 2B A9 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 60 47 00 99 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 58 25 01 00 F4 03 04 00 80 7B 1C 67 B6 04 01 00 00 19 4A 0D A3 0E 46 96 E6 [11:35:30]CommunicateWithHost err = 0 [11:35:30]CheckOFDResponse [11:35:30]1017 (14) - 77093643461234 [11:35:30]1041 (16) - 0000000000871795 [11:35:30]1040 (4) - 75096 [11:35:30]1012 (4) - 26.10.2024 05:17 [11:35:30]1206 (1) - 0 [11:35:30]OFD Sender: Remove packet 75096 [11:35:30]ProducePacketName [11:35:30]name=ofd_packets/00075096 [11:35:30]NVStorageDeleteData [11:35:31]OFD Sender: No OFD packet to send [11:35:31]*** Cut start [11:35:31]*** Partial cut [11:35:31]*** CUTSNS_PIN = 1 [11:35:31]*** CUTSNS_PIN = 0 [11:35:31]*** Brake cut motor [11:35:31]Read from MH i2c: 01 [11:35:31]MH_I2C_Read... [11:35:31]*** Stop cut motor [11:35:31]*** Cut end [11:35:31]Read from MH i2c: 01 07 00 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: 01 07 00 7E 2B 00 00 00 00 00 FF 0F BE [11:35:31]process_action close_receipt done [11:35:31]requested_data is exist [11:35:31]produce_requested_data [11:35:31]requested_item fm.sn is exist - process it [11:35:31]wFMCommunicate request_size=4 [11:35:31]MH_SAM_APDU [11:35:31]CAPDU: 80 11 00 00 [11:35:31]Write to MH i2c: E2 08 00 7F 2B 80 11 00 00 00 00 00 00 24 [11:35:31]Write i2c OK [11:35:31]MH_I2C_Read... [11:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 17 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 17 00 7F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [11:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:35:32]wFMCommunicate OK [11:35:32]requested_item fd.num is exist - process it [11:35:32]SAM_PROTO_GetFieldsCounters [11:35:32]wFMCommunicate request_size=4 [11:35:32]MH_SAM_APDU [11:35:32]CAPDU: 80 13 00 00 [11:35:32]Write to MH i2c: E2 08 00 80 2B 80 13 00 00 00 00 00 00 27 [11:35:32]Write i2c OK [11:35:32]MH_I2C_Read... [11:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 62 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 62 00 80 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 58 25 01 00 0E 04 04 00 00 02 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 D6 [11:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 58 25 01 00 0E 04 04 00 00 02 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 [11:35:32]wFMCommunicate OK [11:35:32]SAM_PROTO_GetFieldsCounters done [11:35:32]requested_item shift.num is exist - process it [11:35:32]requested_item shift.opened is exist - process it [11:35:32]req_shift_opened [11:35:32]FM_GetShiftState [11:35:32]SAM_PROTO_GetShiftState [11:35:32]wFMCommunicate request_size=4 [11:35:32]MH_SAM_APDU [11:35:32]CAPDU: 80 13 01 00 [11:35:32]Write to MH i2c: E2 08 00 81 2B 80 13 01 00 00 00 00 00 29 [11:35:32]Write i2c OK [11:35:32]MH_I2C_Read... [11:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 0E 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 0E 00 81 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 44 [11:35:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:35:32]wFMCommunicate OK [11:35:32]SAM_PROTO_GetShiftState done [11:35:32]FM_GetShiftState done [11:35:32]req_shift_opened done [11:35:32]requested_item shift.open_date is exist - process it [11:35:32]req_shift_open_date [11:35:32]req_shift_open_date done [11:35:32]produce_requested_data done [11:35:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75096,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:35:32]process_action_free close_receipt [11:35:32]json_value_free [11:35:32]json_value_free done [11:35:32]process_json_proto returns [11:35:32]Send response to host [11:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75096,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:35:32]free response buf [11:35:32]execute_script done [11:35:32]execute_script returns [11:35:32]free content buf [11:35:32]Sock 9.Close socket [11:35:32]Sock 9.Thread stoped [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:30]recv_with_timeout no data received [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:47]recv_with_timeout no data received [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:15]recv_with_timeout no data received [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:09]accept exits with 8 [11:43:09]New connection [11:43:09]New thread 3066781028 created [11:43:09]Thread 3066924388 joined [11:43:09]Waiting for new connection... [11:43:09] Sock 8.Parse request [11:43:09]Sock 8.Check first char [11:43:09]Sock 8.First char is OK [11:43:09]request: POST /json_proto HTTP/1.0 [11:43:09]Method: POST [11:43:09]URL: /json_proto [11:43:09]Method is POST - this is cgi request [11:43:09]url: /json_proto [11:43:09]query_string will be loaded in cgi processing [11:43:09]execute_cgi json_proto POST (null) [11:43:09]execute_cgi path=json_proto method=POST [11:43:09]POST find Content-Length [11:43:09]Host: 172.17.39.131:8080 [11:43:09]Content-Length: 674 [11:43:09]Content-Type: application/json [11:43:09] [11:43:09]POST finish read [11:43:09]Found Content-Length = 674 [11:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [11:43:09]execute_script... [11:43: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)191069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [11:43:09]POST & json_proto [11:43:09]process_json_proto [11:43:09]json parsed OK: [11:43:09]protocol is kg_v1.0 [11:43:09]action value=close_receipt [11:43:09]process_action close_receipt [11:43:09]cmd_close_receipt [11:43:09]MH_GetDate [11:43:09]Write to MH i2c: F0 00 00 82 2B 9C [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 09 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: F0 09 00 82 2B 00 D2 D5 1C 67 86 57 24 65 35 [11:43:09]GetLastDocTimeStamp 1729942532 [11:43:09]current date 1729942994 [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 83 2B 80 13 01 00 00 00 00 00 2B [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 83 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 46 [11:43:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]opened in 1729902166 [11:43:09]opened+sec_in_day 1729988566 [11:43:09]quantity*price = 60045 [11:43:09]sum+1 = 60047 [11:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 89 26.10.2024 11:43 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75097 ФПД: 222108282418784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114314&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75097&fm=222108282418784&tin=02508201610067®Number=0000000000091691&sum=60000 [11:43:11]StoreToDocumentArchive [11:43:11]shift 512 fd 75097 [11:43:11]save to /storage/0512/doc_00075097 [11:43:11]save last doc name /storage/0512/doc_00075097 to /storage/kkm_last_doc_name [11:43:11]save OK [11:43:11]Clear old archive folders... [11:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:11]tlvbuf is 007FDDF0 [11:43:11]SAM_PROTO_ClearQueue [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 09 00 00 [11:43:11]Write to MH i2c: E2 08 00 90 2B 80 09 00 00 00 00 00 00 2D [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]SAM_PROTO_ClearQueue done [11:43:11]KKMCreateOFDPacket [11:43:11]OFDProtocolAddRootSTLVToBuf [11:43:11]FM_MakeSignedData [11:43:11]FM_MakeSignedData [11:43:11]SAM_PROTO_SignData [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 01 02 [11:43:11]Write to MH i2c: E2 08 00 91 2B 80 0D 01 02 00 00 00 00 35 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=255 [11:43:11]MH_SAM_APDU [11:43: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 34 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 59 00 00 00 F4 03 04 00 D2 D5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 59 25 01 00 35 04 06 00 CA 01 9D 46 [11:43:11]Write to MH i2c: E2 02 01 92 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 34 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 59 00 00 00 F4 03 04 00 D2 D5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 59 25 01 00 35 04 06 00 CA 01 9D 46 00 00 32 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]OFD Sender: No OFD packet to send [11:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=7 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 02 02 02 76 60 [11:43:11]Write to MH i2c: E2 0A 00 93 2B 80 0D 02 02 02 00 76 60 00 00 12 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:11]Read from MH i2c: E2 03 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [11:43:11]RAPDU: 90 00 [11:43:11]wFMCommunicate OK [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 0D 03 02 [11:43:11]Write to MH i2c: E2 08 00 94 2B 80 0D 03 02 00 00 00 00 3A [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 0B 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 0B 00 94 2B 00 95 95 12 F9 45 17 4E E3 90 00 FD [11:43:11]RAPDU: 95 95 12 F9 45 17 4E E3 90 00 [11:43:11]wFMCommunicate OK [11:43:11]SAM_PROTO_SignData done [11:43:11]FM_MakeSignedData done [11:43:11]CreateOFDProtocolMessage [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 11 00 00 [11:43:11]Write to MH i2c: E2 08 00 95 2B 80 11 00 00 00 00 00 00 3A [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 17 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 17 00 95 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 92 [11:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:43:11]wFMCommunicate OK [11:43:11]CreateOFDProtocolMessage done [11:43:11]OFDSenderStorePacket 75097 [11:43:11]StoreOFDPacket docnum=75097 [11:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 CF 05 04 01 2C B8 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 34 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 59 00 00 00 F4 03 04 00 D2 D5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 59 25 01 00 35 04 06 00 CA 01 9D 46 76 60 95 95 12 F9 45 17 4E E3 [11:43:11]CheckFolder [11:43:11]dirname=/storage/ofd_packets [11:43:11]CheckFolder done [11:43:11]ProducePacketName [11:43:11]name=ofd_packets/00075097 [11:43:11]NVStorageSaveData ofd_packets/00075097 [11:43:11]File name is /storage/ofd_packets/00075097 [11:43:11]Write 298 bytes [11:43:11]NVStorageSaveData done [11:43:11]OFDSenderStorePacket done [11:43:11]KKMCreateOFDPacket done [11:43:11]NVStorageSaveData kkm_last_timestamp [11:43:11]File name is /storage/kkm_last_timestamp [11:43:11]Write 4 bytes [11:43:11]NVStorageSaveData done [11:43:11]ExternCall_PrintAddStr [11:43:11]wPrintStart [11:43:11]Write to MH i2c: 01 00 00 96 2B C1 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 07 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 07 00 96 2B 00 00 00 00 00 FF 0F D6 [11:43:11]RasterBufferAndPrint [11:43:11]line Счет N : (1)191069 [11:43:11]line ИНН: 02508201610067 [11:43:11]line Контрольно-Кассовый Чек [11:43:11]line ПРОДАЖА [11:43:11]line ТРК (МРК, ГНК) : 31 [11:43:11]line Товар: 2710194210 [11:43:11]line ДТ-К-4 [11:43:11]line 7.880 * 76.20 [11:43:11]line = 600.46 [11:43:11]line НДС 12% НСП 1% [11:43:11]line > о реализуемом товаре [11:43:11]line ОКРУГЛЕНИЕ: -0.46 [11:43:11]line ИТОГО: 600.00 [11:43:11]line Внесено: 600.00 [11:43:11]line СДАЧА: 0.00 [11:43:11]line НСП 1% : 5.31 [11:43:11]line НДС 12% : 63.77 [11:43:11]line Наличными: 600.00 [11:43:11]line Безнал.: 0.00 [11:43:11]line Место: АЗС № 142 "Партнер Нефть" [11:43:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:43:11]line СНО: Общий режим [11:43:11]line Чек 89 26.10.2024 11:43 [11:43:11]line Смена: 512 ФФД: 1.0 [11:43:11]line ЗНМ: 0300000089 [11:43:11]line РНМ: 0000000000091691 [11:43:11]line Версия ККМ: 001 [11:43:11]line ФМ: 0000000000871795 [11:43:11]line ФД: 75097 [11:43:11]line ФПД: 222108282418784 [11:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114314&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75097&fm=222108282418784&tin=02508201610067®Number=0000000000091691&sum=60000 [11:43:11]written 0, free lines is 4095 [11:43:11]OFD Sender: Processing packet 75097 [packets to send 13, broken 12] [11:43:11]ProducePacketName [11:43:11]name=ofd_packets/00075097 [11:43:11]OFD Sender: To server: pG, [11:43:11]CommunicateWithHost lk.salyk.kg:30040 [11:43:11]ConnectInit lk.salyk.kg [11:43:12]Connected sock=10 [11:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 CF 05 04 01 2C B8 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 34 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 59 00 00 00 F4 03 04 00 D2 D5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 59 25 01 00 35 04 06 00 CA 01 9D 46 76 60 95 95 12 F9 45 17 4E E3 [11:43:12]Write to MH i2c: 01 00 00 C1 2B EC [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 C1 2B 00 00 00 00 00 9D 0C 9C [11:43:12]RasterBufferAndPrint [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]line [11:43:12]written 0, free lines is 3238 [11:43:12]MH_Cut [11:43:12]Write to MH i2c: D1 01 00 C8 2B 01 C5 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: D1 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: D1 01 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: D1 01 00 C8 2B 00 C4 [11:43:12]Write to MH i2c: 01 00 00 C9 2B F4 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:13]*** Cut start [11:43:13]*** Partial cut [11:43:13]*** CUTSNS_PIN = 1 [11:43:13]*** CUTSNS_PIN = 0 [11:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EB 3C 47 00 72 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 38 37 31 37 39 35 10 04 04 00 59 25 01 00 F4 03 04 00 4F 7D 1C 67 B6 04 01 00 00 6A 8B E9 BB 83 1C C0 50 [11:43:13]CommunicateWithHost err = 0 [11:43:13]CheckOFDResponse [11:43:13]1017 (14) - 77093643461234 [11:43:13]1041 (16) - 0000000000871795 [11:43:13]1040 (4) - 75097 [11:43:13]1012 (4) - 26.10.2024 05:25 [11:43:13]1206 (1) - 0 [11:43:13]OFD Sender: Remove packet 75097 [11:43:13]ProducePacketName [11:43:13]name=ofd_packets/00075097 [11:43:13]NVStorageDeleteData [11:43:13]*** Brake cut motor [11:43:13]OFD Sender: No OFD packet to send [11:43:13]Read from MH i2c: 01 [11:43:13]MH_I2C_Read... [11:43:13]*** Stop cut motor [11:43:13]*** Cut end [11:43:13]Read from MH i2c: 01 07 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 C9 2B 00 00 00 00 00 FF 0F 09 [11:43:13]process_action close_receipt done [11:43:13]requested_data is exist [11:43:13]produce_requested_data [11:43:13]requested_item fm.sn is exist - process it [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 11 00 00 [11:43:13]Write to MH i2c: E2 08 00 CA 2B 80 11 00 00 00 00 00 00 6F [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 CA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [11:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:43:13]wFMCommunicate OK [11:43:13]requested_item fd.num is exist - process it [11:43:13]SAM_PROTO_GetFieldsCounters [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 13 00 00 [11:43:13]Write to MH i2c: E2 08 00 CB 2B 80 13 00 00 00 00 00 00 72 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:14]Read from MH i2c: E2 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: E2 62 00 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: E2 62 00 CB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 59 25 01 00 0E 04 04 00 00 02 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 25 [11:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 59 25 01 00 0E 04 04 00 00 02 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 [11:43:14]wFMCommunicate OK [11:43:14]SAM_PROTO_GetFieldsCounters done [11:43:14]requested_item shift.num is exist - process it [11:43:14]requested_item shift.opened is exist - process it [11:43:14]req_shift_opened [11:43:14]FM_GetShiftState [11:43:14]SAM_PROTO_GetShiftState [11:43:14]wFMCommunicate request_size=4 [11:43:14]MH_SAM_APDU [11:43:14]CAPDU: 80 13 01 00 [11:43:14]Write to MH i2c: E2 08 00 CC 2B 80 13 01 00 00 00 00 00 74 [11:43:14]Write i2c OK [11:43:14]MH_I2C_Read... [11:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:14]Read from MH i2c: E2 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: E2 0E 00 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: E2 0E 00 CC 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8F [11:43:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:43:14]wFMCommunicate OK [11:43:14]SAM_PROTO_GetShiftState done [11:43:14]FM_GetShiftState done [11:43:14]req_shift_opened done [11:43:14]requested_item shift.open_date is exist - process it [11:43:14]req_shift_open_date [11:43:14]req_shift_open_date done [11:43:14]produce_requested_data done [11:43:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75097,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:43:14]process_action_free close_receipt [11:43:14]json_value_free [11:43:14]json_value_free done [11:43:14]process_json_proto returns [11:43:14]Send response to host [11:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75097,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:43:14]free response buf [11:43:14]execute_script done [11:43:14]execute_script returns [11:43:14]free content buf [11:43:14]Sock 8.Close socket [11:43:14]Sock 8.Thread stoped [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:30]recv_with_timeout no data received [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:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [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:43]recv_with_timeout no data received [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:27]accept exits with 9 [11:49:27]New connection [11:49:27]New thread 3066924388 created [11:49:27]Thread 3066781028 joined [11:49:27]Waiting for new connection... [11:49:27] Sock 9.Parse request [11:49:27]Sock 9.Check first char [11:49:27]Sock 9.First char is OK [11:49:27]request: POST /json_proto HTTP/1.0 [11:49:27]Method: POST [11:49:27]URL: /json_proto [11:49:27]Method is POST - this is cgi request [11:49:27]url: /json_proto [11:49:27]query_string will be loaded in cgi processing [11:49:27]execute_cgi json_proto POST (null) [11:49:27]execute_cgi path=json_proto method=POST [11:49:27]POST find Content-Length [11:49:27]Host: 172.17.39.131:8080 [11:49:27]Content-Length: 766 [11:49:27]Content-Type: application/json [11:49:27] [11:49:27]POST finish read [11:49:27]Found Content-Length = 766 [11:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [11:49:27]execute_script... [11:49: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)191070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [11:49:27]POST & json_proto [11:49:27]process_json_proto [11:49:27]json parsed OK: [11:49:27]protocol is kg_v1.0 [11:49:27]action value=close_receipt [11:49:27]process_action close_receipt [11:49:27]cmd_close_receipt [11:49:27]MH_GetDate [11:49:27]Write to MH i2c: F0 00 00 CD 2B E7 [11:49:27]Write i2c OK [11:49:27]MH_I2C_Read... [11:49:27]Read from MH i2c: F0 [11:49:27]MH_I2C_Read... [11:49:27]Read from MH i2c: F0 09 00 [11:49:27]MH_I2C_Read... [11:49:27]Read from MH i2c: F0 09 00 CD 2B 00 4C D7 1C 67 86 57 24 65 FC [11:49:27]GetLastDocTimeStamp 1729942994 [11:49:27]current date 1729943372 [11:49:27]FM_GetShiftState [11:49:27]SAM_PROTO_GetShiftState [11:49:27]wFMCommunicate request_size=4 [11:49:27]MH_SAM_APDU [11:49:27]CAPDU: 80 13 01 00 [11:49:27]Write to MH i2c: E2 08 00 CE 2B 80 13 01 00 00 00 00 00 76 [11:49:27]Write i2c OK [11:49:27]MH_I2C_Read... [11:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:27]Read from MH i2c: E2 [11:49:27]MH_I2C_Read... [11:49:27]Read from MH i2c: E2 0E 00 [11:49:27]MH_I2C_Read... [11:49:27]Read from MH i2c: E2 0E 00 CE 2B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 91 [11:49:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:49:27]wFMCommunicate OK [11:49:27]SAM_PROTO_GetShiftState done [11:49:27]FM_GetShiftState done [11:49:27]opened in 1729902166 [11:49:27]opened+sec_in_day 1729988566 [11:49:27]quantity*price = 100050 [11:49:27]sum+1 = 100052 [11:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 90 26.10.2024 11:49 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75098 ФПД: 275167791801817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114932&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75098&fm=275167791801817&tin=02508201610067®Number=0000000000091691&sum=100051 [11:49:28]StoreToDocumentArchive [11:49:28]shift 512 fd 75098 [11:49:28]save to /storage/0512/doc_00075098 [11:49:28]save last doc name /storage/0512/doc_00075098 to /storage/kkm_last_doc_name [11:49:28]save OK [11:49:28]Clear old archive folders... [11:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:49:28]tlvbuf is 0084DC30 [11:49:28]SAM_PROTO_ClearQueue [11:49:28]wFMCommunicate request_size=4 [11:49:28]MH_SAM_APDU [11:49:28]CAPDU: 80 09 00 00 [11:49:28]Write to MH i2c: E2 08 00 DB 2B 80 09 00 00 00 00 00 00 78 [11:49:28]Write i2c OK [11:49:28]MH_I2C_Read... [11:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:28]Read from MH i2c: E2 [11:49:28]MH_I2C_Read... [11:49:28]Read from MH i2c: E2 03 00 [11:49:28]MH_I2C_Read... [11:49:28]Read from MH i2c: E2 03 00 DB 2B 00 90 00 7A [11:49:28]RAPDU: 90 00 [11:49:28]wFMCommunicate OK [11:49:28]SAM_PROTO_ClearQueue done [11:49:28]KKMCreateOFDPacket [11:49:28]OFDProtocolAddRootSTLVToBuf [11:49:28]FM_MakeSignedData [11:49:28]FM_MakeSignedData [11:49:28]SAM_PROTO_SignData [11:49:28]wFMCommunicate request_size=4 [11:49:28]MH_SAM_APDU [11:49:28]CAPDU: 80 0D 01 02 [11:49:28]Write to MH i2c: E2 08 00 DC 2B 80 0D 01 02 00 00 00 00 80 [11:49:28]Write i2c OK [11:49:28]MH_I2C_Read... [11:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:28]Read from MH i2c: E2 [11:49:28]MH_I2C_Read... [11:49:28]Read from MH i2c: E2 03 00 [11:49:28]MH_I2C_Read... [11:49:28]Read from MH i2c: E2 03 00 DC 2B 00 90 00 7B [11:49:28]RAPDU: 90 00 [11:49:28]wFMCommunicate OK [11:49:28]wFMCommunicate request_size=255 [11:49:28]MH_SAM_APDU [11:49:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 5A 00 00 00 F4 03 04 00 4C D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5A 25 01 00 35 04 06 00 FA 43 7E 7B [11:49:28]Write to MH i2c: E2 02 01 DD 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 34 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 5A 00 00 00 F4 03 04 00 4C D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5A 25 01 00 35 04 06 00 FA 43 7E 7B 00 00 28 [11:49:28]Write i2c OK [11:49:28]MH_I2C_Read... [11:49:29]OFD Sender: No OFD packet to send [11:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 03 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 03 00 DD 2B 00 90 00 7C [11:49:29]RAPDU: 90 00 [11:49:29]wFMCommunicate OK [11:49:29]wFMCommunicate request_size=7 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 0D 02 02 02 E5 D9 [11:49:29]Write to MH i2c: E2 0A 00 DE 2B 80 0D 02 02 02 00 E5 D9 00 00 45 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 03 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 03 00 DE 2B 00 90 00 7D [11:49:29]RAPDU: 90 00 [11:49:29]wFMCommunicate OK [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 0D 03 02 [11:49:29]Write to MH i2c: E2 08 00 DF 2B 80 0D 03 02 00 00 00 00 85 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0B 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0B 00 DF 2B 00 49 FA 62 D5 30 99 CD DC 90 00 72 [11:49:29]RAPDU: 49 FA 62 D5 30 99 CD DC 90 00 [11:49:29]wFMCommunicate OK [11:49:29]SAM_PROTO_SignData done [11:49:29]FM_MakeSignedData done [11:49:29]CreateOFDProtocolMessage [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 11 00 00 [11:49:29]Write to MH i2c: E2 08 00 E0 2B 80 11 00 00 00 00 00 00 85 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 17 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 17 00 E0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DD [11:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:49:29]wFMCommunicate OK [11:49:29]CreateOFDProtocolMessage done [11:49:29]OFDSenderStorePacket 75098 [11:49:29]StoreOFDPacket docnum=75098 [11:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 3A 81 04 01 62 70 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 34 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 5A 00 00 00 F4 03 04 00 4C D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5A 25 01 00 35 04 06 00 FA 43 7E 7B E5 D9 49 FA 62 D5 30 99 CD DC [11:49:29]CheckFolder [11:49:29]dirname=/storage/ofd_packets [11:49:29]CheckFolder done [11:49:29]ProducePacketName [11:49:29]name=ofd_packets/00075098 [11:49:29]NVStorageSaveData ofd_packets/00075098 [11:49:29]File name is /storage/ofd_packets/00075098 [11:49:29]Write 298 bytes [11:49:29]NVStorageSaveData done [11:49:29]OFDSenderStorePacket done [11:49:29]KKMCreateOFDPacket done [11:49:29]NVStorageSaveData kkm_last_timestamp [11:49:29]File name is /storage/kkm_last_timestamp [11:49:29]Write 4 bytes [11:49:29]NVStorageSaveData done [11:49:29]ExternCall_PrintAddStr [11:49:29]wPrintStart [11:49:29]Write to MH i2c: 01 00 00 E1 2B 0C [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: 01 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: 01 07 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: 01 07 00 E1 2B 00 00 00 00 00 FF 0F 21 [11:49:29]RasterBufferAndPrint [11:49:29]line Счет N : (1)191070 [11:49:29]line ИНН: 02508201610067 [11:49:29]line Контрольно-Кассовый Чек [11:49:29]line ПРОДАЖА [11:49:29]line ТРК (МРК, ГНК) : 41 [11:49:29]line Товар: 2710194210 [11:49:29]line ДТ-К-4 [11:49:29]line 13.130 * 76.20 [11:49:29]line = 1000.51 [11:49:29]line НДС 12% НСП 1% [11:49:29]line > о реализуемом товаре [11:49:29]line ИТОГО: 1000.51 [11:49:29]line НСП 1% : 8.85 [11:49:29]line НДС 12% : 106.25 [11:49:29]line Наличными: 0.00 [11:49:29]line Безнал.: 1000.51 [11:49:29]line Место: АЗС № 142 "Партнер Нефть" [11:49:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:49:29]line СНО: Общий режим [11:49:29]line Чек 90 26.10.2024 11:49 [11:49:29]line Смена: 512 ФФД: 1.0 [11:49:29]line ЗНМ: 0300000089 [11:49:29]line РНМ: 0000000000091691 [11:49:29]line Версия ККМ: 001 [11:49:29]line Платежная система: Mbank [11:49:29]line ФМ: 0000000000871795 [11:49:29]line ФД: 75098 [11:49:29]line ФПД: 275167791801817 [11:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114932&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75098&fm=275167791801817&tin=02508201610067®Number=0000000000091691&sum=100051 [11:49:29]OFD Sender: Processing packet 75098 [packets to send 13, broken 12] [11:49:29]ProducePacketName [11:49:29]name=ofd_packets/00075098 [11:49:29]OFD Sender: To server: pG, [11:49:29]CommunicateWithHost lk.salyk.kg:30040 [11:49:29]ConnectInit lk.salyk.kg [11:49:29]written 0, free lines is 4095 [11:49:29]Connected sock=10 [11:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 3A 81 04 01 62 70 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 34 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 5A 00 00 00 F4 03 04 00 4C D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5A 25 01 00 35 04 06 00 FA 43 7E 7B E5 D9 49 FA 62 D5 30 99 CD DC [11:49:30]Write to MH i2c: 01 00 00 0A 2C 36 [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: 01 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: 01 07 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: 01 07 00 0A 2C 00 00 00 00 00 D4 0C 1D [11:49:30]RasterBufferAndPrint [11:49:30]line [11:49:30]line [11:49:30]line [11:49:30]line [11:49:30]line [11:49:30]written 0, free lines is 3291 [11:49:30]MH_Cut [11:49:30]Write to MH i2c: D1 01 00 11 2C 01 0F [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: D1 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: D1 01 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: D1 01 00 11 2C 00 0E [11:49:30]Write to MH i2c: 01 00 00 12 2C 3E [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 01 B9 47 00 20 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 38 37 31 37 39 35 10 04 04 00 5A 25 01 00 F4 03 04 00 C8 7E 1C 67 B6 04 01 00 00 9C 00 E8 66 F6 25 5E D5 [11:49:30]CommunicateWithHost err = 0 [11:49:30]CheckOFDResponse [11:49:30]1017 (14) - 77093643461234 [11:49:30]1041 (16) - 0000000000871795 [11:49:30]1040 (4) - 75098 [11:49:30]1012 (4) - 26.10.2024 05:31 [11:49:30]1206 (1) - 0 [11:49:30]OFD Sender: Remove packet 75098 [11:49:30]ProducePacketName [11:49:30]name=ofd_packets/00075098 [11:49:30]NVStorageDeleteData [11:49:30]OFD Sender: No OFD packet to send [11:49:30]*** Cut start [11:49:30]*** Partial cut [11:49:30]*** CUTSNS_PIN = 1 [11:49:31]*** CUTSNS_PIN = 0 [11:49:31]*** Brake cut motor [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]*** Stop cut motor [11:49:31]*** Cut end [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 12 2C 00 00 00 00 00 FF 0F 53 [11:49:31]process_action close_receipt done [11:49:31]requested_data is exist [11:49:31]produce_requested_data [11:49:31]requested_item fm.sn is exist - process it [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 11 00 00 [11:49:31]Write to MH i2c: E2 08 00 13 2C 80 11 00 00 00 00 00 00 B9 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 13 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 11 [11:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:49:31]wFMCommunicate OK [11:49:31]requested_item fd.num is exist - process it [11:49:31]SAM_PROTO_GetFieldsCounters [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 13 00 00 [11:49:31]Write to MH i2c: E2 08 00 14 2C 80 13 00 00 00 00 00 00 BC [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 62 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 62 00 14 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5A 25 01 00 0E 04 04 00 00 02 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 73 [11:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5A 25 01 00 0E 04 04 00 00 02 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 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_GetFieldsCounters done [11:49:31]requested_item shift.num is exist - process it [11:49:31]requested_item shift.opened is exist - process it [11:49:31]req_shift_opened [11:49:31]FM_GetShiftState [11:49:31]SAM_PROTO_GetShiftState [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 13 01 00 [11:49:31]Write to MH i2c: E2 08 00 15 2C 80 13 01 00 00 00 00 00 BE [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0E 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0E 00 15 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D9 [11:49:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_GetShiftState done [11:49:31]FM_GetShiftState done [11:49:31]req_shift_opened done [11:49:31]requested_item shift.open_date is exist - process it [11:49:31]req_shift_open_date [11:49:31]req_shift_open_date done [11:49:31]produce_requested_data done [11:49:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75098,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:49:31]process_action_free close_receipt [11:49:31]json_value_free [11:49:31]json_value_free done [11:49:31]process_json_proto returns [11:49:31]Send response to host [11:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75098,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:49:31]free response buf [11:49:31]execute_script done [11:49:31]execute_script returns [11:49:31]free content buf [11:49:31]Sock 9.Close socket [11:49:31]Sock 9.Thread stoped [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:17]accept exits with 8 [11:50:17]New connection [11:50:17]New thread 3066781028 created [11:50:17]Thread 3066924388 joined [11:50:17]Waiting for new connection... [11:50:17] Sock 8.Parse request [11:50:17]Sock 8.Check first char [11:50:17]Sock 8.First char is OK [11:50:17]request: POST /json_proto HTTP/1.0 [11:50:17]Method: POST [11:50:17]URL: /json_proto [11:50:17]Method is POST - this is cgi request [11:50:17]url: /json_proto [11:50:17]query_string will be loaded in cgi processing [11:50:17]execute_cgi json_proto POST (null) [11:50:17]execute_cgi path=json_proto method=POST [11:50:17]POST find Content-Length [11:50:17]Host: 172.17.39.131:8080 [11:50:17]Content-Length: 682 [11:50:17]Content-Type: application/json [11:50:17] [11:50:17]POST finish read [11:50:17]Found Content-Length = 682 [11:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:50:17]execute_script... [11:50: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)191071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:50:17]POST & json_proto [11:50:17]process_json_proto [11:50:17]json parsed OK: [11:50:17]protocol is kg_v1.0 [11:50:17]action value=close_receipt [11:50:17]process_action close_receipt [11:50:17]cmd_close_receipt [11:50:17]MH_GetDate [11:50:17]Write to MH i2c: F0 00 00 16 2C 31 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 09 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: F0 09 00 16 2C 00 7E D7 1C 67 86 57 24 65 78 [11:50:17]GetLastDocTimeStamp 1729943372 [11:50:17]current date 1729943422 [11:50:17]FM_GetShiftState [11:50:17]SAM_PROTO_GetShiftState [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 13 01 00 [11:50:17]Write to MH i2c: E2 08 00 17 2C 80 13 01 00 00 00 00 00 C0 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 17 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DB [11:50:17]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetShiftState done [11:50:17]FM_GetShiftState done [11:50:17]opened in 1729902166 [11:50:17]opened+sec_in_day 1729988566 [11:50:17]quantity*price = 100015 [11:50:17]sum+1 = 100017 [11:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 91 26.10.2024 11:50 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75099 ФПД: 265757789374837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115022&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75099&fm=265757789374837&tin=02508201610067®Number=0000000000091691&sum=100000 [11:50:18]StoreToDocumentArchive [11:50:18]shift 512 fd 75099 [11:50:18]save to /storage/0512/doc_00075099 [11:50:18]save last doc name /storage/0512/doc_00075099 to /storage/kkm_last_doc_name [11:50:18]save OK [11:50:18]Clear old archive folders... [11:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:18]tlvbuf is 008AFD40 [11:50:18]SAM_PROTO_ClearQueue [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 09 00 00 [11:50:18]Write to MH i2c: E2 08 00 24 2C 80 09 00 00 00 00 00 00 C2 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 24 2C 00 90 00 C4 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]SAM_PROTO_ClearQueue done [11:50:18]KKMCreateOFDPacket [11:50:18]OFDProtocolAddRootSTLVToBuf [11:50:18]FM_MakeSignedData [11:50:18]FM_MakeSignedData [11:50:18]SAM_PROTO_SignData [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 0D 01 02 [11:50:18]Write to MH i2c: E2 08 00 25 2C 80 0D 01 02 00 00 00 00 CA [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 25 2C 00 90 00 C5 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]wFMCommunicate request_size=255 [11:50:18]MH_SAM_APDU [11:50: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 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 5B 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5B 25 01 00 35 04 06 00 F1 [11:50:18]Write to MH i2c: E2 02 01 26 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5B 25 01 00 35 04 06 00 F1 00 00 00 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 26 2C 00 90 00 C6 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]wFMCommunicate request_size=10 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 0D 02 02 05 B4 8E A1 C9 75 [11:50:18]Write to MH i2c: E2 0D 00 27 2C 80 0D 02 02 05 00 B4 8E A1 C9 75 00 00 F8 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 03 00 27 2C 00 90 00 C7 [11:50:19]RAPDU: 90 00 [11:50:19]wFMCommunicate OK [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 0D 03 02 [11:50:19]Write to MH i2c: E2 08 00 28 2C 80 0D 03 02 00 00 00 00 CF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0B 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0B 00 28 2C 00 CB 9C 7A C3 6C D5 DD D6 90 00 68 [11:50:19]RAPDU: CB 9C 7A C3 6C D5 DD D6 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_SignData done [11:50:19]FM_MakeSignedData done [11:50:19]CreateOFDProtocolMessage [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 11 00 00 [11:50:19]Write to MH i2c: E2 08 00 29 2C 80 11 00 00 00 00 00 00 CF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 29 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 27 [11:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:50:19]wFMCommunicate OK [11:50:19]CreateOFDProtocolMessage done [11:50:19]OFDSenderStorePacket 75099 [11:50:19]StoreOFDPacket docnum=75099 [11:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 20 BC 07 01 C1 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5B 25 01 00 35 04 06 00 F1 B4 8E A1 C9 75 CB 9C 7A C3 6C D5 DD D6 [11:50:19]CheckFolder [11:50:19]dirname=/storage/ofd_packets [11:50:19]CheckFolder done [11:50:19]ProducePacketName [11:50:19]name=ofd_packets/00075099 [11:50:19]NVStorageSaveData ofd_packets/00075099 [11:50:19]File name is /storage/ofd_packets/00075099 [11:50:19]Write 301 bytes [11:50:19]NVStorageSaveData done [11:50:19]OFDSenderStorePacket done [11:50:19]KKMCreateOFDPacket done [11:50:19]NVStorageSaveData kkm_last_timestamp [11:50:19]File name is /storage/kkm_last_timestamp [11:50:19]Write 4 bytes [11:50:19]NVStorageSaveData done [11:50:19]ExternCall_PrintAddStr [11:50:19]wPrintStart [11:50:19]Write to MH i2c: 01 00 00 2A 2C 56 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 2A 2C 00 00 00 00 00 FF 0F 6B [11:50:19]RasterBufferAndPrint [11:50:19]line Счет N : (1)191071 [11:50:19]line ИНН: 02508201610067 [11:50:19]line Контрольно-Кассовый Чек [11:50:19]line ПРОДАЖА [11:50:19]line ТРК (МРК, ГНК) : 21 [11:50:19]line Товар: 2710124130 [11:50:19]line Аи-92-К-5 [11:50:19]line 14.950 * 66.90 [11:50:19]line = 1000.16 [11:50:19]line НДС 12% НСП 1% [11:50:19]line > о реализуемом товаре [11:50:19]line ОКРУГЛЕНИЕ: -0.16 [11:50:19]line ИТОГО: 1000.00 [11:50:19]line Внесено: 1000.00 [11:50:19]line СДАЧА: 0.00 [11:50:19]line НСП 1% : 8.85 [11:50:19]line НДС 12% : 106.21 [11:50:19]line Наличными: 1000.00 [11:50:19]line Безнал.: 0.00 [11:50:19]line Место: АЗС № 142 "Партнер Нефть" [11:50:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:50:19]line СНО: Общий режим [11:50:19]line Чек 91 26.10.2024 11:50 [11:50:19]line Смена: 512 ФФД: 1.0 [11:50:19]line ЗНМ: 0300000089 [11:50:19]line РНМ: 0000000000091691 [11:50:19]line Версия ККМ: 001 [11:50:19]line ФМ: 0000000000871795 [11:50:19]line ФД: 75099 [11:50:19]line ФПД: 265757789374837 [11:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115022&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75099&fm=265757789374837&tin=02508201610067®Number=0000000000091691&sum=100000 [11:50:19]OFD Sender: Processing packet 75099 [packets to send 13, broken 12] [11:50:19]ProducePacketName [11:50:19]name=ofd_packets/00075099 [11:50:19]OFD Sender: To server: pG, [11:50:19]CommunicateWithHost lk.salyk.kg:30040 [11:50:19]ConnectInit lk.salyk.kg [11:50:19]written 0, free lines is 4095 [11:50:19]Connected sock=11 [11:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 20 BC 07 01 C1 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5B 25 01 00 35 04 06 00 F1 B4 8E A1 C9 75 CB 9C 7A C3 6C D5 DD D6 [11:50:19]Write to MH i2c: 01 00 00 55 2C 81 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 9D 0C 31 [11:50:19]RasterBufferAndPrint [11:50:19]line [11:50:19]line [11:50:19]line [11:50:19]line [11:50:19]line [11:50:19]written 0, free lines is 3235 [11:50:19]MH_Cut [11:50:19]Write to MH i2c: D1 01 00 5C 2C 01 5A [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: D1 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: D1 01 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: D1 01 00 5C 2C 00 59 [11:50:19]Write to MH i2c: 01 00 00 5D 2C 89 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 92 C1 47 00 D1 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 38 37 31 37 39 35 10 04 04 00 5B 25 01 00 F4 03 04 00 FA 7E 1C 67 B6 04 01 00 00 D6 D3 1F 9E 46 8A C2 AC [11:50:19]CommunicateWithHost err = 0 [11:50:19]CheckOFDResponse [11:50:19]1017 (14) - 77093643461234 [11:50:19]1041 (16) - 0000000000871795 [11:50:19]1040 (4) - 75099 [11:50:19]1012 (4) - 26.10.2024 05:32 [11:50:19]1206 (1) - 0 [11:50:19]OFD Sender: Remove packet 75099 [11:50:19]ProducePacketName [11:50:19]name=ofd_packets/00075099 [11:50:19]NVStorageDeleteData [11:50:20]OFD Sender: No OFD packet to send [11:50:20]*** Cut start [11:50:20]*** Partial cut [11:50:20]*** CUTSNS_PIN = 1 [11:50:20]*** CUTSNS_PIN = 0 [11:50:20]*** Brake cut motor [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]*** Stop cut motor [11:50:21]*** Cut end [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 5D 2C 00 00 00 00 00 FF 0F 9E [11:50:21]process_action close_receipt done [11:50:21]requested_data is exist [11:50:21]produce_requested_data [11:50:21]requested_item fm.sn is exist - process it [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 11 00 00 [11:50:21]Write to MH i2c: E2 08 00 5E 2C 80 11 00 00 00 00 00 00 04 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 5E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5C [11:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:50:21]wFMCommunicate OK [11:50:21]requested_item fd.num is exist - process it [11:50:21]SAM_PROTO_GetFieldsCounters [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 13 00 00 [11:50:21]Write to MH i2c: E2 08 00 5F 2C 80 13 00 00 00 00 00 00 07 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 62 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 62 00 5F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5B 25 01 00 0E 04 04 00 00 02 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 C2 [11:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5B 25 01 00 0E 04 04 00 00 02 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 [11:50:21]wFMCommunicate OK [11:50:21]SAM_PROTO_GetFieldsCounters done [11:50:21]requested_item shift.num is exist - process it [11:50:21]requested_item shift.opened is exist - process it [11:50:21]req_shift_opened [11:50:21]FM_GetShiftState [11:50:21]SAM_PROTO_GetShiftState [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 13 01 00 [11:50:21]Write to MH i2c: E2 08 00 60 2C 80 13 01 00 00 00 00 00 09 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 60 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 24 [11:50:21]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:50:21]wFMCommunicate OK [11:50:21]SAM_PROTO_GetShiftState done [11:50:21]FM_GetShiftState done [11:50:21]req_shift_opened done [11:50:21]requested_item shift.open_date is exist - process it [11:50:21]req_shift_open_date [11:50:21]req_shift_open_date done [11:50:21]produce_requested_data done [11:50:21]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75099,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:50:21]process_action_free close_receipt [11:50:21]json_value_free [11:50:21]json_value_free done [11:50:21]process_json_proto returns [11:50:21]Send response to host [11:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75099,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:50:21]free response buf [11:50:21]execute_script done [11:50:21]execute_script returns [11:50:21]free content buf [11:50:21]Sock 8.Close socket [11:50:21]Sock 8.Thread stoped [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:12]accept exits with 9 [11:51:12]New connection [11:51:12]New thread 3066924388 created [11:51:12]Thread 3066781028 joined [11:51:12]Waiting for new connection... [11:51:12] Sock 9.Parse request [11:51:12]Sock 9.Check first char [11:51:12]Sock 9.First char is OK [11:51:12]request: POST /json_proto HTTP/1.0 [11:51:12]Method: POST [11:51:12]URL: /json_proto [11:51:12]Method is POST - this is cgi request [11:51:12]url: /json_proto [11:51:12]query_string will be loaded in cgi processing [11:51:12]execute_cgi json_proto POST (null) [11:51:12]execute_cgi path=json_proto method=POST [11:51:12]POST find Content-Length [11:51:12]Host: 172.17.39.131:8080 [11:51:12]Content-Length: 674 [11:51:12]Content-Type: application/json [11:51:12] [11:51:12]POST finish read [11:51:12]Found Content-Length = 674 [11:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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" ] } } [11:51:12]execute_script... [11:51: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)191072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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" ] } } [11:51:12]POST & json_proto [11:51:12]process_json_proto [11:51:12]json parsed OK: [11:51:12]protocol is kg_v1.0 [11:51:12]action value=close_receipt [11:51:12]process_action close_receipt [11:51:12]cmd_close_receipt [11:51:12]MH_GetDate [11:51:12]Write to MH i2c: F0 00 00 61 2C 7C [11:51:12]Write i2c OK [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: F0 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: F0 09 00 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: F0 09 00 61 2C 00 B4 D7 1C 67 86 57 24 65 F9 [11:51:12]GetLastDocTimeStamp 1729943422 [11:51:12]current date 1729943476 [11:51:12]FM_GetShiftState [11:51:12]SAM_PROTO_GetShiftState [11:51:12]wFMCommunicate request_size=4 [11:51:12]MH_SAM_APDU [11:51:12]CAPDU: 80 13 01 00 [11:51:12]Write to MH i2c: E2 08 00 62 2C 80 13 01 00 00 00 00 00 0B [11:51:12]Write i2c OK [11:51:12]MH_I2C_Read... [11:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:12]Read from MH i2c: E2 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 0E 00 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 0E 00 62 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 26 [11:51:12]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:51:12]wFMCommunicate OK [11:51:12]SAM_PROTO_GetShiftState done [11:51:12]FM_GetShiftState done [11:51:12]opened in 1729902166 [11:51:12]opened+sec_in_day 1729988566 [11:51:12]quantity*price = 30022 [11:51:12]sum+1 = 30024 [11:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 92 26.10.2024 11:51 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75100 ФПД: 125426290618642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75100&fm=125426290618642&tin=02508201610067®Number=0000000000091691&sum=30000 [11:51:13]StoreToDocumentArchive [11:51:13]shift 512 fd 75100 [11:51:13]save to /storage/0512/doc_00075100 [11:51:13]save last doc name /storage/0512/doc_00075100 to /storage/kkm_last_doc_name [11:51:13]save OK [11:51:13]Clear old archive folders... [11:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:13]tlvbuf is 008A2C40 [11:51:13]SAM_PROTO_ClearQueue [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 09 00 00 [11:51:13]Write to MH i2c: E2 08 00 6F 2C 80 09 00 00 00 00 00 00 0D [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]SAM_PROTO_ClearQueue done [11:51:13]KKMCreateOFDPacket [11:51:13]OFDProtocolAddRootSTLVToBuf [11:51:13]FM_MakeSignedData [11:51:13]FM_MakeSignedData [11:51:13]SAM_PROTO_SignData [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 0D 01 02 [11:51:13]Write to MH i2c: E2 08 00 70 2C 80 0D 01 02 00 00 00 00 15 [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 70 2C 00 90 00 10 [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]wFMCommunicate request_size=255 [11:51:13]MH_SAM_APDU [11:51: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 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 5C 00 00 00 F4 03 04 00 B4 D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5C 25 01 00 35 04 06 00 72 13 15 7F [11:51:13]Write to MH i2c: E2 02 01 71 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 5C 00 00 00 F4 03 04 00 B4 D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5C 25 01 00 35 04 06 00 72 13 15 7F 00 00 63 [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 71 2C 00 90 00 11 [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]wFMCommunicate request_size=7 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 0D 02 02 02 71 12 [11:51:13]Write to MH i2c: E2 0A 00 72 2C 80 0D 02 02 02 00 71 12 00 00 9F [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 72 2C 00 90 00 12 [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 0D 03 02 [11:51:13]Write to MH i2c: E2 08 00 73 2C 80 0D 03 02 00 00 00 00 1A [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 0B 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 0B 00 73 2C 00 C4 6A B6 BF 12 0C 4B 73 90 00 9A [11:51:13]RAPDU: C4 6A B6 BF 12 0C 4B 73 90 00 [11:51:13]wFMCommunicate OK [11:51:13]SAM_PROTO_SignData done [11:51:13]FM_MakeSignedData done [11:51:13]CreateOFDProtocolMessage [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 11 00 00 [11:51:13]Write to MH i2c: E2 08 00 74 2C 80 11 00 00 00 00 00 00 1A [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 17 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 17 00 74 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 72 [11:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:51:13]wFMCommunicate OK [11:51:13]CreateOFDProtocolMessage done [11:51:13]OFDSenderStorePacket 75100 [11:51:13]StoreOFDPacket docnum=75100 [11:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 BC 3B 04 01 DE 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 5C 00 00 00 F4 03 04 00 B4 D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5C 25 01 00 35 04 06 00 72 13 15 7F 71 12 C4 6A B6 BF 12 0C 4B 73 [11:51:13]CheckFolder [11:51:13]dirname=/storage/ofd_packets [11:51:13]CheckFolder done [11:51:13]ProducePacketName [11:51:13]name=ofd_packets/00075100 [11:51:13]NVStorageSaveData ofd_packets/00075100 [11:51:13]File name is /storage/ofd_packets/00075100 [11:51:13]Write 298 bytes [11:51:13]NVStorageSaveData done [11:51:13]OFDSenderStorePacket done [11:51:13]KKMCreateOFDPacket done [11:51:13]NVStorageSaveData kkm_last_timestamp [11:51:13]File name is /storage/kkm_last_timestamp [11:51:13]Write 4 bytes [11:51:13]NVStorageSaveData done [11:51:13]ExternCall_PrintAddStr [11:51:13]wPrintStart [11:51:13]Write to MH i2c: 01 00 00 75 2C A1 [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 07 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 07 00 75 2C 00 00 00 00 00 FF 0F B6 [11:51:13]RasterBufferAndPrint [11:51:13]line Счет N : (1)191072 [11:51:13]line ИНН: 02508201610067 [11:51:13]line Контрольно-Кассовый Чек [11:51:13]line ПРОДАЖА [11:51:13]line ТРК (МРК, ГНК) : 41 [11:51:13]line Товар: 2710194210 [11:51:13]line ДТ-К-4 [11:51:13]line 3.940 * 76.20 [11:51:13]line = 300.23 [11:51:13]line НДС 12% НСП 1% [11:51:13]line > о реализуемом товаре [11:51:13]line ОКРУГЛЕНИЕ: -0.23 [11:51:13]line ИТОГО: 300.00 [11:51:13]line Внесено: 300.00 [11:51:13]line СДАЧА: 0.00 [11:51:13]line НСП 1% : 2.66 [11:51:13]line НДС 12% : 31.88 [11:51:13]line Наличными: 300.00 [11:51:13]line Безнал.: 0.00 [11:51:13]line Место: АЗС № 142 "Партнер Нефть" [11:51:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:51:13]line СНО: Общий режим [11:51:13]line Чек 92 26.10.2024 11:51 [11:51:13]line Смена: 512 ФФД: 1.0 [11:51:13]line ЗНМ: 0300000089 [11:51:13]line РНМ: 0000000000091691 [11:51:13]line Версия ККМ: 001 [11:51:13]line ФМ: 0000000000871795 [11:51:13]line ФД: 75100 [11:51:13]line ФПД: 125426290618642 [11:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115116&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75100&fm=125426290618642&tin=02508201610067®Number=0000000000091691&sum=30000 [11:51:14]OFD Sender: Processing packet 75100 [packets to send 13, broken 12] [11:51:14]ProducePacketName [11:51:14]name=ofd_packets/00075100 [11:51:14]OFD Sender: To server: pG, [11:51:14]CommunicateWithHost lk.salyk.kg:30040 [11:51:14]ConnectInit lk.salyk.kg [11:51:14]written 0, free lines is 4095 [11:51:14]Connected sock=10 [11:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 BC 3B 04 01 DE 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 5C 00 00 00 F4 03 04 00 B4 D7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5C 25 01 00 35 04 06 00 72 13 15 7F 71 12 C4 6A B6 BF 12 0C 4B 73 [11:51:14]Write to MH i2c: 01 00 00 A0 2C CC [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 07 00 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 AD 0C 8C [11:51:14]RasterBufferAndPrint [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]written 0, free lines is 3252 [11:51:14]MH_Cut [11:51:14]Write to MH i2c: D1 01 00 A7 2C 01 A5 [11:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 23 C7 47 00 48 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 38 37 31 37 39 35 10 04 04 00 5C 25 01 00 F4 03 04 00 30 7F 1C 67 B6 04 01 00 00 5D 7A 32 5E 19 9F C8 1C [11:51:14]CommunicateWithHost err = 0 [11:51:14]CheckOFDResponse [11:51:14]1017 (14) - 77093643461234 [11:51:14]1041 (16) - 0000000000871795 [11:51:14]1040 (4) - 75100 [11:51:14]1012 (4) - 26.10.2024 05:33 [11:51:14]1206 (1) - 0 [11:51:14]OFD Sender: Remove packet 75100 [11:51:14]ProducePacketName [11:51:14]name=ofd_packets/00075100 [11:51:14]NVStorageDeleteData [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 01 00 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 01 00 A7 2C 00 A4 [11:51:14]Write to MH i2c: 01 00 00 A8 2C D4 [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:15]OFD Sender: No OFD packet to send [11:51:15]*** Cut start [11:51:15]*** Partial cut [11:51:15]*** CUTSNS_PIN = 1 [11:51:15]*** CUTSNS_PIN = 0 [11:51:15]*** Brake cut motor [11:51:15]Read from MH i2c: 01 [11:51:15]MH_I2C_Read... [11:51:15]*** Stop cut motor [11:51:16]*** Cut end [11:51:16]Read from MH i2c: 01 07 00 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 FF 0F E9 [11:51:16]process_action close_receipt done [11:51:16]requested_data is exist [11:51:16]produce_requested_data [11:51:16]requested_item fm.sn is exist - process it [11:51:16]wFMCommunicate request_size=4 [11:51:16]MH_SAM_APDU [11:51:16]CAPDU: 80 11 00 00 [11:51:16]Write to MH i2c: E2 08 00 A9 2C 80 11 00 00 00 00 00 00 4F [11:51:16]Write i2c OK [11:51:16]MH_I2C_Read... [11:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:16]Read from MH i2c: E2 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 17 00 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 17 00 A9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A7 [11:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:51:16]wFMCommunicate OK [11:51:16]requested_item fd.num is exist - process it [11:51:16]SAM_PROTO_GetFieldsCounters [11:51:16]wFMCommunicate request_size=4 [11:51:16]MH_SAM_APDU [11:51:16]CAPDU: 80 13 00 00 [11:51:16]Write to MH i2c: E2 08 00 AA 2C 80 13 00 00 00 00 00 00 52 [11:51:16]Write i2c OK [11:51:16]MH_I2C_Read... [11:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:16]Read from MH i2c: E2 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 62 00 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 62 00 AA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5C 25 01 00 0E 04 04 00 00 02 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 11 [11:51:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5C 25 01 00 0E 04 04 00 00 02 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 [11:51:16]wFMCommunicate OK [11:51:16]SAM_PROTO_GetFieldsCounters done [11:51:16]requested_item shift.num is exist - process it [11:51:16]requested_item shift.opened is exist - process it [11:51:16]req_shift_opened [11:51:16]FM_GetShiftState [11:51:16]SAM_PROTO_GetShiftState [11:51:16]wFMCommunicate request_size=4 [11:51:16]MH_SAM_APDU [11:51:16]CAPDU: 80 13 01 00 [11:51:16]Write to MH i2c: E2 08 00 AB 2C 80 13 01 00 00 00 00 00 54 [11:51:16]Write i2c OK [11:51:16]MH_I2C_Read... [11:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:16]Read from MH i2c: E2 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 0E 00 [11:51:16]MH_I2C_Read... [11:51:16]Read from MH i2c: E2 0E 00 AB 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6F [11:51:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:51:16]wFMCommunicate OK [11:51:16]SAM_PROTO_GetShiftState done [11:51:16]FM_GetShiftState done [11:51:16]req_shift_opened done [11:51:16]requested_item shift.open_date is exist - process it [11:51:16]req_shift_open_date [11:51:16]req_shift_open_date done [11:51:16]produce_requested_data done [11:51:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75100,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:51:16]process_action_free close_receipt [11:51:16]json_value_free [11:51:16]json_value_free done [11:51:16]process_json_proto returns [11:51:16]Send response to host [11:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75100,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:51:16]free response buf [11:51:16]execute_script done [11:51:16]execute_script returns [11:51:16]free content buf [11:51:16]Sock 9.Close socket [11:51:16]Sock 9.Thread stoped [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:32]recv_with_timeout no data received [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:00]accept exits with 8 [11:55:00]New connection [11:55:00]New thread 3066781028 created [11:55:00]Thread 3066924388 joined [11:55:00]Waiting for new connection... [11:55:00] Sock 8.Parse request [11:55:00]Sock 8.Check first char [11:55:00]Sock 8.First char is OK [11:55:00]request: POST /json_proto HTTP/1.0 [11:55:00]Method: POST [11:55:00]URL: /json_proto [11:55:00]Method is POST - this is cgi request [11:55:00]url: /json_proto [11:55:00]query_string will be loaded in cgi processing [11:55:00]execute_cgi json_proto POST (null) [11:55:00]execute_cgi path=json_proto method=POST [11:55:00]POST find Content-Length [11:55:00]Host: 172.17.39.131:8080 [11:55:00]Content-Length: 766 [11:55:00]Content-Type: application/json [11:55:00] [11:55:00]POST finish read [11:55:00]Found Content-Length = 766 [11:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:55:00]execute_script... [11:55: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)191073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:55:00]POST & json_proto [11:55:00]process_json_proto [11:55:00]json parsed OK: [11:55:00]protocol is kg_v1.0 [11:55:00]action value=close_receipt [11:55:00]process_action close_receipt [11:55:00]cmd_close_receipt [11:55:00]MH_GetDate [11:55:00]Write to MH i2c: F0 00 00 AC 2C C7 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: F0 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: F0 09 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: F0 09 00 AC 2C 00 99 D8 1C 67 86 57 24 65 2A [11:55:00]GetLastDocTimeStamp 1729943476 [11:55:00]current date 1729943705 [11:55:00]FM_GetShiftState [11:55:00]SAM_PROTO_GetShiftState [11:55:00]wFMCommunicate request_size=4 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 13 01 00 [11:55:00]Write to MH i2c: E2 08 00 AD 2C 80 13 01 00 00 00 00 00 56 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 0E 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 0E 00 AD 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 71 [11:55:00]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:55:00]wFMCommunicate OK [11:55:00]SAM_PROTO_GetShiftState done [11:55:00]FM_GetShiftState done [11:55:00]opened in 1729902166 [11:55:00]opened+sec_in_day 1729988566 [11:55:00]quantity*price = 40006 [11:55:00]sum+1 = 40007 [11:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 93 26.10.2024 11:55 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75101 ФПД: 137714522708082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115505&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75101&fm=137714522708082&tin=02508201610067®Number=0000000000091691&sum=40006 [11:55:01]StoreToDocumentArchive [11:55:01]shift 512 fd 75101 [11:55:01]save to /storage/0512/doc_00075101 [11:55:01]save last doc name /storage/0512/doc_00075101 to /storage/kkm_last_doc_name [11:55:01]save OK [11:55:01]Clear old archive folders... [11:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:01]tlvbuf is B6F4E730 [11:55:01]SAM_PROTO_ClearQueue [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 09 00 00 [11:55:01]Write to MH i2c: E2 08 00 BA 2C 80 09 00 00 00 00 00 00 58 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 BA 2C 00 90 00 5A [11:55:01]RAPDU: 90 00 [11:55:01]wFMCommunicate OK [11:55:01]SAM_PROTO_ClearQueue done [11:55:01]KKMCreateOFDPacket [11:55:01]OFDProtocolAddRootSTLVToBuf [11:55:01]FM_MakeSignedData [11:55:01]FM_MakeSignedData [11:55:01]SAM_PROTO_SignData [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 0D 01 02 [11:55:01]Write to MH i2c: E2 08 00 BB 2C 80 0D 01 02 00 00 00 00 60 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 BB 2C 00 90 00 5B [11:55:01]RAPDU: 90 00 [11:55:01]wFMCommunicate OK [11:55:01]wFMCommunicate request_size=255 [11:55:01]MH_SAM_APDU [11:55: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 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 5D 00 00 00 F4 03 04 00 99 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5D 25 01 00 35 04 06 00 7D [11:55:01]Write to MH i2c: E2 02 01 BC 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 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 5D 00 00 00 F4 03 04 00 99 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5D 25 01 00 35 04 06 00 7D 00 00 23 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BC 2C 00 90 00 5C [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]wFMCommunicate request_size=10 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 0D 02 02 05 40 29 34 D8 72 [11:55:02]Write to MH i2c: E2 0D 00 BD 2C 80 0D 02 02 05 00 40 29 34 D8 72 00 00 54 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BD 2C 00 90 00 5D [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 0D 03 02 [11:55:02]Write to MH i2c: E2 08 00 BE 2C 80 0D 03 02 00 00 00 00 65 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0B 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 0B 00 BE 2C 00 00 75 45 72 17 B8 3E 25 90 00 C4 [11:55:02]RAPDU: 00 75 45 72 17 B8 3E 25 90 00 [11:55:02]wFMCommunicate OK [11:55:02]SAM_PROTO_SignData done [11:55:02]FM_MakeSignedData done [11:55:02]CreateOFDProtocolMessage [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 11 00 00 [11:55:02]Write to MH i2c: E2 08 00 BF 2C 80 11 00 00 00 00 00 00 65 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 17 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 17 00 BF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BD [11:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:55:02]wFMCommunicate OK [11:55:02]CreateOFDProtocolMessage done [11:55:02]OFDSenderStorePacket 75101 [11:55:02]StoreOFDPacket docnum=75101 [11:55:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 94 15 07 01 3D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5D 00 00 00 F4 03 04 00 99 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5D 25 01 00 35 04 06 00 7D 40 29 34 D8 72 00 75 45 72 17 B8 3E 25 [11:55:02]CheckFolder [11:55:02]dirname=/storage/ofd_packets [11:55:02]CheckFolder done [11:55:02]ProducePacketName [11:55:02]name=ofd_packets/00075101 [11:55:02]NVStorageSaveData ofd_packets/00075101 [11:55:02]File name is /storage/ofd_packets/00075101 [11:55:02]Write 301 bytes [11:55:02]NVStorageSaveData done [11:55:02]OFDSenderStorePacket done [11:55:02]KKMCreateOFDPacket done [11:55:02]NVStorageSaveData kkm_last_timestamp [11:55:02]File name is /storage/kkm_last_timestamp [11:55:02]Write 4 bytes [11:55:02]NVStorageSaveData done [11:55:02]ExternCall_PrintAddStr [11:55:02]wPrintStart [11:55:02]Write to MH i2c: 01 00 00 C0 2C EC [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 07 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 07 00 C0 2C 00 00 00 00 00 FF 0F 01 [11:55:02]RasterBufferAndPrint [11:55:02]line Счет N : (1)191073 [11:55:02]line ИНН: 02508201610067 [11:55:02]line Контрольно-Кассовый Чек [11:55:02]line ПРОДАЖА [11:55:02]line ТРК (МРК, ГНК) : 21 [11:55:02]line Товар: 2710124130 [11:55:02]line Аи-92-К-5 [11:55:02]line 5.980 * 66.90 [11:55:02]line = 400.06 [11:55:02]line НДС 12% НСП 1% [11:55:02]line > о реализуемом товаре [11:55:02]line ИТОГО: 400.06 [11:55:02]line НСП 1% : 3.54 [11:55:02]line НДС 12% : 42.48 [11:55:02]line Наличными: 0.00 [11:55:02]line Безнал.: 400.06 [11:55:02]line Место: АЗС № 142 "Партнер Нефть" [11:55:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:55:02]line СНО: Общий режим [11:55:02]line Чек 93 26.10.2024 11:55 [11:55:02]line Смена: 512 ФФД: 1.0 [11:55:02]line ЗНМ: 0300000089 [11:55:02]line РНМ: 0000000000091691 [11:55:02]line Версия ККМ: 001 [11:55:02]line Платежная система: Mbank [11:55:02]line ФМ: 0000000000871795 [11:55:02]line ФД: 75101 [11:55:02]line ФПД: 137714522708082 [11:55:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115505&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75101&fm=137714522708082&tin=02508201610067®Number=0000000000091691&sum=40006 [11:55:02]written 0, free lines is 4095 [11:55:02]OFD Sender: Processing packet 75101 [packets to send 13, broken 12] [11:55:02]ProducePacketName [11:55:02]name=ofd_packets/00075101 [11:55:02]OFD Sender: To server: pG, [11:55:02]CommunicateWithHost lk.salyk.kg:30040 [11:55:02]ConnectInit lk.salyk.kg [11:55:02]Write to MH i2c: 01 00 00 E9 2C 15 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 07 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: 01 07 00 E9 2C 00 00 00 00 00 CF 0C F7 [11:55:02]RasterBufferAndPrint [11:55:02]line [11:55:02]line [11:55:02]line [11:55:02]line [11:55:02]line [11:55:02]written 0, free lines is 3283 [11:55:02]MH_Cut [11:55:02]Write to MH i2c: D1 01 00 F0 2C 01 EE [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: D1 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: D1 01 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: D1 01 00 F0 2C 00 ED [11:55:02]Write to MH i2c: 01 00 00 F1 2C 1D [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:03]*** Cut start [11:55:03]*** Partial cut [11:55:03]*** CUTSNS_PIN = 1 [11:55:03]*** CUTSNS_PIN = 0 [11:55:04]*** Brake cut motor [11:55:04]Read from MH i2c: 01 [11:55:04]MH_I2C_Read... [11:55:04]*** Stop cut motor [11:55:04]*** Cut end [11:55:04]Read from MH i2c: 01 07 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [11:55:04]process_action close_receipt done [11:55:04]requested_data is exist [11:55:04]produce_requested_data [11:55:04]requested_item fm.sn is exist - process it [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 11 00 00 [11:55:04]Write to MH i2c: E2 08 00 F2 2C 80 11 00 00 00 00 00 00 98 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 17 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 17 00 F2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F0 [11:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:55:04]wFMCommunicate OK [11:55:04]requested_item fd.num is exist - process it [11:55:04]SAM_PROTO_GetFieldsCounters [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 13 00 00 [11:55:04]Write to MH i2c: E2 08 00 F3 2C 80 13 00 00 00 00 00 00 9B [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 62 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 62 00 F3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5D 25 01 00 0E 04 04 00 00 02 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 5E [11:55:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5D 25 01 00 0E 04 04 00 00 02 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 [11:55:04]wFMCommunicate OK [11:55:04]SAM_PROTO_GetFieldsCounters done [11:55:04]requested_item shift.num is exist - process it [11:55:04]requested_item shift.opened is exist - process it [11:55:04]req_shift_opened [11:55:04]FM_GetShiftState [11:55:04]SAM_PROTO_GetShiftState [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 13 01 00 [11:55:04]Write to MH i2c: E2 08 00 F4 2C 80 13 01 00 00 00 00 00 9D [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 0E 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 0E 00 F4 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B8 [11:55:04]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:55:04]wFMCommunicate OK [11:55:04]SAM_PROTO_GetShiftState done [11:55:04]FM_GetShiftState done [11:55:04]req_shift_opened done [11:55:04]requested_item shift.open_date is exist - process it [11:55:04]req_shift_open_date [11:55:04]req_shift_open_date done [11:55:04]produce_requested_data done [11:55:04]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75101,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:55:04]process_action_free close_receipt [11:55:04]json_value_free [11:55:04]json_value_free done [11:55:04]process_json_proto returns [11:55:04]Send response to host [11:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75101,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:55:04]free response buf [11:55:04]execute_script done [11:55:04]execute_script returns [11:55:04]free content buf [11:55:04]Sock 8.Close socket [11:55:04]Sock 8.Thread stoped [11:56:35]accept exits with 9 [11:56:35]New connection [11:56:35]New thread 3066924388 created [11:56:35]Thread 3066781028 joined [11:56:35]Waiting for new connection... [11:56:35] Sock 9.Parse request [11:56:35]Sock 9.Check first char [11:56:35]Sock 9.First char is OK [11:56:35]request: POST /json_proto HTTP/1.0 [11:56:35]Method: POST [11:56:35]URL: /json_proto [11:56:35]Method is POST - this is cgi request [11:56:35]url: /json_proto [11:56:35]query_string will be loaded in cgi processing [11:56:35]execute_cgi json_proto POST (null) [11:56:35]execute_cgi path=json_proto method=POST [11:56:35]POST find Content-Length [11:56:35]Host: 172.17.39.131:8080 [11:56:35]Content-Length: 678 [11:56:35]Content-Type: application/json [11:56:35] [11:56:35]POST finish read [11:56:35]Found Content-Length = 678 [11:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:56:35]execute_script... [11:56:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [11:56:35]POST & json_proto [11:56:35]process_json_proto [11:56:35]json parsed OK: [11:56:35]protocol is kg_v1.0 [11:56:35]action value=close_receipt [11:56:35]process_action close_receipt [11:56:35]cmd_close_receipt [11:56:35]MH_GetDate [11:56:35]Write to MH i2c: F0 00 00 F5 2C 10 [11:56:35]Write i2c OK [11:56:35]MH_I2C_Read... [11:56:35]Read from MH i2c: F0 [11:56:35]MH_I2C_Read... [11:56:35]Read from MH i2c: F0 09 00 [11:56:35]MH_I2C_Read... [11:56:35]Read from MH i2c: F0 09 00 F5 2C 00 F7 D8 1C 67 86 57 24 65 D1 [11:56:35]GetLastDocTimeStamp 1729943705 [11:56:35]current date 1729943799 [11:56:35]FM_GetShiftState [11:56:35]SAM_PROTO_GetShiftState [11:56:35]wFMCommunicate request_size=4 [11:56:35]MH_SAM_APDU [11:56:35]CAPDU: 80 13 01 00 [11:56:35]Write to MH i2c: E2 08 00 F6 2C 80 13 01 00 00 00 00 00 9F [11:56:35]Write i2c OK [11:56:35]MH_I2C_Read... [11:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:35]Read from MH i2c: E2 [11:56:35]MH_I2C_Read... [11:56:35]Read from MH i2c: E2 0E 00 [11:56:35]MH_I2C_Read... [11:56:35]Read from MH i2c: E2 0E 00 F6 2C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BA [11:56:35]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:56:35]wFMCommunicate OK [11:56:35]SAM_PROTO_GetShiftState done [11:56:35]FM_GetShiftState done [11:56:35]opened in 1729902166 [11:56:35]opened+sec_in_day 1729988566 [11:56:35]quantity*price = 80012 [11:56:35]sum+1 = 80013 [11:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 94 26.10.2024 11:56 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75102 ФПД: 26110566242252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115640&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75102&fm=26110566242252&tin=02508201610067®Number=0000000000091691&sum=80000 [11:56:36]StoreToDocumentArchive [11:56:36]shift 512 fd 75102 [11:56:36]save to /storage/0512/doc_00075102 [11:56:36]save last doc name /storage/0512/doc_00075102 to /storage/kkm_last_doc_name [11:56:36]save OK [11:56:36]Clear old archive folders... [11:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:36]tlvbuf is 00868FA0 [11:56:36]SAM_PROTO_ClearQueue [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 09 00 00 [11:56:36]Write to MH i2c: E2 08 00 03 2D 80 09 00 00 00 00 00 00 A2 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]SAM_PROTO_ClearQueue done [11:56:36]KKMCreateOFDPacket [11:56:36]OFDProtocolAddRootSTLVToBuf [11:56:36]FM_MakeSignedData [11:56:36]FM_MakeSignedData [11:56:36]SAM_PROTO_SignData [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 01 02 [11:56:36]Write to MH i2c: E2 08 00 04 2D 80 0D 01 02 00 00 00 00 AA [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=255 [11:56:36]MH_SAM_APDU [11:56: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 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 5E 00 00 00 F4 03 04 00 F8 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5E 25 01 00 35 04 06 00 17 [11:56:36]Write to MH i2c: E2 02 01 05 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 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 5E 00 00 00 F4 03 04 00 F8 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5E 25 01 00 35 04 06 00 17 00 00 79 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 05 2D 00 90 00 A6 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=10 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 02 02 05 BF 57 06 97 CC [11:56:36]Write to MH i2c: E2 0D 00 06 2D 80 0D 02 02 05 00 BF 57 06 97 CC 00 00 36 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 06 2D 00 90 00 A7 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 03 02 [11:56:36]Write to MH i2c: E2 08 00 07 2D 80 0D 03 02 00 00 00 00 AF [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:37]Read from MH i2c: E2 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: E2 0B 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: E2 0B 00 07 2D 00 F0 84 F7 DB B1 FD B0 E0 90 00 34 [11:56:37]RAPDU: F0 84 F7 DB B1 FD B0 E0 90 00 [11:56:37]wFMCommunicate OK [11:56:37]SAM_PROTO_SignData done [11:56:37]FM_MakeSignedData done [11:56:37]CreateOFDProtocolMessage [11:56:37]wFMCommunicate request_size=4 [11:56:37]MH_SAM_APDU [11:56:37]CAPDU: 80 11 00 00 [11:56:37]Write to MH i2c: E2 08 00 08 2D 80 11 00 00 00 00 00 00 AF [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:37]Read from MH i2c: E2 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: E2 17 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: E2 17 00 08 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 07 [11:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:56:37]wFMCommunicate OK [11:56:37]CreateOFDProtocolMessage done [11:56:37]OFDSenderStorePacket 75102 [11:56:37]StoreOFDPacket docnum=75102 [11:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6C C0 07 01 20 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 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 5E 00 00 00 F4 03 04 00 F8 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5E 25 01 00 35 04 06 00 17 BF 57 06 97 CC F0 84 F7 DB B1 FD B0 E0 [11:56:37]CheckFolder [11:56:37]dirname=/storage/ofd_packets [11:56:37]CheckFolder done [11:56:37]ProducePacketName [11:56:37]name=ofd_packets/00075102 [11:56:37]NVStorageSaveData ofd_packets/00075102 [11:56:37]File name is /storage/ofd_packets/00075102 [11:56:37]Write 301 bytes [11:56:37]NVStorageSaveData done [11:56:37]OFDSenderStorePacket done [11:56:37]KKMCreateOFDPacket done [11:56:37]NVStorageSaveData kkm_last_timestamp [11:56:37]File name is /storage/kkm_last_timestamp [11:56:37]Write 4 bytes [11:56:37]NVStorageSaveData done [11:56:37]ExternCall_PrintAddStr [11:56:37]wPrintStart [11:56:37]Write to MH i2c: 01 00 00 09 2D 36 [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 FF 0F 4B [11:56:37]RasterBufferAndPrint [11:56:37]line Счет N : (1)191074 [11:56:37]line ИНН: 02508201610067 [11:56:37]line Контрольно-Кассовый Чек [11:56:37]line ПРОДАЖА [11:56:37]line ТРК (МРК, ГНК) : 21 [11:56:37]line Товар: 2710124130 [11:56:37]line Аи-92-К-5 [11:56:37]line 11.960 * 66.90 [11:56:37]line = 800.12 [11:56:37]line НДС 12% НСП 1% [11:56:37]line > о реализуемом товаре [11:56:37]line ОКРУГЛЕНИЕ: -0.12 [11:56:37]line ИТОГО: 800.00 [11:56:37]line Внесено: 800.00 [11:56:37]line СДАЧА: 0.00 [11:56:37]line НСП 1% : 7.08 [11:56:37]line НДС 12% : 84.97 [11:56:37]line Наличными: 800.00 [11:56:37]line Безнал.: 0.00 [11:56:37]line Место: АЗС № 142 "Партнер Нефть" [11:56:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:56:37]line СНО: Общий режим [11:56:37]line Чек 94 26.10.2024 11:56 [11:56:37]line Смена: 512 ФФД: 1.0 [11:56:37]line ЗНМ: 0300000089 [11:56:37]line РНМ: 0000000000091691 [11:56:37]line Версия ККМ: 001 [11:56:37]line ФМ: 0000000000871795 [11:56:37]line ФД: 75102 [11:56:37]line ФПД: 26110566242252 [11:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115640&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75102&fm=26110566242252&tin=02508201610067®Number=0000000000091691&sum=80000 [11:56:37]written 0, free lines is 4095 [11:56:37]Write to MH i2c: 01 00 00 34 2D 61 [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 34 2D 00 00 00 00 00 9B 0C 0F [11:56:37]RasterBufferAndPrint [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]written 0, free lines is 3233 [11:56:37]MH_Cut [11:56:37]Write to MH i2c: D1 01 00 3B 2D 01 3A [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 01 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 01 00 3B 2D 00 39 [11:56:37]Write to MH i2c: 01 00 00 3C 2D 69 [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:38]*** Cut start [11:56:38]*** Partial cut [11:56:38]*** CUTSNS_PIN = 1 [11:56:38]*** CUTSNS_PIN = 0 [11:56:39]*** Brake cut motor [11:56:39]Read from MH i2c: 01 [11:56:39]MH_I2C_Read... [11:56:39]*** Stop cut motor [11:56:39]*** Cut end [11:56:39]Read from MH i2c: 01 07 00 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [11:56:39]process_action close_receipt done [11:56:39]requested_data is exist [11:56:39]produce_requested_data [11:56:39]requested_item fm.sn is exist - process it [11:56:39]wFMCommunicate request_size=4 [11:56:39]MH_SAM_APDU [11:56:39]CAPDU: 80 11 00 00 [11:56:39]Write to MH i2c: E2 08 00 3D 2D 80 11 00 00 00 00 00 00 E4 [11:56:39]Write i2c OK [11:56:39]MH_I2C_Read... [11:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:39]Read from MH i2c: E2 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 17 00 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 17 00 3D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3C [11:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:56:39]wFMCommunicate OK [11:56:39]requested_item fd.num is exist - process it [11:56:39]SAM_PROTO_GetFieldsCounters [11:56:39]wFMCommunicate request_size=4 [11:56:39]MH_SAM_APDU [11:56:39]CAPDU: 80 13 00 00 [11:56:39]Write to MH i2c: E2 08 00 3E 2D 80 13 00 00 00 00 00 00 E7 [11:56:39]Write i2c OK [11:56:39]MH_I2C_Read... [11:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:39]Read from MH i2c: E2 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 62 00 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 62 00 3E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5E 25 01 00 0E 04 04 00 00 02 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 AE [11:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5E 25 01 00 0E 04 04 00 00 02 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 [11:56:39]wFMCommunicate OK [11:56:39]SAM_PROTO_GetFieldsCounters done [11:56:39]requested_item shift.num is exist - process it [11:56:39]requested_item shift.opened is exist - process it [11:56:39]req_shift_opened [11:56:39]FM_GetShiftState [11:56:39]SAM_PROTO_GetShiftState [11:56:39]wFMCommunicate request_size=4 [11:56:39]MH_SAM_APDU [11:56:39]CAPDU: 80 13 01 00 [11:56:39]Write to MH i2c: E2 08 00 3F 2D 80 13 01 00 00 00 00 00 E9 [11:56:39]Write i2c OK [11:56:39]MH_I2C_Read... [11:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:39]Read from MH i2c: E2 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 0E 00 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 0E 00 3F 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 04 [11:56:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:56:39]wFMCommunicate OK [11:56:39]SAM_PROTO_GetShiftState done [11:56:39]FM_GetShiftState done [11:56:39]req_shift_opened done [11:56:39]requested_item shift.open_date is exist - process it [11:56:39]req_shift_open_date [11:56:39]req_shift_open_date done [11:56:39]produce_requested_data done [11:56:39]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75102,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:56:39]process_action_free close_receipt [11:56:39]json_value_free [11:56:39]json_value_free done [11:56:39]process_json_proto returns [11:56:39]Send response to host [11:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75102,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:56:39]free response buf [11:56:39]execute_script done [11:56:39]execute_script returns [11:56:39]free content buf [11:56:39]Sock 9.Close socket [11:56:39]Sock 9.Thread stoped [11:57:12]ConnectInit Can't connect to host [11:57:12]CommunicateWithHost connect error [11:57:12]CommunicateWithHost err = -1 [11:57:12]OFD Sender: Server communicate error [11:57:12]OFD Sender: Processing packet 75101 [packets to send 14, broken 12] [11:57:12]ProducePacketName [11:57:12]name=ofd_packets/00075101 [11:57:12]OFD Sender: To server: pG, [11:57:12]CommunicateWithHost lk.salyk.kg:30040 [11:57:12]ConnectInit lk.salyk.kg [11:57:12]Connected sock=9 [11:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 94 15 07 01 3D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5D 00 00 00 F4 03 04 00 99 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5D 25 01 00 35 04 06 00 7D 40 29 34 D8 72 00 75 45 72 17 B8 3E 25 [11:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 74 47 00 D1 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 38 37 31 37 39 35 10 04 04 00 5D 25 01 00 F4 03 04 00 97 80 1C 67 B6 04 01 00 00 29 E6 5F 33 20 52 E8 8A [11:57:12]CommunicateWithHost err = 0 [11:57:12]CheckOFDResponse [11:57:12]1017 (14) - 77093643461234 [11:57:12]1041 (16) - 0000000000871795 [11:57:12]1040 (4) - 75101 [11:57:12]1012 (4) - 26.10.2024 05:39 [11:57:12]1206 (1) - 0 [11:57:12]OFD Sender: Remove packet 75101 [11:57:12]ProducePacketName [11:57:12]name=ofd_packets/00075101 [11:57:12]NVStorageDeleteData [11:57:13]OFD Sender: Processing packet 75102 [packets to send 13, broken 12] [11:57:13]ProducePacketName [11:57:13]name=ofd_packets/00075102 [11:57:13]OFD Sender: To server: pG, [11:57:13]CommunicateWithHost lk.salyk.kg:30040 [11:57:13]ConnectInit lk.salyk.kg [11:57:13]Connected sock=9 [11:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6C C0 07 01 20 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 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 5E 00 00 00 F4 03 04 00 F8 D8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5E 25 01 00 35 04 06 00 17 BF 57 06 97 CC F0 84 F7 DB B1 FD B0 E0 [11:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2A 3D 47 00 39 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5E 25 01 00 F4 03 04 00 98 80 1C 67 B6 04 01 00 00 2F 1C 8A B6 23 C7 C2 B4 [11:57:13]CommunicateWithHost err = 0 [11:57:13]CheckOFDResponse [11:57:13]1017 (14) - 77093643461234 [11:57:13]1041 (16) - 0000000000871795 [11:57:13]1040 (4) - 75102 [11:57:13]1012 (4) - 26.10.2024 05:39 [11:57:13]1206 (1) - 0 [11:57:13]OFD Sender: Remove packet 75102 [11:57:13]ProducePacketName [11:57:13]name=ofd_packets/00075102 [11:57:13]NVStorageDeleteData [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:20]accept exits with 8 [11:57:20]New connection [11:57:20]New thread 3066781028 created [11:57:20]Thread 3066924388 joined [11:57:20]Waiting for new connection... [11:57:20] Sock 8.Parse request [11:57:20]Sock 8.Check first char [11:57:20]Sock 8.First char is OK [11:57:20]request: POST /json_proto HTTP/1.0 [11:57:20]Method: POST [11:57:20]URL: /json_proto [11:57:20]Method is POST - this is cgi request [11:57:20]url: /json_proto [11:57:20]query_string will be loaded in cgi processing [11:57:20]execute_cgi json_proto POST (null) [11:57:20]execute_cgi path=json_proto method=POST [11:57:20]POST find Content-Length [11:57:20]Host: 172.17.39.131:8080 [11:57:20]Content-Length: 677 [11:57:20]Content-Type: application/json [11:57:20] [11:57:20]POST finish read [11:57:20]Found Content-Length = 677 [11:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:20]execute_script... [11:57: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)191075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:20]POST & json_proto [11:57:20]process_json_proto [11:57:20]json parsed OK: [11:57:20]protocol is kg_v1.0 [11:57:20]action value=close_receipt [11:57:20]process_action close_receipt [11:57:20]cmd_close_receipt [11:57:20]MH_GetDate [11:57:20]Write to MH i2c: F0 00 00 40 2D 5C [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 09 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: F0 09 00 40 2D 00 25 D9 1C 67 86 57 24 65 4C [11:57:20]GetLastDocTimeStamp 1729943800 [11:57:20]current date 1729943845 [11:57:20]FM_GetShiftState [11:57:20]SAM_PROTO_GetShiftState [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 01 00 [11:57:20]Write to MH i2c: E2 08 00 41 2D 80 13 01 00 00 00 00 00 EB [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 41 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 06 [11:57:20]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_GetShiftState done [11:57:20]FM_GetShiftState done [11:57:20]opened in 1729902166 [11:57:20]opened+sec_in_day 1729988566 [11:57:20]quantity*price = 10035 [11:57:20]sum+1 = 10036 [11:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 95 26.10.2024 11:57 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75103 ФПД: 31743235664581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115725&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75103&fm=31743235664581&tin=02508201610067®Number=0000000000091691&sum=10000 [11:57:21]StoreToDocumentArchive [11:57:21]shift 512 fd 75103 [11:57:21]save to /storage/0512/doc_00075103 [11:57:21]save last doc name /storage/0512/doc_00075103 to /storage/kkm_last_doc_name [11:57:21]save OK [11:57:21]Clear old archive folders... [11:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:21]tlvbuf is 007F54F0 [11:57:21]SAM_PROTO_ClearQueue [11:57:21]wFMCommunicate request_size=4 [11:57:21]MH_SAM_APDU [11:57:21]CAPDU: 80 09 00 00 [11:57:21]Write to MH i2c: E2 08 00 4E 2D 80 09 00 00 00 00 00 00 ED [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:21]Read from MH i2c: E2 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 03 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [11:57:21]RAPDU: 90 00 [11:57:21]wFMCommunicate OK [11:57:21]SAM_PROTO_ClearQueue done [11:57:21]KKMCreateOFDPacket [11:57:21]OFDProtocolAddRootSTLVToBuf [11:57:21]FM_MakeSignedData [11:57:21]FM_MakeSignedData [11:57:21]SAM_PROTO_SignData [11:57:21]wFMCommunicate request_size=4 [11:57:21]MH_SAM_APDU [11:57:21]CAPDU: 80 0D 01 02 [11:57:21]Write to MH i2c: E2 08 00 4F 2D 80 0D 01 02 00 00 00 00 F5 [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=255 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 25 D9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5F 25 01 00 35 04 06 00 1C [11:57:22]Write to MH i2c: E2 02 01 50 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 25 D9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5F 25 01 00 35 04 06 00 1C 00 00 F4 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 50 2D 00 90 00 F1 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=10 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 02 02 05 DE CC 49 2A C5 [11:57:22]Write to MH i2c: E2 0D 00 51 2D 80 0D 02 02 05 00 DE CC 49 2A C5 00 00 E4 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 03 00 51 2D 00 90 00 F2 [11:57:22]RAPDU: 90 00 [11:57:22]wFMCommunicate OK [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 0D 03 02 [11:57:22]Write to MH i2c: E2 08 00 52 2D 80 0D 03 02 00 00 00 00 FA [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 0B 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 0B 00 52 2D 00 C7 B9 ED 1E 49 71 85 C3 90 00 88 [11:57:22]RAPDU: C7 B9 ED 1E 49 71 85 C3 90 00 [11:57:22]wFMCommunicate OK [11:57:22]SAM_PROTO_SignData done [11:57:22]FM_MakeSignedData done [11:57:22]CreateOFDProtocolMessage [11:57:22]wFMCommunicate request_size=4 [11:57:22]MH_SAM_APDU [11:57:22]CAPDU: 80 11 00 00 [11:57:22]Write to MH i2c: E2 08 00 53 2D 80 11 00 00 00 00 00 00 FA [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:22]Read from MH i2c: E2 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 17 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: E2 17 00 53 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 52 [11:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:57:22]wFMCommunicate OK [11:57:22]CreateOFDProtocolMessage done [11:57:22]OFDSenderStorePacket 75103 [11:57:22]StoreOFDPacket docnum=75103 [11:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F2 EC 07 01 DD 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 25 D9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5F 25 01 00 35 04 06 00 1C DE CC 49 2A C5 C7 B9 ED 1E 49 71 85 C3 [11:57:22]CheckFolder [11:57:22]dirname=/storage/ofd_packets [11:57:22]CheckFolder done [11:57:22]ProducePacketName [11:57:22]name=ofd_packets/00075103 [11:57:22]NVStorageSaveData ofd_packets/00075103 [11:57:22]File name is /storage/ofd_packets/00075103 [11:57:22]Write 301 bytes [11:57:22]NVStorageSaveData done [11:57:22]OFDSenderStorePacket done [11:57:22]KKMCreateOFDPacket done [11:57:22]NVStorageSaveData kkm_last_timestamp [11:57:22]File name is /storage/kkm_last_timestamp [11:57:22]Write 4 bytes [11:57:22]NVStorageSaveData done [11:57:22]ExternCall_PrintAddStr [11:57:22]wPrintStart [11:57:22]Write to MH i2c: 01 00 00 54 2D 81 [11:57:22]Write i2c OK [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 07 00 [11:57:22]MH_I2C_Read... [11:57:22]Read from MH i2c: 01 07 00 54 2D 00 00 00 00 00 FF 0F 96 [11:57:22]RasterBufferAndPrint [11:57:22]line Счет N : (1)191075 [11:57:22]line ИНН: 02508201610067 [11:57:22]line Контрольно-Кассовый Чек [11:57:22]line ПРОДАЖА [11:57:22]line ТРК (МРК, ГНК) : 21 [11:57:22]line Товар: 2710124130 [11:57:22]line Аи-92-К-5 [11:57:22]line 1.500 * 66.90 [11:57:22]line = 100.35 [11:57:22]line НДС 12% НСП 1% [11:57:22]line > о реализуемом товаре [11:57:22]line ОКРУГЛЕНИЕ: -0.35 [11:57:22]line ИТОГО: 100.00 [11:57:22]line Внесено: 100.00 [11:57:22]line СДАЧА: 0.00 [11:57:22]line НСП 1% : 0.89 [11:57:22]line НДС 12% : 10.66 [11:57:22]line Наличными: 100.00 [11:57:22]line Безнал.: 0.00 [11:57:22]line Место: АЗС № 142 "Партнер Нефть" [11:57:22]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [11:57:22]line СНО: Общий режим [11:57:22]line Чек 95 26.10.2024 11:57 [11:57:22]line Смена: 512 ФФД: 1.0 [11:57:22]line ЗНМ: 0300000089 [11:57:22]line РНМ: 0000000000091691 [11:57:22]line Версия ККМ: 001 [11:57:22]line ФМ: 0000000000871795 [11:57:22]line ФД: 75103 [11:57:22]line ФПД: 31743235664581 [11:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115725&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75103&fm=31743235664581&tin=02508201610067®Number=0000000000091691&sum=10000 [11:57:22]written 0, free lines is 4095 [11:57:22]OFD Sender: Processing packet 75103 [packets to send 13, broken 12] [11:57:22]ProducePacketName [11:57:22]name=ofd_packets/00075103 [11:57:22]OFD Sender: To server: pG, [11:57:22]CommunicateWithHost lk.salyk.kg:30040 [11:57:22]ConnectInit lk.salyk.kg [11:57:22]Connected sock=9 [11:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F2 EC 07 01 DD 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 25 D9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5F 25 01 00 35 04 06 00 1C DE CC 49 2A C5 C7 B9 ED 1E 49 71 85 C3 [11:57:23]Write to MH i2c: 01 00 00 7F 2D AC [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 07 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 A7 0C 66 [11:57:23]RasterBufferAndPrint [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]line [11:57:23]written 0, free lines is 3245 [11:57:23]MH_Cut [11:57:23]Write to MH i2c: D1 01 00 86 2D 01 85 [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: D1 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: D1 01 00 [11:57:23]MH_I2C_Read... [11:57:23]Read from MH i2c: D1 01 00 86 2D 00 84 [11:57:23]Write to MH i2c: 01 00 00 87 2D B4 [11:57:23]Write i2c OK [11:57:23]MH_I2C_Read... [11:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 89 FD 47 00 C8 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 5F 25 01 00 F4 03 04 00 A1 80 1C 67 B6 04 01 00 00 71 44 CB 25 C5 A7 46 08 [11:57:23]CommunicateWithHost err = 0 [11:57:23]CheckOFDResponse [11:57:23]1017 (14) - 77093643461234 [11:57:23]1041 (16) - 0000000000871795 [11:57:23]1040 (4) - 75103 [11:57:23]1012 (4) - 26.10.2024 05:39 [11:57:23]1206 (1) - 0 [11:57:23]OFD Sender: Remove packet 75103 [11:57:23]ProducePacketName [11:57:23]name=ofd_packets/00075103 [11:57:23]NVStorageDeleteData [11:57:23]OFD Sender: No OFD packet to send [11:57:24]*** Cut start [11:57:24]*** Partial cut [11:57:24]*** CUTSNS_PIN = 1 [11:57:24]*** CUTSNS_PIN = 0 [11:57:24]*** Brake cut motor [11:57:24]Read from MH i2c: 01 [11:57:24]MH_I2C_Read... [11:57:24]*** Stop cut motor [11:57:24]*** Cut end [11:57:24]Read from MH i2c: 01 07 00 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 FF 0F C9 [11:57:24]process_action close_receipt done [11:57:24]requested_data is exist [11:57:24]produce_requested_data [11:57:24]requested_item fm.sn is exist - process it [11:57:24]wFMCommunicate request_size=4 [11:57:24]MH_SAM_APDU [11:57:24]CAPDU: 80 11 00 00 [11:57:24]Write to MH i2c: E2 08 00 88 2D 80 11 00 00 00 00 00 00 2F [11:57:24]Write i2c OK [11:57:24]MH_I2C_Read... [11:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:24]Read from MH i2c: E2 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 17 00 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 17 00 88 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 87 [11:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [11:57:24]wFMCommunicate OK [11:57:24]requested_item fd.num is exist - process it [11:57:24]SAM_PROTO_GetFieldsCounters [11:57:24]wFMCommunicate request_size=4 [11:57:24]MH_SAM_APDU [11:57:24]CAPDU: 80 13 00 00 [11:57:24]Write to MH i2c: E2 08 00 89 2D 80 13 00 00 00 00 00 00 32 [11:57:24]Write i2c OK [11:57:24]MH_I2C_Read... [11:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:24]Read from MH i2c: E2 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 62 00 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 62 00 89 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5F 25 01 00 0E 04 04 00 00 02 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 FD [11:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 5F 25 01 00 0E 04 04 00 00 02 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 [11:57:24]wFMCommunicate OK [11:57:24]SAM_PROTO_GetFieldsCounters done [11:57:24]requested_item shift.num is exist - process it [11:57:24]requested_item shift.opened is exist - process it [11:57:24]req_shift_opened [11:57:24]FM_GetShiftState [11:57:24]SAM_PROTO_GetShiftState [11:57:24]wFMCommunicate request_size=4 [11:57:24]MH_SAM_APDU [11:57:24]CAPDU: 80 13 01 00 [11:57:24]Write to MH i2c: E2 08 00 8A 2D 80 13 01 00 00 00 00 00 34 [11:57:24]Write i2c OK [11:57:24]MH_I2C_Read... [11:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:24]Read from MH i2c: E2 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 0E 00 [11:57:24]MH_I2C_Read... [11:57:24]Read from MH i2c: E2 0E 00 8A 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 4F [11:57:24]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [11:57:25]wFMCommunicate OK [11:57:25]SAM_PROTO_GetShiftState done [11:57:25]FM_GetShiftState done [11:57:25]req_shift_opened done [11:57:25]requested_item shift.open_date is exist - process it [11:57:25]req_shift_open_date [11:57:25]req_shift_open_date done [11:57:25]produce_requested_data done [11:57:25]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75103,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [11:57:25]process_action_free close_receipt [11:57:25]json_value_free [11:57:25]json_value_free done [11:57:25]process_json_proto returns [11:57:25]Send response to host [11:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75103,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [11:57:25]free response buf [11:57:25]execute_script done [11:57:25]execute_script returns [11:57:25]free content buf [11:57:25]Sock 8.Close socket [11:57:25]Sock 8.Thread stoped [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:17]accept exits with 10 [12:03:17]New connection [12:03:17]New thread 3066924388 created [12:03:17]Thread 3066781028 joined [12:03:17]Waiting for new connection... [12:03:17] Sock 10.Parse request [12:03:17]Sock 10.Check first char [12:03:17]Sock 10.First char is OK [12:03:17]request: POST /json_proto HTTP/1.0 [12:03:17]Method: POST [12:03:17]URL: /json_proto [12:03:17]Method is POST - this is cgi request [12:03:17]url: /json_proto [12:03:17]query_string will be loaded in cgi processing [12:03:17]execute_cgi json_proto POST (null) [12:03:17]execute_cgi path=json_proto method=POST [12:03:17]POST find Content-Length [12:03:17]Host: 172.17.39.131:8080 [12:03:17]Content-Length: 677 [12:03:17]Content-Type: application/json [12:03:17] [12:03:17]POST finish read [12:03:17]Found Content-Length = 677 [12:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:03:17]execute_script... [12:03: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)191077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:03:17]POST & json_proto [12:03:17]process_json_proto [12:03:17]json parsed OK: [12:03:17]protocol is kg_v1.0 [12:03:17]action value=close_receipt [12:03:17]process_action close_receipt [12:03:17]cmd_close_receipt [12:03:17]MH_GetDate [12:03:17]Write to MH i2c: F0 00 00 8B 2D A7 [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 8B 2D 00 8A DA 1C 67 86 57 24 65 FD [12:03:17]GetLastDocTimeStamp 1729943845 [12:03:17]current date 1729944202 [12:03:17]FM_GetShiftState [12:03:17]SAM_PROTO_GetShiftState [12:03:17]wFMCommunicate request_size=4 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 13 01 00 [12:03:17]Write to MH i2c: E2 08 00 8C 2D 80 13 01 00 00 00 00 00 36 [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:17]Read from MH i2c: E2 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 8C 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 51 [12:03:17]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:03:17]wFMCommunicate OK [12:03:17]SAM_PROTO_GetShiftState done [12:03:17]FM_GetShiftState done [12:03:17]opened in 1729902166 [12:03:17]opened+sec_in_day 1729988566 [12:03:17]quantity*price = 30038 [12:03:17]sum+1 = 30039 [12:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 96 26.10.2024 12:03 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75104 ФПД: 142740242994752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120322&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75104&fm=142740242994752&tin=02508201610067®Number=0000000000091691&sum=30000 [12:03:18]StoreToDocumentArchive [12:03:18]shift 512 fd 75104 [12:03:18]save to /storage/0512/doc_00075104 [12:03:18]save last doc name /storage/0512/doc_00075104 to /storage/kkm_last_doc_name [12:03:18]save OK [12:03:18]Clear old archive folders... [12:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:18]tlvbuf is 0084E080 [12:03:18]SAM_PROTO_ClearQueue [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 09 00 00 [12:03:18]Write to MH i2c: E2 08 00 99 2D 80 09 00 00 00 00 00 00 38 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]SAM_PROTO_ClearQueue done [12:03:18]KKMCreateOFDPacket [12:03:18]OFDProtocolAddRootSTLVToBuf [12:03:18]FM_MakeSignedData [12:03:18]FM_MakeSignedData [12:03:18]SAM_PROTO_SignData [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 01 02 [12:03:18]Write to MH i2c: E2 08 00 9A 2D 80 0D 01 02 00 00 00 00 40 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]wFMCommunicate request_size=255 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 8A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 60 25 01 00 35 04 06 00 81 [12:03:18]Write to MH i2c: E2 02 01 9B 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 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 60 00 00 00 F4 03 04 00 8A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 60 25 01 00 35 04 06 00 81 00 00 19 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]OFD Sender: No OFD packet to send [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=10 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 02 02 05 D2 4D 7A 96 40 [12:03:19]Write to MH i2c: E2 0D 00 9C 2D 80 0D 02 02 05 00 D2 4D 7A 96 40 00 00 BC [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 9C 2D 00 90 00 3D [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 03 02 [12:03:19]Write to MH i2c: E2 08 00 9D 2D 80 0D 03 02 00 00 00 00 45 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 9D 2D 00 FD 14 A4 B8 F5 23 0C 94 90 00 6B [12:03:19]RAPDU: FD 14 A4 B8 F5 23 0C 94 90 00 [12:03:19]wFMCommunicate OK [12:03:19]SAM_PROTO_SignData done [12:03:19]FM_MakeSignedData done [12:03:19]CreateOFDProtocolMessage [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 11 00 00 [12:03:19]Write to MH i2c: E2 08 00 9E 2D 80 11 00 00 00 00 00 00 45 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 9E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9D [12:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:03:19]wFMCommunicate OK [12:03:19]CreateOFDProtocolMessage done [12:03:19]OFDSenderStorePacket 75104 [12:03:19]StoreOFDPacket docnum=75104 [12:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 54 C1 07 01 A6 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 8A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 60 25 01 00 35 04 06 00 81 D2 4D 7A 96 40 FD 14 A4 B8 F5 23 0C 94 [12:03:19]CheckFolder [12:03:19]dirname=/storage/ofd_packets [12:03:19]CheckFolder done [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00075104 [12:03:19]NVStorageSaveData ofd_packets/00075104 [12:03:19]File name is /storage/ofd_packets/00075104 [12:03:19]Write 301 bytes [12:03:19]NVStorageSaveData done [12:03:19]OFDSenderStorePacket done [12:03:19]KKMCreateOFDPacket done [12:03:19]NVStorageSaveData kkm_last_timestamp [12:03:19]File name is /storage/kkm_last_timestamp [12:03:19]Write 4 bytes [12:03:19]NVStorageSaveData done [12:03:19]ExternCall_PrintAddStr [12:03:19]wPrintStart [12:03:19]Write to MH i2c: 01 00 00 9F 2D CC [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 9F 2D 00 00 00 00 00 FF 0F E1 [12:03:19]RasterBufferAndPrint [12:03:19]line Счет N : (1)191077 [12:03:19]line ИНН: 02508201610067 [12:03:19]line Контрольно-Кассовый Чек [12:03:19]line ПРОДАЖА [12:03:19]line ТРК (МРК, ГНК) : 21 [12:03:19]line Товар: 2710124130 [12:03:19]line Аи-92-К-5 [12:03:19]line 4.490 * 66.90 [12:03:19]line = 300.38 [12:03:19]line НДС 12% НСП 1% [12:03:19]line > о реализуемом товаре [12:03:19]line ОКРУГЛЕНИЕ: -0.38 [12:03:19]line ИТОГО: 300.00 [12:03:19]line Внесено: 300.00 [12:03:19]line СДАЧА: 0.00 [12:03:19]line НСП 1% : 2.66 [12:03:19]line НДС 12% : 31.90 [12:03:19]line Наличными: 300.00 [12:03:19]line Безнал.: 0.00 [12:03:19]line Место: АЗС № 142 "Партнер Нефть" [12:03:19]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:03:19]line СНО: Общий режим [12:03:19]line Чек 96 26.10.2024 12:03 [12:03:19]line Смена: 512 ФФД: 1.0 [12:03:19]line ЗНМ: 0300000089 [12:03:19]line РНМ: 0000000000091691 [12:03:19]line Версия ККМ: 001 [12:03:19]line ФМ: 0000000000871795 [12:03:19]line ФД: 75104 [12:03:19]line ФПД: 142740242994752 [12:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120322&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75104&fm=142740242994752&tin=02508201610067®Number=0000000000091691&sum=30000 [12:03:19]OFD Sender: Processing packet 75104 [packets to send 13, broken 12] [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00075104 [12:03:19]OFD Sender: To server: pG, [12:03:19]CommunicateWithHost lk.salyk.kg:30040 [12:03:19]ConnectInit lk.salyk.kg [12:03:19]written 0, free lines is 4095 [12:03:19]Connected sock=9 [12:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 54 C1 07 01 A6 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 8A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 60 25 01 00 35 04 06 00 81 D2 4D 7A 96 40 FD 14 A4 B8 F5 23 0C 94 [12:03:20]Write to MH i2c: 01 00 00 CA 2D F7 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 07 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 07 00 CA 2D 00 00 00 00 00 A7 0C B1 [12:03:20]RasterBufferAndPrint [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]written 0, free lines is 3245 [12:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 77 4D 47 00 F7 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 60 25 01 00 F4 03 04 00 06 82 1C 67 B6 04 01 00 00 83 2B A1 29 CB 87 E2 71 [12:03:20]CommunicateWithHost err = 0 [12:03:20]CheckOFDResponse [12:03:20]1017 (14) - 77093643461234 [12:03:20]1041 (16) - 0000000000871795 [12:03:20]1040 (4) - 75104 [12:03:20]1012 (4) - 26.10.2024 05:45 [12:03:20]1206 (1) - 0 [12:03:20]OFD Sender: Remove packet 75104 [12:03:20]ProducePacketName [12:03:20]name=ofd_packets/00075104 [12:03:20]NVStorageDeleteData [12:03:20]MH_Cut [12:03:20]Write to MH i2c: D1 01 00 D1 2D 01 D0 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 01 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 01 00 D1 2D 00 CF [12:03:20]Write to MH i2c: 01 00 00 D2 2D FF [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]OFD Sender: No OFD packet to send [12:03:21]*** Cut start [12:03:21]*** Partial cut [12:03:21]*** CUTSNS_PIN = 1 [12:03:21]*** CUTSNS_PIN = 0 [12:03:21]*** Brake cut motor [12:03:21]Read from MH i2c: 01 [12:03:21]MH_I2C_Read... [12:03:21]*** Stop cut motor [12:03:21]*** Cut end [12:03:21]Read from MH i2c: 01 07 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: 01 07 00 D2 2D 00 00 00 00 00 FF 0F 14 [12:03:21]process_action close_receipt done [12:03:21]requested_data is exist [12:03:21]produce_requested_data [12:03:21]requested_item fm.sn is exist - process it [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 11 00 00 [12:03:21]Write to MH i2c: E2 08 00 D3 2D 80 11 00 00 00 00 00 00 7A [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 D3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D2 [12:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:03:21]wFMCommunicate OK [12:03:21]requested_item fd.num is exist - process it [12:03:21]SAM_PROTO_GetFieldsCounters [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 00 00 [12:03:21]Write to MH i2c: E2 08 00 D4 2D 80 13 00 00 00 00 00 00 7D [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 D4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 60 25 01 00 0E 04 04 00 00 02 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 4C [12:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 60 25 01 00 0E 04 04 00 00 02 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 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetFieldsCounters done [12:03:21]requested_item shift.num is exist - process it [12:03:21]requested_item shift.opened is exist - process it [12:03:21]req_shift_opened [12:03:21]FM_GetShiftState [12:03:21]SAM_PROTO_GetShiftState [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 01 00 [12:03:21]Write to MH i2c: E2 08 00 D5 2D 80 13 01 00 00 00 00 00 7F [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 D5 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9A [12:03:21]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetShiftState done [12:03:21]FM_GetShiftState done [12:03:21]req_shift_opened done [12:03:21]requested_item shift.open_date is exist - process it [12:03:21]req_shift_open_date [12:03:21]req_shift_open_date done [12:03:21]produce_requested_data done [12:03:21]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75104,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:03:21]process_action_free close_receipt [12:03:21]json_value_free [12:03:21]json_value_free done [12:03:21]process_json_proto returns [12:03:21]Send response to host [12:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75104,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:03:21]free response buf [12:03:21]execute_script done [12:03:21]execute_script returns [12:03:21]free content buf [12:03:21]Sock 10.Close socket [12:03:21]Sock 10.Thread stoped [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:34]accept exits with 8 [12:03:34]New connection [12:03:34]New thread 3066781028 created [12:03:34]Thread 3066924388 joined [12:03:34]Waiting for new connection... [12:03:34] Sock 8.Parse request [12:03:34]Sock 8.Check first char [12:03:34]Sock 8.First char is OK [12:03:34]request: POST /json_proto HTTP/1.0 [12:03:34]Method: POST [12:03:34]URL: /json_proto [12:03:34]Method is POST - this is cgi request [12:03:34]url: /json_proto [12:03:34]query_string will be loaded in cgi processing [12:03:34]execute_cgi json_proto POST (null) [12:03:34]execute_cgi path=json_proto method=POST [12:03:34]POST find Content-Length [12:03:34]Host: 172.17.39.131:8080 [12:03:34]Content-Length: 766 [12:03:34]Content-Type: application/json [12:03:34] [12:03:34]POST finish read [12:03:34]Found Content-Length = 766 [12:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:34]execute_script... [12:03: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)191076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:34]POST & json_proto [12:03:34]process_json_proto [12:03:34]json parsed OK: [12:03:34]protocol is kg_v1.0 [12:03:34]action value=close_receipt [12:03:34]process_action close_receipt [12:03:34]cmd_close_receipt [12:03:34]MH_GetDate [12:03:34]Write to MH i2c: F0 00 00 D6 2D F2 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: F0 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: F0 09 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: F0 09 00 D6 2D 00 9A DA 1C 67 86 57 24 65 58 [12:03:34]GetLastDocTimeStamp 1729944202 [12:03:34]current date 1729944218 [12:03:34]FM_GetShiftState [12:03:34]SAM_PROTO_GetShiftState [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 13 01 00 [12:03:34]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0E 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9C [12:03:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_GetShiftState done [12:03:34]FM_GetShiftState done [12:03:34]opened in 1729902166 [12:03:34]opened+sec_in_day 1729988566 [12:03:34]quantity*price = 700049 [12:03:34]sum+1 = 700050 [12:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.49 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 0.00 Безнал.: 7000.49 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 97 26.10.2024 12:03 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75105 ФПД: 31738816648761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120338&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75105&fm=31738816648761&tin=02508201610067®Number=0000000000091691&sum=700049 [12:03:35]StoreToDocumentArchive [12:03:35]shift 512 fd 75105 [12:03:35]save to /storage/0512/doc_00075105 [12:03:35]save last doc name /storage/0512/doc_00075105 to /storage/kkm_last_doc_name [12:03:35]save OK [12:03:35]Clear old archive folders... [12:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:35]tlvbuf is 0094B590 [12:03:35]SAM_PROTO_ClearQueue [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 09 00 00 [12:03:35]Write to MH i2c: E2 08 00 E4 2D 80 09 00 00 00 00 00 00 83 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [12:03:35]RAPDU: 90 00 [12:03:35]wFMCommunicate OK [12:03:35]SAM_PROTO_ClearQueue done [12:03:35]KKMCreateOFDPacket [12:03:35]OFDProtocolAddRootSTLVToBuf [12:03:35]FM_MakeSignedData [12:03:35]FM_MakeSignedData [12:03:35]SAM_PROTO_SignData [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 0D 01 02 [12:03:35]Write to MH i2c: E2 08 00 E5 2D 80 0D 01 02 00 00 00 00 8B [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [12:03:35]RAPDU: 90 00 [12:03:35]wFMCommunicate OK [12:03:35]wFMCommunicate request_size=255 [12:03:35]MH_SAM_APDU [12:03: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 34 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 9A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 61 25 01 00 35 04 06 00 1C DD C4 E4 [12:03:35]Write to MH i2c: E2 02 01 E6 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 9A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 61 25 01 00 35 04 06 00 1C DD C4 E4 00 00 43 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]OFD Sender: No OFD packet to send [12:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [12:03:35]RAPDU: 90 00 [12:03:35]wFMCommunicate OK [12:03:35]wFMCommunicate request_size=7 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 0D 02 02 02 56 39 [12:03:35]Write to MH i2c: E2 0A 00 E7 2D 80 0D 02 02 02 00 56 39 00 00 21 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [12:03:35]RAPDU: 90 00 [12:03:35]wFMCommunicate OK [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 0D 03 02 [12:03:35]Write to MH i2c: E2 08 00 E8 2D 80 0D 03 02 00 00 00 00 90 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0B 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0B 00 E8 2D 00 57 7D 82 30 E1 FE BB C2 90 00 73 [12:03:35]RAPDU: 57 7D 82 30 E1 FE BB C2 90 00 [12:03:35]wFMCommunicate OK [12:03:35]SAM_PROTO_SignData done [12:03:35]FM_MakeSignedData done [12:03:35]CreateOFDProtocolMessage [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 11 00 00 [12:03:35]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E8 [12:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:03:35]wFMCommunicate OK [12:03:35]CreateOFDProtocolMessage done [12:03:35]OFDSenderStorePacket 75105 [12:03:35]StoreOFDPacket docnum=75105 [12:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 4B A0 04 01 AB F6 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 34 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 9A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 61 25 01 00 35 04 06 00 1C DD C4 E4 56 39 57 7D 82 30 E1 FE BB C2 [12:03:35]CheckFolder [12:03:36]dirname=/storage/ofd_packets [12:03:36]CheckFolder done [12:03:36]ProducePacketName [12:03:36]name=ofd_packets/00075105 [12:03:36]NVStorageSaveData ofd_packets/00075105 [12:03:36]File name is /storage/ofd_packets/00075105 [12:03:36]Write 298 bytes [12:03:36]NVStorageSaveData done [12:03:36]OFDSenderStorePacket done [12:03:36]KKMCreateOFDPacket done [12:03:36]NVStorageSaveData kkm_last_timestamp [12:03:36]File name is /storage/kkm_last_timestamp [12:03:36]Write 4 bytes [12:03:36]NVStorageSaveData done [12:03:36]ExternCall_PrintAddStr [12:03:36]wPrintStart [12:03:36]Write to MH i2c: 01 00 00 EA 2D 17 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 EA 2D 00 00 00 00 00 FF 0F 2C [12:03:36]RasterBufferAndPrint [12:03:36]line Счет N : (1)191076 [12:03:36]line ИНН: 02508201610067 [12:03:36]line Контрольно-Кассовый Чек [12:03:36]line ПРОДАЖА [12:03:36]line ТРК (МРК, ГНК) : 31 [12:03:36]line Товар: 2710194210 [12:03:36]line ДТ-К-4 [12:03:36]line 91.870 * 76.20 [12:03:36]line = 7000.49 [12:03:36]line НДС 12% НСП 1% [12:03:36]line > о реализуемом товаре [12:03:36]line ИТОГО: 7000.49 [12:03:36]line НСП 1% : 61.95 [12:03:36]line НДС 12% : 743.41 [12:03:36]line Наличными: 0.00 [12:03:36]line Безнал.: 7000.49 [12:03:36]line Место: АЗС № 142 "Партнер Нефть" [12:03:36]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:03:36]line СНО: Общий режим [12:03:36]line Чек 97 26.10.2024 12:03 [12:03:36]line Смена: 512 ФФД: 1.0 [12:03:36]line ЗНМ: 0300000089 [12:03:36]line РНМ: 0000000000091691 [12:03:36]line Версия ККМ: 001 [12:03:36]line Платежная система: Mbank [12:03:36]line ФМ: 0000000000871795 [12:03:36]line ФД: 75105 [12:03:36]line ФПД: 31738816648761 [12:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120338&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75105&fm=31738816648761&tin=02508201610067®Number=0000000000091691&sum=700049 [12:03:36]OFD Sender: Processing packet 75105 [packets to send 13, broken 12] [12:03:36]ProducePacketName [12:03:36]name=ofd_packets/00075105 [12:03:36]OFD Sender: To server: pG, [12:03:36]CommunicateWithHost lk.salyk.kg:30040 [12:03:36]ConnectInit lk.salyk.kg [12:03:36]written 0, free lines is 4095 [12:03:36]Connected sock=10 [12:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 4B A0 04 01 AB F6 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 34 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 9A DA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 61 25 01 00 35 04 06 00 1C DD C4 E4 56 39 57 7D 82 30 E1 FE BB C2 [12:03:36]Write to MH i2c: 01 00 00 13 2E 41 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 13 2E 00 00 00 00 00 CA 0C 1E [12:03:36]RasterBufferAndPrint [12:03:36]line [12:03:36]line [12:03:36]line [12:03:36]line [12:03:36]line [12:03:36]written 0, free lines is 3278 [12:03:36]MH_Cut [12:03:36]Write to MH i2c: D1 01 00 1A 2E 01 1A [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: D1 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: D1 01 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: D1 01 00 1A 2E 00 19 [12:03:36]Write to MH i2c: 01 00 00 1B 2E 49 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A7 BA 47 00 1C 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 61 25 01 00 F4 03 04 00 17 82 1C 67 B6 04 01 00 00 6C 62 FD D4 D6 33 01 D8 [12:03:36]CommunicateWithHost err = 0 [12:03:36]CheckOFDResponse [12:03:36]1017 (14) - 77093643461234 [12:03:36]1041 (16) - 0000000000871795 [12:03:36]1040 (4) - 75105 [12:03:36]1012 (4) - 26.10.2024 05:45 [12:03:36]1206 (1) - 0 [12:03:36]OFD Sender: Remove packet 75105 [12:03:36]ProducePacketName [12:03:36]name=ofd_packets/00075105 [12:03:36]NVStorageDeleteData [12:03:37]OFD Sender: No OFD packet to send [12:03:37]*** Cut start [12:03:37]*** Partial cut [12:03:37]*** CUTSNS_PIN = 1 [12:03:37]*** CUTSNS_PIN = 0 [12:03:37]*** Brake cut motor [12:03:38]Read from MH i2c: 01 [12:03:38]MH_I2C_Read... [12:03:38]*** Stop cut motor [12:03:38]*** Cut end [12:03:38]Read from MH i2c: 01 07 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FF 0F 5E [12:03:38]process_action close_receipt done [12:03:38]requested_data is exist [12:03:38]produce_requested_data [12:03:38]requested_item fm.sn is exist - process it [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 11 00 00 [12:03:38]Write to MH i2c: E2 08 00 1C 2E 80 11 00 00 00 00 00 00 C4 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 17 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 17 00 1C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1C [12:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:03:38]wFMCommunicate OK [12:03:38]requested_item fd.num is exist - process it [12:03:38]SAM_PROTO_GetFieldsCounters [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 13 00 00 [12:03:38]Write to MH i2c: E2 08 00 1D 2E 80 13 00 00 00 00 00 00 C7 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 62 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 62 00 1D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 61 25 01 00 0E 04 04 00 00 02 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 9A [12:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 61 25 01 00 0E 04 04 00 00 02 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 [12:03:38]wFMCommunicate OK [12:03:38]SAM_PROTO_GetFieldsCounters done [12:03:38]requested_item shift.num is exist - process it [12:03:38]requested_item shift.opened is exist - process it [12:03:38]req_shift_opened [12:03:38]FM_GetShiftState [12:03:38]SAM_PROTO_GetShiftState [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 13 01 00 [12:03:38]Write to MH i2c: E2 08 00 1E 2E 80 13 01 00 00 00 00 00 C9 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 0E 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 0E 00 1E 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E4 [12:03:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:03:38]wFMCommunicate OK [12:03:38]SAM_PROTO_GetShiftState done [12:03:38]FM_GetShiftState done [12:03:38]req_shift_opened done [12:03:38]requested_item shift.open_date is exist - process it [12:03:38]req_shift_open_date [12:03:38]req_shift_open_date done [12:03:38]produce_requested_data done [12:03:38]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75105,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:03:38]process_action_free close_receipt [12:03:38]json_value_free [12:03:38]json_value_free done [12:03:38]process_json_proto returns [12:03:38]Send response to host [12:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75105,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:03:38]free response buf [12:03:38]execute_script done [12:03:38]execute_script returns [12:03:38]free content buf [12:03:38]Sock 8.Close socket [12:03:38]Sock 8.Thread stoped [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:50]accept exits with 9 [12:05:50]New connection [12:05:50]New thread 3066924388 created [12:05:50]Thread 3066781028 joined [12:05:50]Waiting for new connection... [12:05:50] Sock 9.Parse request [12:05:50]Sock 9.Check first char [12:05:50]Sock 9.First char is OK [12:05:50]request: POST /json_proto HTTP/1.0 [12:05:50]Method: POST [12:05:50]URL: /json_proto [12:05:50]Method is POST - this is cgi request [12:05:50]url: /json_proto [12:05:50]query_string will be loaded in cgi processing [12:05:50]execute_cgi json_proto POST (null) [12:05:50]execute_cgi path=json_proto method=POST [12:05:50]POST find Content-Length [12:05:50]Host: 172.17.39.131:8080 [12:05:50]Content-Length: 677 [12:05:50]Content-Type: application/json [12:05:50] [12:05:50]POST finish read [12:05:50]Found Content-Length = 677 [12:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:50]execute_script... [12:05: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)191078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:50]POST & json_proto [12:05:50]process_json_proto [12:05:50]json parsed OK: [12:05:50]protocol is kg_v1.0 [12:05:50]action value=close_receipt [12:05:50]process_action close_receipt [12:05:50]cmd_close_receipt [12:05:50]MH_GetDate [12:05:50]Write to MH i2c: F0 00 00 1F 2E 3C [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: F0 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: F0 09 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: F0 09 00 1F 2E 00 22 DB 1C 67 86 57 24 65 2B [12:05:50]GetLastDocTimeStamp 1729944218 [12:05:50]current date 1729944354 [12:05:50]FM_GetShiftState [12:05:50]SAM_PROTO_GetShiftState [12:05:50]wFMCommunicate request_size=4 [12:05:50]MH_SAM_APDU [12:05:50]CAPDU: 80 13 01 00 [12:05:50]Write to MH i2c: E2 08 00 20 2E 80 13 01 00 00 00 00 00 CB [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:50]Read from MH i2c: E2 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 0E 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: E2 0E 00 20 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E6 [12:05:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:05:50]wFMCommunicate OK [12:05:50]SAM_PROTO_GetShiftState done [12:05:50]FM_GetShiftState done [12:05:50]opened in 1729902166 [12:05:50]opened+sec_in_day 1729988566 [12:05:50]quantity*price = 50041 [12:05:50]sum+1 = 50042 [12:05: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 98 26.10.2024 12:05 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75106 ФПД: 80144817376341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75106&fm=80144817376341&tin=02508201610067®Number=0000000000091691&sum=50000 [12:05:51]StoreToDocumentArchive [12:05:51]shift 512 fd 75106 [12:05:51]save to /storage/0512/doc_00075106 [12:05:51]save last doc name /storage/0512/doc_00075106 to /storage/kkm_last_doc_name [12:05:51]save OK [12:05:51]Clear old archive folders... [12:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:51]tlvbuf is B6ED3890 [12:05:51]SAM_PROTO_ClearQueue [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 09 00 00 [12:05:51]Write to MH i2c: E2 08 00 2D 2E 80 09 00 00 00 00 00 00 CD [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [12:05:51]RAPDU: 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_ClearQueue done [12:05:51]KKMCreateOFDPacket [12:05:51]OFDProtocolAddRootSTLVToBuf [12:05:51]FM_MakeSignedData [12:05:51]FM_MakeSignedData [12:05:51]SAM_PROTO_SignData [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 0D 01 02 [12:05:51]Write to MH i2c: E2 08 00 2E 2E 80 0D 01 02 00 00 00 00 D5 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [12:05:51]RAPDU: 90 00 [12:05:51]wFMCommunicate OK [12:05:51]wFMCommunicate request_size=255 [12:05:51]MH_SAM_APDU [12:05: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 62 00 00 00 F4 03 04 00 22 DB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 62 25 01 00 35 04 06 00 48 [12:05:51]Write to MH i2c: E2 02 01 2F 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 62 00 00 00 F4 03 04 00 22 DB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 62 25 01 00 35 04 06 00 48 00 00 1E [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [12:05:51]RAPDU: 90 00 [12:05:51]wFMCommunicate OK [12:05:51]wFMCommunicate request_size=10 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 0D 02 02 05 E4 2B 5E CC 55 [12:05:51]Write to MH i2c: E2 0D 00 30 2E 80 0D 02 02 05 00 E4 2B 5E CC 55 00 00 70 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [12:05:51]RAPDU: 90 00 [12:05:51]wFMCommunicate OK [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 0D 03 02 [12:05:51]Write to MH i2c: E2 08 00 31 2E 80 0D 03 02 00 00 00 00 DA [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0B 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0B 00 31 2E 00 4D F9 9F 44 93 15 D8 6C 90 00 F0 [12:05:51]RAPDU: 4D F9 9F 44 93 15 D8 6C 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_SignData done [12:05:51]FM_MakeSignedData done [12:05:51]CreateOFDProtocolMessage [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 11 00 00 [12:05:51]Write to MH i2c: E2 08 00 32 2E 80 11 00 00 00 00 00 00 DA [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 17 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 17 00 32 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [12:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:05:51]wFMCommunicate OK [12:05:51]CreateOFDProtocolMessage done [12:05:51]OFDSenderStorePacket 75106 [12:05:51]StoreOFDPacket docnum=75106 [12:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4A 19 07 01 B6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 22 DB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 62 25 01 00 35 04 06 00 48 E4 2B 5E CC 55 4D F9 9F 44 93 15 D8 6C [12:05:51]CheckFolder [12:05:51]dirname=/storage/ofd_packets [12:05:51]CheckFolder done [12:05:51]ProducePacketName [12:05:51]name=ofd_packets/00075106 [12:05:51]NVStorageSaveData ofd_packets/00075106 [12:05:51]File name is /storage/ofd_packets/00075106 [12:05:51]Write 301 bytes [12:05:51]NVStorageSaveData done [12:05:51]OFDSenderStorePacket done [12:05:51]KKMCreateOFDPacket done [12:05:51]NVStorageSaveData kkm_last_timestamp [12:05:51]File name is /storage/kkm_last_timestamp [12:05:51]Write 4 bytes [12:05:51]NVStorageSaveData done [12:05:51]ExternCall_PrintAddStr [12:05:51]wPrintStart [12:05:51]Write to MH i2c: 01 00 00 33 2E 61 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: 01 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: 01 07 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 FF 0F 76 [12:05:51]RasterBufferAndPrint [12:05:51]line Счет N : (1)191078 [12:05:51]line ИНН: 02508201610067 [12:05:51]line Контрольно-Кассовый Чек [12:05:51]line ПРОДАЖА [12:05:51]line ТРК (МРК, ГНК) : 21 [12:05:51]line Товар: 2710124130 [12:05:51]line Аи-92-К-5 [12:05:51]line 7.480 * 66.90 [12:05:51]line = 500.41 [12:05:51]line НДС 12% НСП 1% [12:05:51]line > о реализуемом товаре [12:05:51]line ОКРУГЛЕНИЕ: -0.41 [12:05:51]line ИТОГО: 500.00 [12:05:51]line Внесено: 500.00 [12:05:51]line СДАЧА: 0.00 [12:05:51]line НСП 1% : 4.43 [12:05:51]line НДС 12% : 53.14 [12:05:51]line Наличными: 500.00 [12:05:51]line Безнал.: 0.00 [12:05:51]line Место: АЗС № 142 "Партнер Нефть" [12:05:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:05:51]line СНО: Общий режим [12:05:51]line Чек 98 26.10.2024 12:05 [12:05:51]line Смена: 512 ФФД: 1.0 [12:05:51]line ЗНМ: 0300000089 [12:05:51]line РНМ: 0000000000091691 [12:05:51]line Версия ККМ: 001 [12:05:51]line ФМ: 0000000000871795 [12:05:51]line ФД: 75106 [12:05:51]line ФПД: 80144817376341 [12:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75106&fm=80144817376341&tin=02508201610067®Number=0000000000091691&sum=50000 [12:05:52]written 0, free lines is 4095 [12:05:52]OFD Sender: Processing packet 75106 [packets to send 13, broken 12] [12:05:52]ProducePacketName [12:05:52]name=ofd_packets/00075106 [12:05:52]OFD Sender: To server: pG, [12:05:52]CommunicateWithHost lk.salyk.kg:30040 [12:05:52]ConnectInit lk.salyk.kg [12:05:52]Connected sock=11 [12:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4A 19 07 01 B6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 22 DB 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 62 25 01 00 35 04 06 00 48 E4 2B 5E CC 55 4D F9 9F 44 93 15 D8 6C [12:05:52]Write to MH i2c: 01 00 00 5E 2E 8C [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: 01 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: 01 07 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: 01 07 00 5E 2E 00 00 00 00 00 A7 0C 46 [12:05:52]RasterBufferAndPrint [12:05:52]line [12:05:52]line [12:05:52]line [12:05:52]line [12:05:52]line [12:05:52]written 0, free lines is 3245 [12:05:52]MH_Cut [12:05:52]Write to MH i2c: D1 01 00 65 2E 01 65 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: D1 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: D1 01 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: D1 01 00 65 2E 00 64 [12:05:52]Write to MH i2c: 01 00 00 66 2E 94 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D4 78 47 00 C6 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 62 25 01 00 F4 03 04 00 9F 82 1C 67 B6 04 01 00 00 DD 03 40 1E 1C DC 94 BD [12:05:52]CommunicateWithHost err = 0 [12:05:52]CheckOFDResponse [12:05:52]1017 (14) - 77093643461234 [12:05:52]1041 (16) - 0000000000871795 [12:05:52]1040 (4) - 75106 [12:05:52]1012 (4) - 26.10.2024 05:48 [12:05:52]1206 (1) - 0 [12:05:52]OFD Sender: Remove packet 75106 [12:05:52]ProducePacketName [12:05:52]name=ofd_packets/00075106 [12:05:52]NVStorageDeleteData [12:05:53]OFD Sender: No OFD packet to send [12:05:53]*** Cut start [12:05:53]*** Partial cut [12:05:53]*** CUTSNS_PIN = 1 [12:05:53]*** CUTSNS_PIN = 0 [12:05:53]*** Brake cut motor [12:05:54]Read from MH i2c: 01 [12:05:54]MH_I2C_Read... [12:05:54]*** Stop cut motor [12:05:54]*** Cut end [12:05:54]Read from MH i2c: 01 07 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: 01 07 00 66 2E 00 00 00 00 00 FF 0F A9 [12:05:54]process_action close_receipt done [12:05:54]requested_data is exist [12:05:54]produce_requested_data [12:05:54]requested_item fm.sn is exist - process it [12:05:54]wFMCommunicate request_size=4 [12:05:54]MH_SAM_APDU [12:05:54]CAPDU: 80 11 00 00 [12:05:54]Write to MH i2c: E2 08 00 67 2E 80 11 00 00 00 00 00 00 0F [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:54]Read from MH i2c: E2 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 17 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 17 00 67 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 67 [12:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:05:54]wFMCommunicate OK [12:05:54]requested_item fd.num is exist - process it [12:05:54]SAM_PROTO_GetFieldsCounters [12:05:54]wFMCommunicate request_size=4 [12:05:54]MH_SAM_APDU [12:05:54]CAPDU: 80 13 00 00 [12:05:54]Write to MH i2c: E2 08 00 68 2E 80 13 00 00 00 00 00 00 12 [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:54]Read from MH i2c: E2 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 62 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 62 00 68 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 62 25 01 00 0E 04 04 00 00 02 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 E9 [12:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 62 25 01 00 0E 04 04 00 00 02 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 [12:05:54]wFMCommunicate OK [12:05:54]SAM_PROTO_GetFieldsCounters done [12:05:54]requested_item shift.num is exist - process it [12:05:54]requested_item shift.opened is exist - process it [12:05:54]req_shift_opened [12:05:54]FM_GetShiftState [12:05:54]SAM_PROTO_GetShiftState [12:05:54]wFMCommunicate request_size=4 [12:05:54]MH_SAM_APDU [12:05:54]CAPDU: 80 13 01 00 [12:05:54]Write to MH i2c: E2 08 00 69 2E 80 13 01 00 00 00 00 00 14 [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 [12:05:54]MH_I2C_Read... [12:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:54]Read from MH i2c: E2 0E 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: E2 0E 00 69 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2F [12:05:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:05:54]wFMCommunicate OK [12:05:54]SAM_PROTO_GetShiftState done [12:05:54]FM_GetShiftState done [12:05:54]req_shift_opened done [12:05:54]requested_item shift.open_date is exist - process it [12:05:54]req_shift_open_date [12:05:54]req_shift_open_date done [12:05:54]produce_requested_data done [12:05:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75106,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:05:54]process_action_free close_receipt [12:05:54]json_value_free [12:05:54]json_value_free done [12:05:54]process_json_proto returns [12:05:54]Send response to host [12:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75106,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:05:54]free response buf [12:05:54]execute_script done [12:05:54]execute_script returns [12:05:54]free content buf [12:05:54]Sock 9.Close socket [12:05:54]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08: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:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:19]accept exits with 8 [12:11:19]New connection [12:11:19]New thread 3066781028 created [12:11:19]Thread 3066924388 joined [12:11:19]Waiting for new connection... [12:11:19] Sock 8.Parse request [12:11:19]Sock 8.Check first char [12:11:19]Sock 8.First char is OK [12:11:19]request: POST /json_proto HTTP/1.0 [12:11:19]Method: POST [12:11:19]URL: /json_proto [12:11:19]Method is POST - this is cgi request [12:11:19]url: /json_proto [12:11:19]query_string will be loaded in cgi processing [12:11:19]execute_cgi json_proto POST (null) [12:11:19]execute_cgi path=json_proto method=POST [12:11:19]POST find Content-Length [12:11:19]Host: 172.17.39.131:8080 [12:11:19]Content-Length: 677 [12:11:19]Content-Type: application/json [12:11:19] [12:11:19]POST finish read [12:11:19]Found Content-Length = 677 [12:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:11:19]execute_script... [12:11: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)191080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:11:19]POST & json_proto [12:11:19]process_json_proto [12:11:19]json parsed OK: [12:11:19]protocol is kg_v1.0 [12:11:19]action value=close_receipt [12:11:19]process_action close_receipt [12:11:19]cmd_close_receipt [12:11:19]MH_GetDate [12:11:19]Write to MH i2c: F0 00 00 6A 2E 87 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: F0 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: F0 09 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: F0 09 00 6A 2E 00 6C DC 1C 67 86 57 24 65 C1 [12:11:19]GetLastDocTimeStamp 1729944354 [12:11:19]current date 1729944684 [12:11:19]FM_GetShiftState [12:11:19]SAM_PROTO_GetShiftState [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 13 01 00 [12:11:19]Write to MH i2c: E2 08 00 6B 2E 80 13 01 00 00 00 00 00 16 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 6B 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 31 [12:11:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_GetShiftState done [12:11:19]FM_GetShiftState done [12:11:19]opened in 1729902166 [12:11:19]opened+sec_in_day 1729988566 [12:11:19]quantity*price = 50041 [12:11:19]sum+1 = 50042 [12:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 99 26.10.2024 12:11 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75107 ФПД: 230157911134806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121124&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75107&fm=230157911134806&tin=02508201610067®Number=0000000000091691&sum=50000 [12:11:20]StoreToDocumentArchive [12:11:20]shift 512 fd 75107 [12:11:20]save to /storage/0512/doc_00075107 [12:11:20]save last doc name /storage/0512/doc_00075107 to /storage/kkm_last_doc_name [12:11:20]save OK [12:11:20]Clear old archive folders... [12:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:20]tlvbuf is B6EA1800 [12:11:20]SAM_PROTO_ClearQueue [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 09 00 00 [12:11:20]Write to MH i2c: E2 08 00 78 2E 80 09 00 00 00 00 00 00 18 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_ClearQueue done [12:11:20]KKMCreateOFDPacket [12:11:20]OFDProtocolAddRootSTLVToBuf [12:11:20]FM_MakeSignedData [12:11:20]FM_MakeSignedData [12:11:20]SAM_PROTO_SignData [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 01 02 [12:11:20]Write to MH i2c: E2 08 00 79 2E 80 0D 01 02 00 00 00 00 20 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]wFMCommunicate request_size=255 [12:11:20]MH_SAM_APDU [12:11: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 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 63 00 00 00 F4 03 04 00 6C DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 63 25 01 00 35 04 06 00 D1 [12:11:20]Write to MH i2c: E2 02 01 7A 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 63 00 00 00 F4 03 04 00 6C DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 63 25 01 00 35 04 06 00 D1 00 00 3F [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]wFMCommunicate request_size=10 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 02 02 05 53 D0 89 12 56 [12:11:20]Write to MH i2c: E2 0D 00 7B 2E 80 0D 02 02 05 00 53 D0 89 12 56 00 00 41 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 7B 2E 00 90 00 1D [12:11:21]RAPDU: 90 00 [12:11:21]wFMCommunicate OK [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 0D 03 02 [12:11:21]Write to MH i2c: E2 08 00 7C 2E 80 0D 03 02 00 00 00 00 25 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0B 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0B 00 7C 2E 00 BB E4 CF 78 EE 05 BD 90 90 00 4C [12:11:21]RAPDU: BB E4 CF 78 EE 05 BD 90 90 00 [12:11:21]wFMCommunicate OK [12:11:21]SAM_PROTO_SignData done [12:11:21]FM_MakeSignedData done [12:11:21]CreateOFDProtocolMessage [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 11 00 00 [12:11:21]Write to MH i2c: E2 08 00 7D 2E 80 11 00 00 00 00 00 00 25 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 7D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7D [12:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:11:21]wFMCommunicate OK [12:11:21]CreateOFDProtocolMessage done [12:11:21]OFDSenderStorePacket 75107 [12:11:21]StoreOFDPacket docnum=75107 [12:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FF FF 07 01 D9 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 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 63 00 00 00 F4 03 04 00 6C DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 63 25 01 00 35 04 06 00 D1 53 D0 89 12 56 BB E4 CF 78 EE 05 BD 90 [12:11:21]CheckFolder [12:11:21]dirname=/storage/ofd_packets [12:11:21]CheckFolder done [12:11:21]ProducePacketName [12:11:21]name=ofd_packets/00075107 [12:11:21]NVStorageSaveData ofd_packets/00075107 [12:11:21]File name is /storage/ofd_packets/00075107 [12:11:21]Write 301 bytes [12:11:21]NVStorageSaveData done [12:11:21]OFDSenderStorePacket done [12:11:21]KKMCreateOFDPacket done [12:11:21]NVStorageSaveData kkm_last_timestamp [12:11:21]File name is /storage/kkm_last_timestamp [12:11:21]Write 4 bytes [12:11:21]NVStorageSaveData done [12:11:21]ExternCall_PrintAddStr [12:11:21]wPrintStart [12:11:21]Write to MH i2c: 01 00 00 7E 2E AC [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 7E 2E 00 00 00 00 00 FF 0F C1 [12:11:21]RasterBufferAndPrint [12:11:21]line Счет N : (1)191080 [12:11:21]line ИНН: 02508201610067 [12:11:21]line Контрольно-Кассовый Чек [12:11:21]line ПРОДАЖА [12:11:21]line ТРК (МРК, ГНК) : 21 [12:11:21]line Товар: 2710124130 [12:11:21]line Аи-92-К-5 [12:11:21]line 7.480 * 66.90 [12:11:21]line = 500.41 [12:11:21]line НДС 12% НСП 1% [12:11:21]line > о реализуемом товаре [12:11:21]line ОКРУГЛЕНИЕ: -0.41 [12:11:21]line ИТОГО: 500.00 [12:11:21]line Внесено: 500.00 [12:11:21]line СДАЧА: 0.00 [12:11:21]line НСП 1% : 4.43 [12:11:21]line НДС 12% : 53.14 [12:11:21]line Наличными: 500.00 [12:11:21]line Безнал.: 0.00 [12:11:21]line Место: АЗС № 142 "Партнер Нефть" [12:11:21]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:11:21]line СНО: Общий режим [12:11:21]line Чек 99 26.10.2024 12:11 [12:11:21]line Смена: 512 ФФД: 1.0 [12:11:21]line ЗНМ: 0300000089 [12:11:21]line РНМ: 0000000000091691 [12:11:21]line Версия ККМ: 001 [12:11:21]line ФМ: 0000000000871795 [12:11:21]line ФД: 75107 [12:11:21]line ФПД: 230157911134806 [12:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121124&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75107&fm=230157911134806&tin=02508201610067®Number=0000000000091691&sum=50000 [12:11:21]written 0, free lines is 4095 [12:11:21]OFD Sender: Processing packet 75107 [packets to send 13, broken 12] [12:11:21]ProducePacketName [12:11:21]name=ofd_packets/00075107 [12:11:21]OFD Sender: To server: pG, [12:11:21]CommunicateWithHost lk.salyk.kg:30040 [12:11:21]ConnectInit lk.salyk.kg [12:11:21]Connected sock=11 [12:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FF FF 07 01 D9 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 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 63 00 00 00 F4 03 04 00 6C DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 63 25 01 00 35 04 06 00 D1 53 D0 89 12 56 BB E4 CF 78 EE 05 BD 90 [12:11:21]Write to MH i2c: 01 00 00 A9 2E D7 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 A9 2E 00 00 00 00 00 A3 0C 8D [12:11:21]RasterBufferAndPrint [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]written 0, free lines is 3241 [12:11:21]MH_Cut [12:11:21]Write to MH i2c: D1 01 00 B0 2E 01 B0 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 01 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 01 00 B0 2E 00 AF [12:11:21]Write to MH i2c: 01 00 00 B1 2E DF [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B2 8D 47 00 B5 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 63 25 01 00 F4 03 04 00 E8 83 1C 67 B6 04 01 00 00 B1 44 82 17 7E 84 EC FD [12:11:22]CommunicateWithHost err = 0 [12:11:22]CheckOFDResponse [12:11:22]1017 (14) - 77093643461234 [12:11:22]1041 (16) - 0000000000871795 [12:11:22]1040 (4) - 75107 [12:11:22]1012 (4) - 26.10.2024 05:53 [12:11:22]1206 (1) - 0 [12:11:22]OFD Sender: Remove packet 75107 [12:11:22]ProducePacketName [12:11:22]name=ofd_packets/00075107 [12:11:22]NVStorageDeleteData [12:11:22]OFD Sender: No OFD packet to send [12:11:22]*** Cut start [12:11:22]*** Partial cut [12:11:22]*** CUTSNS_PIN = 1 [12:11:22]*** CUTSNS_PIN = 0 [12:11:23]*** Brake cut motor [12:11:23]Read from MH i2c: 01 [12:11:23]MH_I2C_Read... [12:11:23]*** Stop cut motor [12:11:23]*** Cut end [12:11:23]Read from MH i2c: 01 07 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: 01 07 00 B1 2E 00 00 00 00 00 FF 0F F4 [12:11:23]process_action close_receipt done [12:11:23]requested_data is exist [12:11:23]produce_requested_data [12:11:23]requested_item fm.sn is exist - process it [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 11 00 00 [12:11:23]Write to MH i2c: E2 08 00 B2 2E 80 11 00 00 00 00 00 00 5A [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 17 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 17 00 B2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B2 [12:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:11:23]wFMCommunicate OK [12:11:23]requested_item fd.num is exist - process it [12:11:23]SAM_PROTO_GetFieldsCounters [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 13 00 00 [12:11:23]Write to MH i2c: E2 08 00 B3 2E 80 13 00 00 00 00 00 00 5D [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 B3 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 63 25 01 00 0E 04 04 00 00 02 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 38 [12:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 63 25 01 00 0E 04 04 00 00 02 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 [12:11:23]wFMCommunicate OK [12:11:23]SAM_PROTO_GetFieldsCounters done [12:11:23]requested_item shift.num is exist - process it [12:11:23]requested_item shift.opened is exist - process it [12:11:23]req_shift_opened [12:11:23]FM_GetShiftState [12:11:23]SAM_PROTO_GetShiftState [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 13 01 00 [12:11:23]Write to MH i2c: E2 08 00 B4 2E 80 13 01 00 00 00 00 00 5F [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 0E 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 0E 00 B4 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7A [12:11:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:11:23]wFMCommunicate OK [12:11:23]SAM_PROTO_GetShiftState done [12:11:23]FM_GetShiftState done [12:11:23]req_shift_opened done [12:11:23]requested_item shift.open_date is exist - process it [12:11:23]req_shift_open_date [12:11:23]req_shift_open_date done [12:11:23]produce_requested_data done [12:11:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75107,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:11:23]process_action_free close_receipt [12:11:23]json_value_free [12:11:23]json_value_free done [12:11:23]process_json_proto returns [12:11:23]Send response to host [12:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75107,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:11:23]free response buf [12:11:23]execute_script done [12:11:23]execute_script returns [12:11:23]free content buf [12:11:23]Sock 8.Close socket [12:11:23]Sock 8.Thread stoped [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]accept exits with 9 [12:11:42]New connection [12:11:42]New thread 3066924388 created [12:11:42]Thread 3066781028 joined [12:11:42]Waiting for new connection... [12:11:42] Sock 9.Parse request [12:11:42]Sock 9.Check first char [12:11:42]Sock 9.First char is OK [12:11:42]request: POST /json_proto HTTP/1.0 [12:11:42]Method: POST [12:11:42]URL: /json_proto [12:11:42]Method is POST - this is cgi request [12:11:42]url: /json_proto [12:11:42]query_string will be loaded in cgi processing [12:11:42]execute_cgi json_proto POST (null) [12:11:42]execute_cgi path=json_proto method=POST [12:11:42]POST find Content-Length [12:11:42]Host: 172.17.39.131:8080 [12:11:42]Content-Length: 789 [12:11:42]Content-Type: application/json [12:11:42] [12:11:42]POST finish read [12:11:42]Found Content-Length = 789 [12:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 56.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\u000A53319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:42]execute_script... [12: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)191079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 56.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\u000A53319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:42]POST & json_proto [12:11:42]process_json_proto [12:11:42]json parsed OK: [12:11:42]protocol is kg_v1.0 [12:11:42]action value=close_receipt [12:11:42]process_action close_receipt [12:11:42]cmd_close_receipt [12:11:42]MH_GetDate [12:11:42]Write to MH i2c: F0 00 00 B5 2E D2 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: F0 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: F0 09 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: F0 09 00 B5 2E 00 82 DC 1C 67 86 57 24 65 22 [12:11:42]GetLastDocTimeStamp 1729944684 [12:11:42]current date 1729944706 [12:11:42]FM_GetShiftState [12:11:42]SAM_PROTO_GetShiftState [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 13 01 00 [12:11:42]Write to MH i2c: E2 08 00 B6 2E 80 13 01 00 00 00 00 00 61 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 B6 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7C [12:11:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_GetShiftState done [12:11:42]FM_GetShiftState done [12:11:42]opened in 1729902166 [12:11:42]opened+sec_in_day 1729988566 [12:11:42]quantity*price = 0 [12:11:42]sum+1 = 1 [12:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 100 26.10.2024 12:11 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 53319 ФМ: 0000000000871795 ФД: 75108 ФПД: 138441657948091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121146&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75108&fm=138441657948091&tin=02508201610067®Number=0000000000091691&sum=0 [12:11:43]StoreToDocumentArchive [12:11:43]shift 512 fd 75108 [12:11:43]save to /storage/0512/doc_00075108 [12:11:43]save last doc name /storage/0512/doc_00075108 to /storage/kkm_last_doc_name [12:11:43]save OK [12:11:43]Clear old archive folders... [12:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:43]tlvbuf is 008AB960 [12:11:43]SAM_PROTO_ClearQueue [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 09 00 00 [12:11:43]Write to MH i2c: E2 08 00 C3 2E 80 09 00 00 00 00 00 00 63 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_ClearQueue done [12:11:43]KKMCreateOFDPacket [12:11:43]OFDProtocolAddRootSTLVToBuf [12:11:43]FM_MakeSignedData [12:11:43]FM_MakeSignedData [12:11:43]SAM_PROTO_SignData [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 0D 01 02 [12:11:43]Write to MH i2c: E2 08 00 C4 2E 80 0D 01 02 00 00 00 00 6B [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]wFMCommunicate request_size=255 [12:11:43]MH_SAM_APDU [12: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 34 FF 03 08 00 03 C0 DA 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 00 00 00 F4 03 04 00 82 DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 64 25 01 00 35 04 06 00 7D E9 75 D8 [12:11:43]Write to MH i2c: E2 02 01 C5 2E 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 34 FF 03 08 00 03 C0 DA 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 00 00 00 F4 03 04 00 82 DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 64 25 01 00 35 04 06 00 7D E9 75 D8 00 00 EB [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 C5 2E 00 90 00 67 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]wFMCommunicate request_size=7 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 0D 02 02 02 17 BB [12:11:43]Write to MH i2c: E2 0A 00 C6 2E 80 0D 02 02 02 00 17 BB 00 00 44 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 03 00 C6 2E 00 90 00 68 [12:11:43]RAPDU: 90 00 [12:11:43]wFMCommunicate OK [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 0D 03 02 [12:11:43]Write to MH i2c: E2 08 00 C7 2E 80 0D 03 02 00 00 00 00 70 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0B 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0B 00 C7 2E 00 36 A4 D2 DB 37 38 0A 61 90 00 D2 [12:11:43]RAPDU: 36 A4 D2 DB 37 38 0A 61 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_SignData done [12:11:43]FM_MakeSignedData done [12:11:43]CreateOFDProtocolMessage [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 11 00 00 [12:11:43]Write to MH i2c: E2 08 00 C8 2E 80 11 00 00 00 00 00 00 70 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 C8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C8 [12:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:11:43]wFMCommunicate OK [12:11:43]CreateOFDProtocolMessage done [12:11:43]OFDSenderStorePacket 75108 [12:11:43]StoreOFDPacket docnum=75108 [12:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E9 A7 04 01 9B D0 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 34 FF 03 08 00 03 C0 DA 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 00 00 00 F4 03 04 00 82 DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 64 25 01 00 35 04 06 00 7D E9 75 D8 17 BB 36 A4 D2 DB 37 38 0A 61 [12:11:43]CheckFolder [12:11:43]dirname=/storage/ofd_packets [12:11:43]CheckFolder done [12:11:43]ProducePacketName [12:11:43]name=ofd_packets/00075108 [12:11:43]NVStorageSaveData ofd_packets/00075108 [12:11:43]File name is /storage/ofd_packets/00075108 [12:11:43]Write 298 bytes [12:11:43]NVStorageSaveData done [12:11:43]OFDSenderStorePacket done [12:11:43]KKMCreateOFDPacket done [12:11:43]NVStorageSaveData kkm_last_timestamp [12:11:43]File name is /storage/kkm_last_timestamp [12:11:43]Write 4 bytes [12:11:43]NVStorageSaveData done [12:11:43]ExternCall_PrintAddStr [12:11:43]wPrintStart [12:11:43]Write to MH i2c: 01 00 00 C9 2E F7 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 C9 2E 00 00 00 00 00 FF 0F 0C [12:11:43]RasterBufferAndPrint [12:11:43]line Счет N : (1)191079 [12:11:43]line ИНН: 02508201610067 [12:11:43]line Контрольно-Кассовый Чек [12:11:43]line ПРОДАЖА [12:11:43]line ТРК (МРК, ГНК) : 31 [12:11:43]line Товар: 2710194210 [12:11:43]line ДТ-К-4 [12:11:43]line 56.000 * 0.00 [12:11:43]line = 0.00 [12:11:43]line НДС 12% НСП 1% [12:11:43]line > о реализуемом товаре [12:11:43]line ИТОГО: 0.00 [12:11:43]line НСП 1% : 0.00 [12:11:43]line НДС 12% : 0.00 [12:11:43]line Наличными: 0.00 [12:11:43]line Безнал.: 0.00 [12:11:43]line Место: АЗС № 142 "Партнер Нефть" [12:11:43]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:11:43]line СНО: Общий режим [12:11:43]line Чек 100 26.10.2024 12:11 [12:11:43]line Смена: 512 ФФД: 1.0 [12:11:43]line ЗНМ: 0300000089 [12:11:43]line РНМ: 0000000000091691 [12:11:43]line Версия ККМ: 001 [12:11:43]line Талоны: Топливная Карта [12:11:43]line 53319 [12:11:43]line ФМ: 0000000000871795 [12:11:43]line ФД: 75108 [12:11:43]line ФПД: 138441657948091 [12:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121146&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75108&fm=138441657948091&tin=02508201610067®Number=0000000000091691&sum=0 [12:11:44]OFD Sender: Processing packet 75108 [packets to send 13, broken 12] [12:11:44]ProducePacketName [12:11:44]name=ofd_packets/00075108 [12:11:44]OFD Sender: To server: pG, [12:11:44]CommunicateWithHost lk.salyk.kg:30040 [12:11:44]ConnectInit lk.salyk.kg [12:11:44]written 0, free lines is 4095 [12:11:44]Connected sock=10 [12:11:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E9 A7 04 01 9B D0 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 34 FF 03 08 00 03 C0 DA 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 00 00 00 F4 03 04 00 82 DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 64 25 01 00 35 04 06 00 7D E9 75 D8 17 BB 36 A4 D2 DB 37 38 0A 61 [12:11:44]Write to MH i2c: 01 00 00 F3 2E 21 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 F3 2E 00 00 00 00 00 BA 0C EE [12:11:44]RasterBufferAndPrint [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]line [12:11:44]written 0, free lines is 3261 [12:11:44]MH_Cut [12:11:44]Write to MH i2c: D1 01 00 FA 2E 01 FA [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 01 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: D1 01 00 FA 2E 00 F9 [12:11:44]Write to MH i2c: 01 00 00 FB 2E 29 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 55 77 47 00 40 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 64 25 01 00 F4 03 04 00 FF 83 1C 67 B6 04 01 00 00 FE 7E 94 96 4B 2A 42 BB [12:11:44]CommunicateWithHost err = 0 [12:11:44]CheckOFDResponse [12:11:44]1017 (14) - 77093643461234 [12:11:44]1041 (16) - 0000000000871795 [12:11:44]1040 (4) - 75108 [12:11:44]1012 (4) - 26.10.2024 05:54 [12:11:44]1206 (1) - 0 [12:11:44]OFD Sender: Remove packet 75108 [12:11:44]ProducePacketName [12:11:44]name=ofd_packets/00075108 [12:11:44]NVStorageDeleteData [12:11:45]OFD Sender: No OFD packet to send [12:11:45]*** Cut start [12:11:45]*** Partial cut [12:11:45]*** CUTSNS_PIN = 1 [12:11:45]*** CUTSNS_PIN = 0 [12:11:45]*** Brake cut motor [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]*** Stop cut motor [12:11:46]*** Cut end [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 FB 2E 00 00 00 00 00 FF 0F 3E [12:11:46]process_action close_receipt done [12:11:46]requested_data is exist [12:11:46]produce_requested_data [12:11:46]requested_item fm.sn is exist - process it [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 FC 2E 80 11 00 00 00 00 00 00 A4 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 FC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FC [12:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:11:46]wFMCommunicate OK [12:11:46]requested_item fd.num is exist - process it [12:11:46]SAM_PROTO_GetFieldsCounters [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 00 00 [12:11:46]Write to MH i2c: E2 08 00 FD 2E 80 13 00 00 00 00 00 00 A7 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 62 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 62 00 FD 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 64 25 01 00 0E 04 04 00 00 02 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 86 [12:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 64 25 01 00 0E 04 04 00 00 02 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 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetFieldsCounters done [12:11:46]requested_item shift.num is exist - process it [12:11:46]requested_item shift.opened is exist - process it [12:11:46]req_shift_opened [12:11:46]FM_GetShiftState [12:11:46]SAM_PROTO_GetShiftState [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 01 00 [12:11:46]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C4 [12:11:46]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetShiftState done [12:11:46]FM_GetShiftState done [12:11:46]req_shift_opened done [12:11:46]requested_item shift.open_date is exist - process it [12:11:46]req_shift_open_date [12:11:46]req_shift_open_date done [12:11:46]produce_requested_data done [12:11:46]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75108,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:11:46]process_action_free close_receipt [12:11:46]json_value_free [12:11:46]json_value_free done [12:11:46]process_json_proto returns [12:11:46]Send response to host [12:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75108,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:11:46]free response buf [12:11:46]execute_script done [12:11:46]execute_script returns [12:11:46]free content buf [12:11:46]Sock 9.Close socket [12:11:46]Sock 9.Thread stoped [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:41]accept exits with 8 [12:13:41]New connection [12:13:41]New thread 3066781028 created [12:13:41]Thread 3066924388 joined [12:13:41]Waiting for new connection... [12:13:41] Sock 8.Parse request [12:13:41]Sock 8.Check first char [12:13:41]Sock 8.First char is OK [12:13:41]request: POST /json_proto HTTP/1.0 [12:13:41]Method: POST [12:13:41]URL: /json_proto [12:13:41]Method is POST - this is cgi request [12:13:41]url: /json_proto [12:13:41]query_string will be loaded in cgi processing [12:13:41]execute_cgi json_proto POST (null) [12:13:41]execute_cgi path=json_proto method=POST [12:13:41]POST find Content-Length [12:13:41]Host: 172.17.39.131:8080 [12:13:41]Content-Length: 682 [12:13:41]Content-Type: application/json [12:13:41] [12:13:41]POST finish read [12:13:41]Found Content-Length = 682 [12:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:41]execute_script... [12:13: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)191081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:41]POST & json_proto [12:13:41]process_json_proto [12:13:41]json parsed OK: [12:13:41]protocol is kg_v1.0 [12:13:41]action value=close_receipt [12:13:41]process_action close_receipt [12:13:41]cmd_close_receipt [12:13:41]MH_GetDate [12:13:41]Write to MH i2c: F0 00 00 03 2F 21 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: F0 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: F0 09 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: F0 09 00 03 2F 00 FA DC 1C 67 86 57 24 65 E9 [12:13:41]GetLastDocTimeStamp 1729944706 [12:13:41]current date 1729944826 [12:13:41]FM_GetShiftState [12:13:41]SAM_PROTO_GetShiftState [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 13 01 00 [12:13:41]Write to MH i2c: E2 08 00 04 2F 80 13 01 00 00 00 00 00 B0 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 04 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CB [12:13:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetShiftState done [12:13:42]FM_GetShiftState done [12:13:42]opened in 1729902166 [12:13:42]opened+sec_in_day 1729988566 [12:13:42]quantity*price = 150056 [12:13:42]sum+1 = 150058 [12:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 101 26.10.2024 12:13 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75109 ФПД: 255053339192851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121346&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75109&fm=255053339192851&tin=02508201610067®Number=0000000000091691&sum=150000 [12:13:43]StoreToDocumentArchive [12:13:43]shift 512 fd 75109 [12:13:43]save to /storage/0512/doc_00075109 [12:13:43]save last doc name /storage/0512/doc_00075109 to /storage/kkm_last_doc_name [12:13:43]save OK [12:13:43]Clear old archive folders... [12:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:43]tlvbuf is 00844E50 [12:13:43]SAM_PROTO_ClearQueue [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 09 00 00 [12:13:43]Write to MH i2c: E2 08 00 11 2F 80 09 00 00 00 00 00 00 B2 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 11 2F 00 90 00 B4 [12:13:43]RAPDU: 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_ClearQueue done [12:13:43]KKMCreateOFDPacket [12:13:43]OFDProtocolAddRootSTLVToBuf [12:13:43]FM_MakeSignedData [12:13:43]FM_MakeSignedData [12:13:43]SAM_PROTO_SignData [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 0D 01 02 [12:13:43]Write to MH i2c: E2 08 00 12 2F 80 0D 01 02 00 00 00 00 BA [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 12 2F 00 90 00 B5 [12:13:43]RAPDU: 90 00 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=255 [12:13:43]MH_SAM_APDU [12:13: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 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 65 00 00 00 F4 03 04 00 FA DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 65 25 01 00 35 04 06 00 E7 [12:13:43]Write to MH i2c: E2 02 01 13 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 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 65 00 00 00 F4 03 04 00 FA DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 65 25 01 00 35 04 06 00 E7 00 00 CA [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 13 2F 00 90 00 B6 [12:13:43]RAPDU: 90 00 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=10 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 0D 02 02 05 F8 3B AE 6E 13 [12:13:43]Write to MH i2c: E2 0D 00 14 2F 80 0D 02 02 05 00 F8 3B AE 6E 13 00 00 29 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 03 00 14 2F 00 90 00 B7 [12:13:43]RAPDU: 90 00 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 0D 03 02 [12:13:43]Write to MH i2c: E2 08 00 15 2F 80 0D 03 02 00 00 00 00 BF [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0B 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0B 00 15 2F 00 9E CD AE 00 CC 89 BB 7C 90 00 65 [12:13:43]RAPDU: 9E CD AE 00 CC 89 BB 7C 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_SignData done [12:13:43]FM_MakeSignedData done [12:13:43]CreateOFDProtocolMessage [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 11 00 00 [12:13:43]Write to MH i2c: E2 08 00 16 2F 80 11 00 00 00 00 00 00 BF [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 16 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 17 [12:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:13:43]wFMCommunicate OK [12:13:43]CreateOFDProtocolMessage done [12:13:43]OFDSenderStorePacket 75109 [12:13:43]StoreOFDPacket docnum=75109 [12:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1C C2 07 01 22 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 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 65 00 00 00 F4 03 04 00 FA DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 65 25 01 00 35 04 06 00 E7 F8 3B AE 6E 13 9E CD AE 00 CC 89 BB 7C [12:13:43]CheckFolder [12:13:43]dirname=/storage/ofd_packets [12:13:43]CheckFolder done [12:13:43]ProducePacketName [12:13:43]name=ofd_packets/00075109 [12:13:43]NVStorageSaveData ofd_packets/00075109 [12:13:43]File name is /storage/ofd_packets/00075109 [12:13:43]Write 301 bytes [12:13:43]NVStorageSaveData done [12:13:43]OFDSenderStorePacket done [12:13:43]KKMCreateOFDPacket done [12:13:43]NVStorageSaveData kkm_last_timestamp [12:13:43]File name is /storage/kkm_last_timestamp [12:13:43]Write 4 bytes [12:13:43]NVStorageSaveData done [12:13:43]ExternCall_PrintAddStr [12:13:43]wPrintStart [12:13:43]Write to MH i2c: 01 00 00 17 2F 46 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: 01 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: 01 07 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: 01 07 00 17 2F 00 00 00 00 00 FF 0F 5B [12:13:43]RasterBufferAndPrint [12:13:43]line Счет N : (1)191081 [12:13:43]line ИНН: 02508201610067 [12:13:43]line Контрольно-Кассовый Чек [12:13:43]line ПРОДАЖА [12:13:43]line ТРК (МРК, ГНК) : 21 [12:13:43]line Товар: 2710124130 [12:13:43]line Аи-92-К-5 [12:13:43]line 22.430 * 66.90 [12:13:43]line = 1500.57 [12:13:43]line НДС 12% НСП 1% [12:13:43]line > о реализуемом товаре [12:13:43]line ОКРУГЛЕНИЕ: -0.57 [12:13:43]line ИТОГО: 1500.00 [12:13:43]line Внесено: 1500.00 [12:13:43]line СДАЧА: 0.00 [12:13:43]line НСП 1% : 13.28 [12:13:43]line НДС 12% : 159.35 [12:13:43]line Наличными: 1500.00 [12:13:43]line Безнал.: 0.00 [12:13:43]line Место: АЗС № 142 "Партнер Нефть" [12:13:43]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:13:43]line СНО: Общий режим [12:13:43]line Чек 101 26.10.2024 12:13 [12:13:43]line Смена: 512 ФФД: 1.0 [12:13:43]line ЗНМ: 0300000089 [12:13:43]line РНМ: 0000000000091691 [12:13:43]line Версия ККМ: 001 [12:13:43]line ФМ: 0000000000871795 [12:13:43]line ФД: 75109 [12:13:43]line ФПД: 255053339192851 [12:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121346&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75109&fm=255053339192851&tin=02508201610067®Number=0000000000091691&sum=150000 [12:13:44]OFD Sender: Processing packet 75109 [packets to send 13, broken 12] [12:13:44]ProducePacketName [12:13:44]name=ofd_packets/00075109 [12:13:44]OFD Sender: To server: pG, [12:13:44]CommunicateWithHost lk.salyk.kg:30040 [12:13:44]ConnectInit lk.salyk.kg [12:13:44]written 0, free lines is 4095 [12:13:44]Write to MH i2c: 01 00 00 42 2F 71 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: 01 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: 01 07 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: 01 07 00 42 2F 00 00 00 00 00 A5 0C 29 [12:13:44]RasterBufferAndPrint [12:13:44]line [12:13:44]line [12:13:44]line [12:13:44]line [12:13:44]line [12:13:44]written 0, free lines is 3242 [12:13:44]MH_Cut [12:13:44]Write to MH i2c: D1 01 00 49 2F 01 4A [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: D1 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: D1 01 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: D1 01 00 49 2F 00 49 [12:13:44]Write to MH i2c: 01 00 00 4A 2F 79 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:45]*** Cut start [12:13:45]*** Partial cut [12:13:45]*** CUTSNS_PIN = 1 [12:13:45]*** CUTSNS_PIN = 0 [12:13:45]*** Brake cut motor [12:13:46]Read from MH i2c: 01 [12:13:46]MH_I2C_Read... [12:13:46]*** Stop cut motor [12:13:46]*** Cut end [12:13:46]Read from MH i2c: 01 07 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: 01 07 00 4A 2F 00 00 00 00 00 FF 0F 8E [12:13:46]process_action close_receipt done [12:13:46]requested_data is exist [12:13:46]produce_requested_data [12:13:46]requested_item fm.sn is exist - process it [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 11 00 00 [12:13:46]Write to MH i2c: E2 08 00 4B 2F 80 11 00 00 00 00 00 00 F4 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 17 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 17 00 4B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4C [12:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:13:46]wFMCommunicate OK [12:13:46]requested_item fd.num is exist - process it [12:13:46]SAM_PROTO_GetFieldsCounters [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 13 00 00 [12:13:46]Write to MH i2c: E2 08 00 4C 2F 80 13 00 00 00 00 00 00 F7 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 62 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 62 00 4C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 65 25 01 00 0E 04 04 00 00 02 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 DA [12:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 65 25 01 00 0E 04 04 00 00 02 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 [12:13:46]wFMCommunicate OK [12:13:46]SAM_PROTO_GetFieldsCounters done [12:13:46]requested_item shift.num is exist - process it [12:13:46]requested_item shift.opened is exist - process it [12:13:46]req_shift_opened [12:13:46]FM_GetShiftState [12:13:46]SAM_PROTO_GetShiftState [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 13 01 00 [12:13:46]Write to MH i2c: E2 08 00 4D 2F 80 13 01 00 00 00 00 00 F9 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 0E 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 0E 00 4D 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 14 [12:13:46]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:13:46]wFMCommunicate OK [12:13:46]SAM_PROTO_GetShiftState done [12:13:46]FM_GetShiftState done [12:13:46]req_shift_opened done [12:13:46]requested_item shift.open_date is exist - process it [12:13:46]req_shift_open_date [12:13:46]req_shift_open_date done [12:13:46]produce_requested_data done [12:13:46]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75109,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:13:46]process_action_free close_receipt [12:13:46]json_value_free [12:13:46]json_value_free done [12:13:46]process_json_proto returns [12:13:46]Send response to host [12:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75109,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:13:46]free response buf [12:13:46]execute_script done [12:13:46]execute_script returns [12:13:46]free content buf [12:13:46]Sock 8.Close socket [12:13:46]Sock 8.Thread stoped [12:13:49]ConnectInit Can't take IP for lk.salyk.kg [12:13:49]CommunicateWithHost connect error [12:13:49]CommunicateWithHost err = -1 [12:13:49]OFD Sender: Server communicate error [12:13:54]OFD Sender: Processing packet 75109 [packets to send 13, broken 12] [12:13:54]ProducePacketName [12:13:54]name=ofd_packets/00075109 [12:13:54]OFD Sender: To server: pG, [12:13:54]CommunicateWithHost lk.salyk.kg:30040 [12:13:54]ConnectInit lk.salyk.kg [12:13:59]ConnectInit Can't take IP for lk.salyk.kg [12:13:59]CommunicateWithHost connect error [12:13:59]CommunicateWithHost err = -1 [12:13:59]OFD Sender: Server communicate error [12:14:04]OFD Sender: Processing packet 75109 [packets to send 13, broken 12] [12:14:04]ProducePacketName [12:14:04]name=ofd_packets/00075109 [12:14:04]OFD Sender: To server: pG, [12:14:04]CommunicateWithHost lk.salyk.kg:30040 [12:14:04]ConnectInit lk.salyk.kg [12:14:09]ConnectInit Can't take IP for lk.salyk.kg [12:14:09]CommunicateWithHost connect error [12:14:09]CommunicateWithHost err = -1 [12:14:09]OFD Sender: Server communicate error [12:14:14]OFD Sender: Processing packet 75109 [packets to send 13, broken 12] [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00075109 [12:14:14]OFD Sender: To server: pG, [12:14:14]CommunicateWithHost lk.salyk.kg:30040 [12:14:14]ConnectInit lk.salyk.kg [12:14:19]ConnectInit Can't take IP for lk.salyk.kg [12:14:19]CommunicateWithHost connect error [12:14:19]CommunicateWithHost err = -1 [12:14:19]OFD Sender: Server communicate error [12:14:24]OFD Sender: Processing packet 75109 [packets to send 13, broken 12] [12:14:24]ProducePacketName [12:14:24]name=ofd_packets/00075109 [12:14:24]OFD Sender: To server: pG, [12:14:24]CommunicateWithHost lk.salyk.kg:30040 [12:14:24]ConnectInit lk.salyk.kg [12:14:24]Connected sock=8 [12:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1C C2 07 01 22 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 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 65 00 00 00 F4 03 04 00 FA DC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 65 25 01 00 35 04 06 00 E7 F8 3B AE 6E 13 9E CD AE 00 CC 89 BB 7C [12:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 77 CC 47 00 E1 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 38 37 31 37 39 35 10 04 04 00 65 25 01 00 F4 03 04 00 9F 84 1C 67 B6 04 01 00 00 51 9B 1D B5 69 B1 FC 7C [12:14:24]CommunicateWithHost err = 0 [12:14:24]CheckOFDResponse [12:14:24]1017 (14) - 77093643461234 [12:14:24]1041 (16) - 0000000000871795 [12:14:24]1040 (4) - 75109 [12:14:24]1012 (4) - 26.10.2024 05:56 [12:14:24]1206 (1) - 0 [12:14:24]OFD Sender: Remove packet 75109 [12:14:24]ProducePacketName [12:14:24]name=ofd_packets/00075109 [12:14:24]NVStorageDeleteData [12:14:25]OFD Sender: No OFD packet to send [12:14:26]ConnectInit Can't connect to host [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:18]accept exits with 10 [12:18:18]New connection [12:18:18]New thread 3066924388 created [12:18:18]Thread 3066781028 joined [12:18:18]Waiting for new connection... [12:18:18] Sock 10.Parse request [12:18:18]Sock 10.Check first char [12:18:18]Sock 10.First char is OK [12:18:18]request: POST /json_proto HTTP/1.0 [12:18:18]Method: POST [12:18:18]URL: /json_proto [12:18:18]Method is POST - this is cgi request [12:18:18]url: /json_proto [12:18:18]query_string will be loaded in cgi processing [12:18:18]execute_cgi json_proto POST (null) [12:18:18]execute_cgi path=json_proto method=POST [12:18:18]POST find Content-Length [12:18:18]Host: 172.17.39.131:8080 [12:18:18]Content-Length: 677 [12:18:18]Content-Type: application/json [12:18:18] [12:18:18]POST finish read [12:18:18]Found Content-Length = 677 [12:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:18:18]execute_script... [12:18: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)191082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:18:18]POST & json_proto [12:18:18]process_json_proto [12:18:18]json parsed OK: [12:18:18]protocol is kg_v1.0 [12:18:18]action value=close_receipt [12:18:18]process_action close_receipt [12:18:18]cmd_close_receipt [12:18:18]MH_GetDate [12:18:18]Write to MH i2c: F0 00 00 4E 2F 6C [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: F0 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: F0 09 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: F0 09 00 4E 2F 00 0F DE 1C 67 86 57 24 65 4B [12:18:18]GetLastDocTimeStamp 1729944826 [12:18:18]current date 1729945103 [12:18:18]FM_GetShiftState [12:18:18]SAM_PROTO_GetShiftState [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 01 00 [12:18:18]Write to MH i2c: E2 08 00 4F 2F 80 13 01 00 00 00 00 00 FB [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 4F 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 16 [12:18:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetShiftState done [12:18:18]FM_GetShiftState done [12:18:18]opened in 1729902166 [12:18:18]opened+sec_in_day 1729988566 [12:18:18]quantity*price = 50041 [12:18:18]sum+1 = 50042 [12:18: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 102 26.10.2024 12:18 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75110 ФПД: 206152127264388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121823&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75110&fm=206152127264388&tin=02508201610067®Number=0000000000091691&sum=50000 [12:18:19]StoreToDocumentArchive [12:18:19]shift 512 fd 75110 [12:18:19]save to /storage/0512/doc_00075110 [12:18:19]save last doc name /storage/0512/doc_00075110 to /storage/kkm_last_doc_name [12:18:19]save OK [12:18:19]Clear old archive folders... [12:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:19]tlvbuf is 007F4FA0 [12:18:19]SAM_PROTO_ClearQueue [12:18:19]wFMCommunicate request_size=4 [12:18:19]MH_SAM_APDU [12:18:19]CAPDU: 80 09 00 00 [12:18:19]Write to MH i2c: E2 08 00 5C 2F 80 09 00 00 00 00 00 00 FD [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:19]Read from MH i2c: E2 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 5C 2F 00 90 00 FF [12:18:19]RAPDU: 90 00 [12:18:19]wFMCommunicate OK [12:18:19]SAM_PROTO_ClearQueue done [12:18:19]KKMCreateOFDPacket [12:18:19]OFDProtocolAddRootSTLVToBuf [12:18:19]FM_MakeSignedData [12:18:19]FM_MakeSignedData [12:18:19]SAM_PROTO_SignData [12:18:19]wFMCommunicate request_size=4 [12:18:19]MH_SAM_APDU [12:18:19]CAPDU: 80 0D 01 02 [12:18:19]Write to MH i2c: E2 08 00 5D 2F 80 0D 01 02 00 00 00 00 05 [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:19]Read from MH i2c: E2 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 5D 2F 00 90 00 00 [12:18:19]RAPDU: 90 00 [12:18:19]wFMCommunicate OK [12:18:19]wFMCommunicate request_size=255 [12:18:19]MH_SAM_APDU [12:18: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 66 00 00 00 F4 03 04 00 0F DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 66 25 01 00 35 04 06 00 BB [12:18:19]Write to MH i2c: E2 02 01 5E 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 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 66 00 00 00 F4 03 04 00 0F DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 66 25 01 00 35 04 06 00 BB 00 00 B9 [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:19]Read from MH i2c: E2 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 5E 2F 00 90 00 01 [12:18:19]RAPDU: 90 00 [12:18:19]wFMCommunicate OK [12:18:19]wFMCommunicate request_size=10 [12:18:19]MH_SAM_APDU [12:18:19]CAPDU: 80 0D 02 02 05 7E 88 50 B6 84 [12:18:19]Write to MH i2c: E2 0D 00 5F 2F 80 0D 02 02 05 00 7E 88 50 B6 84 00 00 A2 [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:19]Read from MH i2c: E2 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 03 00 5F 2F 00 90 00 02 [12:18:19]RAPDU: 90 00 [12:18:19]wFMCommunicate OK [12:18:19]wFMCommunicate request_size=4 [12:18:19]MH_SAM_APDU [12:18:19]CAPDU: 80 0D 03 02 [12:18:19]Write to MH i2c: E2 08 00 60 2F 80 0D 03 02 00 00 00 00 0A [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:19]Read from MH i2c: E2 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 0B 00 [12:18:19]MH_I2C_Read... [12:18:19]Read from MH i2c: E2 0B 00 60 2F 00 5B 68 4E AF BD B4 82 6C 90 00 2A [12:18:19]RAPDU: 5B 68 4E AF BD B4 82 6C 90 00 [12:18:19]wFMCommunicate OK [12:18:19]SAM_PROTO_SignData done [12:18:19]FM_MakeSignedData done [12:18:19]CreateOFDProtocolMessage [12:18:19]wFMCommunicate request_size=4 [12:18:19]MH_SAM_APDU [12:18:19]CAPDU: 80 11 00 00 [12:18:19]Write to MH i2c: E2 08 00 61 2F 80 11 00 00 00 00 00 00 0A [12:18:19]Write i2c OK [12:18:19]MH_I2C_Read... [12:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:20]Read from MH i2c: E2 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: E2 17 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: E2 17 00 61 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 62 [12:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:18:20]wFMCommunicate OK [12:18:20]CreateOFDProtocolMessage done [12:18:20]OFDSenderStorePacket 75110 [12:18:20]StoreOFDPacket docnum=75110 [12:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CB CB 07 01 F1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 F4 03 04 00 0F DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 66 25 01 00 35 04 06 00 BB 7E 88 50 B6 84 5B 68 4E AF BD B4 82 6C [12:18:20]CheckFolder [12:18:20]dirname=/storage/ofd_packets [12:18:20]CheckFolder done [12:18:20]ProducePacketName [12:18:20]name=ofd_packets/00075110 [12:18:20]NVStorageSaveData ofd_packets/00075110 [12:18:20]File name is /storage/ofd_packets/00075110 [12:18:20]Write 301 bytes [12:18:20]NVStorageSaveData done [12:18:20]OFDSenderStorePacket done [12:18:20]KKMCreateOFDPacket done [12:18:20]NVStorageSaveData kkm_last_timestamp [12:18:20]File name is /storage/kkm_last_timestamp [12:18:20]Write 4 bytes [12:18:20]NVStorageSaveData done [12:18:20]ExternCall_PrintAddStr [12:18:20]wPrintStart [12:18:20]Write to MH i2c: 01 00 00 62 2F 91 [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 07 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 07 00 62 2F 00 00 00 00 00 FF 0F A6 [12:18:20]RasterBufferAndPrint [12:18:20]line Счет N : (1)191082 [12:18:20]line ИНН: 02508201610067 [12:18:20]line Контрольно-Кассовый Чек [12:18:20]line ПРОДАЖА [12:18:20]line ТРК (МРК, ГНК) : 21 [12:18:20]line Товар: 2710124130 [12:18:20]line Аи-92-К-5 [12:18:20]line 7.480 * 66.90 [12:18:20]line = 500.41 [12:18:20]line НДС 12% НСП 1% [12:18:20]line > о реализуемом товаре [12:18:20]line ОКРУГЛЕНИЕ: -0.41 [12:18:20]line ИТОГО: 500.00 [12:18:20]line Внесено: 500.00 [12:18:20]line СДАЧА: 0.00 [12:18:20]line НСП 1% : 4.43 [12:18:20]line НДС 12% : 53.14 [12:18:20]line Наличными: 500.00 [12:18:20]line Безнал.: 0.00 [12:18:20]line Место: АЗС № 142 "Партнер Нефть" [12:18:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:18:20]line СНО: Общий режим [12:18:20]line Чек 102 26.10.2024 12:18 [12:18:20]line Смена: 512 ФФД: 1.0 [12:18:20]line ЗНМ: 0300000089 [12:18:20]line РНМ: 0000000000091691 [12:18:20]line Версия ККМ: 001 [12:18:20]line ФМ: 0000000000871795 [12:18:20]line ФД: 75110 [12:18:20]line ФПД: 206152127264388 [12:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121823&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75110&fm=206152127264388&tin=02508201610067®Number=0000000000091691&sum=50000 [12:18:20]written 0, free lines is 4095 [12:18:20]OFD Sender: Processing packet 75110 [packets to send 13, broken 12] [12:18:20]ProducePacketName [12:18:20]name=ofd_packets/00075110 [12:18:20]OFD Sender: To server: pG, [12:18:20]CommunicateWithHost lk.salyk.kg:30040 [12:18:20]ConnectInit lk.salyk.kg [12:18:20]Connected sock=9 [12:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 CB CB 07 01 F1 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 F4 03 04 00 0F DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 66 25 01 00 35 04 06 00 BB 7E 88 50 B6 84 5B 68 4E AF BD B4 82 6C [12:18:20]Write to MH i2c: 01 00 00 8D 2F BC [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 07 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: 01 07 00 8D 2F 00 00 00 00 00 A3 0C 72 [12:18:20]RasterBufferAndPrint [12:18:20]line [12:18:20]line [12:18:20]line [12:18:20]line [12:18:20]line [12:18:20]written 0, free lines is 3242 [12:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 01 5B 47 00 5C AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 66 25 01 00 F4 03 04 00 8B 85 1C 67 B6 04 01 00 00 90 3A 79 DD D6 A2 6C 15 [12:18:20]CommunicateWithHost err = 0 [12:18:20]CheckOFDResponse [12:18:20]1017 (14) - 77093643461234 [12:18:20]1041 (16) - 0000000000871795 [12:18:20]1040 (4) - 75110 [12:18:20]1012 (4) - 26.10.2024 06:00 [12:18:20]1206 (1) - 0 [12:18:20]OFD Sender: Remove packet 75110 [12:18:20]ProducePacketName [12:18:20]name=ofd_packets/00075110 [12:18:20]NVStorageDeleteData [12:18:20]MH_Cut [12:18:20]Write to MH i2c: D1 01 00 94 2F 01 95 [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: D1 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: D1 01 00 [12:18:20]MH_I2C_Read... [12:18:20]Read from MH i2c: D1 01 00 94 2F 00 94 [12:18:20]Write to MH i2c: 01 00 00 95 2F C4 [12:18:20]Write i2c OK [12:18:20]MH_I2C_Read... [12:18:21]OFD Sender: No OFD packet to send [12:18:21]*** Cut start [12:18:21]*** Partial cut [12:18:21]*** CUTSNS_PIN = 1 [12:18:21]*** CUTSNS_PIN = 0 [12:18:22]*** Brake cut motor [12:18:22]Read from MH i2c: 01 [12:18:22]MH_I2C_Read... [12:18:22]*** Stop cut motor [12:18:22]*** Cut end [12:18:22]Read from MH i2c: 01 07 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: 01 07 00 95 2F 00 00 00 00 00 FF 0F D9 [12:18:22]process_action close_receipt done [12:18:22]requested_data is exist [12:18:22]produce_requested_data [12:18:22]requested_item fm.sn is exist - process it [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 11 00 00 [12:18:22]Write to MH i2c: E2 08 00 96 2F 80 11 00 00 00 00 00 00 3F [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 17 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 17 00 96 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 97 [12:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:18:22]wFMCommunicate OK [12:18:22]requested_item fd.num is exist - process it [12:18:22]SAM_PROTO_GetFieldsCounters [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 13 00 00 [12:18:22]Write to MH i2c: E2 08 00 97 2F 80 13 00 00 00 00 00 00 42 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 62 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 62 00 97 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 66 25 01 00 0E 04 04 00 00 02 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 29 [12:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 66 25 01 00 0E 04 04 00 00 02 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 [12:18:22]wFMCommunicate OK [12:18:22]SAM_PROTO_GetFieldsCounters done [12:18:22]requested_item shift.num is exist - process it [12:18:22]requested_item shift.opened is exist - process it [12:18:22]req_shift_opened [12:18:22]FM_GetShiftState [12:18:22]SAM_PROTO_GetShiftState [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 13 01 00 [12:18:22]Write to MH i2c: E2 08 00 98 2F 80 13 01 00 00 00 00 00 44 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 98 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5F [12:18:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:18:22]wFMCommunicate OK [12:18:22]SAM_PROTO_GetShiftState done [12:18:22]FM_GetShiftState done [12:18:22]req_shift_opened done [12:18:22]requested_item shift.open_date is exist - process it [12:18:22]req_shift_open_date [12:18:22]req_shift_open_date done [12:18:22]produce_requested_data done [12:18:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75110,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:18:22]process_action_free close_receipt [12:18:22]json_value_free [12:18:22]json_value_free done [12:18:22]process_json_proto returns [12:18:22]Send response to host [12:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75110,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:18:22]free response buf [12:18:22]execute_script done [12:18:22]execute_script returns [12:18:22]free content buf [12:18:22]Sock 10.Close socket [12:18:22]Sock 10.Thread stoped [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:04]recv_with_timeout no data received [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:44]accept exits with 8 [12:21:44]New connection [12:21:44]New thread 3066781028 created [12:21:44]Thread 3066924388 joined [12:21:44]Waiting for new connection... [12:21:44] Sock 8.Parse request [12:21:44]Sock 8.Check first char [12:21:44]Sock 8.First char is OK [12:21:44]request: POST /json_proto HTTP/1.0 [12:21:44]Method: POST [12:21:44]URL: /json_proto [12:21:44]Method is POST - this is cgi request [12:21:44]url: /json_proto [12:21:44]query_string will be loaded in cgi processing [12:21:44]execute_cgi json_proto POST (null) [12:21:44]execute_cgi path=json_proto method=POST [12:21:44]POST find Content-Length [12:21:44]Host: 172.17.39.131:8080 [12:21:44]Content-Length: 763 [12:21:44]Content-Type: application/json [12:21:44] [12:21:44]POST finish read [12:21:44]Found Content-Length = 763 [12:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:44]execute_script... [12:21: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)191083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:44]POST & json_proto [12:21:44]process_json_proto [12:21:44]json parsed OK: [12:21:44]protocol is kg_v1.0 [12:21:44]action value=close_receipt [12:21:44]process_action close_receipt [12:21:44]cmd_close_receipt [12:21:44]MH_GetDate [12:21:44]Write to MH i2c: F0 00 00 99 2F B7 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 09 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 09 00 99 2F 00 DD DE 1C 67 86 57 24 65 64 [12:21:44]GetLastDocTimeStamp 1729945103 [12:21:44]current date 1729945309 [12:21:44]FM_GetShiftState [12:21:44]SAM_PROTO_GetShiftState [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 01 00 [12:21:44]Write to MH i2c: E2 08 00 9A 2F 80 13 01 00 00 00 00 00 46 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 9A 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 61 [12:21:44]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetShiftState done [12:21:44]FM_GetShiftState done [12:21:44]opened in 1729902166 [12:21:44]opened+sec_in_day 1729988566 [12:21:44]quantity*price = 50063 [12:21:44]sum+1 = 50064 [12:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 103 26.10.2024 12:21 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75111 ФПД: 163370286044497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122149&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75111&fm=163370286044497&tin=02508201610067®Number=0000000000091691&sum=50063 [12:21:45]StoreToDocumentArchive [12:21:45]shift 512 fd 75111 [12:21:45]save to /storage/0512/doc_00075111 [12:21:45]save last doc name /storage/0512/doc_00075111 to /storage/kkm_last_doc_name [12:21:45]save OK [12:21:45]Clear old archive folders... [12:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:45]tlvbuf is B6ED3BA0 [12:21:45]SAM_PROTO_ClearQueue [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 09 00 00 [12:21:45]Write to MH i2c: E2 08 00 A7 2F 80 09 00 00 00 00 00 00 48 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 A7 2F 00 90 00 4A [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]SAM_PROTO_ClearQueue done [12:21:45]KKMCreateOFDPacket [12:21:45]OFDProtocolAddRootSTLVToBuf [12:21:45]FM_MakeSignedData [12:21:45]FM_MakeSignedData [12:21:45]SAM_PROTO_SignData [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 01 02 [12:21:45]Write to MH i2c: E2 08 00 A8 2F 80 0D 01 02 00 00 00 00 50 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 A8 2F 00 90 00 4B [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=255 [12:21:45]MH_SAM_APDU [12:21: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 34 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 DD DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 67 25 01 00 35 04 06 00 94 95 9B DD [12:21:45]Write to MH i2c: E2 02 01 A9 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 DD DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 67 25 01 00 35 04 06 00 94 95 9B DD 00 00 B5 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:46]Read from MH i2c: E2 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 03 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 03 00 A9 2F 00 90 00 4C [12:21:46]RAPDU: 90 00 [12:21:46]wFMCommunicate OK [12:21:46]wFMCommunicate request_size=7 [12:21:46]MH_SAM_APDU [12:21:46]CAPDU: 80 0D 02 02 02 D5 51 [12:21:46]Write to MH i2c: E2 0A 00 AA 2F 80 0D 02 02 02 00 D5 51 00 00 7D [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:46]Read from MH i2c: E2 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 03 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 03 00 AA 2F 00 90 00 4D [12:21:46]RAPDU: 90 00 [12:21:46]wFMCommunicate OK [12:21:46]wFMCommunicate request_size=4 [12:21:46]MH_SAM_APDU [12:21:46]CAPDU: 80 0D 03 02 [12:21:46]Write to MH i2c: E2 08 00 AB 2F 80 0D 03 02 00 00 00 00 55 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:46]Read from MH i2c: E2 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 0B 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 0B 00 AB 2F 00 F4 5E 01 A1 02 C6 7B D2 90 00 5F [12:21:46]RAPDU: F4 5E 01 A1 02 C6 7B D2 90 00 [12:21:46]wFMCommunicate OK [12:21:46]SAM_PROTO_SignData done [12:21:46]FM_MakeSignedData done [12:21:46]CreateOFDProtocolMessage [12:21:46]wFMCommunicate request_size=4 [12:21:46]MH_SAM_APDU [12:21:46]CAPDU: 80 11 00 00 [12:21:46]Write to MH i2c: E2 08 00 AC 2F 80 11 00 00 00 00 00 00 55 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:46]Read from MH i2c: E2 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 17 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: E2 17 00 AC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AD [12:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:21:46]wFMCommunicate OK [12:21:46]CreateOFDProtocolMessage done [12:21:46]OFDSenderStorePacket 75111 [12:21:46]StoreOFDPacket docnum=75111 [12:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E0 15 04 01 76 92 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 34 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 DD DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 67 25 01 00 35 04 06 00 94 95 9B DD D5 51 F4 5E 01 A1 02 C6 7B D2 [12:21:46]CheckFolder [12:21:46]dirname=/storage/ofd_packets [12:21:46]CheckFolder done [12:21:46]ProducePacketName [12:21:46]name=ofd_packets/00075111 [12:21:46]NVStorageSaveData ofd_packets/00075111 [12:21:46]File name is /storage/ofd_packets/00075111 [12:21:46]Write 298 bytes [12:21:46]NVStorageSaveData done [12:21:46]OFDSenderStorePacket done [12:21:46]KKMCreateOFDPacket done [12:21:46]NVStorageSaveData kkm_last_timestamp [12:21:46]File name is /storage/kkm_last_timestamp [12:21:46]Write 4 bytes [12:21:46]NVStorageSaveData done [12:21:46]ExternCall_PrintAddStr [12:21:46]wPrintStart [12:21:46]Write to MH i2c: 01 00 00 AD 2F DC [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 AD 2F 00 00 00 00 00 FF 0F F1 [12:21:46]RasterBufferAndPrint [12:21:46]line Счет N : (1)191083 [12:21:46]line ИНН: 02508201610067 [12:21:46]line Контрольно-Кассовый Чек [12:21:46]line ПРОДАЖА [12:21:46]line ТРК (МРК, ГНК) : 31 [12:21:46]line Товар: 2710194210 [12:21:46]line ДТ-К-4 [12:21:46]line 6.570 * 76.20 [12:21:46]line = 500.63 [12:21:46]line НДС 12% НСП 1% [12:21:46]line > о реализуемом товаре [12:21:46]line ИТОГО: 500.63 [12:21:46]line НСП 1% : 4.43 [12:21:46]line НДС 12% : 53.16 [12:21:46]line Наличными: 0.00 [12:21:46]line Безнал.: 500.63 [12:21:46]line Место: АЗС № 142 "Партнер Нефть" [12:21:46]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:21:46]line СНО: Общий режим [12:21:46]line Чек 103 26.10.2024 12:21 [12:21:46]line Смена: 512 ФФД: 1.0 [12:21:46]line ЗНМ: 0300000089 [12:21:46]line РНМ: 0000000000091691 [12:21:46]line Версия ККМ: 001 [12:21:46]line Платежная система: Mbank [12:21:46]line ФМ: 0000000000871795 [12:21:46]line ФД: 75111 [12:21:46]line ФПД: 163370286044497 [12:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122149&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75111&fm=163370286044497&tin=02508201610067®Number=0000000000091691&sum=50063 [12:21:46]OFD Sender: Processing packet 75111 [packets to send 13, broken 12] [12:21:46]ProducePacketName [12:21:46]name=ofd_packets/00075111 [12:21:46]OFD Sender: To server: pG, [12:21:46]CommunicateWithHost lk.salyk.kg:30040 [12:21:46]ConnectInit lk.salyk.kg [12:21:46]written 0, free lines is 4095 [12:21:46]Connected sock=10 [12:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 E0 15 04 01 76 92 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 34 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 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 DD DE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 67 25 01 00 35 04 06 00 94 95 9B DD D5 51 F4 5E 01 A1 02 C6 7B D2 [12:21:47]Write to MH i2c: 01 00 00 D6 2F 05 [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: 01 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: 01 07 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: 01 07 00 D6 2F 00 00 00 00 00 D6 0C EE [12:21:47]RasterBufferAndPrint [12:21:47]line [12:21:47]line [12:21:47]line [12:21:47]line [12:21:47]line [12:21:47]written 0, free lines is 3290 [12:21:47]MH_Cut [12:21:47]Write to MH i2c: D1 01 00 DD 2F 01 DE [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: D1 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: D1 01 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: D1 01 00 DD 2F 00 DD [12:21:47]Write to MH i2c: 01 00 00 DE 2F 0D [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C8 10 47 00 0F 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 38 37 31 37 39 35 10 04 04 00 67 25 01 00 F4 03 04 00 59 86 1C 67 B6 04 01 00 00 F3 58 CA 78 16 62 6A 6F [12:21:47]CommunicateWithHost err = 0 [12:21:47]CheckOFDResponse [12:21:47]1017 (14) - 77093643461234 [12:21:47]1041 (16) - 0000000000871795 [12:21:47]1040 (4) - 75111 [12:21:47]1012 (4) - 26.10.2024 06:04 [12:21:47]1206 (1) - 0 [12:21:47]OFD Sender: Remove packet 75111 [12:21:47]ProducePacketName [12:21:47]name=ofd_packets/00075111 [12:21:47]NVStorageDeleteData [12:21:47]OFD Sender: No OFD packet to send [12:21:47]*** Cut start [12:21:47]*** Partial cut [12:21:47]*** CUTSNS_PIN = 1 [12:21:47]*** CUTSNS_PIN = 0 [12:21:48]*** Brake cut motor [12:21:48]Read from MH i2c: 01 [12:21:48]MH_I2C_Read... [12:21:48]*** Stop cut motor [12:21:48]*** Cut end [12:21:48]Read from MH i2c: 01 07 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: 01 07 00 DE 2F 00 00 00 00 00 FF 0F 22 [12:21:48]process_action close_receipt done [12:21:48]requested_data is exist [12:21:48]produce_requested_data [12:21:48]requested_item fm.sn is exist - process it [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 11 00 00 [12:21:48]Write to MH i2c: E2 08 00 DF 2F 80 11 00 00 00 00 00 00 88 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 17 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 17 00 DF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E0 [12:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:21:48]wFMCommunicate OK [12:21:48]requested_item fd.num is exist - process it [12:21:48]SAM_PROTO_GetFieldsCounters [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 13 00 00 [12:21:48]Write to MH i2c: E2 08 00 E0 2F 80 13 00 00 00 00 00 00 8B [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 62 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 62 00 E0 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 67 25 01 00 0E 04 04 00 00 02 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 76 [12:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 67 25 01 00 0E 04 04 00 00 02 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 [12:21:48]wFMCommunicate OK [12:21:48]SAM_PROTO_GetFieldsCounters done [12:21:48]requested_item shift.num is exist - process it [12:21:48]requested_item shift.opened is exist - process it [12:21:48]req_shift_opened [12:21:48]FM_GetShiftState [12:21:48]SAM_PROTO_GetShiftState [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 13 01 00 [12:21:48]Write to MH i2c: E2 08 00 E1 2F 80 13 01 00 00 00 00 00 8D [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 0E 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 0E 00 E1 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A8 [12:21:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:21:48]wFMCommunicate OK [12:21:48]SAM_PROTO_GetShiftState done [12:21:48]FM_GetShiftState done [12:21:48]req_shift_opened done [12:21:48]requested_item shift.open_date is exist - process it [12:21:48]req_shift_open_date [12:21:48]req_shift_open_date done [12:21:48]produce_requested_data done [12:21:48]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75111,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:21:48]process_action_free close_receipt [12:21:48]json_value_free [12:21:48]json_value_free done [12:21:48]process_json_proto returns [12:21:48]Send response to host [12:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75111,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:21:48]free response buf [12:21:48]execute_script done [12:21:48]execute_script returns [12:21:48]free content buf [12:21:48]Sock 8.Close socket [12:21:48]Sock 8.Thread stoped [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:43]recv_with_timeout no data received [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29: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:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:33:59]accept exits with 9 [12:33:59]New connection [12:33:59]New thread 3066924388 created [12:33:59]Thread 3066781028 joined [12:33:59]Waiting for new connection... [12:33:59] Sock 9.Parse request [12:33:59]Sock 9.Check first char [12:33:59]Sock 9.First char is OK [12:33:59]request: POST /json_proto HTTP/1.0 [12:33:59]Method: POST [12:33:59]URL: /json_proto [12:33:59]Method is POST - this is cgi request [12:33:59]url: /json_proto [12:33:59]query_string will be loaded in cgi processing [12:33:59]execute_cgi json_proto POST (null) [12:33:59]execute_cgi path=json_proto method=POST [12:33:59]POST find Content-Length [12:33:59]Host: 172.17.39.131:8080 [12:33:59]Content-Length: 800 [12:33:59]Content-Type: application/json [12:33:59] [12:33:59]POST finish read [12:33:59]Found Content-Length = 800 [12:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:59]execute_script... [12:33: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)191084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:59]POST & json_proto [12:33:59]process_json_proto [12:33:59]json parsed OK: [12:33:59]protocol is kg_v1.0 [12:33:59]action value=close_receipt [12:33:59]process_action close_receipt [12:33:59]cmd_close_receipt [12:33:59]MH_GetDate [12:33:59]Write to MH i2c: F0 00 00 E2 2F 00 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: F0 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: F0 09 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: F0 09 00 E2 2F 00 BB E1 1C 67 86 57 24 65 8E [12:33:59]GetLastDocTimeStamp 1729945309 [12:33:59]current date 1729946043 [12:33:59]FM_GetShiftState [12:33:59]SAM_PROTO_GetShiftState [12:33:59]wFMCommunicate request_size=4 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 13 01 00 [12:33:59]Write to MH i2c: E2 08 00 E3 2F 80 13 01 00 00 00 00 00 8F [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 0E 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 0E 00 E3 2F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AA [12:33:59]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:33:59]wFMCommunicate OK [12:33:59]SAM_PROTO_GetShiftState done [12:33:59]FM_GetShiftState done [12:33:59]opened in 1729902166 [12:33:59]opened+sec_in_day 1729988566 [12:33:59]quantity*price = 300075 [12:33:59]sum+1 = 300077 [12:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 104 26.10.2024 12:34 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75112 ФПД: 104162377801829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75112&fm=104162377801829&tin=02508201610067®Number=0000000000091691&sum=300076 [12:34:00]StoreToDocumentArchive [12:34:00]shift 512 fd 75112 [12:34:00]save to /storage/0512/doc_00075112 [12:34:00]save last doc name /storage/0512/doc_00075112 to /storage/kkm_last_doc_name [12:34:00]save OK [12:34:00]Clear old archive folders... [12:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:00]tlvbuf is 007D98A0 [12:34:00]SAM_PROTO_ClearQueue [12:34:00]wFMCommunicate request_size=4 [12:34:00]MH_SAM_APDU [12:34:00]CAPDU: 80 09 00 00 [12:34:00]Write to MH i2c: E2 08 00 F0 2F 80 09 00 00 00 00 00 00 91 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 F0 2F 00 90 00 93 [12:34:00]RAPDU: 90 00 [12:34:00]wFMCommunicate OK [12:34:00]SAM_PROTO_ClearQueue done [12:34:00]KKMCreateOFDPacket [12:34:00]OFDProtocolAddRootSTLVToBuf [12:34:00]FM_MakeSignedData [12:34:00]FM_MakeSignedData [12:34:00]SAM_PROTO_SignData [12:34:00]wFMCommunicate request_size=4 [12:34:00]MH_SAM_APDU [12:34:00]CAPDU: 80 0D 01 02 [12:34:00]Write to MH i2c: E2 08 00 F1 2F 80 0D 01 02 00 00 00 00 99 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 F1 2F 00 90 00 94 [12:34:00]RAPDU: 90 00 [12:34:00]wFMCommunicate OK [12:34:00]wFMCommunicate request_size=255 [12:34:00]MH_SAM_APDU [12:34: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 34 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 68 00 00 00 F4 03 04 00 BB E1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 68 25 01 00 35 04 06 00 5E BC 31 87 [12:34:00]Write to MH i2c: E2 02 01 F2 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 68 00 00 00 F4 03 04 00 BB E1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 68 25 01 00 35 04 06 00 5E BC 31 87 00 00 DD [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 F2 2F 00 90 00 95 [12:34:00]RAPDU: 90 00 [12:34:00]wFMCommunicate OK [12:34:00]wFMCommunicate request_size=7 [12:34:00]MH_SAM_APDU [12:34:00]CAPDU: 80 0D 02 02 02 20 65 [12:34:00]Write to MH i2c: E2 0A 00 F3 2F 80 0D 02 02 02 00 20 65 00 00 25 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 03 00 F3 2F 00 90 00 96 [12:34:00]RAPDU: 90 00 [12:34:00]wFMCommunicate OK [12:34:00]wFMCommunicate request_size=4 [12:34:00]MH_SAM_APDU [12:34:00]CAPDU: 80 0D 03 02 [12:34:00]Write to MH i2c: E2 08 00 F4 2F 80 0D 03 02 00 00 00 00 9E [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 0B 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 0B 00 F4 2F 00 BF 2D 84 C9 11 D3 09 DE 90 00 A3 [12:34:00]RAPDU: BF 2D 84 C9 11 D3 09 DE 90 00 [12:34:00]wFMCommunicate OK [12:34:00]SAM_PROTO_SignData done [12:34:00]FM_MakeSignedData done [12:34:00]CreateOFDProtocolMessage [12:34:00]wFMCommunicate request_size=4 [12:34:00]MH_SAM_APDU [12:34:00]CAPDU: 80 11 00 00 [12:34:00]Write to MH i2c: E2 08 00 F5 2F 80 11 00 00 00 00 00 00 9E [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:00]Read from MH i2c: E2 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 17 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: E2 17 00 F5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F6 [12:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:34:00]wFMCommunicate OK [12:34:00]CreateOFDProtocolMessage done [12:34:00]OFDSenderStorePacket 75112 [12:34:00]StoreOFDPacket docnum=75112 [12:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 70 FD 04 01 69 93 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 34 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 68 00 00 00 F4 03 04 00 BB E1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 68 25 01 00 35 04 06 00 5E BC 31 87 20 65 BF 2D 84 C9 11 D3 09 DE [12:34:00]CheckFolder [12:34:00]dirname=/storage/ofd_packets [12:34:00]CheckFolder done [12:34:00]ProducePacketName [12:34:00]name=ofd_packets/00075112 [12:34:00]NVStorageSaveData ofd_packets/00075112 [12:34:00]File name is /storage/ofd_packets/00075112 [12:34:00]Write 298 bytes [12:34:00]NVStorageSaveData done [12:34:00]OFDSenderStorePacket done [12:34:00]KKMCreateOFDPacket done [12:34:00]NVStorageSaveData kkm_last_timestamp [12:34:00]File name is /storage/kkm_last_timestamp [12:34:00]Write 4 bytes [12:34:00]NVStorageSaveData done [12:34:00]ExternCall_PrintAddStr [12:34:00]wPrintStart [12:34:00]Write to MH i2c: 01 00 00 F6 2F 25 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 07 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 07 00 F6 2F 00 00 00 00 00 FF 0F 3A [12:34:00]RasterBufferAndPrint [12:34:00]line Счет N : (1)191084 [12:34:00]line ИНН: 02508201610067 [12:34:00]line Контрольно-Кассовый Чек [12:34:00]line ПРОДАЖА [12:34:00]line ТРК (МРК, ГНК) : 41 [12:34:00]line Товар: 2710194210 [12:34:00]line ДТ-К-4 [12:34:00]line 39.380 * 76.20 [12:34:00]line = 3000.76 [12:34:00]line НДС 12% НСП 1% [12:34:00]line > о реализуемом товаре [12:34:00]line ИТОГО: 3000.76 [12:34:00]line НСП 1% : 26.55 [12:34:00]line НДС 12% : 318.66 [12:34:00]line Наличными: 0.00 [12:34:00]line Безнал.: 3000.76 [12:34:00]line Место: АЗС № 142 "Партнер Нефть" [12:34:00]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:34:00]line СНО: Общий режим [12:34:00]line Чек 104 26.10.2024 12:34 [12:34:00]line Смена: 512 ФФД: 1.0 [12:34:00]line ЗНМ: 0300000089 [12:34:00]line РНМ: 0000000000091691 [12:34:00]line Версия ККМ: 001 [12:34:00]line Платежная система: O! деньги [12:34:00]line ФМ: 0000000000871795 [12:34:00]line ФД: 75112 [12:34:00]line ФПД: 104162377801829 [12:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75112&fm=104162377801829&tin=02508201610067®Number=0000000000091691&sum=300076 [12:34:01]OFD Sender: Processing packet 75112 [packets to send 13, broken 12] [12:34:01]ProducePacketName [12:34:01]name=ofd_packets/00075112 [12:34:01]OFD Sender: To server: pG, [12:34:01]CommunicateWithHost lk.salyk.kg:30040 [12:34:01]ConnectInit lk.salyk.kg [12:34:01]written 0, free lines is 4095 [12:34:01]Connected sock=10 [12:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 70 FD 04 01 69 93 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 34 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 68 00 00 00 F4 03 04 00 BB E1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 68 25 01 00 35 04 06 00 5E BC 31 87 20 65 BF 2D 84 C9 11 D3 09 DE [12:34:01]Write to MH i2c: 01 00 00 20 30 50 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 20 30 00 00 00 00 00 C7 0C 2A [12:34:01]RasterBufferAndPrint [12:34:01]line [12:34:01]line [12:34:01]line [12:34:01]line [12:34:01]line [12:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 39 3C 47 00 5C BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 68 25 01 00 F4 03 04 00 38 89 1C 67 B6 04 01 00 00 AC 0D AB 1D 9D 6B 05 A6 [12:34:01]CommunicateWithHost err = 0 [12:34:01]CheckOFDResponse [12:34:01]1017 (14) - 77093643461234 [12:34:01]1041 (16) - 0000000000871795 [12:34:01]1040 (4) - 75112 [12:34:01]1012 (4) - 26.10.2024 06:16 [12:34:01]1206 (1) - 0 [12:34:01]OFD Sender: Remove packet 75112 [12:34:01]ProducePacketName [12:34:01]name=ofd_packets/00075112 [12:34:01]NVStorageDeleteData [12:34:01]written 0, free lines is 3279 [12:34:01]MH_Cut [12:34:01]Write to MH i2c: D1 01 00 27 30 01 29 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: D1 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: D1 01 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: D1 01 00 27 30 00 28 [12:34:01]Write to MH i2c: 01 00 00 28 30 58 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:02]OFD Sender: No OFD packet to send [12:34:02]*** Cut start [12:34:02]*** Partial cut [12:34:02]*** CUTSNS_PIN = 1 [12:34:02]*** CUTSNS_PIN = 0 [12:34:02]*** Brake cut motor [12:34:03]Read from MH i2c: 01 [12:34:03]MH_I2C_Read... [12:34:03]*** Stop cut motor [12:34:03]*** Cut end [12:34:03]Read from MH i2c: 01 07 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 28 30 00 00 00 00 00 FF 0F 6D [12:34:03]process_action close_receipt done [12:34:03]requested_data is exist [12:34:03]produce_requested_data [12:34:03]requested_item fm.sn is exist - process it [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 11 00 00 [12:34:03]Write to MH i2c: E2 08 00 29 30 80 11 00 00 00 00 00 00 D3 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 29 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2B [12:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:34:03]wFMCommunicate OK [12:34:03]requested_item fd.num is exist - process it [12:34:03]SAM_PROTO_GetFieldsCounters [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 13 00 00 [12:34:03]Write to MH i2c: E2 08 00 2A 30 80 13 00 00 00 00 00 00 D6 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 62 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 62 00 2A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 68 25 01 00 0E 04 04 00 00 02 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 C5 [12:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 68 25 01 00 0E 04 04 00 00 02 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 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_GetFieldsCounters done [12:34:03]requested_item shift.num is exist - process it [12:34:03]requested_item shift.opened is exist - process it [12:34:03]req_shift_opened [12:34:03]FM_GetShiftState [12:34:03]SAM_PROTO_GetShiftState [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 13 01 00 [12:34:03]Write to MH i2c: E2 08 00 2B 30 80 13 01 00 00 00 00 00 D8 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0E 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0E 00 2B 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F3 [12:34:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_GetShiftState done [12:34:03]FM_GetShiftState done [12:34:03]req_shift_opened done [12:34:03]requested_item shift.open_date is exist - process it [12:34:03]req_shift_open_date [12:34:03]req_shift_open_date done [12:34:03]produce_requested_data done [12:34:03]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75112,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:34:03]process_action_free close_receipt [12:34:03]json_value_free [12:34:03]json_value_free done [12:34:03]process_json_proto returns [12:34:03]Send response to host [12:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75112,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:34:03]free response buf [12:34:03]execute_script done [12:34:03]execute_script returns [12:34:03]free content buf [12:34:03]Sock 9.Close socket [12:34:03]Sock 9.Thread stoped [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:03]recv_with_timeout no data received [12:35:07]OFD Sender: No OFD packet to send [12:35:09]accept exits with 8 [12:35:09]New connection [12:35:09]New thread 3066781028 created [12:35:09]Thread 3066924388 joined [12:35:09]Waiting for new connection... [12:35:09] Sock 8.Parse request [12:35:09]Sock 8.Check first char [12:35:09]Sock 8.First char is OK [12:35:09]request: POST /json_proto HTTP/1.0 [12:35:09]Method: POST [12:35:09]URL: /json_proto [12:35:09]Method is POST - this is cgi request [12:35:09]url: /json_proto [12:35:09]query_string will be loaded in cgi processing [12:35:09]execute_cgi json_proto POST (null) [12:35:09]execute_cgi path=json_proto method=POST [12:35:09]POST find Content-Length [12:35:09]Host: 172.17.39.131:8080 [12:35:09]Content-Length: 682 [12:35:09]Content-Type: application/json [12:35:09] [12:35:09]POST finish read [12:35:09]Found Content-Length = 682 [12:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:09]execute_script... [12:35: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)191085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:09]POST & json_proto [12:35:09]process_json_proto [12:35:09]json parsed OK: [12:35:09]protocol is kg_v1.0 [12:35:09]action value=close_receipt [12:35:09]process_action close_receipt [12:35:09]cmd_close_receipt [12:35:09]MH_GetDate [12:35:09]Write to MH i2c: F0 00 00 2C 30 4B [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: F0 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: F0 09 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: F0 09 00 2C 30 00 02 E2 1C 67 86 57 24 65 21 [12:35:09]GetLastDocTimeStamp 1729946043 [12:35:09]current date 1729946114 [12:35:09]FM_GetShiftState [12:35:09]SAM_PROTO_GetShiftState [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 13 01 00 [12:35:09]Write to MH i2c: E2 08 00 2D 30 80 13 01 00 00 00 00 00 DA [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 2D 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F5 [12:35:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_GetShiftState done [12:35:09]FM_GetShiftState done [12:35:09]opened in 1729902166 [12:35:09]opened+sec_in_day 1729988566 [12:35:09]quantity*price = 100015 [12:35:09]sum+1 = 100017 [12:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 105 26.10.2024 12:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75113 ФПД: 222816296583222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123514&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75113&fm=222816296583222&tin=02508201610067®Number=0000000000091691&sum=100000 [12:35:10]StoreToDocumentArchive [12:35:10]shift 512 fd 75113 [12:35:10]save to /storage/0512/doc_00075113 [12:35:10]save last doc name /storage/0512/doc_00075113 to /storage/kkm_last_doc_name [12:35:10]save OK [12:35:10]Clear old archive folders... [12:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:10]tlvbuf is B6ED3500 [12:35:10]SAM_PROTO_ClearQueue [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 09 00 00 [12:35:10]Write to MH i2c: E2 08 00 3A 30 80 09 00 00 00 00 00 00 DC [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 03 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [12:35:10]RAPDU: 90 00 [12:35:10]wFMCommunicate OK [12:35:10]SAM_PROTO_ClearQueue done [12:35:10]KKMCreateOFDPacket [12:35:10]OFDProtocolAddRootSTLVToBuf [12:35:10]FM_MakeSignedData [12:35:10]FM_MakeSignedData [12:35:10]SAM_PROTO_SignData [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 0D 01 02 [12:35:10]Write to MH i2c: E2 08 00 3B 30 80 0D 01 02 00 00 00 00 E4 [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [12:35:11]RAPDU: 90 00 [12:35:11]wFMCommunicate OK [12:35:11]wFMCommunicate request_size=255 [12:35:11]MH_SAM_APDU [12:35: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 69 00 00 00 F4 03 04 00 02 E2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 69 25 01 00 35 04 06 00 CA [12:35:11]Write to MH i2c: E2 02 01 3C 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 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 69 00 00 00 F4 03 04 00 02 E2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 69 25 01 00 35 04 06 00 CA 00 00 9E [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [12:35:11]RAPDU: 90 00 [12:35:11]wFMCommunicate OK [12:35:11]wFMCommunicate request_size=10 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 0D 02 02 05 A6 76 35 40 36 [12:35:11]Write to MH i2c: E2 0D 00 3D 30 80 0D 02 02 05 00 A6 76 35 40 36 00 00 B8 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [12:35:11]RAPDU: 90 00 [12:35:11]wFMCommunicate OK [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 0D 03 02 [12:35:11]Write to MH i2c: E2 08 00 3E 30 80 0D 03 02 00 00 00 00 E9 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0B 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0B 00 3E 30 00 AB 07 01 FF D3 D9 ED 9C 90 00 D1 [12:35:11]RAPDU: AB 07 01 FF D3 D9 ED 9C 90 00 [12:35:11]wFMCommunicate OK [12:35:11]SAM_PROTO_SignData done [12:35:11]FM_MakeSignedData done [12:35:11]CreateOFDProtocolMessage [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 11 00 00 [12:35:11]Write to MH i2c: E2 08 00 3F 30 80 11 00 00 00 00 00 00 E9 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 17 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 17 00 3F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 41 [12:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:35:11]wFMCommunicate OK [12:35:11]CreateOFDProtocolMessage done [12:35:11]OFDSenderStorePacket 75113 [12:35:11]StoreOFDPacket docnum=75113 [12:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BB 6F 07 01 32 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 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 69 00 00 00 F4 03 04 00 02 E2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 69 25 01 00 35 04 06 00 CA A6 76 35 40 36 AB 07 01 FF D3 D9 ED 9C [12:35:11]CheckFolder [12:35:11]dirname=/storage/ofd_packets [12:35:11]CheckFolder done [12:35:11]ProducePacketName [12:35:11]name=ofd_packets/00075113 [12:35:11]NVStorageSaveData ofd_packets/00075113 [12:35:11]File name is /storage/ofd_packets/00075113 [12:35:11]Write 301 bytes [12:35:11]NVStorageSaveData done [12:35:11]OFDSenderStorePacket done [12:35:11]KKMCreateOFDPacket done [12:35:11]NVStorageSaveData kkm_last_timestamp [12:35:11]File name is /storage/kkm_last_timestamp [12:35:11]Write 4 bytes [12:35:11]NVStorageSaveData done [12:35:11]ExternCall_PrintAddStr [12:35:11]wPrintStart [12:35:11]Write to MH i2c: 01 00 00 40 30 70 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: 01 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: 01 07 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 FF 0F 85 [12:35:11]RasterBufferAndPrint [12:35:11]line Счет N : (1)191085 [12:35:11]line ИНН: 02508201610067 [12:35:11]line Контрольно-Кассовый Чек [12:35:11]line ПРОДАЖА [12:35:11]line ТРК (МРК, ГНК) : 21 [12:35:11]line Товар: 2710124130 [12:35:11]line Аи-92-К-5 [12:35:11]line 14.950 * 66.90 [12:35:11]line = 1000.16 [12:35:11]line НДС 12% НСП 1% [12:35:11]line > о реализуемом товаре [12:35:11]line ОКРУГЛЕНИЕ: -0.16 [12:35:11]line ИТОГО: 1000.00 [12:35:11]line Внесено: 1000.00 [12:35:11]line СДАЧА: 0.00 [12:35:11]line НСП 1% : 8.85 [12:35:11]line НДС 12% : 106.21 [12:35:11]line Наличными: 1000.00 [12:35:11]line Безнал.: 0.00 [12:35:11]line Место: АЗС № 142 "Партнер Нефть" [12:35:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:35:11]line СНО: Общий режим [12:35:11]line Чек 105 26.10.2024 12:35 [12:35:11]line Смена: 512 ФФД: 1.0 [12:35:11]line ЗНМ: 0300000089 [12:35:11]line РНМ: 0000000000091691 [12:35:11]line Версия ККМ: 001 [12:35:11]line ФМ: 0000000000871795 [12:35:11]line ФД: 75113 [12:35:11]line ФПД: 222816296583222 [12:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123514&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75113&fm=222816296583222&tin=02508201610067®Number=0000000000091691&sum=100000 [12:35:11]OFD Sender: Processing packet 75113 [packets to send 13, broken 12] [12:35:11]ProducePacketName [12:35:11]name=ofd_packets/00075113 [12:35:11]OFD Sender: To server: pG, [12:35:11]CommunicateWithHost lk.salyk.kg:30040 [12:35:11]ConnectInit lk.salyk.kg [12:35:11]written 0, free lines is 4095 [12:35:11]Connected sock=10 [12:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BB 6F 07 01 32 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 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 69 00 00 00 F4 03 04 00 02 E2 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 69 25 01 00 35 04 06 00 CA A6 76 35 40 36 AB 07 01 FF D3 D9 ED 9C [12:35:12]Write to MH i2c: 01 00 00 6B 30 9B [12:35:12]Write i2c OK [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: 01 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: 01 07 00 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: 01 07 00 6B 30 00 00 00 00 00 B3 0C 61 [12:35:12]RasterBufferAndPrint [12:35:12]line [12:35:12]line [12:35:12]line [12:35:12]line [12:35:12]line [12:35:12]written 0, free lines is 3258 [12:35:12]MH_Cut [12:35:12]Write to MH i2c: D1 01 00 72 30 01 74 [12:35:12]Write i2c OK [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: D1 [12:35:12]MH_I2C_Read... [12:35:12]Read from MH i2c: D1 01 00 [12:35:12]MH_I2C_Read... [12:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 91 58 47 00 55 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 38 37 31 37 39 35 10 04 04 00 69 25 01 00 F4 03 04 00 7E 89 1C 67 B6 04 01 00 00 F3 A3 F5 10 63 C7 76 FA [12:35:12]CommunicateWithHost err = 0 [12:35:12]CheckOFDResponse [12:35:12]1017 (14) - 77093643461234 [12:35:12]1041 (16) - 0000000000871795 [12:35:12]1040 (4) - 75113 [12:35:12]1012 (4) - 26.10.2024 06:17 [12:35:12]1206 (1) - 0 [12:35:12]OFD Sender: Remove packet 75113 [12:35:12]ProducePacketName [12:35:12]name=ofd_packets/00075113 [12:35:12]NVStorageDeleteData [12:35:12]Read from MH i2c: D1 01 00 72 30 00 73 [12:35:12]Write to MH i2c: 01 00 00 73 30 A3 [12:35:12]Write i2c OK [12:35:12]MH_I2C_Read... [12:35:12]OFD Sender: No OFD packet to send [12:35:13]*** Cut start [12:35:13]*** Partial cut [12:35:13]*** CUTSNS_PIN = 1 [12:35:13]*** CUTSNS_PIN = 0 [12:35:13]*** Brake cut motor [12:35:13]Read from MH i2c: 01 [12:35:13]MH_I2C_Read... [12:35:13]*** Stop cut motor [12:35:13]*** Cut end [12:35:13]Read from MH i2c: 01 07 00 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 FF 0F B8 [12:35:13]process_action close_receipt done [12:35:13]requested_data is exist [12:35:13]produce_requested_data [12:35:13]requested_item fm.sn is exist - process it [12:35:13]wFMCommunicate request_size=4 [12:35:13]MH_SAM_APDU [12:35:13]CAPDU: 80 11 00 00 [12:35:13]Write to MH i2c: E2 08 00 74 30 80 11 00 00 00 00 00 00 1E [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:13]Read from MH i2c: E2 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 17 00 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 17 00 74 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 76 [12:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:35:13]wFMCommunicate OK [12:35:13]requested_item fd.num is exist - process it [12:35:13]SAM_PROTO_GetFieldsCounters [12:35:13]wFMCommunicate request_size=4 [12:35:13]MH_SAM_APDU [12:35:13]CAPDU: 80 13 00 00 [12:35:13]Write to MH i2c: E2 08 00 75 30 80 13 00 00 00 00 00 00 21 [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:13]Read from MH i2c: E2 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 62 00 [12:35:13]MH_I2C_Read... [12:35:13]Read from MH i2c: E2 62 00 75 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 69 25 01 00 0E 04 04 00 00 02 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 14 [12:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 69 25 01 00 0E 04 04 00 00 02 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 [12:35:13]wFMCommunicate OK [12:35:13]SAM_PROTO_GetFieldsCounters done [12:35:13]requested_item shift.num is exist - process it [12:35:13]requested_item shift.opened is exist - process it [12:35:13]req_shift_opened [12:35:13]FM_GetShiftState [12:35:13]SAM_PROTO_GetShiftState [12:35:13]wFMCommunicate request_size=4 [12:35:13]MH_SAM_APDU [12:35:13]CAPDU: 80 13 01 00 [12:35:13]Write to MH i2c: E2 08 00 76 30 80 13 01 00 00 00 00 00 23 [12:35:13]Write i2c OK [12:35:13]MH_I2C_Read... [12:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:14]Read from MH i2c: E2 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 0E 00 [12:35:14]MH_I2C_Read... [12:35:14]Read from MH i2c: E2 0E 00 76 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 3E [12:35:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:35:14]wFMCommunicate OK [12:35:14]SAM_PROTO_GetShiftState done [12:35:14]FM_GetShiftState done [12:35:14]req_shift_opened done [12:35:14]requested_item shift.open_date is exist - process it [12:35:14]req_shift_open_date [12:35:14]req_shift_open_date done [12:35:14]produce_requested_data done [12:35:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75113,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:35:14]process_action_free close_receipt [12:35:14]json_value_free [12:35:14]json_value_free done [12:35:14]process_json_proto returns [12:35:14]Send response to host [12:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75113,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:35:14]free response buf [12:35:14]execute_script done [12:35:14]execute_script returns [12:35:14]free content buf [12:35:14]Sock 8.Close socket [12:35:14]Sock 8.Thread stoped [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]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:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:50]accept exits with 9 [12:51:50]New connection [12:51:50]New thread 3066924388 created [12:51:50]Thread 3066781028 joined [12:51:50]Waiting for new connection... [12:51:50] Sock 9.Parse request [12:51:50]Sock 9.Check first char [12:51:50]Sock 9.First char is OK [12:51:50]request: POST /json_proto HTTP/1.0 [12:51:50]Method: POST [12:51:50]URL: /json_proto [12:51:50]Method is POST - this is cgi request [12:51:50]url: /json_proto [12:51:50]query_string will be loaded in cgi processing [12:51:50]execute_cgi json_proto POST (null) [12:51:50]execute_cgi path=json_proto method=POST [12:51:50]POST find Content-Length [12:51:50]Host: 172.17.39.131:8080 [12:51:50]Content-Length: 752 [12:51:50]Content-Type: application/json [12:51:50] [12:51:50]POST finish read [12:51:50]Found Content-Length = 752 [12:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 200.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\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:50]execute_script... [12:51:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 200.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\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:50]POST & json_proto [12:51:50]process_json_proto [12:51:50]json parsed OK: [12:51:50]protocol is kg_v1.0 [12:51:50]action value=close_receipt [12:51:50]process_action close_receipt [12:51:50]cmd_close_receipt [12:51:50]MH_GetDate [12:51:50]Write to MH i2c: F0 00 00 77 30 96 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 09 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 09 00 77 30 00 EB E5 1C 67 86 57 24 65 58 [12:51:50]GetLastDocTimeStamp 1729946114 [12:51:50]current date 1729947115 [12:51:50]FM_GetShiftState [12:51:50]SAM_PROTO_GetShiftState [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 13 01 00 [12:51:50]Write to MH i2c: E2 08 00 78 30 80 13 01 00 00 00 00 00 25 [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0E 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0E 00 78 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 40 [12:51:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:51:50]wFMCommunicate OK [12:51:50]SAM_PROTO_GetShiftState done [12:51:50]FM_GetShiftState done [12:51:50]opened in 1729902166 [12:51:50]opened+sec_in_day 1729988566 [12:51:50]quantity*price = 0 [12:51:50]sum+1 = 1 [12:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 106 26.10.2024 12:51 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871795 ФД: 75114 ФПД: 12404879456790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125155&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75114&fm=12404879456790&tin=02508201610067®Number=0000000000091691&sum=0 [12:51:51]StoreToDocumentArchive [12:51:51]shift 512 fd 75114 [12:51:51]save to /storage/0512/doc_00075114 [12:51:51]save last doc name /storage/0512/doc_00075114 to /storage/kkm_last_doc_name [12:51:51]save OK [12:51:51]Clear old archive folders... [12:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:51]tlvbuf is 00836060 [12:51:51]SAM_PROTO_ClearQueue [12:51:51]wFMCommunicate request_size=4 [12:51:51]MH_SAM_APDU [12:51:51]CAPDU: 80 09 00 00 [12:51:51]Write to MH i2c: E2 08 00 85 30 80 09 00 00 00 00 00 00 27 [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [12:51:51]RAPDU: 90 00 [12:51:51]wFMCommunicate OK [12:51:51]SAM_PROTO_ClearQueue done [12:51:51]KKMCreateOFDPacket [12:51:51]OFDProtocolAddRootSTLVToBuf [12:51:51]FM_MakeSignedData [12:51:51]FM_MakeSignedData [12:51:51]SAM_PROTO_SignData [12:51:51]wFMCommunicate request_size=4 [12:51:51]MH_SAM_APDU [12:51:51]CAPDU: 80 0D 01 02 [12:51:51]Write to MH i2c: E2 08 00 86 30 80 0D 01 02 00 00 00 00 2F [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 86 30 00 90 00 2A [12:51:51]RAPDU: 90 00 [12:51:51]wFMCommunicate OK [12:51:51]wFMCommunicate request_size=255 [12:51:51]MH_SAM_APDU [12:51: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 34 FF 03 08 00 03 40 0D 03 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 6A 00 00 00 F4 03 04 00 EB E5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6A 25 01 00 35 04 06 00 0B 48 3C 6E [12:51:51]Write to MH i2c: E2 02 01 87 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 40 0D 03 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 6A 00 00 00 F4 03 04 00 EB E5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6A 25 01 00 35 04 06 00 0B 48 3C 6E 00 00 2D [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 87 30 00 90 00 2B [12:51:51]RAPDU: 90 00 [12:51:51]wFMCommunicate OK [12:51:51]wFMCommunicate request_size=7 [12:51:51]MH_SAM_APDU [12:51:51]CAPDU: 80 0D 02 02 02 FA 16 [12:51:51]Write to MH i2c: E2 0A 00 88 30 80 0D 02 02 02 00 FA 16 00 00 46 [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 03 00 88 30 00 90 00 2C [12:51:51]RAPDU: 90 00 [12:51:51]wFMCommunicate OK [12:51:51]wFMCommunicate request_size=4 [12:51:51]MH_SAM_APDU [12:51:51]CAPDU: 80 0D 03 02 [12:51:51]Write to MH i2c: E2 08 00 89 30 80 0D 03 02 00 00 00 00 34 [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 0B 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 0B 00 89 30 00 F1 94 C0 FD 2F E3 CD 9D 90 00 F3 [12:51:51]RAPDU: F1 94 C0 FD 2F E3 CD 9D 90 00 [12:51:51]wFMCommunicate OK [12:51:51]SAM_PROTO_SignData done [12:51:52]FM_MakeSignedData done [12:51:52]CreateOFDProtocolMessage [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 11 00 00 [12:51:52]Write to MH i2c: E2 08 00 8A 30 80 11 00 00 00 00 00 00 34 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 17 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 17 00 8A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8C [12:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:51:52]wFMCommunicate OK [12:51:52]CreateOFDProtocolMessage done [12:51:52]OFDSenderStorePacket 75114 [12:51:52]StoreOFDPacket docnum=75114 [12:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5E 2A 04 01 B2 A2 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 34 FF 03 08 00 03 40 0D 03 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 6A 00 00 00 F4 03 04 00 EB E5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6A 25 01 00 35 04 06 00 0B 48 3C 6E FA 16 F1 94 C0 FD 2F E3 CD 9D [12:51:52]CheckFolder [12:51:52]dirname=/storage/ofd_packets [12:51:52]CheckFolder done [12:51:52]ProducePacketName [12:51:52]name=ofd_packets/00075114 [12:51:52]NVStorageSaveData ofd_packets/00075114 [12:51:52]File name is /storage/ofd_packets/00075114 [12:51:52]Write 298 bytes [12:51:52]NVStorageSaveData done [12:51:52]OFDSenderStorePacket done [12:51:52]KKMCreateOFDPacket done [12:51:52]NVStorageSaveData kkm_last_timestamp [12:51:52]File name is /storage/kkm_last_timestamp [12:51:52]Write 4 bytes [12:51:52]NVStorageSaveData done [12:51:52]ExternCall_PrintAddStr [12:51:52]wPrintStart [12:51:52]Write to MH i2c: 01 00 00 8B 30 BB [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 FF 0F D0 [12:51:52]RasterBufferAndPrint [12:51:52]line Счет N : (1)191086 [12:51:52]line ИНН: 02508201610067 [12:51:52]line Контрольно-Кассовый Чек [12:51:52]line ПРОДАЖА [12:51:52]line ТРК (МРК, ГНК) : 31 [12:51:52]line Товар: 2710194210 [12:51:52]line ДТ-К-4 [12:51:52]line 200.000 * 0.00 [12:51:52]line = 0.00 [12:51:52]line НДС 12% НСП 1% [12:51:52]line > о реализуемом товаре [12:51:52]line ИТОГО: 0.00 [12:51:52]line НСП 1% : 0.00 [12:51:52]line НДС 12% : 0.00 [12:51:52]line Наличными: 0.00 [12:51:52]line Безнал.: 0.00 [12:51:52]line Место: АЗС № 142 "Партнер Нефть" [12:51:52]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:51:52]line СНО: Общий режим [12:51:52]line Чек 106 26.10.2024 12:51 [12:51:52]line Смена: 512 ФФД: 1.0 [12:51:52]line ЗНМ: 0300000089 [12:51:52]line РНМ: 0000000000091691 [12:51:52]line Версия ККМ: 001 [12:51:52]line Талоны: ТК ГПНА Online [12:51:52]line 30121604 [12:51:52]line ФМ: 0000000000871795 [12:51:52]line ФД: 75114 [12:51:52]line ФПД: 12404879456790 [12:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125155&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75114&fm=12404879456790&tin=02508201610067®Number=0000000000091691&sum=0 [12:51:52]OFD Sender: Processing packet 75114 [packets to send 13, broken 12] [12:51:52]ProducePacketName [12:51:52]name=ofd_packets/00075114 [12:51:52]OFD Sender: To server: pG, [12:51:52]CommunicateWithHost lk.salyk.kg:30040 [12:51:52]ConnectInit lk.salyk.kg [12:51:52]written 0, free lines is 4095 [12:51:52]Connected sock=10 [12:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5E 2A 04 01 B2 A2 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 34 FF 03 08 00 03 40 0D 03 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 6A 00 00 00 F4 03 04 00 EB E5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6A 25 01 00 35 04 06 00 0B 48 3C 6E FA 16 F1 94 C0 FD 2F E3 CD 9D [12:51:52]Write to MH i2c: 01 00 00 B5 30 E5 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 B5 30 00 00 00 00 00 C0 0C B8 [12:51:52]RasterBufferAndPrint [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]written 0, free lines is 3270 [12:51:52]MH_Cut [12:51:52]Write to MH i2c: D1 01 00 BC 30 01 BE [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 01 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 01 00 BC 30 00 BD [12:51:52]Write to MH i2c: 01 00 00 BD 30 ED [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 13 07 47 00 E0 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 38 37 31 37 39 35 10 04 04 00 6A 25 01 00 F4 03 04 00 67 8D 1C 67 B6 04 01 00 00 51 14 90 A6 77 C7 6A 80 [12:51:52]CommunicateWithHost err = 0 [12:51:52]CheckOFDResponse [12:51:52]1017 (14) - 77093643461234 [12:51:52]1041 (16) - 0000000000871795 [12:51:52]1040 (4) - 75114 [12:51:52]1012 (4) - 26.10.2024 06:34 [12:51:52]1206 (1) - 0 [12:51:52]OFD Sender: Remove packet 75114 [12:51:52]ProducePacketName [12:51:52]name=ofd_packets/00075114 [12:51:52]NVStorageDeleteData [12:51:53]OFD Sender: No OFD packet to send [12:51:53]*** Cut start [12:51:53]*** Partial cut [12:51:53]*** CUTSNS_PIN = 1 [12:51:53]*** CUTSNS_PIN = 0 [12:51:53]*** Brake cut motor [12:51:54]Read from MH i2c: 01 [12:51:54]MH_I2C_Read... [12:51:54]*** Stop cut motor [12:51:54]*** Cut end [12:51:54]Read from MH i2c: 01 07 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 BD 30 00 00 00 00 00 FF 0F 02 [12:51:54]process_action close_receipt done [12:51:54]requested_data is exist [12:51:54]produce_requested_data [12:51:54]requested_item fm.sn is exist - process it [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 11 00 00 [12:51:54]Write to MH i2c: E2 08 00 BE 30 80 11 00 00 00 00 00 00 68 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 17 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 17 00 BE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C0 [12:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:51:54]wFMCommunicate OK [12:51:54]requested_item fd.num is exist - process it [12:51:54]SAM_PROTO_GetFieldsCounters [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 13 00 00 [12:51:54]Write to MH i2c: E2 08 00 BF 30 80 13 00 00 00 00 00 00 6B [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 62 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 62 00 BF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6A 25 01 00 0E 04 04 00 00 02 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 62 [12:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6A 25 01 00 0E 04 04 00 00 02 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 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_GetFieldsCounters done [12:51:54]requested_item shift.num is exist - process it [12:51:54]requested_item shift.opened is exist - process it [12:51:54]req_shift_opened [12:51:54]FM_GetShiftState [12:51:54]SAM_PROTO_GetShiftState [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 13 01 00 [12:51:54]Write to MH i2c: E2 08 00 C0 30 80 13 01 00 00 00 00 00 6D [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 C0 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 88 [12:51:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_GetShiftState done [12:51:54]FM_GetShiftState done [12:51:54]req_shift_opened done [12:51:54]requested_item shift.open_date is exist - process it [12:51:54]req_shift_open_date [12:51:54]req_shift_open_date done [12:51:54]produce_requested_data done [12:51:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75114,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:51:54]process_action_free close_receipt [12:51:54]json_value_free [12:51:54]json_value_free done [12:51:54]process_json_proto returns [12:51:54]Send response to host [12:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75114,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:51:54]free response buf [12:51:54]execute_script done [12:51:54]execute_script returns [12:51:54]free content buf [12:51:54]Sock 9.Close socket [12:51:54]Sock 9.Thread stoped [12:51:56]int [12:51:56]Write to MH i2c: 01 00 00 C1 30 F1 [12:51:56]*** FLAG_PRN_KEY set [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 C1 30 00 08 00 00 00 FF 0F 0E [12:51:56]state=0 [12:51:56]Key pressed [12:51:56]Feed [12:51:56]Write to MH i2c: D8 00 00 C2 30 C9 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D8 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D8 01 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: D8 01 00 C2 30 00 CA [12:51:56]int [12:51:56]Write to MH i2c: 01 00 00 C3 30 F3 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 C3 30 00 48 00 00 00 3C 00 7E [12:51:56]state=2 [12:51:56]Key pressed [12:51:56]int [12:51:56]Write to MH i2c: 01 00 00 C4 30 F4 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 C4 30 00 08 00 00 00 F6 0F 08 [12:51:56]state=2 [12:51:56]Key pressed [12:51:56]int line is 0 - check status [12:51:56]Write to MH i2c: 01 00 00 C5 30 F5 [12:51:56]*** FLAG_PRN_KEY reset [12:51:56]*** FLAG_PRN_KEY set [12:51:56]*** FLAG_PRN_KEY reset [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 FD 0F 08 [12:51:56]state=2 [12:51:56]Stop feed [12:51:56]int [12:51:56]Write to MH i2c: 01 00 00 C6 30 F6 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: 01 07 00 C6 30 00 00 00 00 00 FF 0F 0B [12:51:56]state=0 [12:51:57]int [12:51:57]Write to MH i2c: 01 00 00 C7 30 F7 [12:51:57]*** FLAG_PRN_KEY set [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 07 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 07 00 C7 30 00 08 00 00 00 FF 0F 14 [12:51:57]state=0 [12:51:57]Key pressed [12:51:57]Feed [12:51:57]Write to MH i2c: D8 00 00 C8 30 CF [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: D8 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: D8 01 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: D8 01 00 C8 30 00 D0 [12:51:57]int [12:51:57]Write to MH i2c: 01 00 00 C9 30 F9 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 07 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: 01 07 00 C9 30 00 48 00 00 00 3C 00 84 [12:51:57]state=2 [12:51:57]Key pressed [12:51:58]int [12:51:58]Write to MH i2c: 01 00 00 CA 30 FA [12:51:58]*** FLAG_PRN_KEY reset [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 CA 30 00 00 00 00 00 FE 0F 0E [12:51:58]state=2 [12:51:58]Stop feed [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:04]recv_with_timeout no data received [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:53:58]accept exits with 8 [12:53:58]New connection [12:53:58]New thread 3066781028 created [12:53:58]Thread 3066924388 joined [12:53:58]Waiting for new connection... [12:53:58] Sock 8.Parse request [12:53:58]Sock 8.Check first char [12:53:58]Sock 8.First char is OK [12:53:58]request: POST /json_proto HTTP/1.0 [12:53:58]Method: POST [12:53:58]URL: /json_proto [12:53:58]Method is POST - this is cgi request [12:53:58]url: /json_proto [12:53:58]query_string will be loaded in cgi processing [12:53:58]execute_cgi json_proto POST (null) [12:53:58]execute_cgi path=json_proto method=POST [12:53:58]POST find Content-Length [12:53:58]Host: 172.17.39.131:8080 [12:53:58]Content-Length: 685 [12:53:58]Content-Type: application/json [12:53:58] [12:53:58]POST finish read [12:53:58]Found Content-Length = 685 [12:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [12:53:58]execute_script... [12: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)191087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [12:53:58]POST & json_proto [12:53:58]process_json_proto [12:53:58]json parsed OK: [12:53:58]protocol is kg_v1.0 [12:53:58]action value=close_receipt [12:53:58]process_action close_receipt [12:53:58]cmd_close_receipt [12:53:58]MH_GetDate [12:53:58]Write to MH i2c: F0 00 00 CB 30 EA [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: F0 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: F0 09 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: F0 09 00 CB 30 00 6B E6 1C 67 86 57 24 65 2D [12:53:58]GetLastDocTimeStamp 1729947115 [12:53:58]current date 1729947243 [12:53:58]FM_GetShiftState [12:53:58]SAM_PROTO_GetShiftState [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 13 01 00 [12:53:58]Write to MH i2c: E2 08 00 CC 30 80 13 01 00 00 00 00 00 79 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0E 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0E 00 CC 30 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 94 [12:53:58]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_GetShiftState done [12:53:58]FM_GetShiftState done [12:53:58]opened in 1729902166 [12:53:58]opened+sec_in_day 1729988566 [12:53:58]quantity*price = 100011 [12:53:58]sum+1 = 100013 [12:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 107 26.10.2024 12:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75115 ФПД: 276686694325550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75115&fm=276686694325550&tin=02508201610067®Number=0000000000091691&sum=100000 [12:53:59]StoreToDocumentArchive [12:53:59]shift 512 fd 75115 [12:53:59]save to /storage/0512/doc_00075115 [12:53:59]save last doc name /storage/0512/doc_00075115 to /storage/kkm_last_doc_name [12:53:59]save OK [12:53:59]Clear old archive folders... [12:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:53:59]tlvbuf is 00949770 [12:53:59]SAM_PROTO_ClearQueue [12:53:59]wFMCommunicate request_size=4 [12:53:59]MH_SAM_APDU [12:53:59]CAPDU: 80 09 00 00 [12:53:59]Write to MH i2c: E2 08 00 D9 30 80 09 00 00 00 00 00 00 7B [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 D9 30 00 90 00 7D [12:53:59]RAPDU: 90 00 [12:53:59]wFMCommunicate OK [12:53:59]SAM_PROTO_ClearQueue done [12:53:59]KKMCreateOFDPacket [12:53:59]OFDProtocolAddRootSTLVToBuf [12:53:59]FM_MakeSignedData [12:53:59]FM_MakeSignedData [12:53:59]SAM_PROTO_SignData [12:53:59]wFMCommunicate request_size=4 [12:53:59]MH_SAM_APDU [12:53:59]CAPDU: 80 0D 01 02 [12:53:59]Write to MH i2c: E2 08 00 DA 30 80 0D 01 02 00 00 00 00 83 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:59]Read from MH i2c: E2 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [12:53:59]RAPDU: 90 00 [12:53:59]wFMCommunicate OK [12:53:59]wFMCommunicate request_size=255 [12:53:59]MH_SAM_APDU [12:53: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 39 30 30 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 6B 00 00 00 F4 03 04 00 6B E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6B 25 01 00 35 04 06 00 FB A5 [12:53:59]Write to MH i2c: E2 02 01 DB 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 39 30 30 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 6B 00 00 00 F4 03 04 00 6B E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6B 25 01 00 35 04 06 00 FB A5 00 00 5C [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 03 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [12:54:00]RAPDU: 90 00 [12:54:00]wFMCommunicate OK [12:54:00]wFMCommunicate request_size=9 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 0D 02 02 04 24 21 1D 2E [12:54:00]Write to MH i2c: E2 0C 00 DC 30 80 0D 02 02 04 00 24 21 1D 2E 00 00 1E [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 03 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 03 00 DC 30 00 90 00 80 [12:54:00]RAPDU: 90 00 [12:54:00]wFMCommunicate OK [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 0D 03 02 [12:54:00]Write to MH i2c: E2 08 00 DD 30 80 0D 03 02 00 00 00 00 88 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0B 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0B 00 DD 30 00 CA 22 B4 BD 9E 9D 87 B4 90 00 5C [12:54:00]RAPDU: CA 22 B4 BD 9E 9D 87 B4 90 00 [12:54:00]wFMCommunicate OK [12:54:00]SAM_PROTO_SignData done [12:54:00]FM_MakeSignedData done [12:54:00]CreateOFDProtocolMessage [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 11 00 00 [12:54:00]Write to MH i2c: E2 08 00 DE 30 80 11 00 00 00 00 00 00 88 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 17 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 17 00 DE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E0 [12:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:54:00]wFMCommunicate OK [12:54:00]CreateOFDProtocolMessage done [12:54:00]OFDSenderStorePacket 75115 [12:54:00]StoreOFDPacket docnum=75115 [12:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 00 43 06 01 22 EB 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 39 30 30 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 6B 00 00 00 F4 03 04 00 6B E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6B 25 01 00 35 04 06 00 FB A5 24 21 1D 2E CA 22 B4 BD 9E 9D 87 B4 [12:54:00]CheckFolder [12:54:00]dirname=/storage/ofd_packets [12:54:00]CheckFolder done [12:54:00]ProducePacketName [12:54:00]name=ofd_packets/00075115 [12:54:00]NVStorageSaveData ofd_packets/00075115 [12:54:00]File name is /storage/ofd_packets/00075115 [12:54:00]Write 300 bytes [12:54:00]NVStorageSaveData done [12:54:00]OFDSenderStorePacket done [12:54:00]KKMCreateOFDPacket done [12:54:00]NVStorageSaveData kkm_last_timestamp [12:54:00]File name is /storage/kkm_last_timestamp [12:54:00]Write 4 bytes [12:54:00]NVStorageSaveData done [12:54:00]ExternCall_PrintAddStr [12:54:00]wPrintStart [12:54:00]Write to MH i2c: 01 00 00 DF 30 0F [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 DF 30 00 00 00 00 00 FF 0F 24 [12:54:00]RasterBufferAndPrint [12:54:00]line Счет N : (1)191087 [12:54:00]line ИНН: 02508201610067 [12:54:00]line Контрольно-Кассовый Чек [12:54:00]line ПРОДАЖА [12:54:00]line ТРК (МРК, ГНК) : 51 [12:54:00]line Товар: 2711190000 [12:54:00]line ГАЗ-К-3 [12:54:00]line 25.710 * 38.90 [12:54:00]line = 1000.12 [12:54:00]line НДС 12% НСП 1% [12:54:00]line > о реализуемом товаре [12:54:00]line ОКРУГЛЕНИЕ: -0.12 [12:54:00]line ИТОГО: 1000.00 [12:54:00]line Внесено: 1000.00 [12:54:00]line СДАЧА: 0.00 [12:54:00]line НСП 1% : 8.85 [12:54:00]line НДС 12% : 106.21 [12:54:00]line Наличными: 1000.00 [12:54:00]line Безнал.: 0.00 [12:54:00]line Место: АЗС № 142 "Партнер Нефть" [12:54:00]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:54:00]line СНО: Общий режим [12:54:00]line Чек 107 26.10.2024 12:54 [12:54:00]line Смена: 512 ФФД: 1.0 [12:54:00]line ЗНМ: 0300000089 [12:54:00]line РНМ: 0000000000091691 [12:54:00]line Версия ККМ: 001 [12:54:00]line ФМ: 0000000000871795 [12:54:00]line ФД: 75115 [12:54:00]line ФПД: 276686694325550 [12:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75115&fm=276686694325550&tin=02508201610067®Number=0000000000091691&sum=100000 [12:54:00]OFD Sender: Processing packet 75115 [packets to send 13, broken 12] [12:54:00]ProducePacketName [12:54:00]name=ofd_packets/00075115 [12:54:00]OFD Sender: To server: pG, [12:54:00]CommunicateWithHost lk.salyk.kg:30040 [12:54:00]ConnectInit lk.salyk.kg [12:54:00]written 0, free lines is 4095 [12:54:00]Connected sock=10 [12:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 00 43 06 01 22 EB 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 39 30 30 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 6B 00 00 00 F4 03 04 00 6B E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6B 25 01 00 35 04 06 00 FB A5 24 21 1D 2E CA 22 B4 BD 9E 9D 87 B4 [12:54:01]Write to MH i2c: 01 00 00 0A 31 3B [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: 01 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: 01 07 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: 01 07 00 0A 31 00 00 00 00 00 B2 0C 00 [12:54:01]RasterBufferAndPrint [12:54:01]line [12:54:01]line [12:54:01]line [12:54:01]line [12:54:01]line [12:54:01]written 0, free lines is 3255 [12:54:01]MH_Cut [12:54:01]Write to MH i2c: D1 01 00 11 31 01 14 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: D1 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: D1 01 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: D1 01 00 11 31 00 13 [12:54:01]Write to MH i2c: 01 00 00 12 31 43 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F7 D9 47 00 95 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 38 37 31 37 39 35 10 04 04 00 6B 25 01 00 F4 03 04 00 E7 8D 1C 67 B6 04 01 00 00 1C D2 DC 2F DF 8C 71 B1 [12:54:01]CommunicateWithHost err = 0 [12:54:01]CheckOFDResponse [12:54:01]1017 (14) - 77093643461234 [12:54:01]1041 (16) - 0000000000871795 [12:54:01]1040 (4) - 75115 [12:54:01]1012 (4) - 26.10.2024 06:36 [12:54:01]1206 (1) - 0 [12:54:01]OFD Sender: Remove packet 75115 [12:54:01]ProducePacketName [12:54:01]name=ofd_packets/00075115 [12:54:01]NVStorageDeleteData [12:54:01]OFD Sender: No OFD packet to send [12:54:02]*** Cut start [12:54:02]*** Partial cut [12:54:02]*** CUTSNS_PIN = 1 [12:54:02]*** CUTSNS_PIN = 0 [12:54:02]*** Brake cut motor [12:54:02]Read from MH i2c: 01 [12:54:02]MH_I2C_Read... [12:54:02]*** Stop cut motor [12:54:02]*** Cut end [12:54:02]Read from MH i2c: 01 07 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: 01 07 00 12 31 00 00 00 00 00 FF 0F 58 [12:54:02]process_action close_receipt done [12:54:02]requested_data is exist [12:54:02]produce_requested_data [12:54:02]requested_item fm.sn is exist - process it [12:54:02]wFMCommunicate request_size=4 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 11 00 00 [12:54:02]Write to MH i2c: E2 08 00 13 31 80 11 00 00 00 00 00 00 BE [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 17 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 17 00 13 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 16 [12:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:54:02]wFMCommunicate OK [12:54:02]requested_item fd.num is exist - process it [12:54:02]SAM_PROTO_GetFieldsCounters [12:54:02]wFMCommunicate request_size=4 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 13 00 00 [12:54:02]Write to MH i2c: E2 08 00 14 31 80 13 00 00 00 00 00 00 C1 [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 62 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 62 00 14 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6B 25 01 00 0E 04 04 00 00 02 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 BC [12:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6B 25 01 00 0E 04 04 00 00 02 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 [12:54:02]wFMCommunicate OK [12:54:02]SAM_PROTO_GetFieldsCounters done [12:54:02]requested_item shift.num is exist - process it [12:54:02]requested_item shift.opened is exist - process it [12:54:02]req_shift_opened [12:54:02]FM_GetShiftState [12:54:02]SAM_PROTO_GetShiftState [12:54:02]wFMCommunicate request_size=4 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 13 01 00 [12:54:02]Write to MH i2c: E2 08 00 15 31 80 13 01 00 00 00 00 00 C3 [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 0E 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 0E 00 15 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DE [12:54:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:54:02]wFMCommunicate OK [12:54:02]SAM_PROTO_GetShiftState done [12:54:02]FM_GetShiftState done [12:54:02]req_shift_opened done [12:54:02]requested_item shift.open_date is exist - process it [12:54:02]req_shift_open_date [12:54:02]req_shift_open_date done [12:54:02]produce_requested_data done [12:54:02]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75115,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:54:02]process_action_free close_receipt [12:54:02]json_value_free [12:54:02]json_value_free done [12:54:02]process_json_proto returns [12:54:02]Send response to host [12:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75115,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:54:02]free response buf [12:54:02]execute_script done [12:54:02]execute_script returns [12:54:02]free content buf [12:54:02]Sock 8.Close socket [12:54:02]Sock 8.Thread stoped [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:00]recv_with_timeout no data received [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:30]accept exits with 9 [12:55:30]New connection [12:55:30]New thread 3066924388 created [12:55:30]Thread 3066781028 joined [12:55:30]Waiting for new connection... [12:55:30] Sock 9.Parse request [12:55:30]Sock 9.Check first char [12:55:30]Sock 9.First char is OK [12:55:30]request: POST /json_proto HTTP/1.0 [12:55:30]Method: POST [12:55:30]URL: /json_proto [12:55:30]Method is POST - this is cgi request [12:55:30]url: /json_proto [12:55:30]query_string will be loaded in cgi processing [12:55:30]execute_cgi json_proto POST (null) [12:55:30]execute_cgi path=json_proto method=POST [12:55:30]POST find Content-Length [12:55:30]Host: 172.17.39.131:8080 [12:55:30]Content-Length: 677 [12:55:30]Content-Type: application/json [12:55:30] [12:55:30]POST finish read [12:55:30]Found Content-Length = 677 [12:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:55:30]execute_script... [12:55: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)191088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:55:30]POST & json_proto [12:55:30]process_json_proto [12:55:30]json parsed OK: [12:55:30]protocol is kg_v1.0 [12:55:30]action value=close_receipt [12:55:30]process_action close_receipt [12:55:30]cmd_close_receipt [12:55:30]MH_GetDate [12:55:30]Write to MH i2c: F0 00 00 16 31 36 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: F0 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: F0 09 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: F0 09 00 16 31 00 C7 E6 1C 67 86 57 24 65 D5 [12:55:30]GetLastDocTimeStamp 1729947243 [12:55:30]current date 1729947335 [12:55:30]FM_GetShiftState [12:55:30]SAM_PROTO_GetShiftState [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 13 01 00 [12:55:30]Write to MH i2c: E2 08 00 17 31 80 13 01 00 00 00 00 00 C5 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 0E 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 0E 00 17 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E0 [12:55:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:55:30]wFMCommunicate OK [12:55:30]SAM_PROTO_GetShiftState done [12:55:30]FM_GetShiftState done [12:55:30]opened in 1729902166 [12:55:30]opened+sec_in_day 1729988566 [12:55:30]quantity*price = 50041 [12:55:30]sum+1 = 50042 [12:55: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 108 26.10.2024 12:55 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75116 ФПД: 76878958768713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125535&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75116&fm=76878958768713&tin=02508201610067®Number=0000000000091691&sum=50000 [12:55:31]StoreToDocumentArchive [12:55:31]shift 512 fd 75116 [12:55:31]save to /storage/0512/doc_00075116 [12:55:31]save last doc name /storage/0512/doc_00075116 to /storage/kkm_last_doc_name [12:55:31]save OK [12:55:31]Clear old archive folders... [12:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:31]tlvbuf is 008AF760 [12:55:31]SAM_PROTO_ClearQueue [12:55:31]wFMCommunicate request_size=4 [12:55:31]MH_SAM_APDU [12:55:31]CAPDU: 80 09 00 00 [12:55:31]Write to MH i2c: E2 08 00 24 31 80 09 00 00 00 00 00 00 C7 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:31]Read from MH i2c: E2 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 03 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 03 00 24 31 00 90 00 C9 [12:55:31]RAPDU: 90 00 [12:55:31]wFMCommunicate OK [12:55:31]SAM_PROTO_ClearQueue done [12:55:31]KKMCreateOFDPacket [12:55:31]OFDProtocolAddRootSTLVToBuf [12:55:31]FM_MakeSignedData [12:55:31]FM_MakeSignedData [12:55:31]SAM_PROTO_SignData [12:55:31]wFMCommunicate request_size=4 [12:55:31]MH_SAM_APDU [12:55:31]CAPDU: 80 0D 01 02 [12:55:31]Write to MH i2c: E2 08 00 25 31 80 0D 01 02 00 00 00 00 CF [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]OFD Sender: No OFD packet to send [12:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:31]Read from MH i2c: E2 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 03 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 03 00 25 31 00 90 00 CA [12:55:31]RAPDU: 90 00 [12:55:31]wFMCommunicate OK [12:55:31]wFMCommunicate request_size=255 [12:55:31]MH_SAM_APDU [12:55: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 6C 00 00 00 F4 03 04 00 C7 E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6C 25 01 00 35 04 06 00 45 [12:55:31]Write to MH i2c: E2 02 01 26 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 6C 00 00 00 F4 03 04 00 C7 E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6C 25 01 00 35 04 06 00 45 00 00 D9 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 26 31 00 90 00 CB [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]wFMCommunicate request_size=10 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 02 02 05 EB C7 07 32 49 [12:55:32]Write to MH i2c: E2 0D 00 27 31 80 0D 02 02 05 00 EB C7 07 32 49 00 00 10 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 27 31 00 90 00 CC [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 03 02 [12:55:32]Write to MH i2c: E2 08 00 28 31 80 0D 03 02 00 00 00 00 D4 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 0B 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 0B 00 28 31 00 F3 1C 6A 86 FB D4 25 1F 90 00 E7 [12:55:32]RAPDU: F3 1C 6A 86 FB D4 25 1F 90 00 [12:55:32]wFMCommunicate OK [12:55:32]SAM_PROTO_SignData done [12:55:32]FM_MakeSignedData done [12:55:32]CreateOFDProtocolMessage [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 11 00 00 [12:55:32]Write to MH i2c: E2 08 00 29 31 80 11 00 00 00 00 00 00 D4 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 17 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 17 00 29 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2C [12:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:55:32]wFMCommunicate OK [12:55:32]CreateOFDProtocolMessage done [12:55:32]OFDSenderStorePacket 75116 [12:55:32]StoreOFDPacket docnum=75116 [12:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 83 38 07 01 32 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 C7 E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6C 25 01 00 35 04 06 00 45 EB C7 07 32 49 F3 1C 6A 86 FB D4 25 1F [12:55:32]CheckFolder [12:55:32]dirname=/storage/ofd_packets [12:55:32]CheckFolder done [12:55:32]ProducePacketName [12:55:32]name=ofd_packets/00075116 [12:55:32]NVStorageSaveData ofd_packets/00075116 [12:55:32]File name is /storage/ofd_packets/00075116 [12:55:32]Write 301 bytes [12:55:32]NVStorageSaveData done [12:55:32]OFDSenderStorePacket done [12:55:32]KKMCreateOFDPacket done [12:55:32]NVStorageSaveData kkm_last_timestamp [12:55:32]File name is /storage/kkm_last_timestamp [12:55:32]Write 4 bytes [12:55:32]NVStorageSaveData done [12:55:32]ExternCall_PrintAddStr [12:55:32]wPrintStart [12:55:32]Write to MH i2c: 01 00 00 2A 31 5B [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: 01 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: 01 07 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: 01 07 00 2A 31 00 00 00 00 00 FF 0F 70 [12:55:32]RasterBufferAndPrint [12:55:32]line Счет N : (1)191088 [12:55:32]line ИНН: 02508201610067 [12:55:32]line Контрольно-Кассовый Чек [12:55:32]line ПРОДАЖА [12:55:32]line ТРК (МРК, ГНК) : 21 [12:55:32]line Товар: 2710124130 [12:55:32]line Аи-92-К-5 [12:55:32]line 7.480 * 66.90 [12:55:32]line = 500.41 [12:55:32]line НДС 12% НСП 1% [12:55:32]line > о реализуемом товаре [12:55:32]line ОКРУГЛЕНИЕ: -0.41 [12:55:32]line ИТОГО: 500.00 [12:55:32]line Внесено: 500.00 [12:55:32]line СДАЧА: 0.00 [12:55:32]line НСП 1% : 4.43 [12:55:32]line НДС 12% : 53.14 [12:55:32]line Наличными: 500.00 [12:55:32]line Безнал.: 0.00 [12:55:32]line Место: АЗС № 142 "Партнер Нефть" [12:55:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:55:32]line СНО: Общий режим [12:55:32]line Чек 108 26.10.2024 12:55 [12:55:32]line Смена: 512 ФФД: 1.0 [12:55:32]line ЗНМ: 0300000089 [12:55:32]line РНМ: 0000000000091691 [12:55:32]line Версия ККМ: 001 [12:55:32]line ФМ: 0000000000871795 [12:55:32]line ФД: 75116 [12:55:32]line ФПД: 76878958768713 [12:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125535&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75116&fm=76878958768713&tin=02508201610067®Number=0000000000091691&sum=50000 [12:55:32]OFD Sender: Processing packet 75116 [packets to send 13, broken 12] [12:55:32]ProducePacketName [12:55:32]name=ofd_packets/00075116 [12:55:32]OFD Sender: To server: pG, [12:55:32]CommunicateWithHost lk.salyk.kg:30040 [12:55:32]ConnectInit lk.salyk.kg [12:55:32]written 0, free lines is 4095 [12:55:32]Connected sock=10 [12:55:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 83 38 07 01 32 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 C7 E6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6C 25 01 00 35 04 06 00 45 EB C7 07 32 49 F3 1C 6A 86 FB D4 25 1F [12:55:33]Write to MH i2c: 01 00 00 55 31 86 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 55 31 00 00 00 00 00 A5 0C 3E [12:55:33]RasterBufferAndPrint [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]written 0, free lines is 3242 [12:55:33]MH_Cut [12:55:33]Write to MH i2c: D1 01 00 5C 31 01 5F [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 01 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 01 00 5C 31 00 5E [12:55:33]Write to MH i2c: 01 00 00 5D 31 8E [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 01 92 47 00 C8 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 38 37 31 37 39 35 10 04 04 00 6C 25 01 00 F4 03 04 00 43 8E 1C 67 B6 04 01 00 00 A3 41 38 6D B6 BF 92 3A [12:55:33]CommunicateWithHost err = 0 [12:55:33]CheckOFDResponse [12:55:33]1017 (14) - 77093643461234 [12:55:33]1041 (16) - 0000000000871795 [12:55:33]1040 (4) - 75116 [12:55:33]1012 (4) - 26.10.2024 06:37 [12:55:33]1206 (1) - 0 [12:55:33]OFD Sender: Remove packet 75116 [12:55:33]ProducePacketName [12:55:33]name=ofd_packets/00075116 [12:55:33]NVStorageDeleteData [12:55:33]OFD Sender: No OFD packet to send [12:55:33]*** Cut start [12:55:33]*** Partial cut [12:55:33]*** CUTSNS_PIN = 1 [12:55:34]*** CUTSNS_PIN = 0 [12:55:34]*** Brake cut motor [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]*** Stop cut motor [12:55:34]*** Cut end [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 5D 31 00 00 00 00 00 FF 0F A3 [12:55:34]process_action close_receipt done [12:55:34]requested_data is exist [12:55:34]produce_requested_data [12:55:34]requested_item fm.sn is exist - process it [12:55:34]wFMCommunicate request_size=4 [12:55:34]MH_SAM_APDU [12:55:34]CAPDU: 80 11 00 00 [12:55:34]Write to MH i2c: E2 08 00 5E 31 80 11 00 00 00 00 00 00 09 [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:34]Read from MH i2c: E2 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 17 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 17 00 5E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 61 [12:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:55:34]wFMCommunicate OK [12:55:34]requested_item fd.num is exist - process it [12:55:34]SAM_PROTO_GetFieldsCounters [12:55:34]wFMCommunicate request_size=4 [12:55:34]MH_SAM_APDU [12:55:34]CAPDU: 80 13 00 00 [12:55:34]Write to MH i2c: E2 08 00 5F 31 80 13 00 00 00 00 00 00 0C [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:34]Read from MH i2c: E2 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 62 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 62 00 5F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6C 25 01 00 0E 04 04 00 00 02 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 0B [12:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6C 25 01 00 0E 04 04 00 00 02 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 [12:55:34]wFMCommunicate OK [12:55:34]SAM_PROTO_GetFieldsCounters done [12:55:34]requested_item shift.num is exist - process it [12:55:34]requested_item shift.opened is exist - process it [12:55:34]req_shift_opened [12:55:34]FM_GetShiftState [12:55:34]SAM_PROTO_GetShiftState [12:55:34]wFMCommunicate request_size=4 [12:55:34]MH_SAM_APDU [12:55:34]CAPDU: 80 13 01 00 [12:55:34]Write to MH i2c: E2 08 00 60 31 80 13 01 00 00 00 00 00 0E [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:34]Read from MH i2c: E2 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 0E 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: E2 0E 00 60 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 29 [12:55:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:55:34]wFMCommunicate OK [12:55:34]SAM_PROTO_GetShiftState done [12:55:34]FM_GetShiftState done [12:55:34]req_shift_opened done [12:55:34]requested_item shift.open_date is exist - process it [12:55:34]req_shift_open_date [12:55:34]req_shift_open_date done [12:55:34]produce_requested_data done [12:55:34]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75116,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:55:34]process_action_free close_receipt [12:55:34]json_value_free [12:55:34]json_value_free done [12:55:34]process_json_proto returns [12:55:34]Send response to host [12:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75116,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:55:34]free response buf [12:55:34]execute_script done [12:55:34]execute_script returns [12:55:34]free content buf [12:55:34]Sock 9.Close socket [12:55:34]Sock 9.Thread stoped [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:04]accept exits with 8 [12:59:04]New connection [12:59:04]New thread 3066781028 created [12:59:04]Thread 3066924388 joined [12:59:04]Waiting for new connection... [12:59:04] Sock 8.Parse request [12:59:04]Sock 8.Check first char [12:59:04]Sock 8.First char is OK [12:59:04]request: POST /json_proto HTTP/1.0 [12:59:04]Method: POST [12:59:04]URL: /json_proto [12:59:04]Method is POST - this is cgi request [12:59:04]url: /json_proto [12:59:04]query_string will be loaded in cgi processing [12:59:04]execute_cgi json_proto POST (null) [12:59:04]execute_cgi path=json_proto method=POST [12:59:04]POST find Content-Length [12:59:04]Host: 172.17.39.131:8080 [12:59:04]Content-Length: 682 [12:59:04]Content-Type: application/json [12:59:04] [12:59:04]POST finish read [12:59:04]Found Content-Length = 682 [12:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:59:04]execute_script... [12:59: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)191089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [12:59:04]POST & json_proto [12:59:04]process_json_proto [12:59:04]json parsed OK: [12:59:04]protocol is kg_v1.0 [12:59:04]action value=close_receipt [12:59:04]process_action close_receipt [12:59:04]cmd_close_receipt [12:59:04]MH_GetDate [12:59:04]Write to MH i2c: F0 00 00 61 31 81 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: F0 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: F0 09 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: F0 09 00 61 31 00 9D E7 1C 67 86 57 24 65 F7 [12:59:04]GetLastDocTimeStamp 1729947335 [12:59:04]current date 1729947549 [12:59:04]FM_GetShiftState [12:59:04]SAM_PROTO_GetShiftState [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 13 01 00 [12:59:04]Write to MH i2c: E2 08 00 62 31 80 13 01 00 00 00 00 00 10 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 0E 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 0E 00 62 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2B [12:59:04]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:59:04]wFMCommunicate OK [12:59:04]SAM_PROTO_GetShiftState done [12:59:04]FM_GetShiftState done [12:59:04]opened in 1729902166 [12:59:04]opened+sec_in_day 1729988566 [12:59:04]quantity*price = 200031 [12:59:04]sum+1 = 200032 [12:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 109 26.10.2024 12:59 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75117 ФПД: 173569280263041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125909&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75117&fm=173569280263041&tin=02508201610067®Number=0000000000091691&sum=200000 [12:59:05]StoreToDocumentArchive [12:59:05]shift 512 fd 75117 [12:59:05]save to /storage/0512/doc_00075117 [12:59:05]save last doc name /storage/0512/doc_00075117 to /storage/kkm_last_doc_name [12:59:05]save OK [12:59:05]Clear old archive folders... [12:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:05]tlvbuf is 008AF620 [12:59:05]SAM_PROTO_ClearQueue [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 09 00 00 [12:59:05]Write to MH i2c: E2 08 00 6F 31 80 09 00 00 00 00 00 00 12 [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 6F 31 00 90 00 14 [12:59:05]RAPDU: 90 00 [12:59:05]wFMCommunicate OK [12:59:05]SAM_PROTO_ClearQueue done [12:59:05]KKMCreateOFDPacket [12:59:05]OFDProtocolAddRootSTLVToBuf [12:59:05]FM_MakeSignedData [12:59:05]FM_MakeSignedData [12:59:05]SAM_PROTO_SignData [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 0D 01 02 [12:59:05]Write to MH i2c: E2 08 00 70 31 80 0D 01 02 00 00 00 00 1A [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 70 31 00 90 00 15 [12:59:05]RAPDU: 90 00 [12:59:05]wFMCommunicate OK [12:59:05]wFMCommunicate request_size=255 [12:59:05]MH_SAM_APDU [12:59: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 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 6D 00 00 00 F4 03 04 00 9D E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6D 25 01 00 35 04 06 00 9D [12:59:05]Write to MH i2c: E2 02 01 71 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 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 6D 00 00 00 F4 03 04 00 9D E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6D 25 01 00 35 04 06 00 9D 00 00 97 [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:06]Read from MH i2c: E2 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 03 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 03 00 71 31 00 90 00 16 [12:59:06]RAPDU: 90 00 [12:59:06]wFMCommunicate OK [12:59:06]wFMCommunicate request_size=10 [12:59:06]MH_SAM_APDU [12:59:06]CAPDU: 80 0D 02 02 05 DC 3F 4B 43 81 [12:59:06]Write to MH i2c: E2 0D 00 72 31 80 0D 02 02 05 00 DC 3F 4B 43 81 00 00 51 [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:06]Read from MH i2c: E2 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 03 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 03 00 72 31 00 90 00 17 [12:59:06]RAPDU: 90 00 [12:59:06]wFMCommunicate OK [12:59:06]wFMCommunicate request_size=4 [12:59:06]MH_SAM_APDU [12:59:06]CAPDU: 80 0D 03 02 [12:59:06]Write to MH i2c: E2 08 00 73 31 80 0D 03 02 00 00 00 00 1F [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:06]Read from MH i2c: E2 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 0B 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 0B 00 73 31 00 38 E1 AE BD B7 FD E3 37 90 00 72 [12:59:06]RAPDU: 38 E1 AE BD B7 FD E3 37 90 00 [12:59:06]wFMCommunicate OK [12:59:06]SAM_PROTO_SignData done [12:59:06]FM_MakeSignedData done [12:59:06]CreateOFDProtocolMessage [12:59:06]wFMCommunicate request_size=4 [12:59:06]MH_SAM_APDU [12:59:06]CAPDU: 80 11 00 00 [12:59:06]Write to MH i2c: E2 08 00 74 31 80 11 00 00 00 00 00 00 1F [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:06]Read from MH i2c: E2 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 17 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: E2 17 00 74 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 77 [12:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:59:06]wFMCommunicate OK [12:59:06]CreateOFDProtocolMessage done [12:59:06]OFDSenderStorePacket 75117 [12:59:06]StoreOFDPacket docnum=75117 [12:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB 8F 07 01 F6 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 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 6D 00 00 00 F4 03 04 00 9D E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6D 25 01 00 35 04 06 00 9D DC 3F 4B 43 81 38 E1 AE BD B7 FD E3 37 [12:59:06]CheckFolder [12:59:06]dirname=/storage/ofd_packets [12:59:06]CheckFolder done [12:59:06]ProducePacketName [12:59:06]name=ofd_packets/00075117 [12:59:06]NVStorageSaveData ofd_packets/00075117 [12:59:06]File name is /storage/ofd_packets/00075117 [12:59:06]Write 301 bytes [12:59:06]NVStorageSaveData done [12:59:06]OFDSenderStorePacket done [12:59:06]KKMCreateOFDPacket done [12:59:06]NVStorageSaveData kkm_last_timestamp [12:59:06]File name is /storage/kkm_last_timestamp [12:59:06]Write 4 bytes [12:59:06]NVStorageSaveData done [12:59:06]ExternCall_PrintAddStr [12:59:06]wPrintStart [12:59:06]Write to MH i2c: 01 00 00 75 31 A6 [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 07 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 07 00 75 31 00 00 00 00 00 FF 0F BB [12:59:06]RasterBufferAndPrint [12:59:06]line Счет N : (1)191089 [12:59:06]line ИНН: 02508201610067 [12:59:06]line Контрольно-Кассовый Чек [12:59:06]line ПРОДАЖА [12:59:06]line ТРК (МРК, ГНК) : 21 [12:59:06]line Товар: 2710124130 [12:59:06]line Аи-92-К-5 [12:59:06]line 29.900 * 66.90 [12:59:06]line = 2000.31 [12:59:06]line НДС 12% НСП 1% [12:59:06]line > о реализуемом товаре [12:59:06]line ОКРУГЛЕНИЕ: -0.31 [12:59:06]line ИТОГО: 2000.00 [12:59:06]line Внесено: 2000.00 [12:59:06]line СДАЧА: 0.00 [12:59:06]line НСП 1% : 17.70 [12:59:06]line НДС 12% : 212.42 [12:59:06]line Наличными: 2000.00 [12:59:06]line Безнал.: 0.00 [12:59:06]line Место: АЗС № 142 "Партнер Нефть" [12:59:06]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [12:59:06]line СНО: Общий режим [12:59:06]line Чек 109 26.10.2024 12:59 [12:59:06]line Смена: 512 ФФД: 1.0 [12:59:06]line ЗНМ: 0300000089 [12:59:06]line РНМ: 0000000000091691 [12:59:06]line Версия ККМ: 001 [12:59:06]line ФМ: 0000000000871795 [12:59:06]line ФД: 75117 [12:59:06]line ФПД: 173569280263041 [12:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125909&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75117&fm=173569280263041&tin=02508201610067®Number=0000000000091691&sum=200000 [12:59:06]OFD Sender: Processing packet 75117 [packets to send 13, broken 12] [12:59:06]ProducePacketName [12:59:06]name=ofd_packets/00075117 [12:59:06]OFD Sender: To server: pG, [12:59:06]CommunicateWithHost lk.salyk.kg:30040 [12:59:06]ConnectInit lk.salyk.kg [12:59:06]written 0, free lines is 4095 [12:59:07]Write to MH i2c: 01 00 00 A0 31 D1 [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: 01 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: 01 07 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: 01 07 00 A0 31 00 00 00 00 00 A0 0C 84 [12:59:07]RasterBufferAndPrint [12:59:07]line [12:59:07]line [12:59:07]line [12:59:07]line [12:59:07]line [12:59:07]written 0, free lines is 3239 [12:59:07]MH_Cut [12:59:07]Write to MH i2c: D1 01 00 A7 31 01 AA [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: D1 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: D1 01 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: D1 01 00 A7 31 00 A9 [12:59:07]Write to MH i2c: 01 00 00 A8 31 D9 [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]*** Cut start [12:59:07]*** Partial cut [12:59:07]*** CUTSNS_PIN = 1 [12:59:07]*** CUTSNS_PIN = 0 [12:59:08]*** Brake cut motor [12:59:08]Read from MH i2c: 01 [12:59:08]MH_I2C_Read... [12:59:08]*** Stop cut motor [12:59:08]*** Cut end [12:59:08]Read from MH i2c: 01 07 00 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: 01 07 00 A8 31 00 00 00 00 00 FF 0F EE [12:59:08]process_action close_receipt done [12:59:08]requested_data is exist [12:59:08]produce_requested_data [12:59:08]requested_item fm.sn is exist - process it [12:59:08]wFMCommunicate request_size=4 [12:59:08]MH_SAM_APDU [12:59:08]CAPDU: 80 11 00 00 [12:59:08]Write to MH i2c: E2 08 00 A9 31 80 11 00 00 00 00 00 00 54 [12:59:08]Write i2c OK [12:59:08]MH_I2C_Read... [12:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:08]Read from MH i2c: E2 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 17 00 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 17 00 A9 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AC [12:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [12:59:08]wFMCommunicate OK [12:59:08]requested_item fd.num is exist - process it [12:59:08]SAM_PROTO_GetFieldsCounters [12:59:08]wFMCommunicate request_size=4 [12:59:08]MH_SAM_APDU [12:59:08]CAPDU: 80 13 00 00 [12:59:08]Write to MH i2c: E2 08 00 AA 31 80 13 00 00 00 00 00 00 57 [12:59:08]Write i2c OK [12:59:08]MH_I2C_Read... [12:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:08]Read from MH i2c: E2 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 62 00 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 62 00 AA 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6D 25 01 00 0E 04 04 00 00 02 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 5A [12:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6D 25 01 00 0E 04 04 00 00 02 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 [12:59:08]wFMCommunicate OK [12:59:08]SAM_PROTO_GetFieldsCounters done [12:59:08]requested_item shift.num is exist - process it [12:59:08]requested_item shift.opened is exist - process it [12:59:08]req_shift_opened [12:59:08]FM_GetShiftState [12:59:08]SAM_PROTO_GetShiftState [12:59:08]wFMCommunicate request_size=4 [12:59:08]MH_SAM_APDU [12:59:08]CAPDU: 80 13 01 00 [12:59:08]Write to MH i2c: E2 08 00 AB 31 80 13 01 00 00 00 00 00 59 [12:59:08]Write i2c OK [12:59:08]MH_I2C_Read... [12:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:08]Read from MH i2c: E2 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 0E 00 [12:59:08]MH_I2C_Read... [12:59:08]Read from MH i2c: E2 0E 00 AB 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 74 [12:59:08]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [12:59:08]wFMCommunicate OK [12:59:08]SAM_PROTO_GetShiftState done [12:59:08]FM_GetShiftState done [12:59:08]req_shift_opened done [12:59:08]requested_item shift.open_date is exist - process it [12:59:08]req_shift_open_date [12:59:08]req_shift_open_date done [12:59:08]produce_requested_data done [12:59:08]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75117,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [12:59:08]process_action_free close_receipt [12:59:08]json_value_free [12:59:08]json_value_free done [12:59:08]process_json_proto returns [12:59:08]Send response to host [12:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75117,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [12:59:08]free response buf [12:59:08]execute_script done [12:59:08]execute_script returns [12:59:08]free content buf [12:59:08]Sock 8.Close socket [12:59:08]Sock 8.Thread stoped [12:59:11]ConnectInit Can't take IP for lk.salyk.kg [12:59:11]CommunicateWithHost connect error [12:59:11]CommunicateWithHost err = -1 [12:59:11]OFD Sender: Server communicate error [12:59:16]OFD Sender: Processing packet 75117 [packets to send 13, broken 12] [12:59:16]ProducePacketName [12:59:16]name=ofd_packets/00075117 [12:59:16]OFD Sender: To server: pG, [12:59:16]CommunicateWithHost lk.salyk.kg:30040 [12:59:16]ConnectInit lk.salyk.kg [12:59:21]ConnectInit Can't take IP for lk.salyk.kg [12:59:21]CommunicateWithHost connect error [12:59:21]CommunicateWithHost err = -1 [12:59:21]OFD Sender: Server communicate error [12:59:26]OFD Sender: Processing packet 75117 [packets to send 13, broken 12] [12:59:26]ProducePacketName [12:59:26]name=ofd_packets/00075117 [12:59:26]OFD Sender: To server: pG, [12:59:26]CommunicateWithHost lk.salyk.kg:30040 [12:59:26]ConnectInit lk.salyk.kg [13:00:38]accept exits with 10 [13:00:38]New connection [13:00:38]New thread 3066924388 created [13:00:38]Thread 3066781028 joined [13:00:38]Waiting for new connection... [13:00:38] Sock 10.Parse request [13:00:38]Sock 10.Check first char [13:00:38]Sock 10.First char is OK [13:00:38]request: POST /json_proto HTTP/1.0 [13:00:38]Method: POST [13:00:38]URL: /json_proto [13:00:38]Method is POST - this is cgi request [13:00:38]url: /json_proto [13:00:38]query_string will be loaded in cgi processing [13:00:38]execute_cgi json_proto POST (null) [13:00:38]execute_cgi path=json_proto method=POST [13:00:38]POST find Content-Length [13:00:38]Host: 172.17.39.131:8080 [13:00:38]Content-Length: 677 [13:00:38]Content-Type: application/json [13:00:38] [13:00:38]POST finish read [13:00:38]Found Content-Length = 677 [13:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:00:38]execute_script... [13:00: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)191091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:00:38]POST & json_proto [13:00:38]process_json_proto [13:00:38]json parsed OK: [13:00:38]protocol is kg_v1.0 [13:00:38]action value=close_receipt [13:00:38]process_action close_receipt [13:00:38]cmd_close_receipt [13:00:38]MH_GetDate [13:00:38]Write to MH i2c: F0 00 00 AC 31 CC [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: F0 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: F0 09 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: F0 09 00 AC 31 00 FB E7 1C 67 86 57 24 65 A0 [13:00:38]GetLastDocTimeStamp 1729947549 [13:00:38]current date 1729947643 [13:00:38]FM_GetShiftState [13:00:38]SAM_PROTO_GetShiftState [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 13 01 00 [13:00:38]Write to MH i2c: E2 08 00 AD 31 80 13 01 00 00 00 00 00 5B [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 AD 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 76 [13:00:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_GetShiftState done [13:00:38]FM_GetShiftState done [13:00:38]opened in 1729902166 [13:00:38]opened+sec_in_day 1729988566 [13:00:38]quantity*price = 50041 [13:00:38]sum+1 = 50042 [13:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 110 26.10.2024 13:00 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75118 ФПД: 129616810631643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130043&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75118&fm=129616810631643&tin=02508201610067®Number=0000000000091691&sum=50000 [13:00:39]StoreToDocumentArchive [13:00:39]shift 512 fd 75118 [13:00:39]save to /storage/0512/doc_00075118 [13:00:39]save last doc name /storage/0512/doc_00075118 to /storage/kkm_last_doc_name [13:00:39]save OK [13:00:39]Clear old archive folders... [13:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:39]tlvbuf is 008AF8E0 [13:00:39]SAM_PROTO_ClearQueue [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 09 00 00 [13:00:39]Write to MH i2c: E2 08 00 BA 31 80 09 00 00 00 00 00 00 5D [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 BA 31 00 90 00 5F [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]SAM_PROTO_ClearQueue done [13:00:39]KKMCreateOFDPacket [13:00:39]OFDProtocolAddRootSTLVToBuf [13:00:39]FM_MakeSignedData [13:00:39]FM_MakeSignedData [13:00:39]SAM_PROTO_SignData [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 01 02 [13:00:39]Write to MH i2c: E2 08 00 BB 31 80 0D 01 02 00 00 00 00 65 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 BB 31 00 90 00 60 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=255 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FB E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6E 25 01 00 35 04 06 00 75 [13:00:39]Write to MH i2c: E2 02 01 BC 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 6E 00 00 00 F4 03 04 00 FB E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6E 25 01 00 35 04 06 00 75 00 00 D8 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 BC 31 00 90 00 61 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=10 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 02 02 05 E2 C3 F4 61 DB [13:00:39]Write to MH i2c: E2 0D 00 BD 31 80 0D 02 02 05 00 E2 C3 F4 61 DB 00 00 47 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 03 02 [13:00:39]Write to MH i2c: E2 08 00 BE 31 80 0D 03 02 00 00 00 00 6A [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 BE 31 00 67 48 3C 34 15 38 FC CB 90 00 9E [13:00:39]RAPDU: 67 48 3C 34 15 38 FC CB 90 00 [13:00:39]wFMCommunicate OK [13:00:39]SAM_PROTO_SignData done [13:00:39]FM_MakeSignedData done [13:00:39]CreateOFDProtocolMessage [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 11 00 00 [13:00:39]Write to MH i2c: E2 08 00 BF 31 80 11 00 00 00 00 00 00 6A [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 BF 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C2 [13:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:00:39]wFMCommunicate OK [13:00:39]CreateOFDProtocolMessage done [13:00:39]OFDSenderStorePacket 75118 [13:00:39]StoreOFDPacket docnum=75118 [13:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AA F3 07 01 61 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 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 6E 00 00 00 F4 03 04 00 FB E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6E 25 01 00 35 04 06 00 75 E2 C3 F4 61 DB 67 48 3C 34 15 38 FC CB [13:00:39]CheckFolder [13:00:39]dirname=/storage/ofd_packets [13:00:39]CheckFolder done [13:00:39]ProducePacketName [13:00:39]name=ofd_packets/00075118 [13:00:39]NVStorageSaveData ofd_packets/00075118 [13:00:39]File name is /storage/ofd_packets/00075118 [13:00:39]Write 301 bytes [13:00:39]NVStorageSaveData done [13:00:39]OFDSenderStorePacket done [13:00:39]KKMCreateOFDPacket done [13:00:39]NVStorageSaveData kkm_last_timestamp [13:00:39]File name is /storage/kkm_last_timestamp [13:00:39]Write 4 bytes [13:00:39]NVStorageSaveData done [13:00:39]ExternCall_PrintAddStr [13:00:39]wPrintStart [13:00:39]Write to MH i2c: 01 00 00 C0 31 F1 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 C0 31 00 00 00 00 00 FF 0F 06 [13:00:39]RasterBufferAndPrint [13:00:39]line Счет N : (1)191091 [13:00:39]line ИНН: 02508201610067 [13:00:39]line Контрольно-Кассовый Чек [13:00:39]line ПРОДАЖА [13:00:39]line ТРК (МРК, ГНК) : 21 [13:00:39]line Товар: 2710124130 [13:00:39]line Аи-92-К-5 [13:00:39]line 7.480 * 66.90 [13:00:39]line = 500.41 [13:00:39]line НДС 12% НСП 1% [13:00:39]line > о реализуемом товаре [13:00:39]line ОКРУГЛЕНИЕ: -0.41 [13:00:39]line ИТОГО: 500.00 [13:00:39]line Внесено: 500.00 [13:00:39]line СДАЧА: 0.00 [13:00:39]line НСП 1% : 4.43 [13:00:39]line НДС 12% : 53.14 [13:00:39]line Наличными: 500.00 [13:00:39]line Безнал.: 0.00 [13:00:39]line Место: АЗС № 142 "Партнер Нефть" [13:00:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:00:39]line СНО: Общий режим [13:00:39]line Чек 110 26.10.2024 13:00 [13:00:39]line Смена: 512 ФФД: 1.0 [13:00:39]line ЗНМ: 0300000089 [13:00:39]line РНМ: 0000000000091691 [13:00:39]line Версия ККМ: 001 [13:00:39]line ФМ: 0000000000871795 [13:00:39]line ФД: 75118 [13:00:39]line ФПД: 129616810631643 [13:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130043&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75118&fm=129616810631643&tin=02508201610067®Number=0000000000091691&sum=50000 [13:00:40]written 0, free lines is 4095 [13:00:40]Write to MH i2c: 01 00 00 EB 31 1C [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 EB 31 00 00 00 00 00 97 0C C6 [13:00:40]RasterBufferAndPrint [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]written 0, free lines is 3227 [13:00:40]MH_Cut [13:00:40]Write to MH i2c: D1 01 00 F2 31 01 F5 [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 01 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 01 00 F2 31 00 F4 [13:00:40]Write to MH i2c: 01 00 00 F3 31 24 [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:41]*** Cut start [13:00:41]*** Partial cut [13:00:41]*** CUTSNS_PIN = 1 [13:00:41]*** CUTSNS_PIN = 0 [13:00:41]*** Brake cut motor [13:00:42]Read from MH i2c: 01 [13:00:42]MH_I2C_Read... [13:00:42]*** Stop cut motor [13:00:42]*** Cut end [13:00:42]Read from MH i2c: 01 07 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: 01 07 00 F3 31 00 00 00 00 00 FF 0F 39 [13:00:42]process_action close_receipt done [13:00:42]requested_data is exist [13:00:42]produce_requested_data [13:00:42]requested_item fm.sn is exist - process it [13:00:42]wFMCommunicate request_size=4 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 11 00 00 [13:00:42]Write to MH i2c: E2 08 00 F4 31 80 11 00 00 00 00 00 00 9F [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 17 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 17 00 F4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F7 [13:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:00:42]wFMCommunicate OK [13:00:42]requested_item fd.num is exist - process it [13:00:42]SAM_PROTO_GetFieldsCounters [13:00:42]wFMCommunicate request_size=4 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 13 00 00 [13:00:42]Write to MH i2c: E2 08 00 F5 31 80 13 00 00 00 00 00 00 A2 [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 62 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 62 00 F5 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6E 25 01 00 0E 04 04 00 00 02 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 A9 [13:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6E 25 01 00 0E 04 04 00 00 02 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 [13:00:42]wFMCommunicate OK [13:00:42]SAM_PROTO_GetFieldsCounters done [13:00:42]requested_item shift.num is exist - process it [13:00:42]requested_item shift.opened is exist - process it [13:00:42]req_shift_opened [13:00:42]FM_GetShiftState [13:00:42]SAM_PROTO_GetShiftState [13:00:42]wFMCommunicate request_size=4 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 13 01 00 [13:00:42]Write to MH i2c: E2 08 00 F6 31 80 13 01 00 00 00 00 00 A4 [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 0E 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 0E 00 F6 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BF [13:00:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:00:42]wFMCommunicate OK [13:00:42]SAM_PROTO_GetShiftState done [13:00:42]FM_GetShiftState done [13:00:42]req_shift_opened done [13:00:42]requested_item shift.open_date is exist - process it [13:00:42]req_shift_open_date [13:00:42]req_shift_open_date done [13:00:42]produce_requested_data done [13:00:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75118,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:00:42]process_action_free close_receipt [13:00:42]json_value_free [13:00:42]json_value_free done [13:00:42]process_json_proto returns [13:00:42]Send response to host [13:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75118,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:00:42]free response buf [13:00:42]execute_script done [13:00:42]execute_script returns [13:00:42]free content buf [13:00:42]Sock 10.Close socket [13:00:42]Sock 10.Thread stoped [13:01:42]ConnectInit Can't connect to host [13:01:42]CommunicateWithHost connect error [13:01:42]CommunicateWithHost err = -1 [13:01:42]OFD Sender: Server communicate error [13:01:42]OFD Sender: Processing packet 75117 [packets to send 14, broken 12] [13:01:42]ProducePacketName [13:01:42]name=ofd_packets/00075117 [13:01:42]OFD Sender: To server: pG, [13:01:42]CommunicateWithHost lk.salyk.kg:30040 [13:01:42]ConnectInit lk.salyk.kg [13:01:43]Connected sock=8 [13:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 FB 8F 07 01 F6 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 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 6D 00 00 00 F4 03 04 00 9D E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6D 25 01 00 35 04 06 00 9D DC 3F 4B 43 81 38 E1 AE BD B7 FD E3 37 [13:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B4 42 47 00 C7 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 38 37 31 37 39 35 10 04 04 00 6D 25 01 00 F4 03 04 00 B5 8F 1C 67 B6 04 01 00 00 B2 BC EF 6E B4 A3 2D 86 [13:01:43]CommunicateWithHost err = 0 [13:01:43]CheckOFDResponse [13:01:43]1017 (14) - 77093643461234 [13:01:43]1041 (16) - 0000000000871795 [13:01:43]1040 (4) - 75117 [13:01:43]1012 (4) - 26.10.2024 06:44 [13:01:43]1206 (1) - 0 [13:01:43]OFD Sender: Remove packet 75117 [13:01:43]ProducePacketName [13:01:43]name=ofd_packets/00075117 [13:01:43]NVStorageDeleteData [13:01:43]OFD Sender: Processing packet 75118 [packets to send 13, broken 12] [13:01:43]ProducePacketName [13:01:43]name=ofd_packets/00075118 [13:01:43]OFD Sender: To server: pG, [13:01:43]CommunicateWithHost lk.salyk.kg:30040 [13:01:43]ConnectInit lk.salyk.kg [13:01:43]Connected sock=8 [13:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AA F3 07 01 61 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 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 6E 00 00 00 F4 03 04 00 FB E7 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6E 25 01 00 35 04 06 00 75 E2 C3 F4 61 DB 67 48 3C 34 15 38 FC CB [13:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 25 7F 47 00 5E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6E 25 01 00 F4 03 04 00 B6 8F 1C 67 B6 04 01 00 00 CC 6F 17 38 CF 60 76 B6 [13:01:44]CommunicateWithHost err = 0 [13:01:44]CheckOFDResponse [13:01:44]1017 (14) - 77093643461234 [13:01:44]1041 (16) - 0000000000871795 [13:01:44]1040 (4) - 75118 [13:01:44]1012 (4) - 26.10.2024 06:44 [13:01:44]1206 (1) - 0 [13:01:44]OFD Sender: Remove packet 75118 [13:01:44]ProducePacketName [13:01:44]name=ofd_packets/00075118 [13:01:44]NVStorageDeleteData [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:53]accept exits with 9 [13:01:53]New connection [13:01:53]New thread 3066781028 created [13:01:53]Thread 3066924388 joined [13:01:53]Waiting for new connection... [13:01:53] Sock 9.Parse request [13:01:53]Sock 9.Check first char [13:01:53]Sock 9.First char is OK [13:01:53]request: POST /json_proto HTTP/1.0 [13:01:53]Method: POST [13:01:53]URL: /json_proto [13:01:53]Method is POST - this is cgi request [13:01:53]url: /json_proto [13:01:53]query_string will be loaded in cgi processing [13:01:53]execute_cgi json_proto POST (null) [13:01:53]execute_cgi path=json_proto method=POST [13:01:53]POST find Content-Length [13:01:53]Host: 172.17.39.131:8080 [13:01:53]Content-Length: 677 [13:01:53]Content-Type: application/json [13:01:53] [13:01:53]POST finish read [13:01:53]Found Content-Length = 677 [13:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:53]execute_script... [13: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)191092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:53]POST & json_proto [13:01:53]process_json_proto [13:01:53]json parsed OK: [13:01:53]protocol is kg_v1.0 [13:01:53]action value=close_receipt [13:01:53]process_action close_receipt [13:01:53]cmd_close_receipt [13:01:53]MH_GetDate [13:01:53]Write to MH i2c: F0 00 00 F7 31 17 [13:01:53]Write i2c OK [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 09 00 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 09 00 F7 31 00 46 E8 1C 67 86 57 24 65 37 [13:01:53]GetLastDocTimeStamp 1729947643 [13:01:53]current date 1729947718 [13:01:53]FM_GetShiftState [13:01:53]SAM_PROTO_GetShiftState [13:01:53]wFMCommunicate request_size=4 [13:01:53]MH_SAM_APDU [13:01:53]CAPDU: 80 13 01 00 [13:01:53]Write to MH i2c: E2 08 00 F8 31 80 13 01 00 00 00 00 00 A6 [13:01:53]Write i2c OK [13:01:53]MH_I2C_Read... [13:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:53]Read from MH i2c: E2 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 F8 31 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C1 [13:01:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:01:53]wFMCommunicate OK [13:01:53]SAM_PROTO_GetShiftState done [13:01:53]FM_GetShiftState done [13:01:53]opened in 1729902166 [13:01:53]opened+sec_in_day 1729988566 [13:01:53]quantity*price = 27027 [13:01:53]sum+1 = 27029 [13:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 111 26.10.2024 13:01 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75119 ФПД: 254806396478919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130158&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75119&fm=254806396478919&tin=02508201610067®Number=0000000000091691&sum=27000 [13:01:54]StoreToDocumentArchive [13:01:54]shift 512 fd 75119 [13:01:54]save to /storage/0512/doc_00075119 [13:01:54]save last doc name /storage/0512/doc_00075119 to /storage/kkm_last_doc_name [13:01:54]save OK [13:01:54]Clear old archive folders... [13:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:54]tlvbuf is B6ED3790 [13:01:54]SAM_PROTO_ClearQueue [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 09 00 00 [13:01:54]Write to MH i2c: E2 08 00 05 32 80 09 00 00 00 00 00 00 A9 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_ClearQueue done [13:01:54]KKMCreateOFDPacket [13:01:54]OFDProtocolAddRootSTLVToBuf [13:01:54]FM_MakeSignedData [13:01:54]FM_MakeSignedData [13:01:54]SAM_PROTO_SignData [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 01 02 [13:01:54]Write to MH i2c: E2 08 00 06 32 80 0D 01 02 00 00 00 00 B1 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=255 [13:01:54]MH_SAM_APDU [13: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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 46 E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6F 25 01 00 35 04 06 00 E7 [13:01:54]Write to MH i2c: E2 02 01 07 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 46 E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6F 25 01 00 35 04 06 00 E7 00 00 61 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]OFD Sender: No OFD packet to send [13:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=10 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 02 02 05 BE BC BF A5 C7 [13:01:54]Write to MH i2c: E2 0D 00 08 32 80 0D 02 02 05 00 BE BC BF A5 C7 00 00 63 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 03 02 [13:01:54]Write to MH i2c: E2 08 00 09 32 80 0D 03 02 00 00 00 00 B6 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:55]Read from MH i2c: E2 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: E2 0B 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: E2 0B 00 09 32 00 C6 B4 48 CC BA AF FC F4 90 00 9E [13:01:55]RAPDU: C6 B4 48 CC BA AF FC F4 90 00 [13:01:55]wFMCommunicate OK [13:01:55]SAM_PROTO_SignData done [13:01:55]FM_MakeSignedData done [13:01:55]CreateOFDProtocolMessage [13:01:55]wFMCommunicate request_size=4 [13:01:55]MH_SAM_APDU [13:01:55]CAPDU: 80 11 00 00 [13:01:55]Write to MH i2c: E2 08 00 0A 32 80 11 00 00 00 00 00 00 B6 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:55]Read from MH i2c: E2 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: E2 17 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: E2 17 00 0A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0E [13:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:01:55]wFMCommunicate OK [13:01:55]CreateOFDProtocolMessage done [13:01:55]OFDSenderStorePacket 75119 [13:01:55]StoreOFDPacket docnum=75119 [13:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 02 3B 07 01 19 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 46 E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6F 25 01 00 35 04 06 00 E7 BE BC BF A5 C7 C6 B4 48 CC BA AF FC F4 [13:01:55]CheckFolder [13:01:55]dirname=/storage/ofd_packets [13:01:55]CheckFolder done [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00075119 [13:01:55]NVStorageSaveData ofd_packets/00075119 [13:01:55]File name is /storage/ofd_packets/00075119 [13:01:55]Write 301 bytes [13:01:55]NVStorageSaveData done [13:01:55]OFDSenderStorePacket done [13:01:55]KKMCreateOFDPacket done [13:01:55]NVStorageSaveData kkm_last_timestamp [13:01:55]File name is /storage/kkm_last_timestamp [13:01:55]Write 4 bytes [13:01:55]NVStorageSaveData done [13:01:55]ExternCall_PrintAddStr [13:01:55]wPrintStart [13:01:55]Write to MH i2c: 01 00 00 0B 32 3D [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 0B 32 00 00 00 00 00 FF 0F 52 [13:01:55]RasterBufferAndPrint [13:01:55]line Счет N : (1)191092 [13:01:55]line ИНН: 02508201610067 [13:01:55]line Контрольно-Кассовый Чек [13:01:55]line ПРОДАЖА [13:01:55]line ТРК (МРК, ГНК) : 21 [13:01:55]line Товар: 2710124130 [13:01:55]line Аи-92-К-5 [13:01:55]line 4.040 * 66.90 [13:01:55]line = 270.28 [13:01:55]line НДС 12% НСП 1% [13:01:55]line > о реализуемом товаре [13:01:55]line ОКРУГЛЕНИЕ: -0.28 [13:01:55]line ИТОГО: 270.00 [13:01:55]line Внесено: 270.00 [13:01:55]line СДАЧА: 0.00 [13:01:55]line НСП 1% : 2.39 [13:01:55]line НДС 12% : 28.70 [13:01:55]line Наличными: 270.00 [13:01:55]line Безнал.: 0.00 [13:01:55]line Место: АЗС № 142 "Партнер Нефть" [13:01:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:01:55]line СНО: Общий режим [13:01:55]line Чек 111 26.10.2024 13:01 [13:01:55]line Смена: 512 ФФД: 1.0 [13:01:55]line ЗНМ: 0300000089 [13:01:55]line РНМ: 0000000000091691 [13:01:55]line Версия ККМ: 001 [13:01:55]line ФМ: 0000000000871795 [13:01:55]line ФД: 75119 [13:01:55]line ФПД: 254806396478919 [13:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130158&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75119&fm=254806396478919&tin=02508201610067®Number=0000000000091691&sum=27000 [13:01:55]OFD Sender: Processing packet 75119 [packets to send 13, broken 12] [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00075119 [13:01:55]OFD Sender: To server: pG, [13:01:55]CommunicateWithHost lk.salyk.kg:30040 [13:01:55]ConnectInit lk.salyk.kg [13:01:55]written 0, free lines is 4095 [13:01:55]Connected sock=10 [13:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 02 3B 07 01 19 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 46 E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6F 25 01 00 35 04 06 00 E7 BE BC BF A5 C7 C6 B4 48 CC BA AF FC F4 [13:01:55]Write to MH i2c: 01 00 00 36 32 68 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 36 32 00 00 00 00 00 9B 0C 16 [13:01:55]RasterBufferAndPrint [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]written 0, free lines is 3236 [13:01:55]MH_Cut [13:01:55]Write to MH i2c: D1 01 00 3D 32 01 41 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 01 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 01 00 3D 32 00 40 [13:01:55]Write to MH i2c: 01 00 00 3E 32 70 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 13 34 47 00 5B EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 6F 25 01 00 F4 03 04 00 C2 8F 1C 67 B6 04 01 00 00 4D 89 27 79 A6 81 89 7E [13:01:55]CommunicateWithHost err = 0 [13:01:55]CheckOFDResponse [13:01:55]1017 (14) - 77093643461234 [13:01:55]1041 (16) - 0000000000871795 [13:01:55]1040 (4) - 75119 [13:01:55]1012 (4) - 26.10.2024 06:44 [13:01:55]1206 (1) - 0 [13:01:55]OFD Sender: Remove packet 75119 [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00075119 [13:01:55]NVStorageDeleteData [13:01:56]OFD Sender: No OFD packet to send [13:01:56]*** Cut start [13:01:56]*** Partial cut [13:01:56]*** CUTSNS_PIN = 1 [13:01:56]*** CUTSNS_PIN = 0 [13:01:57]*** Brake cut motor [13:01:57]Read from MH i2c: 01 [13:01:57]MH_I2C_Read... [13:01:57]*** Stop cut motor [13:01:57]*** Cut end [13:01:57]Read from MH i2c: 01 07 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: 01 07 00 3E 32 00 00 00 00 00 FF 0F 85 [13:01:57]process_action close_receipt done [13:01:57]requested_data is exist [13:01:57]produce_requested_data [13:01:57]requested_item fm.sn is exist - process it [13:01:57]wFMCommunicate request_size=4 [13:01:57]MH_SAM_APDU [13:01:57]CAPDU: 80 11 00 00 [13:01:57]Write to MH i2c: E2 08 00 3F 32 80 11 00 00 00 00 00 00 EB [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:57]Read from MH i2c: E2 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 17 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 17 00 3F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 43 [13:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:01:57]wFMCommunicate OK [13:01:57]requested_item fd.num is exist - process it [13:01:57]SAM_PROTO_GetFieldsCounters [13:01:57]wFMCommunicate request_size=4 [13:01:57]MH_SAM_APDU [13:01:57]CAPDU: 80 13 00 00 [13:01:57]Write to MH i2c: E2 08 00 40 32 80 13 00 00 00 00 00 00 EE [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:57]Read from MH i2c: E2 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 62 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 62 00 40 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6F 25 01 00 0E 04 04 00 00 02 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 F9 [13:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 6F 25 01 00 0E 04 04 00 00 02 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 [13:01:57]wFMCommunicate OK [13:01:57]SAM_PROTO_GetFieldsCounters done [13:01:57]requested_item shift.num is exist - process it [13:01:57]requested_item shift.opened is exist - process it [13:01:57]req_shift_opened [13:01:57]FM_GetShiftState [13:01:57]SAM_PROTO_GetShiftState [13:01:57]wFMCommunicate request_size=4 [13:01:57]MH_SAM_APDU [13:01:57]CAPDU: 80 13 01 00 [13:01:57]Write to MH i2c: E2 08 00 41 32 80 13 01 00 00 00 00 00 F0 [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:57]Read from MH i2c: E2 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 0E 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 0E 00 41 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0B [13:01:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:01:57]wFMCommunicate OK [13:01:57]SAM_PROTO_GetShiftState done [13:01:57]FM_GetShiftState done [13:01:57]req_shift_opened done [13:01:57]requested_item shift.open_date is exist - process it [13:01:57]req_shift_open_date [13:01:57]req_shift_open_date done [13:01:57]produce_requested_data done [13:01:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75119,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:01:57]process_action_free close_receipt [13:01:57]json_value_free [13:01:57]json_value_free done [13:01:57]process_json_proto returns [13:01:57]Send response to host [13:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75119,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:01:57]free response buf [13:01:57]execute_script done [13:01:57]execute_script returns [13:01:57]free content buf [13:01:57]Sock 9.Close socket [13:01:57]Sock 9.Thread stoped [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:33]accept exits with 8 [13:03:33]New connection [13:03:33]New thread 3066924388 created [13:03:33]Thread 3066781028 joined [13:03:33]Waiting for new connection... [13:03:33] Sock 8.Parse request [13:03:33]Sock 8.Check first char [13:03:33]Sock 8.First char is OK [13:03:33]request: POST /json_proto HTTP/1.0 [13:03:33]Method: POST [13:03:33]URL: /json_proto [13:03:33]Method is POST - this is cgi request [13:03:33]url: /json_proto [13:03:33]query_string will be loaded in cgi processing [13:03:33]execute_cgi json_proto POST (null) [13:03:33]execute_cgi path=json_proto method=POST [13:03:33]POST find Content-Length [13:03:33]Host: 172.17.39.131:8080 [13:03:33]Content-Length: 677 [13:03:33]Content-Type: application/json [13:03:33] [13:03:33]POST finish read [13:03:33]Found Content-Length = 677 [13:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:03:33]execute_script... [13:03: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)191093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:03:33]POST & json_proto [13:03:33]process_json_proto [13:03:33]json parsed OK: [13:03:33]protocol is kg_v1.0 [13:03:33]action value=close_receipt [13:03:33]process_action close_receipt [13:03:33]cmd_close_receipt [13:03:33]MH_GetDate [13:03:33]Write to MH i2c: F0 00 00 42 32 63 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 09 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 09 00 42 32 00 AA E8 1C 67 86 57 24 65 E7 [13:03:33]GetLastDocTimeStamp 1729947718 [13:03:33]current date 1729947818 [13:03:33]FM_GetShiftState [13:03:33]SAM_PROTO_GetShiftState [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 01 00 [13:03:33]Write to MH i2c: E2 08 00 43 32 80 13 01 00 00 00 00 00 F2 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 0E 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 0E 00 43 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0D [13:03:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:03:34]wFMCommunicate OK [13:03:34]SAM_PROTO_GetShiftState done [13:03:34]FM_GetShiftState done [13:03:34]opened in 1729902166 [13:03:34]opened+sec_in_day 1729988566 [13:03:34]quantity*price = 30038 [13:03:34]sum+1 = 30039 [13:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 112 26.10.2024 13:03 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75120 ФПД: 67321560017192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130338&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75120&fm=67321560017192&tin=02508201610067®Number=0000000000091691&sum=30000 [13:03:35]StoreToDocumentArchive [13:03:35]shift 512 fd 75120 [13:03:35]save to /storage/0512/doc_00075120 [13:03:35]save last doc name /storage/0512/doc_00075120 to /storage/kkm_last_doc_name [13:03:35]save OK [13:03:35]Clear old archive folders... [13:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:35]tlvbuf is B6DA1560 [13:03:35]SAM_PROTO_ClearQueue [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 09 00 00 [13:03:35]Write to MH i2c: E2 08 00 50 32 80 09 00 00 00 00 00 00 F4 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 50 32 00 90 00 F6 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_ClearQueue done [13:03:35]KKMCreateOFDPacket [13:03:35]OFDProtocolAddRootSTLVToBuf [13:03:35]FM_MakeSignedData [13:03:35]FM_MakeSignedData [13:03:35]SAM_PROTO_SignData [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 0D 01 02 [13:03:35]Write to MH i2c: E2 08 00 51 32 80 0D 01 02 00 00 00 00 FC [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]wFMCommunicate request_size=255 [13:03:35]MH_SAM_APDU [13:03: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 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 70 00 00 00 F4 03 04 00 AA E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 70 25 01 00 35 04 06 00 3D [13:03:35]Write to MH i2c: E2 02 01 52 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 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 70 00 00 00 F4 03 04 00 AA E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 70 25 01 00 35 04 06 00 3D 00 00 DF [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 52 32 00 90 00 F8 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]wFMCommunicate request_size=10 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 0D 02 02 05 3A 85 AB A9 28 [13:03:35]Write to MH i2c: E2 0D 00 53 32 80 0D 02 02 05 00 3A 85 AB A9 28 00 00 44 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 53 32 00 90 00 F9 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 0D 03 02 [13:03:35]Write to MH i2c: E2 08 00 54 32 80 0D 03 02 00 00 00 00 01 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0B 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0B 00 54 32 00 2A 02 19 17 0C 08 F0 92 90 00 F4 [13:03:35]RAPDU: 2A 02 19 17 0C 08 F0 92 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_SignData done [13:03:35]FM_MakeSignedData done [13:03:35]CreateOFDProtocolMessage [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 11 00 00 [13:03:35]Write to MH i2c: E2 08 00 55 32 80 11 00 00 00 00 00 00 01 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 55 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 59 [13:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:03:35]wFMCommunicate OK [13:03:35]CreateOFDProtocolMessage done [13:03:35]OFDSenderStorePacket 75120 [13:03:35]StoreOFDPacket docnum=75120 [13:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 58 37 07 01 A4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 AA E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 70 25 01 00 35 04 06 00 3D 3A 85 AB A9 28 2A 02 19 17 0C 08 F0 92 [13:03:35]CheckFolder [13:03:35]dirname=/storage/ofd_packets [13:03:35]CheckFolder done [13:03:35]ProducePacketName [13:03:35]name=ofd_packets/00075120 [13:03:35]NVStorageSaveData ofd_packets/00075120 [13:03:35]File name is /storage/ofd_packets/00075120 [13:03:35]Write 301 bytes [13:03:35]NVStorageSaveData done [13:03:35]OFDSenderStorePacket done [13:03:35]KKMCreateOFDPacket done [13:03:35]NVStorageSaveData kkm_last_timestamp [13:03:35]File name is /storage/kkm_last_timestamp [13:03:35]Write 4 bytes [13:03:35]NVStorageSaveData done [13:03:35]ExternCall_PrintAddStr [13:03:35]wPrintStart [13:03:35]Write to MH i2c: 01 00 00 56 32 88 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 07 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 07 00 56 32 00 00 00 00 00 FF 0F 9D [13:03:35]RasterBufferAndPrint [13:03:35]line Счет N : (1)191093 [13:03:35]line ИНН: 02508201610067 [13:03:35]line Контрольно-Кассовый Чек [13:03:35]line ПРОДАЖА [13:03:35]line ТРК (МРК, ГНК) : 21 [13:03:35]line Товар: 2710124130 [13:03:35]line Аи-92-К-5 [13:03:35]line 4.490 * 66.90 [13:03:35]line = 300.38 [13:03:35]line НДС 12% НСП 1% [13:03:35]line > о реализуемом товаре [13:03:35]line ОКРУГЛЕНИЕ: -0.38 [13:03:35]line ИТОГО: 300.00 [13:03:35]line Внесено: 300.00 [13:03:35]line СДАЧА: 0.00 [13:03:35]line НСП 1% : 2.66 [13:03:35]line НДС 12% : 31.90 [13:03:35]line Наличными: 300.00 [13:03:35]line Безнал.: 0.00 [13:03:35]line Место: АЗС № 142 "Партнер Нефть" [13:03:35]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:03:35]line СНО: Общий режим [13:03:35]line Чек 112 26.10.2024 13:03 [13:03:35]line Смена: 512 ФФД: 1.0 [13:03:35]line ЗНМ: 0300000089 [13:03:35]line РНМ: 0000000000091691 [13:03:35]line Версия ККМ: 001 [13:03:35]line ФМ: 0000000000871795 [13:03:35]line ФД: 75120 [13:03:35]line ФПД: 67321560017192 [13:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130338&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75120&fm=67321560017192&tin=02508201610067®Number=0000000000091691&sum=30000 [13:03:36]written 0, free lines is 4095 [13:03:36]OFD Sender: Processing packet 75120 [packets to send 13, broken 12] [13:03:36]ProducePacketName [13:03:36]name=ofd_packets/00075120 [13:03:36]OFD Sender: To server: pG, [13:03:36]CommunicateWithHost lk.salyk.kg:30040 [13:03:36]ConnectInit lk.salyk.kg [13:03:36]Write to MH i2c: 01 00 00 81 32 B3 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 07 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 07 00 81 32 00 00 00 00 00 95 0C 5B [13:03:36]RasterBufferAndPrint [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]written 0, free lines is 3225 [13:03:36]MH_Cut [13:03:36]Write to MH i2c: D1 01 00 88 32 01 8C [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 01 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 01 00 88 32 00 8B [13:03:36]Write to MH i2c: 01 00 00 89 32 BB [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:37]*** Cut start [13:03:37]*** Partial cut [13:03:37]*** CUTSNS_PIN = 1 [13:03:37]*** CUTSNS_PIN = 0 [13:03:37]*** Brake cut motor [13:03:37]Read from MH i2c: 01 [13:03:37]MH_I2C_Read... [13:03:37]*** Stop cut motor [13:03:37]*** Cut end [13:03:37]Read from MH i2c: 01 07 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 89 32 00 00 00 00 00 FF 0F D0 [13:03:37]process_action close_receipt done [13:03:37]requested_data is exist [13:03:37]produce_requested_data [13:03:37]requested_item fm.sn is exist - process it [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 11 00 00 [13:03:37]Write to MH i2c: E2 08 00 8A 32 80 11 00 00 00 00 00 00 36 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 17 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 17 00 8A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8E [13:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:03:38]wFMCommunicate OK [13:03:38]requested_item fd.num is exist - process it [13:03:38]SAM_PROTO_GetFieldsCounters [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 13 00 00 [13:03:38]Write to MH i2c: E2 08 00 8B 32 80 13 00 00 00 00 00 00 39 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 62 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 62 00 8B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 70 25 01 00 0E 04 04 00 00 02 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 48 [13:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 70 25 01 00 0E 04 04 00 00 02 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 [13:03:38]wFMCommunicate OK [13:03:38]SAM_PROTO_GetFieldsCounters done [13:03:38]requested_item shift.num is exist - process it [13:03:38]requested_item shift.opened is exist - process it [13:03:38]req_shift_opened [13:03:38]FM_GetShiftState [13:03:38]SAM_PROTO_GetShiftState [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 13 01 00 [13:03:38]Write to MH i2c: E2 08 00 8C 32 80 13 01 00 00 00 00 00 3B [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 0E 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 0E 00 8C 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 56 [13:03:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:03:38]wFMCommunicate OK [13:03:38]SAM_PROTO_GetShiftState done [13:03:38]FM_GetShiftState done [13:03:38]req_shift_opened done [13:03:38]requested_item shift.open_date is exist - process it [13:03:38]req_shift_open_date [13:03:38]req_shift_open_date done [13:03:38]produce_requested_data done [13:03:38]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75120,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:03:38]process_action_free close_receipt [13:03:38]json_value_free [13:03:38]json_value_free done [13:03:38]process_json_proto returns [13:03:38]Send response to host [13:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75120,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:03:38]free response buf [13:03:38]execute_script done [13:03:38]execute_script returns [13:03:38]free content buf [13:03:38]Sock 8.Close socket [13:03:38]Sock 8.Thread stoped [13:05:48]ConnectInit Can't connect to host [13:05:48]CommunicateWithHost connect error [13:05:48]CommunicateWithHost err = -1 [13:05:48]OFD Sender: Server communicate error [13:05:53]OFD Sender: Processing packet 75120 [packets to send 13, broken 12] [13:05:53]ProducePacketName [13:05:53]name=ofd_packets/00075120 [13:05:53]OFD Sender: To server: pG, [13:05:53]CommunicateWithHost lk.salyk.kg:30040 [13:05:53]ConnectInit lk.salyk.kg [13:05:53]Connected sock=8 [13:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 58 37 07 01 A4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 AA E8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 70 25 01 00 35 04 06 00 3D 3A 85 AB A9 28 2A 02 19 17 0C 08 F0 92 [13:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 07 19 47 00 23 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 70 25 01 00 F4 03 04 00 B0 90 1C 67 B6 04 01 00 00 B2 2F 56 C3 10 4E DB 03 [13:05:53]CommunicateWithHost err = 0 [13:05:53]CheckOFDResponse [13:05:53]1017 (14) - 77093643461234 [13:05:53]1041 (16) - 0000000000871795 [13:05:53]1040 (4) - 75120 [13:05:53]1012 (4) - 26.10.2024 06:48 [13:05:53]1206 (1) - 0 [13:05:53]OFD Sender: Remove packet 75120 [13:05:53]ProducePacketName [13:05:53]name=ofd_packets/00075120 [13:05:53]NVStorageDeleteData [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]accept exits with 9 [13:06:29]New connection [13:06:29]New thread 3066781028 created [13:06:29]Thread 3066924388 joined [13:06:29]Waiting for new connection... [13:06:29] Sock 9.Parse request [13:06:29]Sock 9.Check first char [13:06:29]Sock 9.First char is OK [13:06:29]request: POST /json_proto HTTP/1.0 [13:06:29]Method: POST [13:06:29]URL: /json_proto [13:06:29]Method is POST - this is cgi request [13:06:29]url: /json_proto [13:06:29]query_string will be loaded in cgi processing [13:06:29]execute_cgi json_proto POST (null) [13:06:29]execute_cgi path=json_proto method=POST [13:06:29]POST find Content-Length [13:06:29]Host: 172.17.39.131:8080 [13:06:29]Content-Length: 677 [13:06:29]Content-Type: application/json [13:06:29] [13:06:29]POST finish read [13:06:29]Found Content-Length = 677 [13:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06:29]execute_script... [13: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)191094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:06:29]POST & json_proto [13:06:29]process_json_proto [13:06:29]json parsed OK: [13:06:29]protocol is kg_v1.0 [13:06:29]action value=close_receipt [13:06:29]process_action close_receipt [13:06:29]cmd_close_receipt [13:06:29]MH_GetDate [13:06:29]Write to MH i2c: F0 00 00 8D 32 AE [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 09 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 09 00 8D 32 00 5A E9 1C 67 86 57 24 65 E3 [13:06:29]GetLastDocTimeStamp 1729947818 [13:06:29]current date 1729947994 [13:06:29]FM_GetShiftState [13:06:29]SAM_PROTO_GetShiftState [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 13 01 00 [13:06:29]Write to MH i2c: E2 08 00 8E 32 80 13 01 00 00 00 00 00 3D [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0E 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0E 00 8E 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 58 [13:06:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:06:29]wFMCommunicate OK [13:06:29]SAM_PROTO_GetShiftState done [13:06:29]FM_GetShiftState done [13:06:29]opened in 1729902166 [13:06:29]opened+sec_in_day 1729988566 [13:06:29]quantity*price = 40006 [13:06:29]sum+1 = 40007 [13:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 113 26.10.2024 13:06 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75121 ФПД: 113780329234220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130634&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75121&fm=113780329234220&tin=02508201610067®Number=0000000000091691&sum=40000 [13:06:30]StoreToDocumentArchive [13:06:30]shift 512 fd 75121 [13:06:30]save to /storage/0512/doc_00075121 [13:06:30]save last doc name /storage/0512/doc_00075121 to /storage/kkm_last_doc_name [13:06:30]save OK [13:06:30]Clear old archive folders... [13:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:30]tlvbuf is B6F515D0 [13:06:30]SAM_PROTO_ClearQueue [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 09 00 00 [13:06:30]Write to MH i2c: E2 08 00 9B 32 80 09 00 00 00 00 00 00 3F [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 9B 32 00 90 00 41 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_ClearQueue done [13:06:30]KKMCreateOFDPacket [13:06:30]OFDProtocolAddRootSTLVToBuf [13:06:30]FM_MakeSignedData [13:06:30]FM_MakeSignedData [13:06:30]SAM_PROTO_SignData [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 01 02 [13:06:30]Write to MH i2c: E2 08 00 9C 32 80 0D 01 02 00 00 00 00 47 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 9C 32 00 90 00 42 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=255 [13:06:30]MH_SAM_APDU [13:06: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 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 71 00 00 00 F4 03 04 00 5A E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 71 25 01 00 35 04 06 00 67 [13:06:30]Write to MH i2c: E2 02 01 9D 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 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 71 00 00 00 F4 03 04 00 5A E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 71 25 01 00 35 04 06 00 67 00 00 E2 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 9D 32 00 90 00 43 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=10 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 02 02 05 7B 8C 1B 3F 2C [13:06:30]Write to MH i2c: E2 0D 00 9E 32 80 0D 02 02 05 00 7B 8C 1B 3F 2C 00 00 E1 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 9E 32 00 90 00 44 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 03 02 [13:06:30]Write to MH i2c: E2 08 00 9F 32 80 0D 03 02 00 00 00 00 4C [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0B 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0B 00 9F 32 00 FD C1 D2 F0 7F 0B 69 C5 90 00 85 [13:06:30]RAPDU: FD C1 D2 F0 7F 0B 69 C5 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_SignData done [13:06:30]FM_MakeSignedData done [13:06:30]CreateOFDProtocolMessage [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 11 00 00 [13:06:30]Write to MH i2c: E2 08 00 A0 32 80 11 00 00 00 00 00 00 4C [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 A0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A4 [13:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:06:31]wFMCommunicate OK [13:06:31]CreateOFDProtocolMessage done [13:06:31]OFDSenderStorePacket 75121 [13:06:31]StoreOFDPacket docnum=75121 [13:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 61 13 07 01 11 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 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 71 00 00 00 F4 03 04 00 5A E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 71 25 01 00 35 04 06 00 67 7B 8C 1B 3F 2C FD C1 D2 F0 7F 0B 69 C5 [13:06:31]CheckFolder [13:06:31]dirname=/storage/ofd_packets [13:06:31]CheckFolder done [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00075121 [13:06:31]NVStorageSaveData ofd_packets/00075121 [13:06:31]File name is /storage/ofd_packets/00075121 [13:06:31]Write 301 bytes [13:06:31]NVStorageSaveData done [13:06:31]OFDSenderStorePacket done [13:06:31]KKMCreateOFDPacket done [13:06:31]NVStorageSaveData kkm_last_timestamp [13:06:31]File name is /storage/kkm_last_timestamp [13:06:31]Write 4 bytes [13:06:31]NVStorageSaveData done [13:06:31]ExternCall_PrintAddStr [13:06:31]wPrintStart [13:06:31]Write to MH i2c: 01 00 00 A1 32 D3 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 A1 32 00 00 00 00 00 FF 0F E8 [13:06:31]RasterBufferAndPrint [13:06:31]line Счет N : (1)191094 [13:06:31]line ИНН: 02508201610067 [13:06:31]line Контрольно-Кассовый Чек [13:06:31]line ПРОДАЖА [13:06:31]line ТРК (МРК, ГНК) : 21 [13:06:31]line Товар: 2710124130 [13:06:31]line Аи-92-К-5 [13:06:31]line 5.980 * 66.90 [13:06:31]line = 400.06 [13:06:31]line НДС 12% НСП 1% [13:06:31]line > о реализуемом товаре [13:06:31]line ОКРУГЛЕНИЕ: -0.06 [13:06:31]line ИТОГО: 400.00 [13:06:31]line Внесено: 400.00 [13:06:31]line СДАЧА: 0.00 [13:06:31]line НСП 1% : 3.54 [13:06:31]line НДС 12% : 42.48 [13:06:31]line Наличными: 400.00 [13:06:31]line Безнал.: 0.00 [13:06:31]line Место: АЗС № 142 "Партнер Нефть" [13:06:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:06:31]line СНО: Общий режим [13:06:31]line Чек 113 26.10.2024 13:06 [13:06:31]line Смена: 512 ФФД: 1.0 [13:06:31]line ЗНМ: 0300000089 [13:06:31]line РНМ: 0000000000091691 [13:06:31]line Версия ККМ: 001 [13:06:31]line ФМ: 0000000000871795 [13:06:31]line ФД: 75121 [13:06:31]line ФПД: 113780329234220 [13:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130634&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75121&fm=113780329234220&tin=02508201610067®Number=0000000000091691&sum=40000 [13:06:31]OFD Sender: Processing packet 75121 [packets to send 13, broken 12] [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00075121 [13:06:31]OFD Sender: To server: pG, [13:06:31]CommunicateWithHost lk.salyk.kg:30040 [13:06:31]ConnectInit lk.salyk.kg [13:06:31]written 0, free lines is 4095 [13:06:31]Connected sock=10 [13:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 61 13 07 01 11 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 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 71 00 00 00 F4 03 04 00 5A E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 71 25 01 00 35 04 06 00 67 7B 8C 1B 3F 2C FD C1 D2 F0 7F 0B 69 C5 [13:06:31]Write to MH i2c: 01 00 00 CC 32 FE [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 CC 32 00 00 00 00 00 99 0C AA [13:06:31]RasterBufferAndPrint [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]written 0, free lines is 3232 [13:06:31]MH_Cut [13:06:31]Write to MH i2c: D1 01 00 D3 32 01 D7 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 01 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 01 00 D3 32 00 D6 [13:06:31]Write to MH i2c: 01 00 00 D4 32 06 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B4 65 47 00 51 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 71 25 01 00 F4 03 04 00 D6 90 1C 67 B6 04 01 00 00 75 A8 45 F1 D6 15 2A EE [13:06:31]CommunicateWithHost err = 0 [13:06:31]CheckOFDResponse [13:06:31]1017 (14) - 77093643461234 [13:06:31]1041 (16) - 0000000000871795 [13:06:31]1040 (4) - 75121 [13:06:31]1012 (4) - 26.10.2024 06:48 [13:06:31]1206 (1) - 0 [13:06:31]OFD Sender: Remove packet 75121 [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00075121 [13:06:31]NVStorageDeleteData [13:06:32]OFD Sender: No OFD packet to send [13:06:32]*** Cut start [13:06:32]*** Partial cut [13:06:32]*** CUTSNS_PIN = 1 [13:06:32]*** CUTSNS_PIN = 0 [13:06:32]*** Brake cut motor [13:06:33]Read from MH i2c: 01 [13:06:33]MH_I2C_Read... [13:06:33]*** Stop cut motor [13:06:33]*** Cut end [13:06:33]Read from MH i2c: 01 07 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: 01 07 00 D4 32 00 00 00 00 00 FF 0F 1B [13:06:33]process_action close_receipt done [13:06:33]requested_data is exist [13:06:33]produce_requested_data [13:06:33]requested_item fm.sn is exist - process it [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 11 00 00 [13:06:33]Write to MH i2c: E2 08 00 D5 32 80 11 00 00 00 00 00 00 81 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:33]Read from MH i2c: E2 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 17 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 17 00 D5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D9 [13:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:06:33]wFMCommunicate OK [13:06:33]requested_item fd.num is exist - process it [13:06:33]SAM_PROTO_GetFieldsCounters [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 13 00 00 [13:06:33]Write to MH i2c: E2 08 00 D6 32 80 13 00 00 00 00 00 00 84 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:33]Read from MH i2c: E2 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 62 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 62 00 D6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 71 25 01 00 0E 04 04 00 00 02 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 97 [13:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 71 25 01 00 0E 04 04 00 00 02 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 [13:06:33]wFMCommunicate OK [13:06:33]SAM_PROTO_GetFieldsCounters done [13:06:33]requested_item shift.num is exist - process it [13:06:33]requested_item shift.opened is exist - process it [13:06:33]req_shift_opened [13:06:33]FM_GetShiftState [13:06:33]SAM_PROTO_GetShiftState [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 13 01 00 [13:06:33]Write to MH i2c: E2 08 00 D7 32 80 13 01 00 00 00 00 00 86 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:33]Read from MH i2c: E2 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 0E 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 0E 00 D7 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A1 [13:06:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:06:33]wFMCommunicate OK [13:06:33]SAM_PROTO_GetShiftState done [13:06:33]FM_GetShiftState done [13:06:33]req_shift_opened done [13:06:33]requested_item shift.open_date is exist - process it [13:06:33]req_shift_open_date [13:06:33]req_shift_open_date done [13:06:33]produce_requested_data done [13:06:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75121,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:06:33]process_action_free close_receipt [13:06:33]json_value_free [13:06:33]json_value_free done [13:06:33]process_json_proto returns [13:06:33]Send response to host [13:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75121,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:06:33]free response buf [13:06:33]execute_script done [13:06:33]execute_script returns [13:06:33]free content buf [13:06:33]Sock 9.Close socket [13:06:33]Sock 9.Thread stoped [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:19]accept exits with 8 [13:08:19]New connection [13:08:19]New thread 3066924388 created [13:08:19]Thread 3066781028 joined [13:08:19]Waiting for new connection... [13:08:19] Sock 8.Parse request [13:08:19]Sock 8.Check first char [13:08:19]Sock 8.First char is OK [13:08:19]request: POST /json_proto HTTP/1.0 [13:08:19]Method: POST [13:08:19]URL: /json_proto [13:08:19]Method is POST - this is cgi request [13:08:19]url: /json_proto [13:08:19]query_string will be loaded in cgi processing [13:08:19]execute_cgi json_proto POST (null) [13:08:19]execute_cgi path=json_proto method=POST [13:08:19]POST find Content-Length [13:08:19]Host: 172.17.39.131:8080 [13:08:19]Content-Length: 677 [13:08:19]Content-Type: application/json [13:08:19] [13:08:19]POST finish read [13:08:19]Found Content-Length = 677 [13:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:08:19]execute_script... [13:08:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:08:19]POST & json_proto [13:08:19]process_json_proto [13:08:19]json parsed OK: [13:08:19]protocol is kg_v1.0 [13:08:19]action value=close_receipt [13:08:19]process_action close_receipt [13:08:19]cmd_close_receipt [13:08:19]MH_GetDate [13:08:19]Write to MH i2c: F0 00 00 D8 32 F9 [13:08:19]Write i2c OK [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: F0 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: F0 09 00 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: F0 09 00 D8 32 00 C7 E9 1C 67 86 57 24 65 9B [13:08:19]GetLastDocTimeStamp 1729947994 [13:08:19]current date 1729948103 [13:08:19]FM_GetShiftState [13:08:19]SAM_PROTO_GetShiftState [13:08:19]wFMCommunicate request_size=4 [13:08:19]MH_SAM_APDU [13:08:19]CAPDU: 80 13 01 00 [13:08:19]Write to MH i2c: E2 08 00 D9 32 80 13 01 00 00 00 00 00 88 [13:08:19]Write i2c OK [13:08:19]MH_I2C_Read... [13:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:19]Read from MH i2c: E2 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: E2 0E 00 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: E2 0E 00 D9 32 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A3 [13:08:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:08:19]wFMCommunicate OK [13:08:19]SAM_PROTO_GetShiftState done [13:08:19]FM_GetShiftState done [13:08:19]opened in 1729902166 [13:08:19]opened+sec_in_day 1729988566 [13:08:19]quantity*price = 50041 [13:08:19]sum+1 = 50042 [13:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 114 26.10.2024 13:08 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75122 ФПД: 262319940402763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130824&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75122&fm=262319940402763&tin=02508201610067®Number=0000000000091691&sum=50000 [13:08:20]StoreToDocumentArchive [13:08:20]shift 512 fd 75122 [13:08:20]save to /storage/0512/doc_00075122 [13:08:20]save last doc name /storage/0512/doc_00075122 to /storage/kkm_last_doc_name [13:08:20]save OK [13:08:20]Clear old archive folders... [13:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:20]tlvbuf is 007FFD90 [13:08:20]SAM_PROTO_ClearQueue [13:08:20]wFMCommunicate request_size=4 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 09 00 00 [13:08:20]Write to MH i2c: E2 08 00 E6 32 80 09 00 00 00 00 00 00 8A [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [13:08:20]RAPDU: 90 00 [13:08:20]wFMCommunicate OK [13:08:20]SAM_PROTO_ClearQueue done [13:08:20]KKMCreateOFDPacket [13:08:20]OFDProtocolAddRootSTLVToBuf [13:08:20]FM_MakeSignedData [13:08:20]FM_MakeSignedData [13:08:20]SAM_PROTO_SignData [13:08:20]wFMCommunicate request_size=4 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 0D 01 02 [13:08:20]Write to MH i2c: E2 08 00 E7 32 80 0D 01 02 00 00 00 00 92 [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [13:08:20]RAPDU: 90 00 [13:08:20]wFMCommunicate OK [13:08:20]wFMCommunicate request_size=255 [13:08:20]MH_SAM_APDU [13:08: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 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 72 00 00 00 F4 03 04 00 C8 E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 72 25 01 00 35 04 06 00 EE [13:08:20]Write to MH i2c: E2 02 01 E8 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C8 E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 72 25 01 00 35 04 06 00 EE 00 00 55 [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [13:08:20]RAPDU: 90 00 [13:08:20]wFMCommunicate OK [13:08:20]wFMCommunicate request_size=10 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 0D 02 02 05 94 1E DD 7E 4B [13:08:20]Write to MH i2c: E2 0D 00 E9 32 80 0D 02 02 05 00 94 1E DD 7E 4B 00 00 F7 [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 03 00 E9 32 00 90 00 8F [13:08:20]RAPDU: 90 00 [13:08:20]wFMCommunicate OK [13:08:20]wFMCommunicate request_size=4 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 0D 03 02 [13:08:20]Write to MH i2c: E2 08 00 EA 32 80 0D 03 02 00 00 00 00 97 [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 0B 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 0B 00 EA 32 00 3A 62 DD F5 26 B7 80 5F 90 00 C2 [13:08:20]RAPDU: 3A 62 DD F5 26 B7 80 5F 90 00 [13:08:20]wFMCommunicate OK [13:08:20]SAM_PROTO_SignData done [13:08:20]FM_MakeSignedData done [13:08:20]CreateOFDProtocolMessage [13:08:20]wFMCommunicate request_size=4 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 11 00 00 [13:08:20]Write to MH i2c: E2 08 00 EB 32 80 11 00 00 00 00 00 00 97 [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 17 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 17 00 EB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EF [13:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:08:20]wFMCommunicate OK [13:08:20]CreateOFDProtocolMessage done [13:08:20]OFDSenderStorePacket 75122 [13:08:20]StoreOFDPacket docnum=75122 [13:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D2 A0 07 01 99 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 C8 E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 72 25 01 00 35 04 06 00 EE 94 1E DD 7E 4B 3A 62 DD F5 26 B7 80 5F [13:08:20]CheckFolder [13:08:20]dirname=/storage/ofd_packets [13:08:20]CheckFolder done [13:08:20]ProducePacketName [13:08:20]name=ofd_packets/00075122 [13:08:20]NVStorageSaveData ofd_packets/00075122 [13:08:20]File name is /storage/ofd_packets/00075122 [13:08:20]Write 301 bytes [13:08:20]NVStorageSaveData done [13:08:20]OFDSenderStorePacket done [13:08:20]KKMCreateOFDPacket done [13:08:20]NVStorageSaveData kkm_last_timestamp [13:08:20]File name is /storage/kkm_last_timestamp [13:08:20]Write 4 bytes [13:08:20]NVStorageSaveData done [13:08:20]OFD Sender: Processing packet 75122 [packets to send 13, broken 12] [13:08:20]ProducePacketName [13:08:20]name=ofd_packets/00075122 [13:08:20]OFD Sender: To server: pG, [13:08:20]CommunicateWithHost lk.salyk.kg:30040 [13:08:20]ConnectInit lk.salyk.kg [13:08:20]ExternCall_PrintAddStr [13:08:20]wPrintStart [13:08:20]Write to MH i2c: 01 00 00 EC 32 1E [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: 01 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: 01 07 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: 01 07 00 EC 32 00 00 00 00 00 FF 0F 33 [13:08:20]RasterBufferAndPrint [13:08:20]line Счет N : (1)191095 [13:08:20]line ИНН: 02508201610067 [13:08:20]line Контрольно-Кассовый Чек [13:08:20]line ПРОДАЖА [13:08:20]line ТРК (МРК, ГНК) : 21 [13:08:20]line Товар: 2710124130 [13:08:20]line Аи-92-К-5 [13:08:20]line 7.480 * 66.90 [13:08:20]line = 500.41 [13:08:20]line НДС 12% НСП 1% [13:08:20]line > о реализуемом товаре [13:08:20]line ОКРУГЛЕНИЕ: -0.41 [13:08:20]line ИТОГО: 500.00 [13:08:20]line Внесено: 500.00 [13:08:20]line СДАЧА: 0.00 [13:08:20]line НСП 1% : 4.43 [13:08:20]line НДС 12% : 53.14 [13:08:20]line Наличными: 500.00 [13:08:20]line Безнал.: 0.00 [13:08:20]line Место: АЗС № 142 "Партнер Нефть" [13:08:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:08:20]line СНО: Общий режим [13:08:20]line Чек 114 26.10.2024 13:08 [13:08:20]line Смена: 512 ФФД: 1.0 [13:08:20]line ЗНМ: 0300000089 [13:08:20]line РНМ: 0000000000091691 [13:08:20]line Версия ККМ: 001 [13:08:20]line ФМ: 0000000000871795 [13:08:20]line ФД: 75122 [13:08:20]line ФПД: 262319940402763 [13:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130824&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75122&fm=262319940402763&tin=02508201610067®Number=0000000000091691&sum=50000 [13:08:21]Connected sock=11 [13:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D2 A0 07 01 99 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 C8 E9 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 72 25 01 00 35 04 06 00 EE 94 1E DD 7E 4B 3A 62 DD F5 26 B7 80 5F [13:08:21]written 0, free lines is 4095 [13:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E3 CB 47 00 0B 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 72 25 01 00 F4 03 04 00 44 91 1C 67 B6 04 01 00 00 BF 05 56 B8 27 2A 50 2A [13:08:21]CommunicateWithHost err = 0 [13:08:21]CheckOFDResponse [13:08:21]1017 (14) - 77093643461234 [13:08:21]1041 (16) - 0000000000871795 [13:08:21]1040 (4) - 75122 [13:08:21]1012 (4) - 26.10.2024 06:50 [13:08:21]1206 (1) - 0 [13:08:21]OFD Sender: Remove packet 75122 [13:08:21]ProducePacketName [13:08:21]name=ofd_packets/00075122 [13:08:21]NVStorageDeleteData [13:08:21]Write to MH i2c: 01 00 00 17 33 4A [13:08:21]Write i2c OK [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: 01 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: 01 07 00 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: 01 07 00 17 33 00 00 00 00 00 9E 0C FB [13:08:21]RasterBufferAndPrint [13:08:21]line [13:08:21]line [13:08:21]line [13:08:21]line [13:08:21]line [13:08:21]written 0, free lines is 3238 [13:08:21]MH_Cut [13:08:21]Write to MH i2c: D1 01 00 1E 33 01 23 [13:08:21]Write i2c OK [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: D1 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: D1 01 00 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: D1 01 00 1E 33 00 22 [13:08:21]Write to MH i2c: 01 00 00 1F 33 52 [13:08:21]Write i2c OK [13:08:21]MH_I2C_Read... [13:08:22]OFD Sender: No OFD packet to send [13:08:22]*** Cut start [13:08:22]*** Partial cut [13:08:22]*** CUTSNS_PIN = 1 [13:08:22]*** CUTSNS_PIN = 0 [13:08:22]*** Brake cut motor [13:08:23]Read from MH i2c: 01 [13:08:23]MH_I2C_Read... [13:08:23]*** Stop cut motor [13:08:23]*** Cut end [13:08:23]Read from MH i2c: 01 07 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 07 00 1F 33 00 00 00 00 00 FF 0F 67 [13:08:23]process_action close_receipt done [13:08:23]requested_data is exist [13:08:23]produce_requested_data [13:08:23]requested_item fm.sn is exist - process it [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 11 00 00 [13:08:23]Write to MH i2c: E2 08 00 20 33 80 11 00 00 00 00 00 00 CD [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 17 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 17 00 20 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 25 [13:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:08:23]wFMCommunicate OK [13:08:23]requested_item fd.num is exist - process it [13:08:23]SAM_PROTO_GetFieldsCounters [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 13 00 00 [13:08:23]Write to MH i2c: E2 08 00 21 33 80 13 00 00 00 00 00 00 D0 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 62 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 62 00 21 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 72 25 01 00 0E 04 04 00 00 02 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 E7 [13:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 72 25 01 00 0E 04 04 00 00 02 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 [13:08:23]wFMCommunicate OK [13:08:23]SAM_PROTO_GetFieldsCounters done [13:08:23]requested_item shift.num is exist - process it [13:08:23]requested_item shift.opened is exist - process it [13:08:23]req_shift_opened [13:08:23]FM_GetShiftState [13:08:23]SAM_PROTO_GetShiftState [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 13 01 00 [13:08:23]Write to MH i2c: E2 08 00 22 33 80 13 01 00 00 00 00 00 D2 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 0E 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 0E 00 22 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 ED [13:08:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:08:23]wFMCommunicate OK [13:08:23]SAM_PROTO_GetShiftState done [13:08:23]FM_GetShiftState done [13:08:23]req_shift_opened done [13:08:23]requested_item shift.open_date is exist - process it [13:08:23]req_shift_open_date [13:08:23]req_shift_open_date done [13:08:23]produce_requested_data done [13:08:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75122,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:08:23]process_action_free close_receipt [13:08:23]json_value_free [13:08:23]json_value_free done [13:08:23]process_json_proto returns [13:08:23]Send response to host [13:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75122,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:08:23]free response buf [13:08:23]execute_script done [13:08:23]execute_script returns [13:08:23]free content buf [13:08:23]Sock 8.Close socket [13:08:23]Sock 8.Thread stoped [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:50]recv_with_timeout no data received [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:00]recv_with_timeout no data received [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13: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:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:30]accept exits with 9 [13:20:30]New connection [13:20:30]New thread 3066781028 created [13:20:30]Thread 3066924388 joined [13:20:30]Waiting for new connection... [13:20:30] Sock 9.Parse request [13:20:30]Sock 9.Check first char [13:20:30]Sock 9.First char is OK [13:20:30]request: POST /json_proto HTTP/1.0 [13:20:30]Method: POST [13:20:30]URL: /json_proto [13:20:30]Method is POST - this is cgi request [13:20:30]url: /json_proto [13:20:30]query_string will be loaded in cgi processing [13:20:30]execute_cgi json_proto POST (null) [13:20:30]execute_cgi path=json_proto method=POST [13:20:30]POST find Content-Length [13:20:30]Host: 172.17.39.131:8080 [13:20:30]Content-Length: 682 [13:20:30]Content-Type: application/json [13:20:30] [13:20:30]POST finish read [13:20:30]Found Content-Length = 682 [13:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:30]execute_script... [13:20: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)191096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:20:30]POST & json_proto [13:20:30]process_json_proto [13:20:30]json parsed OK: [13:20:30]protocol is kg_v1.0 [13:20:30]action value=close_receipt [13:20:30]process_action close_receipt [13:20:30]cmd_close_receipt [13:20:30]MH_GetDate [13:20:30]Write to MH i2c: F0 00 00 23 33 45 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: F0 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: F0 09 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: F0 09 00 23 33 00 A3 EC 1C 67 86 57 24 65 C6 [13:20:30]GetLastDocTimeStamp 1729948104 [13:20:30]current date 1729948835 [13:20:30]FM_GetShiftState [13:20:30]SAM_PROTO_GetShiftState [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 13 01 00 [13:20:30]Write to MH i2c: E2 08 00 24 33 80 13 01 00 00 00 00 00 D4 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0E 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0E 00 24 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EF [13:20:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:20:30]wFMCommunicate OK [13:20:30]SAM_PROTO_GetShiftState done [13:20:30]FM_GetShiftState done [13:20:30]opened in 1729902166 [13:20:30]opened+sec_in_day 1729988566 [13:20:30]quantity*price = 100015 [13:20:30]sum+1 = 100017 [13:20:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 115 26.10.2024 13:20 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75123 ФПД: 91108709500572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132035&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75123&fm=91108709500572&tin=02508201610067®Number=0000000000091691&sum=100000 [13:20:31]StoreToDocumentArchive [13:20:31]shift 512 fd 75123 [13:20:31]save to /storage/0512/doc_00075123 [13:20:31]save last doc name /storage/0512/doc_00075123 to /storage/kkm_last_doc_name [13:20:31]save OK [13:20:31]Clear old archive folders... [13:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:31]tlvbuf is 0083D7D0 [13:20:31]SAM_PROTO_ClearQueue [13:20:31]wFMCommunicate request_size=4 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 09 00 00 [13:20:31]Write to MH i2c: E2 08 00 31 33 80 09 00 00 00 00 00 00 D6 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [13:20:31]RAPDU: 90 00 [13:20:31]wFMCommunicate OK [13:20:31]SAM_PROTO_ClearQueue done [13:20:31]KKMCreateOFDPacket [13:20:31]OFDProtocolAddRootSTLVToBuf [13:20:31]FM_MakeSignedData [13:20:31]FM_MakeSignedData [13:20:31]SAM_PROTO_SignData [13:20:31]wFMCommunicate request_size=4 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 0D 01 02 [13:20:31]Write to MH i2c: E2 08 00 32 33 80 0D 01 02 00 00 00 00 DE [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [13:20:31]RAPDU: 90 00 [13:20:31]wFMCommunicate OK [13:20:31]wFMCommunicate request_size=255 [13:20:31]MH_SAM_APDU [13:20: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 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 73 00 00 00 F4 03 04 00 A3 EC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 73 25 01 00 35 04 06 00 52 [13:20:31]Write to MH i2c: E2 02 01 33 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 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 73 00 00 00 F4 03 04 00 A3 EC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 73 25 01 00 35 04 06 00 52 00 00 DF [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 33 33 00 90 00 DA [13:20:31]RAPDU: 90 00 [13:20:31]wFMCommunicate OK [13:20:31]wFMCommunicate request_size=10 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 0D 02 02 05 DC E6 44 06 9C [13:20:31]Write to MH i2c: E2 0D 00 34 33 80 0D 02 02 05 00 DC E6 44 06 9C 00 00 93 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 03 00 34 33 00 90 00 DB [13:20:31]RAPDU: 90 00 [13:20:31]wFMCommunicate OK [13:20:31]wFMCommunicate request_size=4 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 0D 03 02 [13:20:31]Write to MH i2c: E2 08 00 35 33 80 0D 03 02 00 00 00 00 E3 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 0B 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 0B 00 35 33 00 A3 5A 2C 45 F8 50 A6 11 90 00 51 [13:20:31]RAPDU: A3 5A 2C 45 F8 50 A6 11 90 00 [13:20:31]wFMCommunicate OK [13:20:31]SAM_PROTO_SignData done [13:20:31]FM_MakeSignedData done [13:20:31]CreateOFDProtocolMessage [13:20:31]wFMCommunicate request_size=4 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 11 00 00 [13:20:31]Write to MH i2c: E2 08 00 36 33 80 11 00 00 00 00 00 00 E3 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 17 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 17 00 36 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3B [13:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:20:31]wFMCommunicate OK [13:20:31]CreateOFDProtocolMessage done [13:20:31]OFDSenderStorePacket 75123 [13:20:31]StoreOFDPacket docnum=75123 [13:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9F E2 07 01 7A 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 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 73 00 00 00 F4 03 04 00 A3 EC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 73 25 01 00 35 04 06 00 52 DC E6 44 06 9C A3 5A 2C 45 F8 50 A6 11 [13:20:31]CheckFolder [13:20:31]dirname=/storage/ofd_packets [13:20:31]CheckFolder done [13:20:31]ProducePacketName [13:20:31]name=ofd_packets/00075123 [13:20:31]NVStorageSaveData ofd_packets/00075123 [13:20:31]File name is /storage/ofd_packets/00075123 [13:20:31]Write 301 bytes [13:20:31]NVStorageSaveData done [13:20:31]OFDSenderStorePacket done [13:20:31]KKMCreateOFDPacket done [13:20:31]NVStorageSaveData kkm_last_timestamp [13:20:31]File name is /storage/kkm_last_timestamp [13:20:31]Write 4 bytes [13:20:31]NVStorageSaveData done [13:20:31]ExternCall_PrintAddStr [13:20:31]wPrintStart [13:20:31]Write to MH i2c: 01 00 00 37 33 6A [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 07 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 07 00 37 33 00 00 00 00 00 FF 0F 7F [13:20:31]RasterBufferAndPrint [13:20:31]line Счет N : (1)191096 [13:20:31]line ИНН: 02508201610067 [13:20:31]line Контрольно-Кассовый Чек [13:20:31]line ПРОДАЖА [13:20:31]line ТРК (МРК, ГНК) : 21 [13:20:31]line Товар: 2710124130 [13:20:31]line Аи-92-К-5 [13:20:31]line 14.950 * 66.90 [13:20:31]line = 1000.16 [13:20:31]line НДС 12% НСП 1% [13:20:31]line > о реализуемом товаре [13:20:31]line ОКРУГЛЕНИЕ: -0.16 [13:20:31]line ИТОГО: 1000.00 [13:20:31]line Внесено: 1000.00 [13:20:31]line СДАЧА: 0.00 [13:20:31]line НСП 1% : 8.85 [13:20:31]line НДС 12% : 106.21 [13:20:31]line Наличными: 1000.00 [13:20:31]line Безнал.: 0.00 [13:20:31]line Место: АЗС № 142 "Партнер Нефть" [13:20:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:20:31]line СНО: Общий режим [13:20:31]line Чек 115 26.10.2024 13:20 [13:20:31]line Смена: 512 ФФД: 1.0 [13:20:31]line ЗНМ: 0300000089 [13:20:31]line РНМ: 0000000000091691 [13:20:31]line Версия ККМ: 001 [13:20:31]line ФМ: 0000000000871795 [13:20:31]line ФД: 75123 [13:20:31]line ФПД: 91108709500572 [13:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132035&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75123&fm=91108709500572&tin=02508201610067®Number=0000000000091691&sum=100000 [13:20:32]OFD Sender: Processing packet 75123 [packets to send 13, broken 12] [13:20:32]ProducePacketName [13:20:32]name=ofd_packets/00075123 [13:20:32]OFD Sender: To server: pG, [13:20:32]CommunicateWithHost lk.salyk.kg:30040 [13:20:32]ConnectInit lk.salyk.kg [13:20:32]written 0, free lines is 4095 [13:20:32]Connected sock=10 [13:20:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 9F E2 07 01 7A 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 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 73 00 00 00 F4 03 04 00 A3 EC 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 73 25 01 00 35 04 06 00 52 DC E6 44 06 9C A3 5A 2C 45 F8 50 A6 11 [13:20:32]Write to MH i2c: 01 00 00 62 33 95 [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: 01 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: 01 07 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: 01 07 00 62 33 00 00 00 00 00 A3 0C 4B [13:20:32]RasterBufferAndPrint [13:20:32]line [13:20:32]line [13:20:32]line [13:20:32]line [13:20:32]line [13:20:32]written 0, free lines is 3241 [13:20:32]MH_Cut [13:20:32]Write to MH i2c: D1 01 00 69 33 01 6E [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: D1 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: D1 01 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: D1 01 00 69 33 00 6D [13:20:32]Write to MH i2c: 01 00 00 6A 33 9D [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 49 64 47 00 D5 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 38 37 31 37 39 35 10 04 04 00 73 25 01 00 F4 03 04 00 1F 94 1C 67 B6 04 01 00 00 36 05 F1 FD BF 55 A2 78 [13:20:32]CommunicateWithHost err = 0 [13:20:32]CheckOFDResponse [13:20:32]1017 (14) - 77093643461234 [13:20:32]1041 (16) - 0000000000871795 [13:20:32]1040 (4) - 75123 [13:20:32]1012 (4) - 26.10.2024 07:02 [13:20:32]1206 (1) - 0 [13:20:32]OFD Sender: Remove packet 75123 [13:20:32]ProducePacketName [13:20:32]name=ofd_packets/00075123 [13:20:32]NVStorageDeleteData [13:20:33]OFD Sender: No OFD packet to send [13:20:33]*** Cut start [13:20:33]*** Partial cut [13:20:33]*** CUTSNS_PIN = 1 [13:20:33]*** CUTSNS_PIN = 0 [13:20:33]*** Brake cut motor [13:20:34]Read from MH i2c: 01 [13:20:34]MH_I2C_Read... [13:20:34]*** Stop cut motor [13:20:34]*** Cut end [13:20:34]Read from MH i2c: 01 07 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 FF 0F B2 [13:20:34]process_action close_receipt done [13:20:34]requested_data is exist [13:20:34]produce_requested_data [13:20:34]requested_item fm.sn is exist - process it [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 11 00 00 [13:20:34]Write to MH i2c: E2 08 00 6B 33 80 11 00 00 00 00 00 00 18 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 6B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 70 [13:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:20:34]wFMCommunicate OK [13:20:34]requested_item fd.num is exist - process it [13:20:34]SAM_PROTO_GetFieldsCounters [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 13 00 00 [13:20:34]Write to MH i2c: E2 08 00 6C 33 80 13 00 00 00 00 00 00 1B [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 62 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 62 00 6C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 73 25 01 00 0E 04 04 00 00 02 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 36 [13:20:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 73 25 01 00 0E 04 04 00 00 02 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 [13:20:34]wFMCommunicate OK [13:20:34]SAM_PROTO_GetFieldsCounters done [13:20:34]requested_item shift.num is exist - process it [13:20:34]requested_item shift.opened is exist - process it [13:20:34]req_shift_opened [13:20:34]FM_GetShiftState [13:20:34]SAM_PROTO_GetShiftState [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 13 01 00 [13:20:34]Write to MH i2c: E2 08 00 6D 33 80 13 01 00 00 00 00 00 1D [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0E 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0E 00 6D 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 38 [13:20:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:20:34]wFMCommunicate OK [13:20:34]SAM_PROTO_GetShiftState done [13:20:34]FM_GetShiftState done [13:20:34]req_shift_opened done [13:20:34]requested_item shift.open_date is exist - process it [13:20:34]req_shift_open_date [13:20:34]req_shift_open_date done [13:20:34]produce_requested_data done [13:20:34]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75123,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:20:34]process_action_free close_receipt [13:20:34]json_value_free [13:20:34]json_value_free done [13:20:34]process_json_proto returns [13:20:34]Send response to host [13:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75123,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:20:34]free response buf [13:20:34]execute_script done [13:20:34]execute_script returns [13:20:34]free content buf [13:20:34]Sock 9.Close socket [13:20:34]Sock 9.Thread stoped [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [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:53]accept exits with 8 [13:22:53]New connection [13:22:53]New thread 3066924388 created [13:22:53]Thread 3066781028 joined [13:22:53]Waiting for new connection... [13:22:53] Sock 8.Parse request [13:22:53]Sock 8.Check first char [13:22:53]Sock 8.First char is OK [13:22:53]request: POST /json_proto HTTP/1.0 [13:22:53]Method: POST [13:22:53]URL: /json_proto [13:22:53]Method is POST - this is cgi request [13:22:53]url: /json_proto [13:22:53]query_string will be loaded in cgi processing [13:22:53]execute_cgi json_proto POST (null) [13:22:53]execute_cgi path=json_proto method=POST [13:22:53]POST find Content-Length [13:22:53]Host: 172.17.39.131:8080 [13:22:53]Content-Length: 803 [13:22:53]Content-Type: application/json [13:22:53] [13:22:53]POST finish read [13:22:53]Found Content-Length = 803 [13:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]execute_script... [13:22: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)191097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]POST & json_proto [13:22:53]process_json_proto [13:22:53]json parsed OK: [13:22:53]protocol is kg_v1.0 [13:22:53]action value=close_receipt [13:22:53]process_action close_receipt [13:22:53]cmd_close_receipt [13:22:53]MH_GetDate [13:22:53]Write to MH i2c: F0 00 00 6E 33 90 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 09 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: F0 09 00 6E 33 00 32 ED 1C 67 86 57 24 65 A1 [13:22:53]GetLastDocTimeStamp 1729948835 [13:22:53]current date 1729948978 [13:22:53]FM_GetShiftState [13:22:53]SAM_PROTO_GetShiftState [13:22:53]wFMCommunicate request_size=4 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 13 01 00 [13:22:53]Write to MH i2c: E2 08 00 6F 33 80 13 01 00 00 00 00 00 1F [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 0E 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 0E 00 6F 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 3A [13:22:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:22:53]wFMCommunicate OK [13:22:53]SAM_PROTO_GetShiftState done [13:22:53]FM_GetShiftState done [13:22:53]opened in 1729902166 [13:22:53]opened+sec_in_day 1729988566 [13:22:53]quantity*price = 150056 [13:22:53]sum+1 = 150058 [13:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 116 26.10.2024 13:22 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75124 ФПД: 96950654673852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75124&fm=96950654673852&tin=02508201610067®Number=0000000000091691&sum=150057 [13:22:55]StoreToDocumentArchive [13:22:55]shift 512 fd 75124 [13:22:55]save to /storage/0512/doc_00075124 [13:22:55]save last doc name /storage/0512/doc_00075124 to /storage/kkm_last_doc_name [13:22:55]save OK [13:22:55]Clear old archive folders... [13:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:55]tlvbuf is 00949560 [13:22:55]SAM_PROTO_ClearQueue [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 09 00 00 [13:22:55]Write to MH i2c: E2 08 00 7C 33 80 09 00 00 00 00 00 00 21 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_ClearQueue done [13:22:55]KKMCreateOFDPacket [13:22:55]OFDProtocolAddRootSTLVToBuf [13:22:55]FM_MakeSignedData [13:22:55]FM_MakeSignedData [13:22:55]SAM_PROTO_SignData [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 01 02 [13:22:55]Write to MH i2c: E2 08 00 7D 33 80 0D 01 02 00 00 00 00 29 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 7D 33 00 90 00 24 [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=255 [13:22:55]MH_SAM_APDU [13:22: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 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 74 00 00 00 F4 03 04 00 32 ED 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 74 25 01 00 35 04 06 00 58 [13:22:55]Write to MH i2c: E2 02 01 7E 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 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 74 00 00 00 F4 03 04 00 32 ED 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 74 25 01 00 35 04 06 00 58 00 00 85 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=10 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 02 02 05 2D 15 55 23 BC [13:22:55]Write to MH i2c: E2 0D 00 7F 33 80 0D 02 02 05 00 2D 15 55 23 BC 00 00 AC [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 03 00 7F 33 00 90 00 26 [13:22:55]RAPDU: 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 0D 03 02 [13:22:55]Write to MH i2c: E2 08 00 80 33 80 0D 03 02 00 00 00 00 2E [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0B 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0B 00 80 33 00 F8 E8 FF 92 2E 9D 48 F3 90 00 A6 [13:22:55]RAPDU: F8 E8 FF 92 2E 9D 48 F3 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_SignData done [13:22:55]FM_MakeSignedData done [13:22:55]CreateOFDProtocolMessage [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 11 00 00 [13:22:55]Write to MH i2c: E2 08 00 81 33 80 11 00 00 00 00 00 00 2E [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 81 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 86 [13:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:22:55]wFMCommunicate OK [13:22:55]CreateOFDProtocolMessage done [13:22:55]OFDSenderStorePacket 75124 [13:22:55]StoreOFDPacket docnum=75124 [13:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B6 04 07 01 D1 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 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 74 00 00 00 F4 03 04 00 32 ED 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 74 25 01 00 35 04 06 00 58 2D 15 55 23 BC F8 E8 FF 92 2E 9D 48 F3 [13:22:55]CheckFolder [13:22:55]dirname=/storage/ofd_packets [13:22:55]CheckFolder done [13:22:55]ProducePacketName [13:22:55]name=ofd_packets/00075124 [13:22:55]NVStorageSaveData ofd_packets/00075124 [13:22:55]File name is /storage/ofd_packets/00075124 [13:22:55]Write 301 bytes [13:22:55]NVStorageSaveData done [13:22:55]OFDSenderStorePacket done [13:22:55]KKMCreateOFDPacket done [13:22:55]NVStorageSaveData kkm_last_timestamp [13:22:55]File name is /storage/kkm_last_timestamp [13:22:55]Write 4 bytes [13:22:55]NVStorageSaveData done [13:22:55]ExternCall_PrintAddStr [13:22:55]wPrintStart [13:22:55]Write to MH i2c: 01 00 00 82 33 B5 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 82 33 00 00 00 00 00 FF 0F CA [13:22:55]RasterBufferAndPrint [13:22:55]line Счет N : (1)191097 [13:22:55]line ИНН: 02508201610067 [13:22:55]line Контрольно-Кассовый Чек [13:22:55]line ПРОДАЖА [13:22:55]line ТРК (МРК, ГНК) : 21 [13:22:55]line Товар: 2710124130 [13:22:55]line Аи-92-К-5 [13:22:55]line 22.430 * 66.90 [13:22:55]line = 1500.57 [13:22:55]line НДС 12% НСП 1% [13:22:55]line > о реализуемом товаре [13:22:55]line ИТОГО: 1500.57 [13:22:55]line НСП 1% : 13.28 [13:22:55]line НДС 12% : 159.35 [13:22:55]line Наличными: 0.00 [13:22:55]line Безнал.: 1500.57 [13:22:55]line Место: АЗС № 142 "Партнер Нефть" [13:22:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:22:55]line СНО: Общий режим [13:22:55]line Чек 116 26.10.2024 13:22 [13:22:55]line Смена: 512 ФФД: 1.0 [13:22:55]line ЗНМ: 0300000089 [13:22:55]line РНМ: 0000000000091691 [13:22:55]line Версия ККМ: 001 [13:22:55]line Платежная система: O! деньги [13:22:55]line ФМ: 0000000000871795 [13:22:55]line ФД: 75124 [13:22:55]line ФПД: 96950654673852 [13:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75124&fm=96950654673852&tin=02508201610067®Number=0000000000091691&sum=150057 [13:22:55]OFD Sender: Processing packet 75124 [packets to send 13, broken 12] [13:22:55]ProducePacketName [13:22:55]name=ofd_packets/00075124 [13:22:55]OFD Sender: To server: pG, [13:22:55]CommunicateWithHost lk.salyk.kg:30040 [13:22:55]ConnectInit lk.salyk.kg [13:22:55]written 0, free lines is 4095 [13:22:56]Connected sock=9 [13:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B6 04 07 01 D1 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 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 74 00 00 00 F4 03 04 00 32 ED 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 74 25 01 00 35 04 06 00 58 2D 15 55 23 BC F8 E8 FF 92 2E 9D 48 F3 [13:22:56]Write to MH i2c: 01 00 00 AC 33 DF [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 AC 33 00 00 00 00 00 B6 0C A8 [13:22:56]RasterBufferAndPrint [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]written 0, free lines is 3258 [13:22:56]MH_Cut [13:22:56]Write to MH i2c: D1 01 00 B3 33 01 B8 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 01 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 01 00 B3 33 00 B7 [13:22:56]Write to MH i2c: 01 00 00 B4 33 E7 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A5 09 47 00 06 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 38 37 31 37 39 35 10 04 04 00 74 25 01 00 F4 03 04 00 AF 94 1C 67 B6 04 01 00 00 C6 99 5A BD 06 CB D9 FE [13:22:56]CommunicateWithHost err = 0 [13:22:56]CheckOFDResponse [13:22:56]1017 (14) - 77093643461234 [13:22:56]1041 (16) - 0000000000871795 [13:22:56]1040 (4) - 75124 [13:22:56]1012 (4) - 26.10.2024 07:05 [13:22:56]1206 (1) - 0 [13:22:56]OFD Sender: Remove packet 75124 [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00075124 [13:22:56]NVStorageDeleteData [13:22:57]OFD Sender: No OFD packet to send [13:22:57]*** Cut start [13:22:57]*** Partial cut [13:22:57]*** CUTSNS_PIN = 1 [13:22:57]*** CUTSNS_PIN = 0 [13:22:57]*** Brake cut motor [13:22:57]Read from MH i2c: 01 [13:22:57]MH_I2C_Read... [13:22:57]*** Stop cut motor [13:22:57]*** Cut end [13:22:57]Read from MH i2c: 01 07 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 B4 33 00 00 00 00 00 FF 0F FC [13:22:57]process_action close_receipt done [13:22:57]requested_data is exist [13:22:57]produce_requested_data [13:22:57]requested_item fm.sn is exist - process it [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 11 00 00 [13:22:57]Write to MH i2c: E2 08 00 B5 33 80 11 00 00 00 00 00 00 62 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 17 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 17 00 B5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BA [13:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:22:58]wFMCommunicate OK [13:22:58]requested_item fd.num is exist - process it [13:22:58]SAM_PROTO_GetFieldsCounters [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 13 00 00 [13:22:58]Write to MH i2c: E2 08 00 B6 33 80 13 00 00 00 00 00 00 65 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 62 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 62 00 B6 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 74 25 01 00 0E 04 04 00 00 02 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 84 [13:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 74 25 01 00 0E 04 04 00 00 02 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 [13:22:58]wFMCommunicate OK [13:22:58]SAM_PROTO_GetFieldsCounters done [13:22:58]requested_item shift.num is exist - process it [13:22:58]requested_item shift.opened is exist - process it [13:22:58]req_shift_opened [13:22:58]FM_GetShiftState [13:22:58]SAM_PROTO_GetShiftState [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 13 01 00 [13:22:58]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0E 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 82 [13:22:58]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:22:58]wFMCommunicate OK [13:22:58]SAM_PROTO_GetShiftState done [13:22:58]FM_GetShiftState done [13:22:58]req_shift_opened done [13:22:58]requested_item shift.open_date is exist - process it [13:22:58]req_shift_open_date [13:22:58]req_shift_open_date done [13:22:58]produce_requested_data done [13:22:58]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75124,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:22:58]process_action_free close_receipt [13:22:58]json_value_free [13:22:58]json_value_free done [13:22:58]process_json_proto returns [13:22:58]Send response to host [13:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75124,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:22:58]free response buf [13:22:58]execute_script done [13:22:58]execute_script returns [13:22:58]free content buf [13:22:58]Sock 8.Close socket [13:22:58]Sock 8.Thread stoped [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:26]recv_with_timeout no data received [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:37]accept exits with 10 [13:27:37]New connection [13:27:37]New thread 3066781028 created [13:27:37]Thread 3066924388 joined [13:27:37]Waiting for new connection... [13:27:37] Sock 10.Parse request [13:27:37]Sock 10.Check first char [13:27:37]Sock 10.First char is OK [13:27:37]request: POST /json_proto HTTP/1.0 [13:27:37]Method: POST [13:27:37]URL: /json_proto [13:27:37]Method is POST - this is cgi request [13:27:37]url: /json_proto [13:27:37]query_string will be loaded in cgi processing [13:27:37]execute_cgi json_proto POST (null) [13:27:37]execute_cgi path=json_proto method=POST [13:27:37]POST find Content-Length [13:27:37]Host: 172.17.39.131:8080 [13:27:37]Content-Length: 677 [13:27:37]Content-Type: application/json [13:27:37] [13:27:37]POST finish read [13:27:37]Found Content-Length = 677 [13:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:27:37]execute_script... [13:27: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)191098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:27:37]POST & json_proto [13:27:37]process_json_proto [13:27:37]json parsed OK: [13:27:37]protocol is kg_v1.0 [13:27:37]action value=close_receipt [13:27:37]process_action close_receipt [13:27:37]cmd_close_receipt [13:27:37]MH_GetDate [13:27:37]Write to MH i2c: F0 00 00 B8 33 DA [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 09 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: F0 09 00 B8 33 00 4E EE 1C 67 86 57 24 65 08 [13:27:37]GetLastDocTimeStamp 1729948978 [13:27:37]current date 1729949262 [13:27:37]FM_GetShiftState [13:27:37]SAM_PROTO_GetShiftState [13:27:37]wFMCommunicate request_size=4 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 13 01 00 [13:27:37]Write to MH i2c: E2 08 00 B9 33 80 13 01 00 00 00 00 00 69 [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0E 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0E 00 B9 33 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 84 [13:27:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:27:37]wFMCommunicate OK [13:27:37]SAM_PROTO_GetShiftState done [13:27:37]FM_GetShiftState done [13:27:37]opened in 1729902166 [13:27:37]opened+sec_in_day 1729988566 [13:27:37]quantity*price = 50041 [13:27:37]sum+1 = 50042 [13:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 117 26.10.2024 13:27 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75125 ФПД: 45089806318423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132742&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75125&fm=45089806318423&tin=02508201610067®Number=0000000000091691&sum=50000 [13:27:38]StoreToDocumentArchive [13:27:38]shift 512 fd 75125 [13:27:38]save to /storage/0512/doc_00075125 [13:27:38]save last doc name /storage/0512/doc_00075125 to /storage/kkm_last_doc_name [13:27:38]save OK [13:27:38]Clear old archive folders... [13:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:38]tlvbuf is 00868BA0 [13:27:38]SAM_PROTO_ClearQueue [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 09 00 00 [13:27:38]Write to MH i2c: E2 08 00 C6 33 80 09 00 00 00 00 00 00 6B [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]SAM_PROTO_ClearQueue done [13:27:38]KKMCreateOFDPacket [13:27:38]OFDProtocolAddRootSTLVToBuf [13:27:38]FM_MakeSignedData [13:27:38]FM_MakeSignedData [13:27:38]SAM_PROTO_SignData [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 01 02 [13:27:38]Write to MH i2c: E2 08 00 C7 33 80 0D 01 02 00 00 00 00 73 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=255 [13:27:38]MH_SAM_APDU [13:27: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 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 75 00 00 00 F4 03 04 00 4E EE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 75 25 01 00 35 04 06 00 29 [13:27:38]Write to MH i2c: E2 02 01 C8 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 75 00 00 00 F4 03 04 00 4E EE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 75 25 01 00 35 04 06 00 29 00 00 02 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 C8 33 00 90 00 6F [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=10 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 02 02 05 02 49 E3 7B 57 [13:27:38]Write to MH i2c: E2 0D 00 C9 33 80 0D 02 02 05 00 02 49 E3 7B 57 00 00 80 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 03 00 C9 33 00 90 00 70 [13:27:38]RAPDU: 90 00 [13:27:38]wFMCommunicate OK [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 0D 03 02 [13:27:38]Write to MH i2c: E2 08 00 CA 33 80 0D 03 02 00 00 00 00 78 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0B 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0B 00 CA 33 00 B1 BC E2 6E FF 4F F3 47 90 00 BE [13:27:39]RAPDU: B1 BC E2 6E FF 4F F3 47 90 00 [13:27:39]wFMCommunicate OK [13:27:39]SAM_PROTO_SignData done [13:27:39]FM_MakeSignedData done [13:27:39]CreateOFDProtocolMessage [13:27:39]wFMCommunicate request_size=4 [13:27:39]MH_SAM_APDU [13:27:39]CAPDU: 80 11 00 00 [13:27:39]Write to MH i2c: E2 08 00 CB 33 80 11 00 00 00 00 00 00 78 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 17 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 17 00 CB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D0 [13:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:27:39]wFMCommunicate OK [13:27:39]CreateOFDProtocolMessage done [13:27:39]OFDSenderStorePacket 75125 [13:27:39]StoreOFDPacket docnum=75125 [13:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F8 D6 07 01 46 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 F4 03 04 00 4E EE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 75 25 01 00 35 04 06 00 29 02 49 E3 7B 57 B1 BC E2 6E FF 4F F3 47 [13:27:39]CheckFolder [13:27:39]dirname=/storage/ofd_packets [13:27:39]CheckFolder done [13:27:39]ProducePacketName [13:27:39]name=ofd_packets/00075125 [13:27:39]NVStorageSaveData ofd_packets/00075125 [13:27:39]File name is /storage/ofd_packets/00075125 [13:27:39]Write 301 bytes [13:27:39]NVStorageSaveData done [13:27:39]OFDSenderStorePacket done [13:27:39]KKMCreateOFDPacket done [13:27:39]NVStorageSaveData kkm_last_timestamp [13:27:39]File name is /storage/kkm_last_timestamp [13:27:39]Write 4 bytes [13:27:39]NVStorageSaveData done [13:27:39]ExternCall_PrintAddStr [13:27:39]wPrintStart [13:27:39]Write to MH i2c: 01 00 00 CC 33 FF [13:27:39]OFD Sender: Processing packet 75125 [packets to send 13, broken 12] [13:27:39]ProducePacketName [13:27:39]name=ofd_packets/00075125 [13:27:39]OFD Sender: To server: pG, [13:27:39]CommunicateWithHost lk.salyk.kg:30040 [13:27:39]ConnectInit lk.salyk.kg [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 CC 33 00 00 00 00 00 FF 0F 14 [13:27:39]RasterBufferAndPrint [13:27:39]line Счет N : (1)191098 [13:27:39]line ИНН: 02508201610067 [13:27:39]line Контрольно-Кассовый Чек [13:27:39]line ПРОДАЖА [13:27:39]line ТРК (МРК, ГНК) : 21 [13:27:39]line Товар: 2710124130 [13:27:39]line Аи-92-К-5 [13:27:39]line 7.480 * 66.90 [13:27:39]line = 500.41 [13:27:39]line НДС 12% НСП 1% [13:27:39]line > о реализуемом товаре [13:27:39]line ОКРУГЛЕНИЕ: -0.41 [13:27:39]line ИТОГО: 500.00 [13:27:39]line Внесено: 500.00 [13:27:39]line СДАЧА: 0.00 [13:27:39]line НСП 1% : 4.43 [13:27:39]line НДС 12% : 53.14 [13:27:39]line Наличными: 500.00 [13:27:39]line Безнал.: 0.00 [13:27:39]line Место: АЗС № 142 "Партнер Нефть" [13:27:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:27:39]line СНО: Общий режим [13:27:39]line Чек 117 26.10.2024 13:27 [13:27:39]line Смена: 512 ФФД: 1.0 [13:27:39]line ЗНМ: 0300000089 [13:27:39]line РНМ: 0000000000091691 [13:27:39]line Версия ККМ: 001 [13:27:39]line ФМ: 0000000000871795 [13:27:39]line ФД: 75125 [13:27:39]line ФПД: 45089806318423 [13:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132742&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75125&fm=45089806318423&tin=02508201610067®Number=0000000000091691&sum=50000 [13:27:39]written 0, free lines is 4095 [13:27:39]Connected sock=8 [13:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F8 D6 07 01 46 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 F4 03 04 00 4E EE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 75 25 01 00 35 04 06 00 29 02 49 E3 7B 57 B1 BC E2 6E FF 4F F3 47 [13:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DC 31 47 00 2A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 75 25 01 00 F4 03 04 00 CA 95 1C 67 B6 04 01 00 00 0E AA 3A 6E 33 28 EF 30 [13:27:39]CommunicateWithHost err = 0 [13:27:39]CheckOFDResponse [13:27:39]1017 (14) - 77093643461234 [13:27:39]1041 (16) - 0000000000871795 [13:27:39]1040 (4) - 75125 [13:27:39]1012 (4) - 26.10.2024 07:10 [13:27:39]1206 (1) - 0 [13:27:39]OFD Sender: Remove packet 75125 [13:27:39]ProducePacketName [13:27:39]name=ofd_packets/00075125 [13:27:39]NVStorageDeleteData [13:27:39]Write to MH i2c: 01 00 00 F7 33 2A [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 F7 33 00 00 00 00 00 90 0C CD [13:27:39]RasterBufferAndPrint [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]written 0, free lines is 3222 [13:27:39]MH_Cut [13:27:39]Write to MH i2c: D1 01 00 FE 33 01 03 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 FE 33 00 02 [13:27:39]Write to MH i2c: 01 00 00 FF 33 32 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:40]OFD Sender: No OFD packet to send [13:27:40]*** Cut start [13:27:40]*** Partial cut [13:27:40]*** CUTSNS_PIN = 1 [13:27:40]*** CUTSNS_PIN = 0 [13:27:41]*** Brake cut motor [13:27:41]Read from MH i2c: 01 [13:27:41]MH_I2C_Read... [13:27:41]*** Stop cut motor [13:27:41]*** Cut end [13:27:41]Read from MH i2c: 01 07 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 FF 0F 47 [13:27:41]process_action close_receipt done [13:27:41]requested_data is exist [13:27:41]produce_requested_data [13:27:41]requested_item fm.sn is exist - process it [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 11 00 00 [13:27:41]Write to MH i2c: E2 08 00 00 34 80 11 00 00 00 00 00 00 AE [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 17 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 17 00 00 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 06 [13:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:27:41]wFMCommunicate OK [13:27:41]requested_item fd.num is exist - process it [13:27:41]SAM_PROTO_GetFieldsCounters [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 13 00 00 [13:27:41]Write to MH i2c: E2 08 00 01 34 80 13 00 00 00 00 00 00 B1 [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 62 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 62 00 01 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 75 25 01 00 0E 04 04 00 00 02 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 D4 [13:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 75 25 01 00 0E 04 04 00 00 02 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 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetFieldsCounters done [13:27:41]requested_item shift.num is exist - process it [13:27:41]requested_item shift.opened is exist - process it [13:27:41]req_shift_opened [13:27:41]FM_GetShiftState [13:27:41]SAM_PROTO_GetShiftState [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 13 01 00 [13:27:41]Write to MH i2c: E2 08 00 02 34 80 13 01 00 00 00 00 00 B3 [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 02 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CE [13:27:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetShiftState done [13:27:41]FM_GetShiftState done [13:27:41]req_shift_opened done [13:27:41]requested_item shift.open_date is exist - process it [13:27:41]req_shift_open_date [13:27:41]req_shift_open_date done [13:27:41]produce_requested_data done [13:27:41]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75125,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:27:41]process_action_free close_receipt [13:27:41]json_value_free [13:27:41]json_value_free done [13:27:41]process_json_proto returns [13:27:41]Send response to host [13:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75125,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:27:41]free response buf [13:27:41]execute_script done [13:27:41]execute_script returns [13:27:41]free content buf [13:27:41]Sock 10.Close socket [13:27:41]Sock 10.Thread stoped [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [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:30]recv_with_timeout no data received [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:08]recv_with_timeout no data received [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]accept exits with 9 [13:32:10]New connection [13:32:10]New thread 3066924388 created [13:32:10]Thread 3066781028 joined [13:32:10]Waiting for new connection... [13:32:10] Sock 9.Parse request [13:32:10]Sock 9.Check first char [13:32:10]Sock 9.First char is OK [13:32:10]request: POST /json_proto HTTP/1.0 [13:32:10]Method: POST [13:32:10]URL: /json_proto [13:32:10]Method is POST - this is cgi request [13:32:10]url: /json_proto [13:32:10]query_string will be loaded in cgi processing [13:32:10]execute_cgi json_proto POST (null) [13:32:10]execute_cgi path=json_proto method=POST [13:32:10]POST find Content-Length [13:32:10]Host: 172.17.39.131:8080 [13:32:10]Content-Length: 677 [13:32:10]Content-Type: application/json [13:32:10] [13:32:10]POST finish read [13:32:10]Found Content-Length = 677 [13:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:10]execute_script... [13:32: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)191099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:10]POST & json_proto [13:32:10]process_json_proto [13:32:10]json parsed OK: [13:32:10]protocol is kg_v1.0 [13:32:10]action value=close_receipt [13:32:10]process_action close_receipt [13:32:10]cmd_close_receipt [13:32:10]MH_GetDate [13:32:10]Write to MH i2c: F0 00 00 03 34 26 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 09 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 09 00 03 34 00 5F EF 1C 67 86 57 24 65 66 [13:32:10]GetLastDocTimeStamp 1729949262 [13:32:10]current date 1729949535 [13:32:10]FM_GetShiftState [13:32:10]SAM_PROTO_GetShiftState [13:32:10]wFMCommunicate request_size=4 [13:32:10]MH_SAM_APDU [13:32:10]CAPDU: 80 13 01 00 [13:32:10]Write to MH i2c: E2 08 00 04 34 80 13 01 00 00 00 00 00 B5 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:10]Read from MH i2c: E2 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0E 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0E 00 04 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D0 [13:32:10]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:32:10]wFMCommunicate OK [13:32:10]SAM_PROTO_GetShiftState done [13:32:10]FM_GetShiftState done [13:32:10]opened in 1729902166 [13:32:10]opened+sec_in_day 1729988566 [13:32:10]quantity*price = 50041 [13:32:10]sum+1 = 50042 [13:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 118 26.10.2024 13:32 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75126 ФПД: 101510448414597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133215&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75126&fm=101510448414597&tin=02508201610067®Number=0000000000091691&sum=50000 [13:32:11]StoreToDocumentArchive [13:32:11]shift 512 fd 75126 [13:32:11]save to /storage/0512/doc_00075126 [13:32:11]save last doc name /storage/0512/doc_00075126 to /storage/kkm_last_doc_name [13:32:11]save OK [13:32:11]Clear old archive folders... [13:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:11]tlvbuf is 00844FA0 [13:32:11]SAM_PROTO_ClearQueue [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 09 00 00 [13:32:11]Write to MH i2c: E2 08 00 11 34 80 09 00 00 00 00 00 00 B7 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_ClearQueue done [13:32:11]KKMCreateOFDPacket [13:32:11]OFDProtocolAddRootSTLVToBuf [13:32:11]FM_MakeSignedData [13:32:11]FM_MakeSignedData [13:32:11]SAM_PROTO_SignData [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 01 02 [13:32:11]Write to MH i2c: E2 08 00 12 34 80 0D 01 02 00 00 00 00 BF [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 12 34 00 90 00 BA [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=255 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5F EF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 76 25 01 00 35 04 06 00 5C [13:32:11]Write to MH i2c: E2 02 01 13 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5F EF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 76 25 01 00 35 04 06 00 5C 00 00 95 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 13 34 00 90 00 BB [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=10 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 02 02 05 52 BE 37 FF 85 [13:32:11]Write to MH i2c: E2 0D 00 14 34 80 0D 02 02 05 00 52 BE 37 FF 85 00 00 97 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 14 34 00 90 00 BC [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 03 02 [13:32:11]Write to MH i2c: E2 08 00 15 34 80 0D 03 02 00 00 00 00 C4 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0B 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0B 00 15 34 00 65 71 73 88 A6 B0 93 D2 90 00 51 [13:32:11]RAPDU: 65 71 73 88 A6 B0 93 D2 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_SignData done [13:32:11]FM_MakeSignedData done [13:32:11]CreateOFDProtocolMessage [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 11 00 00 [13:32:11]Write to MH i2c: E2 08 00 16 34 80 11 00 00 00 00 00 00 C4 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 16 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1C [13:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:32:11]wFMCommunicate OK [13:32:11]CreateOFDProtocolMessage done [13:32:11]OFDSenderStorePacket 75126 [13:32:11]StoreOFDPacket docnum=75126 [13:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 99 E4 07 01 BE 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5F EF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 76 25 01 00 35 04 06 00 5C 52 BE 37 FF 85 65 71 73 88 A6 B0 93 D2 [13:32:11]CheckFolder [13:32:11]dirname=/storage/ofd_packets [13:32:11]CheckFolder done [13:32:11]ProducePacketName [13:32:11]name=ofd_packets/00075126 [13:32:11]NVStorageSaveData ofd_packets/00075126 [13:32:11]File name is /storage/ofd_packets/00075126 [13:32:11]Write 301 bytes [13:32:11]NVStorageSaveData done [13:32:11]OFDSenderStorePacket done [13:32:11]KKMCreateOFDPacket done [13:32:11]NVStorageSaveData kkm_last_timestamp [13:32:11]File name is /storage/kkm_last_timestamp [13:32:11]Write 4 bytes [13:32:11]NVStorageSaveData done [13:32:11]ExternCall_PrintAddStr [13:32:11]wPrintStart [13:32:11]Write to MH i2c: 01 00 00 17 34 4B [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: 01 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: 01 07 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: 01 07 00 17 34 00 00 00 00 00 FF 0F 60 [13:32:11]RasterBufferAndPrint [13:32:11]line Счет N : (1)191099 [13:32:11]line ИНН: 02508201610067 [13:32:11]line Контрольно-Кассовый Чек [13:32:11]line ПРОДАЖА [13:32:11]line ТРК (МРК, ГНК) : 21 [13:32:11]line Товар: 2710124130 [13:32:11]line Аи-92-К-5 [13:32:11]line 7.480 * 66.90 [13:32:11]line = 500.41 [13:32:11]line НДС 12% НСП 1% [13:32:11]line > о реализуемом товаре [13:32:11]line ОКРУГЛЕНИЕ: -0.41 [13:32:11]line ИТОГО: 500.00 [13:32:11]line Внесено: 500.00 [13:32:11]line СДАЧА: 0.00 [13:32:11]line НСП 1% : 4.43 [13:32:11]line НДС 12% : 53.14 [13:32:11]line Наличными: 500.00 [13:32:11]line Безнал.: 0.00 [13:32:11]line Место: АЗС № 142 "Партнер Нефть" [13:32:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:32:11]line СНО: Общий режим [13:32:11]line Чек 118 26.10.2024 13:32 [13:32:11]line Смена: 512 ФФД: 1.0 [13:32:11]line ЗНМ: 0300000089 [13:32:11]line РНМ: 0000000000091691 [13:32:11]line Версия ККМ: 001 [13:32:11]line ФМ: 0000000000871795 [13:32:11]line ФД: 75126 [13:32:11]line ФПД: 101510448414597 [13:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133215&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75126&fm=101510448414597&tin=02508201610067®Number=0000000000091691&sum=50000 [13:32:12]OFD Sender: Processing packet 75126 [packets to send 13, broken 12] [13:32:12]ProducePacketName [13:32:12]name=ofd_packets/00075126 [13:32:12]OFD Sender: To server: pG, [13:32:12]CommunicateWithHost lk.salyk.kg:30040 [13:32:12]ConnectInit lk.salyk.kg [13:32:12]written 0, free lines is 4095 [13:32:12]Connected sock=10 [13:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 99 E4 07 01 BE 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 5F EF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 76 25 01 00 35 04 06 00 5C 52 BE 37 FF 85 65 71 73 88 A6 B0 93 D2 [13:32:12]Write to MH i2c: 01 00 00 42 34 76 [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 A2 0C 2B [13:32:12]RasterBufferAndPrint [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]written 0, free lines is 3241 [13:32:12]MH_Cut [13:32:12]Write to MH i2c: D1 01 00 49 34 01 4F [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 01 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 01 00 49 34 00 4E [13:32:12]Write to MH i2c: 01 00 00 4A 34 7E [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B0 5D 47 00 E6 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 76 25 01 00 F4 03 04 00 DB 96 1C 67 B6 04 01 00 00 A6 42 47 53 66 53 C5 54 [13:32:12]CommunicateWithHost err = 0 [13:32:12]CheckOFDResponse [13:32:12]1017 (14) - 77093643461234 [13:32:12]1041 (16) - 0000000000871795 [13:32:12]1040 (4) - 75126 [13:32:12]1012 (4) - 26.10.2024 07:14 [13:32:12]1206 (1) - 0 [13:32:12]OFD Sender: Remove packet 75126 [13:32:12]ProducePacketName [13:32:12]name=ofd_packets/00075126 [13:32:12]NVStorageDeleteData [13:32:13]OFD Sender: No OFD packet to send [13:32:13]*** Cut start [13:32:13]*** Partial cut [13:32:13]*** CUTSNS_PIN = 1 [13:32:13]*** CUTSNS_PIN = 0 [13:32:13]*** Brake cut motor [13:32:14]Read from MH i2c: 01 [13:32:14]MH_I2C_Read... [13:32:14]*** Stop cut motor [13:32:14]*** Cut end [13:32:14]Read from MH i2c: 01 07 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [13:32:14]process_action close_receipt done [13:32:14]requested_data is exist [13:32:14]produce_requested_data [13:32:14]requested_item fm.sn is exist - process it [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 11 00 00 [13:32:14]Write to MH i2c: E2 08 00 4B 34 80 11 00 00 00 00 00 00 F9 [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 17 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 17 00 4B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 51 [13:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:32:14]wFMCommunicate OK [13:32:14]requested_item fd.num is exist - process it [13:32:14]SAM_PROTO_GetFieldsCounters [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 13 00 00 [13:32:14]Write to MH i2c: E2 08 00 4C 34 80 13 00 00 00 00 00 00 FC [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 62 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 62 00 4C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 76 25 01 00 0E 04 04 00 00 02 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 23 [13:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 76 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:14]wFMCommunicate OK [13:32:14]SAM_PROTO_GetFieldsCounters done [13:32:14]requested_item shift.num is exist - process it [13:32:14]requested_item shift.opened is exist - process it [13:32:14]req_shift_opened [13:32:14]FM_GetShiftState [13:32:14]SAM_PROTO_GetShiftState [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 13 01 00 [13:32:14]Write to MH i2c: E2 08 00 4D 34 80 13 01 00 00 00 00 00 FE [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 0E 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 0E 00 4D 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [13:32:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:32:14]wFMCommunicate OK [13:32:14]SAM_PROTO_GetShiftState done [13:32:14]FM_GetShiftState done [13:32:14]req_shift_opened done [13:32:14]requested_item shift.open_date is exist - process it [13:32:14]req_shift_open_date [13:32:14]req_shift_open_date done [13:32:14]produce_requested_data done [13:32:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75126,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:32:14]process_action_free close_receipt [13:32:14]json_value_free [13:32:14]json_value_free done [13:32:14]process_json_proto returns [13:32:14]Send response to host [13:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75126,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:32:14]free response buf [13:32:14]execute_script done [13:32:14]execute_script returns [13:32:14]free content buf [13:32:14]Sock 9.Close socket [13:32:14]Sock 9.Thread stoped [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:09]accept exits with 8 [13:37:09]New connection [13:37:09]New thread 3066781028 created [13:37:09]Thread 3066924388 joined [13:37:09]Waiting for new connection... [13:37:09] Sock 8.Parse request [13:37:09]Sock 8.Check first char [13:37:09]Sock 8.First char is OK [13:37:09]request: POST /json_proto HTTP/1.0 [13:37:09]Method: POST [13:37:09]URL: /json_proto [13:37:09]Method is POST - this is cgi request [13:37:09]url: /json_proto [13:37:09]query_string will be loaded in cgi processing [13:37:09]execute_cgi json_proto POST (null) [13:37:09]execute_cgi path=json_proto method=POST [13:37:09]POST find Content-Length [13:37:09]Host: 172.17.39.131:8080 [13:37:09]Content-Length: 681 [13:37:09]Content-Type: application/json [13:37:09] [13:37:09]POST finish read [13:37:09]Found Content-Length = 681 [13:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [13:37:09]execute_script... [13: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)191100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [13:37:09]POST & json_proto [13:37:09]process_json_proto [13:37:09]json parsed OK: [13:37:09]protocol is kg_v1.0 [13:37:09]action value=close_receipt [13:37:09]process_action close_receipt [13:37:09]cmd_close_receipt [13:37:09]MH_GetDate [13:37:09]Write to MH i2c: F0 00 00 4E 34 71 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 09 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 09 00 4E 34 00 8A F0 1C 67 86 57 24 65 DD [13:37:09]GetLastDocTimeStamp 1729949535 [13:37:09]current date 1729949834 [13:37:09]FM_GetShiftState [13:37:09]SAM_PROTO_GetShiftState [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 13 01 00 [13:37:09]Write to MH i2c: E2 08 00 4F 34 80 13 01 00 00 00 00 00 00 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 4F 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 1B [13:37:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:37:09]wFMCommunicate OK [13:37:09]SAM_PROTO_GetShiftState done [13:37:09]FM_GetShiftState done [13:37:09]opened in 1729902166 [13:37:09]opened+sec_in_day 1729988566 [13:37:09]quantity*price = 40028 [13:37:09]sum+1 = 40029 [13:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 119 26.10.2024 13:37 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75127 ФПД: 21767657065675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133714&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75127&fm=21767657065675&tin=02508201610067®Number=0000000000091691&sum=40000 [13:37:10]StoreToDocumentArchive [13:37:10]shift 512 fd 75127 [13:37:10]save to /storage/0512/doc_00075127 [13:37:10]save last doc name /storage/0512/doc_00075127 to /storage/kkm_last_doc_name [13:37:10]save OK [13:37:10]Clear old archive folders... [13:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:37:10]tlvbuf is B6DA1450 [13:37:10]SAM_PROTO_ClearQueue [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 09 00 00 [13:37:10]Write to MH i2c: E2 08 00 5C 34 80 09 00 00 00 00 00 00 02 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 5C 34 00 90 00 04 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]SAM_PROTO_ClearQueue done [13:37:10]KKMCreateOFDPacket [13:37:10]OFDProtocolAddRootSTLVToBuf [13:37:10]FM_MakeSignedData [13:37:10]FM_MakeSignedData [13:37:10]SAM_PROTO_SignData [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 0D 01 02 [13:37:10]Write to MH i2c: E2 08 00 5D 34 80 0D 01 02 00 00 00 00 0A [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 5D 34 00 90 00 05 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=255 [13:37:10]MH_SAM_APDU [13:37:10]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 39 30 30 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 77 00 00 00 F4 03 04 00 8A F0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 77 25 01 00 35 04 06 00 13 CC [13:37:10]Write to MH i2c: E2 02 01 5E 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 39 30 30 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 77 00 00 00 F4 03 04 00 8A F0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 77 25 01 00 35 04 06 00 13 CC 00 00 0A [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 5E 34 00 90 00 06 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=9 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 0D 02 02 04 2D 77 8C CB [13:37:10]Write to MH i2c: E2 0C 00 5F 34 80 0D 02 02 04 00 2D 77 8C CB 00 00 10 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 5F 34 00 90 00 07 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 0D 03 02 [13:37:10]Write to MH i2c: E2 08 00 60 34 80 0D 03 02 00 00 00 00 0F [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 60 34 00 36 45 9F F2 A4 6D 9F 33 90 00 FF [13:37:11]RAPDU: 36 45 9F F2 A4 6D 9F 33 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_SignData done [13:37:11]FM_MakeSignedData done [13:37:11]CreateOFDProtocolMessage [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 11 00 00 [13:37:11]Write to MH i2c: E2 08 00 61 34 80 11 00 00 00 00 00 00 0F [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 61 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 67 [13:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:37:11]wFMCommunicate OK [13:37:11]CreateOFDProtocolMessage done [13:37:11]OFDSenderStorePacket 75127 [13:37:11]StoreOFDPacket docnum=75127 [13:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 8B 97 06 01 2E 60 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 39 30 30 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 77 00 00 00 F4 03 04 00 8A F0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 77 25 01 00 35 04 06 00 13 CC 2D 77 8C CB 36 45 9F F2 A4 6D 9F 33 [13:37:11]CheckFolder [13:37:11]dirname=/storage/ofd_packets [13:37:11]CheckFolder done [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00075127 [13:37:11]NVStorageSaveData ofd_packets/00075127 [13:37:11]File name is /storage/ofd_packets/00075127 [13:37:11]Write 300 bytes [13:37:11]NVStorageSaveData done [13:37:11]OFDSenderStorePacket done [13:37:11]KKMCreateOFDPacket done [13:37:11]NVStorageSaveData kkm_last_timestamp [13:37:11]File name is /storage/kkm_last_timestamp [13:37:11]Write 4 bytes [13:37:11]NVStorageSaveData done [13:37:11]ExternCall_PrintAddStr [13:37:11]wPrintStart [13:37:11]Write to MH i2c: 01 00 00 62 34 96 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 62 34 00 00 00 00 00 FF 0F AB [13:37:11]RasterBufferAndPrint [13:37:11]line Счет N : (1)191100 [13:37:11]line ИНН: 02508201610067 [13:37:11]line Контрольно-Кассовый Чек [13:37:11]line ПРОДАЖА [13:37:11]line ТРК (МРК, ГНК) : 51 [13:37:11]line Товар: 2711190000 [13:37:11]line ГАЗ-К-3 [13:37:11]line 10.290 * 38.90 [13:37:11]line = 400.28 [13:37:11]line НДС 12% НСП 1% [13:37:11]line > о реализуемом товаре [13:37:11]line ОКРУГЛЕНИЕ: -0.28 [13:37:11]line ИТОГО: 400.00 [13:37:11]line Внесено: 400.00 [13:37:11]line СДАЧА: 0.00 [13:37:11]line НСП 1% : 3.54 [13:37:11]line НДС 12% : 42.51 [13:37:11]line Наличными: 400.00 [13:37:11]line Безнал.: 0.00 [13:37:11]line Место: АЗС № 142 "Партнер Нефть" [13:37:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:37:11]line СНО: Общий режим [13:37:11]line Чек 119 26.10.2024 13:37 [13:37:11]line Смена: 512 ФФД: 1.0 [13:37:11]line ЗНМ: 0300000089 [13:37:11]line РНМ: 0000000000091691 [13:37:11]line Версия ККМ: 001 [13:37:11]line ФМ: 0000000000871795 [13:37:11]line ФД: 75127 [13:37:11]line ФПД: 21767657065675 [13:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133714&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75127&fm=21767657065675&tin=02508201610067®Number=0000000000091691&sum=40000 [13:37:11]written 0, free lines is 4095 [13:37:11]OFD Sender: Processing packet 75127 [packets to send 13, broken 12] [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00075127 [13:37:11]OFD Sender: To server: pG, [13:37:11]CommunicateWithHost lk.salyk.kg:30040 [13:37:11]ConnectInit lk.salyk.kg [13:37:11]Connected sock=9 [13:37:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 8B 97 06 01 2E 60 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 39 30 30 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 77 00 00 00 F4 03 04 00 8A F0 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 77 25 01 00 35 04 06 00 13 CC 2D 77 8C CB 36 45 9F F2 A4 6D 9F 33 [13:37:11]Write to MH i2c: 01 00 00 8D 34 C1 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 8D 34 00 00 00 00 00 A0 0C 74 [13:37:11]RasterBufferAndPrint [13:37:11]line [13:37:11]line [13:37:11]line [13:37:11]line [13:37:11]line [13:37:11]written 0, free lines is 3240 [13:37:11]MH_Cut [13:37:11]Write to MH i2c: D1 01 00 94 34 01 9A [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: D1 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: D1 01 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: D1 01 00 94 34 00 99 [13:37:11]Write to MH i2c: 01 00 00 95 34 C9 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 13 0B 47 00 9E 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 38 37 31 37 39 35 10 04 04 00 77 25 01 00 F4 03 04 00 06 98 1C 67 B6 04 01 00 00 79 A4 BA 11 A6 0C E0 6F [13:37:11]CommunicateWithHost err = 0 [13:37:11]CheckOFDResponse [13:37:11]1017 (14) - 77093643461234 [13:37:11]1041 (16) - 0000000000871795 [13:37:11]1040 (4) - 75127 [13:37:11]1012 (4) - 26.10.2024 07:19 [13:37:11]1206 (1) - 0 [13:37:11]OFD Sender: Remove packet 75127 [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00075127 [13:37:11]NVStorageDeleteData [13:37:12]OFD Sender: No OFD packet to send [13:37:12]*** Cut start [13:37:12]*** Partial cut [13:37:12]*** CUTSNS_PIN = 1 [13:37:12]*** CUTSNS_PIN = 0 [13:37:12]*** Brake cut motor [13:37:13]Read from MH i2c: 01 [13:37:13]MH_I2C_Read... [13:37:13]*** Stop cut motor [13:37:13]*** Cut end [13:37:13]Read from MH i2c: 01 07 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: 01 07 00 95 34 00 00 00 00 00 FF 0F DE [13:37:13]process_action close_receipt done [13:37:13]requested_data is exist [13:37:13]produce_requested_data [13:37:13]requested_item fm.sn is exist - process it [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 11 00 00 [13:37:13]Write to MH i2c: E2 08 00 96 34 80 11 00 00 00 00 00 00 44 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 96 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9C [13:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:37:13]wFMCommunicate OK [13:37:13]requested_item fd.num is exist - process it [13:37:13]SAM_PROTO_GetFieldsCounters [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 00 00 [13:37:13]Write to MH i2c: E2 08 00 97 34 80 13 00 00 00 00 00 00 47 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 97 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 77 25 01 00 0E 04 04 00 00 02 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 72 [13:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 77 25 01 00 0E 04 04 00 00 02 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 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetFieldsCounters done [13:37:13]requested_item shift.num is exist - process it [13:37:13]requested_item shift.opened is exist - process it [13:37:13]req_shift_opened [13:37:13]FM_GetShiftState [13:37:13]SAM_PROTO_GetShiftState [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 01 00 [13:37:13]Write to MH i2c: E2 08 00 98 34 80 13 01 00 00 00 00 00 49 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 98 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 64 [13:37:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetShiftState done [13:37:13]FM_GetShiftState done [13:37:13]req_shift_opened done [13:37:13]requested_item shift.open_date is exist - process it [13:37:13]req_shift_open_date [13:37:13]req_shift_open_date done [13:37:13]produce_requested_data done [13:37:13]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75127,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:37:13]process_action_free close_receipt [13:37:13]json_value_free [13:37:13]json_value_free done [13:37:13]process_json_proto returns [13:37:13]Send response to host [13:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75127,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:37:13]free response buf [13:37:13]execute_script done [13:37:13]execute_script returns [13:37:13]free content buf [13:37:13]Sock 8.Close socket [13:37:13]Sock 8.Thread stoped [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]accept exits with 10 [13:43:12]New connection [13:43:12]New thread 3066924388 created [13:43:12]Thread 3066781028 joined [13:43:12]Waiting for new connection... [13:43:12] Sock 10.Parse request [13:43:12]Sock 10.Check first char [13:43:12]Sock 10.First char is OK [13:43:12]request: POST /json_proto HTTP/1.0 [13:43:12]Method: POST [13:43:12]URL: /json_proto [13:43:12]Method is POST - this is cgi request [13:43:12]url: /json_proto [13:43:12]query_string will be loaded in cgi processing [13:43:12]execute_cgi json_proto POST (null) [13:43:12]execute_cgi path=json_proto method=POST [13:43:12]POST find Content-Length [13:43:12]Host: 172.17.39.131:8080 [13:43:12]Content-Length: 677 [13:43:12]Content-Type: application/json [13:43:12] [13:43:12]POST finish read [13:43:12]Found Content-Length = 677 [13:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:12]execute_script... [13:43: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)191101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:43:12]POST & json_proto [13:43:12]process_json_proto [13:43:12]json parsed OK: [13:43:12]protocol is kg_v1.0 [13:43:12]action value=close_receipt [13:43:12]process_action close_receipt [13:43:12]cmd_close_receipt [13:43:12]MH_GetDate [13:43:12]Write to MH i2c: F0 00 00 99 34 BC [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: F0 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: F0 09 00 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: F0 09 00 99 34 00 F5 F1 1C 67 86 57 24 65 94 [13:43:12]GetLastDocTimeStamp 1729949834 [13:43:12]current date 1729950197 [13:43:12]FM_GetShiftState [13:43:12]SAM_PROTO_GetShiftState [13:43:12]wFMCommunicate request_size=4 [13:43:12]MH_SAM_APDU [13:43:12]CAPDU: 80 13 01 00 [13:43:12]Write to MH i2c: E2 08 00 9A 34 80 13 01 00 00 00 00 00 4B [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:12]Read from MH i2c: E2 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: E2 0E 00 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: E2 0E 00 9A 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 66 [13:43:12]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:43:12]wFMCommunicate OK [13:43:12]SAM_PROTO_GetShiftState done [13:43:12]FM_GetShiftState done [13:43:12]opened in 1729902166 [13:43:12]opened+sec_in_day 1729988566 [13:43:12]quantity*price = 50041 [13:43:12]sum+1 = 50042 [13:43: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 120 26.10.2024 13:43 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75128 ФПД: 256039566529523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134317&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75128&fm=256039566529523&tin=02508201610067®Number=0000000000091691&sum=50000 [13:43:13]StoreToDocumentArchive [13:43:13]shift 512 fd 75128 [13:43:13]save to /storage/0512/doc_00075128 [13:43:13]save last doc name /storage/0512/doc_00075128 to /storage/kkm_last_doc_name [13:43:13]save OK [13:43:13]Clear old archive folders... [13:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:13]tlvbuf is 007D97D0 [13:43:13]SAM_PROTO_ClearQueue [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 09 00 00 [13:43:13]Write to MH i2c: E2 08 00 A7 34 80 09 00 00 00 00 00 00 4D [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 A7 34 00 90 00 4F [13:43:13]RAPDU: 90 00 [13:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_ClearQueue done [13:43:13]KKMCreateOFDPacket [13:43:13]OFDProtocolAddRootSTLVToBuf [13:43:13]FM_MakeSignedData [13:43:13]FM_MakeSignedData [13:43:13]SAM_PROTO_SignData [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 0D 01 02 [13:43:13]Write to MH i2c: E2 08 00 A8 34 80 0D 01 02 00 00 00 00 55 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [13:43:13]RAPDU: 90 00 [13:43:13]wFMCommunicate OK [13:43:13]wFMCommunicate request_size=255 [13:43:13]MH_SAM_APDU [13:43: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 78 00 00 00 F4 03 04 00 F5 F1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 78 25 01 00 35 04 06 00 E8 [13:43:13]Write to MH i2c: E2 02 01 A9 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F5 F1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 78 25 01 00 35 04 06 00 E8 00 00 53 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [13:43:13]RAPDU: 90 00 [13:43:13]wFMCommunicate OK [13:43:13]wFMCommunicate request_size=10 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 0D 02 02 05 DD DB 69 53 F3 [13:43:13]Write to MH i2c: E2 0D 00 AA 34 80 0D 02 02 05 00 DD DB 69 53 F3 00 00 C9 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [13:43:13]RAPDU: 90 00 [13:43:13]wFMCommunicate OK [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 0D 03 02 [13:43:13]Write to MH i2c: E2 08 00 AB 34 80 0D 03 02 00 00 00 00 5A [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 0B 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 0B 00 AB 34 00 7C 85 50 E6 7F C7 FB 0E 90 00 E1 [13:43:13]RAPDU: 7C 85 50 E6 7F C7 FB 0E 90 00 [13:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_SignData done [13:43:13]FM_MakeSignedData done [13:43:13]CreateOFDProtocolMessage [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 11 00 00 [13:43:13]Write to MH i2c: E2 08 00 AC 34 80 11 00 00 00 00 00 00 5A [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 AC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B2 [13:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:43:13]wFMCommunicate OK [13:43:13]CreateOFDProtocolMessage done [13:43:13]OFDSenderStorePacket 75128 [13:43:13]StoreOFDPacket docnum=75128 [13:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C2 2C 07 01 2E 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 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 78 00 00 00 F4 03 04 00 F5 F1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 78 25 01 00 35 04 06 00 E8 DD DB 69 53 F3 7C 85 50 E6 7F C7 FB 0E [13:43:13]CheckFolder [13:43:13]dirname=/storage/ofd_packets [13:43:13]CheckFolder done [13:43:13]ProducePacketName [13:43:13]name=ofd_packets/00075128 [13:43:13]NVStorageSaveData ofd_packets/00075128 [13:43:13]File name is /storage/ofd_packets/00075128 [13:43:13]Write 301 bytes [13:43:13]NVStorageSaveData done [13:43:13]OFDSenderStorePacket done [13:43:13]KKMCreateOFDPacket done [13:43:13]NVStorageSaveData kkm_last_timestamp [13:43:13]File name is /storage/kkm_last_timestamp [13:43:13]Write 4 bytes [13:43:13]NVStorageSaveData done [13:43:13]ExternCall_PrintAddStr [13:43:13]wPrintStart [13:43:13]Write to MH i2c: 01 00 00 AD 34 E1 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: 01 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: 01 07 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: 01 07 00 AD 34 00 00 00 00 00 FF 0F F6 [13:43:13]RasterBufferAndPrint [13:43:13]line Счет N : (1)191101 [13:43:13]line ИНН: 02508201610067 [13:43:13]line Контрольно-Кассовый Чек [13:43:13]line ПРОДАЖА [13:43:13]line ТРК (МРК, ГНК) : 21 [13:43:13]line Товар: 2710124130 [13:43:13]line Аи-92-К-5 [13:43:13]line 7.480 * 66.90 [13:43:13]line = 500.41 [13:43:13]line НДС 12% НСП 1% [13:43:13]line > о реализуемом товаре [13:43:13]line ОКРУГЛЕНИЕ: -0.41 [13:43:13]line ИТОГО: 500.00 [13:43:13]line Внесено: 500.00 [13:43:13]line СДАЧА: 0.00 [13:43:13]line НСП 1% : 4.43 [13:43:13]line НДС 12% : 53.14 [13:43:13]line Наличными: 500.00 [13:43:13]line Безнал.: 0.00 [13:43:13]line Место: АЗС № 142 "Партнер Нефть" [13:43:13]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:43:13]line СНО: Общий режим [13:43:13]line Чек 120 26.10.2024 13:43 [13:43:13]line Смена: 512 ФФД: 1.0 [13:43:13]line ЗНМ: 0300000089 [13:43:13]line РНМ: 0000000000091691 [13:43:13]line Версия ККМ: 001 [13:43:13]line ФМ: 0000000000871795 [13:43:13]line ФД: 75128 [13:43:13]line ФПД: 256039566529523 [13:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134317&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75128&fm=256039566529523&tin=02508201610067®Number=0000000000091691&sum=50000 [13:43:14]OFD Sender: Processing packet 75128 [packets to send 13, broken 12] [13:43:14]ProducePacketName [13:43:14]name=ofd_packets/00075128 [13:43:14]OFD Sender: To server: pG, [13:43:14]CommunicateWithHost lk.salyk.kg:30040 [13:43:14]ConnectInit lk.salyk.kg [13:43:14]written 0, free lines is 4095 [13:43:14]Connected sock=9 [13:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C2 2C 07 01 2E 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 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 78 00 00 00 F4 03 04 00 F5 F1 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 78 25 01 00 35 04 06 00 E8 DD DB 69 53 F3 7C 85 50 E6 7F C7 FB 0E [13:43:14]Write to MH i2c: 01 00 00 D8 34 0C [13:43:14]Write i2c OK [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: 01 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: 01 07 00 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 A2 0C C1 [13:43:14]RasterBufferAndPrint [13:43:14]line [13:43:14]line [13:43:14]line [13:43:14]line [13:43:14]line [13:43:14]written 0, free lines is 3240 [13:43:14]MH_Cut [13:43:14]Write to MH i2c: D1 01 00 DF 34 01 E5 [13:43:14]Write i2c OK [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: D1 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: D1 01 00 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: D1 01 00 DF 34 00 E4 [13:43:14]Write to MH i2c: 01 00 00 E0 34 14 [13:43:14]Write i2c OK [13:43:14]MH_I2C_Read... [13:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AB 0E 47 00 AD 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 78 25 01 00 F4 03 04 00 71 99 1C 67 B6 04 01 00 00 56 5B 22 88 7D F1 42 FF [13:43:14]CommunicateWithHost err = 0 [13:43:14]CheckOFDResponse [13:43:14]1017 (14) - 77093643461234 [13:43:14]1041 (16) - 0000000000871795 [13:43:14]1040 (4) - 75128 [13:43:14]1012 (4) - 26.10.2024 07:25 [13:43:14]1206 (1) - 0 [13:43:14]OFD Sender: Remove packet 75128 [13:43:14]ProducePacketName [13:43:14]name=ofd_packets/00075128 [13:43:14]NVStorageDeleteData [13:43:15]OFD Sender: No OFD packet to send [13:43:15]*** Cut start [13:43:15]*** Partial cut [13:43:15]*** CUTSNS_PIN = 1 [13:43:15]*** CUTSNS_PIN = 0 [13:43:15]*** Brake cut motor [13:43:16]Read from MH i2c: 01 [13:43:16]MH_I2C_Read... [13:43:16]*** Stop cut motor [13:43:16]*** Cut end [13:43:16]Read from MH i2c: 01 07 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: 01 07 00 E0 34 00 00 00 00 00 FF 0F 29 [13:43:16]process_action close_receipt done [13:43:16]requested_data is exist [13:43:16]produce_requested_data [13:43:16]requested_item fm.sn is exist - process it [13:43:16]wFMCommunicate request_size=4 [13:43:16]MH_SAM_APDU [13:43:16]CAPDU: 80 11 00 00 [13:43:16]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [13:43:16]Write i2c OK [13:43:16]MH_I2C_Read... [13:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:16]Read from MH i2c: E2 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 17 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [13:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:43:16]wFMCommunicate OK [13:43:16]requested_item fd.num is exist - process it [13:43:16]SAM_PROTO_GetFieldsCounters [13:43:16]wFMCommunicate request_size=4 [13:43:16]MH_SAM_APDU [13:43:16]CAPDU: 80 13 00 00 [13:43:16]Write to MH i2c: E2 08 00 E2 34 80 13 00 00 00 00 00 00 92 [13:43:16]Write i2c OK [13:43:16]MH_I2C_Read... [13:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:16]Read from MH i2c: E2 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 62 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 62 00 E2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 78 25 01 00 0E 04 04 00 00 02 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 C1 [13:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 78 25 01 00 0E 04 04 00 00 02 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 [13:43:16]wFMCommunicate OK [13:43:16]SAM_PROTO_GetFieldsCounters done [13:43:16]requested_item shift.num is exist - process it [13:43:16]requested_item shift.opened is exist - process it [13:43:16]req_shift_opened [13:43:16]FM_GetShiftState [13:43:16]SAM_PROTO_GetShiftState [13:43:16]wFMCommunicate request_size=4 [13:43:16]MH_SAM_APDU [13:43:16]CAPDU: 80 13 01 00 [13:43:16]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [13:43:16]Write i2c OK [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 [13:43:16]MH_I2C_Read... [13:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:16]Read from MH i2c: E2 0E 00 [13:43:16]MH_I2C_Read... [13:43:16]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AF [13:43:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:43:16]wFMCommunicate OK [13:43:16]SAM_PROTO_GetShiftState done [13:43:16]FM_GetShiftState done [13:43:16]req_shift_opened done [13:43:16]requested_item shift.open_date is exist - process it [13:43:16]req_shift_open_date [13:43:16]req_shift_open_date done [13:43:16]produce_requested_data done [13:43:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75128,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:43:16]process_action_free close_receipt [13:43:16]json_value_free [13:43:16]json_value_free done [13:43:16]process_json_proto returns [13:43:16]Send response to host [13:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75128,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:43:16]free response buf [13:43:16]execute_script done [13:43:16]execute_script returns [13:43:16]free content buf [13:43:16]Sock 10.Close socket [13:43:16]Sock 10.Thread stoped [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:16]accept exits with 8 [13:53:16]New connection [13:53:16]New thread 3066781028 created [13:53:16]Thread 3066924388 joined [13:53:16]Waiting for new connection... [13:53:16] Sock 8.Parse request [13:53:16]Sock 8.Check first char [13:53:16]Sock 8.First char is OK [13:53:16]request: POST /json_proto HTTP/1.0 [13:53:16]Method: POST [13:53:16]URL: /json_proto [13:53:16]Method is POST - this is cgi request [13:53:16]url: /json_proto [13:53:16]query_string will be loaded in cgi processing [13:53:16]execute_cgi json_proto POST (null) [13:53:16]execute_cgi path=json_proto method=POST [13:53:16]POST find Content-Length [13:53:16]Host: 172.17.39.131:8080 [13:53:16]Content-Length: 766 [13:53:16]Content-Type: application/json [13:53:16] [13:53:16]POST finish read [13:53:16]Found Content-Length = 766 [13:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:53:16]execute_script... [13:53: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)191102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [13:53:16]POST & json_proto [13:53:16]process_json_proto [13:53:16]json parsed OK: [13:53:16]protocol is kg_v1.0 [13:53:16]action value=close_receipt [13:53:16]process_action close_receipt [13:53:16]cmd_close_receipt [13:53:16]MH_GetDate [13:53:16]Write to MH i2c: F0 00 00 E4 34 07 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 09 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: F0 09 00 E4 34 00 51 F4 1C 67 86 57 24 65 3E [13:53:16]GetLastDocTimeStamp 1729950197 [13:53:16]current date 1729950801 [13:53:16]FM_GetShiftState [13:53:16]SAM_PROTO_GetShiftState [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 13 01 00 [13:53:16]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0E 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B1 [13:53:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:53:16]wFMCommunicate OK [13:53:16]SAM_PROTO_GetShiftState done [13:53:16]FM_GetShiftState done [13:53:16]opened in 1729902166 [13:53:16]opened+sec_in_day 1729988566 [13:53:16]quantity*price = 50041 [13:53:16]sum+1 = 50042 [13:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 121 26.10.2024 13:53 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75129 ФПД: 94277210519538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135321&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75129&fm=94277210519538&tin=02508201610067®Number=0000000000091691&sum=50041 [13:53:17]StoreToDocumentArchive [13:53:17]shift 512 fd 75129 [13:53:17]save to /storage/0512/doc_00075129 [13:53:17]save last doc name /storage/0512/doc_00075129 to /storage/kkm_last_doc_name [13:53:17]save OK [13:53:17]Clear old archive folders... [13:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:17]tlvbuf is 00918A00 [13:53:17]SAM_PROTO_ClearQueue [13:53:17]wFMCommunicate request_size=4 [13:53:17]MH_SAM_APDU [13:53:17]CAPDU: 80 09 00 00 [13:53:17]Write to MH i2c: E2 08 00 F2 34 80 09 00 00 00 00 00 00 98 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [13:53:17]RAPDU: 90 00 [13:53:17]wFMCommunicate OK [13:53:17]SAM_PROTO_ClearQueue done [13:53:17]KKMCreateOFDPacket [13:53:17]OFDProtocolAddRootSTLVToBuf [13:53:17]FM_MakeSignedData [13:53:17]FM_MakeSignedData [13:53:17]SAM_PROTO_SignData [13:53:17]wFMCommunicate request_size=4 [13:53:17]MH_SAM_APDU [13:53:17]CAPDU: 80 0D 01 02 [13:53:17]Write to MH i2c: E2 08 00 F3 34 80 0D 01 02 00 00 00 00 A0 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [13:53:17]RAPDU: 90 00 [13:53:17]wFMCommunicate OK [13:53:17]wFMCommunicate request_size=255 [13:53:17]MH_SAM_APDU [13:53: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 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 79 00 00 00 F4 03 04 00 51 F4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 79 25 01 00 35 04 06 00 55 [13:53:17]Write to MH i2c: E2 02 01 F4 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 79 00 00 00 F4 03 04 00 51 F4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 79 25 01 00 35 04 06 00 55 00 00 BE [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [13:53:17]RAPDU: 90 00 [13:53:17]wFMCommunicate OK [13:53:17]wFMCommunicate request_size=10 [13:53:17]MH_SAM_APDU [13:53:17]CAPDU: 80 0D 02 02 05 BE 9F A4 B7 F2 [13:53:17]Write to MH i2c: E2 0D 00 F5 34 80 0D 02 02 05 00 BE 9F A4 B7 F2 00 00 57 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [13:53:17]RAPDU: 90 00 [13:53:17]wFMCommunicate OK [13:53:17]wFMCommunicate request_size=4 [13:53:17]MH_SAM_APDU [13:53:17]CAPDU: 80 0D 03 02 [13:53:17]Write to MH i2c: E2 08 00 F6 34 80 0D 03 02 00 00 00 00 A5 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0B 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0B 00 F6 34 00 D1 54 6C 55 4B 62 1E D9 90 00 30 [13:53:18]RAPDU: D1 54 6C 55 4B 62 1E D9 90 00 [13:53:18]wFMCommunicate OK [13:53:18]SAM_PROTO_SignData done [13:53:18]FM_MakeSignedData done [13:53:18]CreateOFDProtocolMessage [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 11 00 00 [13:53:18]Write to MH i2c: E2 08 00 F7 34 80 11 00 00 00 00 00 00 A5 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 F7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FD [13:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:53:18]wFMCommunicate OK [13:53:18]CreateOFDProtocolMessage done [13:53:18]OFDSenderStorePacket 75129 [13:53:18]StoreOFDPacket docnum=75129 [13:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5F 4D 07 01 18 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 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 79 00 00 00 F4 03 04 00 51 F4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 79 25 01 00 35 04 06 00 55 BE 9F A4 B7 F2 D1 54 6C 55 4B 62 1E D9 [13:53:18]CheckFolder [13:53:18]dirname=/storage/ofd_packets [13:53:18]CheckFolder done [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00075129 [13:53:18]NVStorageSaveData ofd_packets/00075129 [13:53:18]File name is /storage/ofd_packets/00075129 [13:53:18]Write 301 bytes [13:53:18]NVStorageSaveData done [13:53:18]OFDSenderStorePacket done [13:53:18]KKMCreateOFDPacket done [13:53:18]NVStorageSaveData kkm_last_timestamp [13:53:18]File name is /storage/kkm_last_timestamp [13:53:18]Write 4 bytes [13:53:18]NVStorageSaveData done [13:53:18]ExternCall_PrintAddStr [13:53:18]wPrintStart [13:53:18]Write to MH i2c: 01 00 00 F8 34 2C [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 F8 34 00 00 00 00 00 FF 0F 41 [13:53:18]RasterBufferAndPrint [13:53:18]line Счет N : (1)191102 [13:53:18]line ИНН: 02508201610067 [13:53:18]line Контрольно-Кассовый Чек [13:53:18]line ПРОДАЖА [13:53:18]line ТРК (МРК, ГНК) : 21 [13:53:18]line Товар: 2710124130 [13:53:18]line Аи-92-К-5 [13:53:18]line 7.480 * 66.90 [13:53:18]line = 500.41 [13:53:18]line НДС 12% НСП 1% [13:53:18]line > о реализуемом товаре [13:53:18]line ИТОГО: 500.41 [13:53:18]line НСП 1% : 4.43 [13:53:18]line НДС 12% : 53.14 [13:53:18]line Наличными: 0.00 [13:53:18]line Безнал.: 500.41 [13:53:18]line Место: АЗС № 142 "Партнер Нефть" [13:53:18]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:53:18]line СНО: Общий режим [13:53:18]line Чек 121 26.10.2024 13:53 [13:53:18]line Смена: 512 ФФД: 1.0 [13:53:18]line ЗНМ: 0300000089 [13:53:18]line РНМ: 0000000000091691 [13:53:18]line Версия ККМ: 001 [13:53:18]line Платежная система: Mbank [13:53:18]line ФМ: 0000000000871795 [13:53:18]line ФД: 75129 [13:53:18]line ФПД: 94277210519538 [13:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135321&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75129&fm=94277210519538&tin=02508201610067®Number=0000000000091691&sum=50041 [13:53:18]written 0, free lines is 4095 [13:53:18]OFD Sender: Processing packet 75129 [packets to send 13, broken 12] [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00075129 [13:53:18]OFD Sender: To server: pG, [13:53:18]CommunicateWithHost lk.salyk.kg:30040 [13:53:18]ConnectInit lk.salyk.kg [13:53:18]Write to MH i2c: 01 00 00 21 35 56 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 21 35 00 00 00 00 00 C6 0C 2F [13:53:18]RasterBufferAndPrint [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]line [13:53:18]written 0, free lines is 3275 [13:53:18]MH_Cut [13:53:18]Write to MH i2c: D1 01 00 28 35 01 2F [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: D1 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: D1 01 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: D1 01 00 28 35 00 2E [13:53:18]Write to MH i2c: 01 00 00 29 35 5E [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]Connected sock=10 [13:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5F 4D 07 01 18 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 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 79 00 00 00 F4 03 04 00 51 F4 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 79 25 01 00 35 04 06 00 55 BE 9F A4 B7 F2 D1 54 6C 55 4B 62 1E D9 [13:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FD FE 47 00 F9 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 79 25 01 00 F4 03 04 00 CD 9B 1C 67 B6 04 01 00 00 16 9D 6B FB 16 8C DD 49 [13:53:18]CommunicateWithHost err = 0 [13:53:18]CheckOFDResponse [13:53:18]1017 (14) - 77093643461234 [13:53:18]1041 (16) - 0000000000871795 [13:53:18]1040 (4) - 75129 [13:53:18]1012 (4) - 26.10.2024 07:35 [13:53:18]1206 (1) - 0 [13:53:18]OFD Sender: Remove packet 75129 [13:53:18]ProducePacketName [13:53:18]name=ofd_packets/00075129 [13:53:18]NVStorageDeleteData [13:53:19]*** Cut start [13:53:19]*** Partial cut [13:53:19]*** CUTSNS_PIN = 1 [13:53:19]OFD Sender: No OFD packet to send [13:53:19]*** CUTSNS_PIN = 0 [13:53:19]*** Brake cut motor [13:53:20]Read from MH i2c: 01 [13:53:20]MH_I2C_Read... [13:53:20]*** Stop cut motor [13:53:20]*** Cut end [13:53:20]Read from MH i2c: 01 07 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 FF 0F 73 [13:53:20]process_action close_receipt done [13:53:20]requested_data is exist [13:53:20]produce_requested_data [13:53:20]requested_item fm.sn is exist - process it [13:53:20]wFMCommunicate request_size=4 [13:53:20]MH_SAM_APDU [13:53:20]CAPDU: 80 11 00 00 [13:53:20]Write to MH i2c: E2 08 00 2A 35 80 11 00 00 00 00 00 00 D9 [13:53:20]Write i2c OK [13:53:20]MH_I2C_Read... [13:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:20]Read from MH i2c: E2 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 17 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 17 00 2A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [13:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:53:20]wFMCommunicate OK [13:53:20]requested_item fd.num is exist - process it [13:53:20]SAM_PROTO_GetFieldsCounters [13:53:20]wFMCommunicate request_size=4 [13:53:20]MH_SAM_APDU [13:53:20]CAPDU: 80 13 00 00 [13:53:20]Write to MH i2c: E2 08 00 2B 35 80 13 00 00 00 00 00 00 DC [13:53:20]Write i2c OK [13:53:20]MH_I2C_Read... [13:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:20]Read from MH i2c: E2 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 62 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 62 00 2B 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 79 25 01 00 0E 04 04 00 00 02 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 0F [13:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 79 25 01 00 0E 04 04 00 00 02 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 [13:53:20]wFMCommunicate OK [13:53:20]SAM_PROTO_GetFieldsCounters done [13:53:20]requested_item shift.num is exist - process it [13:53:20]requested_item shift.opened is exist - process it [13:53:20]req_shift_opened [13:53:20]FM_GetShiftState [13:53:20]SAM_PROTO_GetShiftState [13:53:20]wFMCommunicate request_size=4 [13:53:20]MH_SAM_APDU [13:53:20]CAPDU: 80 13 01 00 [13:53:20]Write to MH i2c: E2 08 00 2C 35 80 13 01 00 00 00 00 00 DE [13:53:20]Write i2c OK [13:53:20]MH_I2C_Read... [13:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:20]Read from MH i2c: E2 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 0E 00 [13:53:20]MH_I2C_Read... [13:53:20]Read from MH i2c: E2 0E 00 2C 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F9 [13:53:20]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:53:20]wFMCommunicate OK [13:53:20]SAM_PROTO_GetShiftState done [13:53:20]FM_GetShiftState done [13:53:20]req_shift_opened done [13:53:20]requested_item shift.open_date is exist - process it [13:53:20]req_shift_open_date [13:53:20]req_shift_open_date done [13:53:20]produce_requested_data done [13:53:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75129,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:53:20]process_action_free close_receipt [13:53:20]json_value_free [13:53:20]json_value_free done [13:53:20]process_json_proto returns [13:53:20]Send response to host [13:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75129,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:53:20]free response buf [13:53:20]execute_script done [13:53:20]execute_script returns [13:53:20]free content buf [13:53:20]Sock 8.Close socket [13:53:20]Sock 8.Thread stoped [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:48]accept exits with 9 [13:56:48]New connection [13:56:48]New thread 3066924388 created [13:56:48]Thread 3066781028 joined [13:56:48]Waiting for new connection... [13:56:48] Sock 9.Parse request [13:56:48]Sock 9.Check first char [13:56:48]Sock 9.First char is OK [13:56:48]request: POST /json_proto HTTP/1.0 [13:56:48]Method: POST [13:56:48]URL: /json_proto [13:56:48]Method is POST - this is cgi request [13:56:48]url: /json_proto [13:56:48]query_string will be loaded in cgi processing [13:56:48]execute_cgi json_proto POST (null) [13:56:48]execute_cgi path=json_proto method=POST [13:56:48]POST find Content-Length [13:56:48]Host: 172.17.39.131:8080 [13:56:48]Content-Length: 679 [13:56:48]Content-Type: application/json [13:56:48] [13:56:48]POST finish read [13:56:48]Found Content-Length = 679 [13:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:48]execute_script... [13: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)191103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:48]POST & json_proto [13:56:48]process_json_proto [13:56:48]json parsed OK: [13:56:48]protocol is kg_v1.0 [13:56:48]action value=close_receipt [13:56:48]process_action close_receipt [13:56:48]cmd_close_receipt [13:56:48]MH_GetDate [13:56:48]Write to MH i2c: F0 00 00 2D 35 51 [13:56:48]Write i2c OK [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: F0 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: F0 09 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: F0 09 00 2D 35 00 25 F5 1C 67 86 57 24 65 5D [13:56:48]GetLastDocTimeStamp 1729950801 [13:56:48]current date 1729951013 [13:56:48]FM_GetShiftState [13:56:48]SAM_PROTO_GetShiftState [13:56:48]wFMCommunicate request_size=4 [13:56:48]MH_SAM_APDU [13:56:48]CAPDU: 80 13 01 00 [13:56:48]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [13:56:48]Write i2c OK [13:56:48]MH_I2C_Read... [13:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:48]Read from MH i2c: E2 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 0E 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FB [13:56:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:56:48]wFMCommunicate OK [13:56:48]SAM_PROTO_GetShiftState done [13:56:48]FM_GetShiftState done [13:56:48]opened in 1729902166 [13:56:48]opened+sec_in_day 1729988566 [13:56:48]quantity*price = 100050 [13:56:48]sum+1 = 100052 [13: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 122 26.10.2024 13:56 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75130 ФПД: 230147791118855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135653&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75130&fm=230147791118855&tin=02508201610067®Number=0000000000091691&sum=100000 [13:56:49]StoreToDocumentArchive [13:56:49]shift 512 fd 75130 [13:56:49]save to /storage/0512/doc_00075130 [13:56:49]save last doc name /storage/0512/doc_00075130 to /storage/kkm_last_doc_name [13:56:49]save OK [13:56:49]Clear old archive folders... [13:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:56:49]tlvbuf is 0080BFC0 [13:56:49]SAM_PROTO_ClearQueue [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 09 00 00 [13:56:49]Write to MH i2c: E2 08 00 3B 35 80 09 00 00 00 00 00 00 E2 [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [13:56:49]RAPDU: 90 00 [13:56:49]wFMCommunicate OK [13:56:49]SAM_PROTO_ClearQueue done [13:56:49]KKMCreateOFDPacket [13:56:49]OFDProtocolAddRootSTLVToBuf [13:56:49]FM_MakeSignedData [13:56:49]FM_MakeSignedData [13:56:49]SAM_PROTO_SignData [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 0D 01 02 [13:56:49]Write to MH i2c: E2 08 00 3C 35 80 0D 01 02 00 00 00 00 EA [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [13:56:49]RAPDU: 90 00 [13:56:49]wFMCommunicate OK [13:56:49]wFMCommunicate request_size=255 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 7A 00 00 00 F4 03 04 00 25 F5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7A 25 01 00 35 04 06 00 D1 51 75 55 [13:56:49]Write to MH i2c: E2 02 01 3D 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 34 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 7A 00 00 00 F4 03 04 00 25 F5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7A 25 01 00 35 04 06 00 D1 51 75 55 00 00 19 [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]OFD Sender: No OFD packet to send [13:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [13:56:49]RAPDU: 90 00 [13:56:49]wFMCommunicate OK [13:56:49]wFMCommunicate request_size=7 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 0D 02 02 02 E2 07 [13:56:49]Write to MH i2c: E2 0A 00 3E 35 80 0D 02 02 02 00 E2 07 00 00 DA [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [13:56:49]RAPDU: 90 00 [13:56:49]wFMCommunicate OK [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 0D 03 02 [13:56:49]Write to MH i2c: E2 08 00 3F 35 80 0D 03 02 00 00 00 00 EF [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 0B 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 0B 00 3F 35 00 70 01 D9 F9 00 E7 EB FB 90 00 00 [13:56:49]RAPDU: 70 01 D9 F9 00 E7 EB FB 90 00 [13:56:49]wFMCommunicate OK [13:56:49]SAM_PROTO_SignData done [13:56:49]FM_MakeSignedData done [13:56:49]CreateOFDProtocolMessage [13:56:49]wFMCommunicate request_size=4 [13:56:49]MH_SAM_APDU [13:56:49]CAPDU: 80 11 00 00 [13:56:49]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:49]Read from MH i2c: E2 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 17 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 47 [13:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:56:49]wFMCommunicate OK [13:56:49]CreateOFDProtocolMessage done [13:56:49]OFDSenderStorePacket 75130 [13:56:49]StoreOFDPacket docnum=75130 [13:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 B8 DE 04 01 CD 35 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 34 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 7A 00 00 00 F4 03 04 00 25 F5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7A 25 01 00 35 04 06 00 D1 51 75 55 E2 07 70 01 D9 F9 00 E7 EB FB [13:56:49]CheckFolder [13:56:49]dirname=/storage/ofd_packets [13:56:49]CheckFolder done [13:56:49]ProducePacketName [13:56:49]name=ofd_packets/00075130 [13:56:49]NVStorageSaveData ofd_packets/00075130 [13:56:49]File name is /storage/ofd_packets/00075130 [13:56:49]Write 298 bytes [13:56:49]NVStorageSaveData done [13:56:49]OFDSenderStorePacket done [13:56:49]KKMCreateOFDPacket done [13:56:49]NVStorageSaveData kkm_last_timestamp [13:56:49]File name is /storage/kkm_last_timestamp [13:56:49]Write 4 bytes [13:56:49]NVStorageSaveData done [13:56:49]ExternCall_PrintAddStr [13:56:49]wPrintStart [13:56:49]Write to MH i2c: 01 00 00 41 35 76 [13:56:49]Write i2c OK [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: 01 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: 01 07 00 [13:56:49]MH_I2C_Read... [13:56:49]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [13:56:49]RasterBufferAndPrint [13:56:49]line Счет N : (1)191103 [13:56:49]line ИНН: 02508201610067 [13:56:49]line Контрольно-Кассовый Чек [13:56:49]line ПРОДАЖА [13:56:49]line ТРК (МРК, ГНК) : 41 [13:56:49]line Товар: 2710194210 [13:56:49]line ДТ-К-4 [13:56:49]line 13.130 * 76.20 [13:56:49]line = 1000.51 [13:56:49]line НДС 12% НСП 1% [13:56:49]line > о реализуемом товаре [13:56:49]line ОКРУГЛЕНИЕ: -0.51 [13:56:49]line ИТОГО: 1000.00 [13:56:49]line Внесено: 1000.00 [13:56:49]line СДАЧА: 0.00 [13:56:49]line НСП 1% : 8.85 [13:56:49]line НДС 12% : 106.25 [13:56:49]line Наличными: 1000.00 [13:56:49]line Безнал.: 0.00 [13:56:49]line Место: АЗС № 142 "Партнер Нефть" [13:56:49]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [13:56:49]line СНО: Общий режим [13:56:49]line Чек 122 26.10.2024 13:56 [13:56:49]line Смена: 512 ФФД: 1.0 [13:56:49]line ЗНМ: 0300000089 [13:56:49]line РНМ: 0000000000091691 [13:56:49]line Версия ККМ: 001 [13:56:49]line ФМ: 0000000000871795 [13:56:49]line ФД: 75130 [13:56:49]line ФПД: 230147791118855 [13:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135653&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75130&fm=230147791118855&tin=02508201610067®Number=0000000000091691&sum=100000 [13:56:50]OFD Sender: Processing packet 75130 [packets to send 13, broken 12] [13:56:50]ProducePacketName [13:56:50]name=ofd_packets/00075130 [13:56:50]OFD Sender: To server: pG, [13:56:50]CommunicateWithHost lk.salyk.kg:30040 [13:56:50]ConnectInit lk.salyk.kg [13:56:50]written 0, free lines is 4095 [13:56:50]Connected sock=10 [13:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 B8 DE 04 01 CD 35 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 34 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 7A 00 00 00 F4 03 04 00 25 F5 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7A 25 01 00 35 04 06 00 D1 51 75 55 E2 07 70 01 D9 F9 00 E7 EB FB [13:56:50]Write to MH i2c: 01 00 00 6C 35 A1 [13:56:50]Write i2c OK [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: 01 [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: 01 07 00 [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: 01 07 00 6C 35 00 00 00 00 00 A2 0C 56 [13:56:50]RasterBufferAndPrint [13:56:50]line [13:56:50]line [13:56:50]line [13:56:50]line [13:56:50]line [13:56:50]written 0, free lines is 3240 [13:56:50]MH_Cut [13:56:50]Write to MH i2c: D1 01 00 73 35 01 7A [13:56:50]Write i2c OK [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: D1 [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: D1 01 00 [13:56:50]MH_I2C_Read... [13:56:50]Read from MH i2c: D1 01 00 73 35 00 79 [13:56:50]Write to MH i2c: 01 00 00 74 35 A9 [13:56:50]Write i2c OK [13:56:50]MH_I2C_Read... [13:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 59 4E 47 00 BA 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7A 25 01 00 F4 03 04 00 A1 9C 1C 67 B6 04 01 00 00 97 14 C1 4F A9 80 2C A2 [13:56:50]CommunicateWithHost err = 0 [13:56:50]CheckOFDResponse [13:56:50]1017 (14) - 77093643461234 [13:56:50]1041 (16) - 0000000000871795 [13:56:50]1040 (4) - 75130 [13:56:50]1012 (4) - 26.10.2024 07:39 [13:56:50]1206 (1) - 0 [13:56:50]OFD Sender: Remove packet 75130 [13:56:50]ProducePacketName [13:56:50]name=ofd_packets/00075130 [13:56:50]NVStorageDeleteData [13:56:51]OFD Sender: No OFD packet to send [13:56:51]*** Cut start [13:56:51]*** Partial cut [13:56:51]*** CUTSNS_PIN = 1 [13:56:51]*** CUTSNS_PIN = 0 [13:56:51]*** Brake cut motor [13:56:52]Read from MH i2c: 01 [13:56:52]MH_I2C_Read... [13:56:52]*** Stop cut motor [13:56:52]*** Cut end [13:56:52]Read from MH i2c: 01 07 00 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: 01 07 00 74 35 00 00 00 00 00 FF 0F BE [13:56:52]process_action close_receipt done [13:56:52]requested_data is exist [13:56:52]produce_requested_data [13:56:52]requested_item fm.sn is exist - process it [13:56:52]wFMCommunicate request_size=4 [13:56:52]MH_SAM_APDU [13:56:52]CAPDU: 80 11 00 00 [13:56:52]Write to MH i2c: E2 08 00 75 35 80 11 00 00 00 00 00 00 24 [13:56:52]Write i2c OK [13:56:52]MH_I2C_Read... [13:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:52]Read from MH i2c: E2 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 17 00 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 17 00 75 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [13:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [13:56:52]wFMCommunicate OK [13:56:52]requested_item fd.num is exist - process it [13:56:52]SAM_PROTO_GetFieldsCounters [13:56:52]wFMCommunicate request_size=4 [13:56:52]MH_SAM_APDU [13:56:52]CAPDU: 80 13 00 00 [13:56:52]Write to MH i2c: E2 08 00 76 35 80 13 00 00 00 00 00 00 27 [13:56:52]Write i2c OK [13:56:52]MH_I2C_Read... [13:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:52]Read from MH i2c: E2 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 62 00 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 62 00 76 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7A 25 01 00 0E 04 04 00 00 02 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 5E [13:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7A 25 01 00 0E 04 04 00 00 02 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 [13:56:52]wFMCommunicate OK [13:56:52]SAM_PROTO_GetFieldsCounters done [13:56:52]requested_item shift.num is exist - process it [13:56:52]requested_item shift.opened is exist - process it [13:56:52]req_shift_opened [13:56:52]FM_GetShiftState [13:56:52]SAM_PROTO_GetShiftState [13:56:52]wFMCommunicate request_size=4 [13:56:52]MH_SAM_APDU [13:56:52]CAPDU: 80 13 01 00 [13:56:52]Write to MH i2c: E2 08 00 77 35 80 13 01 00 00 00 00 00 29 [13:56:52]Write i2c OK [13:56:52]MH_I2C_Read... [13:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:52]Read from MH i2c: E2 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 0E 00 [13:56:52]MH_I2C_Read... [13:56:52]Read from MH i2c: E2 0E 00 77 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 44 [13:56:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [13:56:52]wFMCommunicate OK [13:56:52]SAM_PROTO_GetShiftState done [13:56:52]FM_GetShiftState done [13:56:52]req_shift_opened done [13:56:52]requested_item shift.open_date is exist - process it [13:56:52]req_shift_open_date [13:56:52]req_shift_open_date done [13:56:52]produce_requested_data done [13:56:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75130,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [13:56:52]process_action_free close_receipt [13:56:52]json_value_free [13:56:52]json_value_free done [13:56:52]process_json_proto returns [13:56:52]Send response to host [13:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75130,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [13:56:52]free response buf [13:56:52]execute_script done [13:56:52]execute_script returns [13:56:52]free content buf [13:56:52]Sock 9.Close socket [13:56:52]Sock 9.Thread stoped [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [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:08]accept exits with 8 [14:02:08]New connection [14:02:08]New thread 3066781028 created [14:02:08]Thread 3066924388 joined [14:02:08]Waiting for new connection... [14:02:08] Sock 8.Parse request [14:02:08]Sock 8.Check first char [14:02:08]Sock 8.First char is OK [14:02:08]request: POST /json_proto HTTP/1.0 [14:02:08]Method: POST [14:02:08]URL: /json_proto [14:02:08]Method is POST - this is cgi request [14:02:08]url: /json_proto [14:02:08]query_string will be loaded in cgi processing [14:02:08]execute_cgi json_proto POST (null) [14:02:08]execute_cgi path=json_proto method=POST [14:02:08]POST find Content-Length [14:02:08]Host: 172.17.39.131:8080 [14:02:08]Content-Length: 803 [14:02:08]Content-Type: application/json [14:02:08] [14:02:08]POST finish read [14:02:08]Found Content-Length = 803 [14:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:02:08]execute_script... [14:02: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)191107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:02:08]POST & json_proto [14:02:08]process_json_proto [14:02:08]json parsed OK: [14:02:08]protocol is kg_v1.0 [14:02:08]action value=close_receipt [14:02:08]process_action close_receipt [14:02:08]cmd_close_receipt [14:02:08]MH_GetDate [14:02:08]Write to MH i2c: F0 00 00 78 35 9C [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 09 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 09 00 78 35 00 65 F6 1C 67 86 57 24 65 E9 [14:02:08]GetLastDocTimeStamp 1729951013 [14:02:08]current date 1729951333 [14:02:08]FM_GetShiftState [14:02:08]SAM_PROTO_GetShiftState [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 13 01 00 [14:02:08]Write to MH i2c: E2 08 00 79 35 80 13 01 00 00 00 00 00 2B [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0E 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0E 00 79 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 46 [14:02:08]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:02:08]wFMCommunicate OK [14:02:08]SAM_PROTO_GetShiftState done [14:02:08]FM_GetShiftState done [14:02:08]opened in 1729902166 [14:02:08]opened+sec_in_day 1729988566 [14:02:08]quantity*price = 250005 [14:02:08]sum+1 = 250006 [14:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 123 26.10.2024 14:02 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75131 ФПД: 78567462993046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140213&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75131&fm=78567462993046&tin=02508201610067®Number=0000000000091691&sum=250005 [14:02:10]StoreToDocumentArchive [14:02:10]shift 512 fd 75131 [14:02:10]save to /storage/0512/doc_00075131 [14:02:10]save last doc name /storage/0512/doc_00075131 to /storage/kkm_last_doc_name [14:02:10]save OK [14:02:10]Clear old archive folders... [14:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:10]tlvbuf is 007D9710 [14:02:10]SAM_PROTO_ClearQueue [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 09 00 00 [14:02:10]Write to MH i2c: E2 08 00 86 35 80 09 00 00 00 00 00 00 2D [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_ClearQueue done [14:02:10]KKMCreateOFDPacket [14:02:10]OFDProtocolAddRootSTLVToBuf [14:02:10]FM_MakeSignedData [14:02:10]FM_MakeSignedData [14:02:10]SAM_PROTO_SignData [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 01 02 [14:02:10]Write to MH i2c: E2 08 00 87 35 80 0D 01 02 00 00 00 00 35 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]wFMCommunicate request_size=255 [14:02:10]MH_SAM_APDU [14:02: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 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 7B 00 00 00 F4 03 04 00 65 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7B 25 01 00 35 04 06 00 47 [14:02:10]Write to MH i2c: E2 02 01 88 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 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 7B 00 00 00 F4 03 04 00 65 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7B 25 01 00 35 04 06 00 47 00 00 4F [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]wFMCommunicate request_size=10 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 02 02 05 74 E9 B8 FC 96 [14:02:10]Write to MH i2c: E2 0D 00 89 35 80 0D 02 02 05 00 74 E9 B8 FC 96 00 00 E9 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 89 35 00 90 00 32 [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 03 02 [14:02:10]Write to MH i2c: E2 08 00 8A 35 80 0D 03 02 00 00 00 00 3A [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0B 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0B 00 8A 35 00 2A A1 E0 45 31 76 4F D7 90 00 F8 [14:02:10]RAPDU: 2A A1 E0 45 31 76 4F D7 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_SignData done [14:02:10]FM_MakeSignedData done [14:02:10]CreateOFDProtocolMessage [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 11 00 00 [14:02:10]Write to MH i2c: E2 08 00 8B 35 80 11 00 00 00 00 00 00 3A [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 8B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 92 [14:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:02:10]wFMCommunicate OK [14:02:10]CreateOFDProtocolMessage done [14:02:10]OFDSenderStorePacket 75131 [14:02:10]StoreOFDPacket docnum=75131 [14:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4E 3C 07 01 86 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 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 7B 00 00 00 F4 03 04 00 65 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7B 25 01 00 35 04 06 00 47 74 E9 B8 FC 96 2A A1 E0 45 31 76 4F D7 [14:02:10]CheckFolder [14:02:10]dirname=/storage/ofd_packets [14:02:10]CheckFolder done [14:02:10]ProducePacketName [14:02:10]name=ofd_packets/00075131 [14:02:10]NVStorageSaveData ofd_packets/00075131 [14:02:10]File name is /storage/ofd_packets/00075131 [14:02:10]Write 301 bytes [14:02:10]NVStorageSaveData done [14:02:10]OFDSenderStorePacket done [14:02:10]KKMCreateOFDPacket done [14:02:10]NVStorageSaveData kkm_last_timestamp [14:02:10]File name is /storage/kkm_last_timestamp [14:02:10]Write 4 bytes [14:02:10]NVStorageSaveData done [14:02:10]ExternCall_PrintAddStr [14:02:10]wPrintStart [14:02:10]Write to MH i2c: 01 00 00 8C 35 C1 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 8C 35 00 00 00 00 00 FF 0F D6 [14:02:10]RasterBufferAndPrint [14:02:10]line Счет N : (1)191107 [14:02:10]line ИНН: 02508201610067 [14:02:10]line Контрольно-Кассовый Чек [14:02:10]line ПРОДАЖА [14:02:10]line ТРК (МРК, ГНК) : 21 [14:02:10]line Товар: 2710124130 [14:02:10]line Аи-92-К-5 [14:02:10]line 37.370 * 66.90 [14:02:10]line = 2500.05 [14:02:10]line НДС 12% НСП 1% [14:02:10]line > о реализуемом товаре [14:02:10]line ИТОГО: 2500.05 [14:02:10]line НСП 1% : 22.12 [14:02:10]line НДС 12% : 265.49 [14:02:10]line Наличными: 0.00 [14:02:10]line Безнал.: 2500.05 [14:02:10]line Место: АЗС № 142 "Партнер Нефть" [14:02:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:02:10]line СНО: Общий режим [14:02:10]line Чек 123 26.10.2024 14:02 [14:02:10]line Смена: 512 ФФД: 1.0 [14:02:10]line ЗНМ: 0300000089 [14:02:10]line РНМ: 0000000000091691 [14:02:10]line Версия ККМ: 001 [14:02:10]line Платежная система: O! деньги [14:02:10]line ФМ: 0000000000871795 [14:02:10]line ФД: 75131 [14:02:10]line ФПД: 78567462993046 [14:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140213&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75131&fm=78567462993046&tin=02508201610067®Number=0000000000091691&sum=250005 [14:02:10]written 0, free lines is 4095 [14:02:10]OFD Sender: Processing packet 75131 [packets to send 13, broken 12] [14:02:10]ProducePacketName [14:02:10]name=ofd_packets/00075131 [14:02:10]OFD Sender: To server: pG, [14:02:10]CommunicateWithHost lk.salyk.kg:30040 [14:02:10]ConnectInit lk.salyk.kg [14:02:11]Write to MH i2c: 01 00 00 B6 35 EB [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 B6 35 00 00 00 00 00 B7 0C B5 [14:02:11]RasterBufferAndPrint [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]written 0, free lines is 3259 [14:02:11]MH_Cut [14:02:11]Write to MH i2c: D1 01 00 BD 35 01 C4 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 01 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 01 00 BD 35 00 C3 [14:02:11]Write to MH i2c: 01 00 00 BE 35 F3 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Connected sock=11 [14:02:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 4E 3C 07 01 86 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 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 7B 00 00 00 F4 03 04 00 65 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7B 25 01 00 35 04 06 00 47 74 E9 B8 FC 96 2A A1 E0 45 31 76 4F D7 [14:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 3D CD 47 00 1A C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7B 25 01 00 F4 03 04 00 E2 9D 1C 67 B6 04 01 00 00 BC C2 D0 BD A5 31 E3 55 [14:02:11]CommunicateWithHost err = 0 [14:02:11]CheckOFDResponse [14:02:11]1017 (14) - 77093643461234 [14:02:11]1041 (16) - 0000000000871795 [14:02:11]1040 (4) - 75131 [14:02:11]1012 (4) - 26.10.2024 07:44 [14:02:11]1206 (1) - 0 [14:02:11]OFD Sender: Remove packet 75131 [14:02:11]ProducePacketName [14:02:11]name=ofd_packets/00075131 [14:02:11]NVStorageDeleteData [14:02:11]*** Cut start [14:02:11]*** Partial cut [14:02:11]*** CUTSNS_PIN = 1 [14:02:11]OFD Sender: No OFD packet to send [14:02:11]*** CUTSNS_PIN = 0 [14:02:12]*** Brake cut motor [14:02:12]Read from MH i2c: 01 [14:02:12]MH_I2C_Read... [14:02:12]*** Stop cut motor [14:02:12]*** Cut end [14:02:12]Read from MH i2c: 01 07 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: 01 07 00 BE 35 00 00 00 00 00 FF 0F 08 [14:02:12]process_action close_receipt done [14:02:12]requested_data is exist [14:02:12]produce_requested_data [14:02:12]requested_item fm.sn is exist - process it [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 11 00 00 [14:02:12]Write to MH i2c: E2 08 00 BF 35 80 11 00 00 00 00 00 00 6E [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 BF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C6 [14:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:02:12]wFMCommunicate OK [14:02:12]requested_item fd.num is exist - process it [14:02:12]SAM_PROTO_GetFieldsCounters [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 00 00 [14:02:12]Write to MH i2c: E2 08 00 C0 35 80 13 00 00 00 00 00 00 71 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 C0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7B 25 01 00 0E 04 04 00 00 02 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 AC [14:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7B 25 01 00 0E 04 04 00 00 02 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 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetFieldsCounters done [14:02:12]requested_item shift.num is exist - process it [14:02:12]requested_item shift.opened is exist - process it [14:02:12]req_shift_opened [14:02:12]FM_GetShiftState [14:02:12]SAM_PROTO_GetShiftState [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 01 00 [14:02:12]Write to MH i2c: E2 08 00 C1 35 80 13 01 00 00 00 00 00 73 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 C1 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8E [14:02:12]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetShiftState done [14:02:12]FM_GetShiftState done [14:02:12]req_shift_opened done [14:02:12]requested_item shift.open_date is exist - process it [14:02:12]req_shift_open_date [14:02:12]req_shift_open_date done [14:02:12]produce_requested_data done [14:02:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75131,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:02:12]process_action_free close_receipt [14:02:12]json_value_free [14:02:12]json_value_free done [14:02:12]process_json_proto returns [14:02:12]Send response to host [14:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75131,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:02:12]free response buf [14:02:12]execute_script done [14:02:12]execute_script returns [14:02:12]free content buf [14:02:12]Sock 8.Close socket [14:02:12]Sock 8.Thread stoped [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:39]int [14:02:39]Write to MH i2c: 01 00 00 C2 35 F7 [14:02:39]*** FLAG_PRN_KEY set [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 C2 35 00 08 00 00 00 FF 0F 14 [14:02:39]state=0 [14:02:39]Key pressed [14:02:39]Feed [14:02:39]Write to MH i2c: D8 00 00 C3 35 CF [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D8 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D8 01 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D8 01 00 C3 35 00 D0 [14:02:39]int [14:02:39]Write to MH i2c: 01 00 00 C4 35 F9 [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 C4 35 00 48 00 00 00 3C 00 84 [14:02:39]state=2 [14:02:39]Key pressed [14:02:39]int [14:02:39]Write to MH i2c: 01 00 00 C5 35 FA [14:02:39]*** FLAG_PRN_KEY reset [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 C5 35 00 00 00 00 00 F7 0F 07 [14:02:39]state=2 [14:02:39]Stop feed [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:52]accept exits with 9 [14:02:52]New connection [14:02:52]New thread 3066924388 created [14:02:52]Thread 3066781028 joined [14:02:52]Waiting for new connection... [14:02:52] Sock 9.Parse request [14:02:52]Sock 9.Check first char [14:02:52]Sock 9.First char is OK [14:02:52]request: POST /json_proto HTTP/1.0 [14:02:52]Method: POST [14:02:52]URL: /json_proto [14:02:52]Method is POST - this is cgi request [14:02:52]url: /json_proto [14:02:52]query_string will be loaded in cgi processing [14:02:52]execute_cgi json_proto POST (null) [14:02:52]execute_cgi path=json_proto method=POST [14:02:52]POST find Content-Length [14:02:52]Host: 172.17.39.131:8080 [14:02:52]Content-Length: 677 [14:02:52]Content-Type: application/json [14:02:52] [14:02:52]POST finish read [14:02:52]Found Content-Length = 677 [14:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:52]execute_script... [14:02:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:52]POST & json_proto [14:02:52]process_json_proto [14:02:52]json parsed OK: [14:02:52]protocol is kg_v1.0 [14:02:52]action value=close_receipt [14:02:52]process_action close_receipt [14:02:52]cmd_close_receipt [14:02:52]MH_GetDate [14:02:52]Write to MH i2c: F0 00 00 C6 35 EA [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: F0 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: F0 09 00 [14:02:52]MH_I2C_Read... [14:02:52]Read from MH i2c: F0 09 00 C6 35 00 92 F6 1C 67 86 57 24 65 64 [14:02:52]GetLastDocTimeStamp 1729951333 [14:02:52]current date 1729951378 [14:02:52]FM_GetShiftState [14:02:52]SAM_PROTO_GetShiftState [14:02:52]wFMCommunicate request_size=4 [14:02:52]MH_SAM_APDU [14:02:52]CAPDU: 80 13 01 00 [14:02:52]Write to MH i2c: E2 08 00 C7 35 80 13 01 00 00 00 00 00 79 [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0E 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0E 00 C7 35 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 94 [14:02:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:02:53]wFMCommunicate OK [14:02:53]SAM_PROTO_GetShiftState done [14:02:53]FM_GetShiftState done [14:02:53]opened in 1729902166 [14:02:53]opened+sec_in_day 1729988566 [14:02:53]quantity*price = 50041 [14:02:53]sum+1 = 50042 [14:02:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 124 26.10.2024 14:02 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75132 ФПД: 164913429679575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75132&fm=164913429679575&tin=02508201610067®Number=0000000000091691&sum=50000 [14:02:54]StoreToDocumentArchive [14:02:54]shift 512 fd 75132 [14:02:54]save to /storage/0512/doc_00075132 [14:02:54]save last doc name /storage/0512/doc_00075132 to /storage/kkm_last_doc_name [14:02:54]save OK [14:02:54]Clear old archive folders... [14:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:54]tlvbuf is 00949450 [14:02:54]SAM_PROTO_ClearQueue [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 09 00 00 [14:02:54]Write to MH i2c: E2 08 00 D4 35 80 09 00 00 00 00 00 00 7B [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 D4 35 00 90 00 7D [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]SAM_PROTO_ClearQueue done [14:02:54]KKMCreateOFDPacket [14:02:54]OFDProtocolAddRootSTLVToBuf [14:02:54]FM_MakeSignedData [14:02:54]FM_MakeSignedData [14:02:54]SAM_PROTO_SignData [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 01 02 [14:02:54]Write to MH i2c: E2 08 00 D5 35 80 0D 01 02 00 00 00 00 83 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 D5 35 00 90 00 7E [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=255 [14:02:54]MH_SAM_APDU [14:02: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 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 92 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7C 25 01 00 35 04 06 00 95 [14:02:54]Write to MH i2c: E2 02 01 D6 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 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 92 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7C 25 01 00 35 04 06 00 95 00 00 D8 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 D6 35 00 90 00 7F [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=10 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 02 02 05 FC E6 65 0D D7 [14:02:54]Write to MH i2c: E2 0D 00 D7 35 80 0D 02 02 05 00 FC E6 65 0D D7 00 00 BB [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 D7 35 00 90 00 80 [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 03 02 [14:02:54]Write to MH i2c: E2 08 00 D8 35 80 0D 03 02 00 00 00 00 88 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 0B 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 0B 00 D8 35 00 44 07 6D 30 87 11 CF 0B 90 00 E3 [14:02:54]RAPDU: 44 07 6D 30 87 11 CF 0B 90 00 [14:02:54]wFMCommunicate OK [14:02:54]SAM_PROTO_SignData done [14:02:54]FM_MakeSignedData done [14:02:54]CreateOFDProtocolMessage [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 11 00 00 [14:02:54]Write to MH i2c: E2 08 00 D9 35 80 11 00 00 00 00 00 00 88 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 17 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 17 00 D9 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E0 [14:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:02:54]wFMCommunicate OK [14:02:54]CreateOFDProtocolMessage done [14:02:54]OFDSenderStorePacket 75132 [14:02:54]StoreOFDPacket docnum=75132 [14:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 37 6D 07 01 5A 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 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 92 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7C 25 01 00 35 04 06 00 95 FC E6 65 0D D7 44 07 6D 30 87 11 CF 0B [14:02:54]CheckFolder [14:02:54]dirname=/storage/ofd_packets [14:02:54]CheckFolder done [14:02:54]ProducePacketName [14:02:54]name=ofd_packets/00075132 [14:02:54]NVStorageSaveData ofd_packets/00075132 [14:02:54]File name is /storage/ofd_packets/00075132 [14:02:54]Write 301 bytes [14:02:54]NVStorageSaveData done [14:02:54]OFDSenderStorePacket done [14:02:54]KKMCreateOFDPacket done [14:02:54]NVStorageSaveData kkm_last_timestamp [14:02:54]File name is /storage/kkm_last_timestamp [14:02:54]Write 4 bytes [14:02:54]NVStorageSaveData done [14:02:54]ExternCall_PrintAddStr [14:02:54]wPrintStart [14:02:54]Write to MH i2c: 01 00 00 DA 35 0F [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 DA 35 00 00 00 00 00 FF 0F 24 [14:02:54]RasterBufferAndPrint [14:02:54]line Счет N : (1)191108 [14:02:54]line ИНН: 02508201610067 [14:02:54]line Контрольно-Кассовый Чек [14:02:54]line ПРОДАЖА [14:02:54]line ТРК (МРК, ГНК) : 21 [14:02:54]line Товар: 2710124130 [14:02:54]line Аи-92-К-5 [14:02:54]line 7.480 * 66.90 [14:02:54]line = 500.41 [14:02:54]line НДС 12% НСП 1% [14:02:54]line > о реализуемом товаре [14:02:54]line ОКРУГЛЕНИЕ: -0.41 [14:02:54]line ИТОГО: 500.00 [14:02:54]line Внесено: 500.00 [14:02:54]line СДАЧА: 0.00 [14:02:54]line НСП 1% : 4.43 [14:02:54]line НДС 12% : 53.14 [14:02:54]line Наличными: 500.00 [14:02:54]line Безнал.: 0.00 [14:02:54]line Место: АЗС № 142 "Партнер Нефть" [14:02:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:02:54]line СНО: Общий режим [14:02:54]line Чек 124 26.10.2024 14:02 [14:02:54]line Смена: 512 ФФД: 1.0 [14:02:54]line ЗНМ: 0300000089 [14:02:54]line РНМ: 0000000000091691 [14:02:54]line Версия ККМ: 001 [14:02:54]line ФМ: 0000000000871795 [14:02:54]line ФД: 75132 [14:02:54]line ФПД: 164913429679575 [14:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75132&fm=164913429679575&tin=02508201610067®Number=0000000000091691&sum=50000 [14:02:55]OFD Sender: Processing packet 75132 [packets to send 13, broken 12] [14:02:55]ProducePacketName [14:02:55]name=ofd_packets/00075132 [14:02:55]OFD Sender: To server: pG, [14:02:55]CommunicateWithHost lk.salyk.kg:30040 [14:02:55]ConnectInit lk.salyk.kg [14:02:55]written 0, free lines is 4095 [14:02:55]Connected sock=10 [14:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 37 6D 07 01 5A 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 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 92 F6 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7C 25 01 00 35 04 06 00 95 FC E6 65 0D D7 44 07 6D 30 87 11 CF 0B [14:02:55]Write to MH i2c: 01 00 00 05 36 3B [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 07 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 07 00 05 36 00 00 00 00 00 AA 0C F8 [14:02:55]RasterBufferAndPrint [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]written 0, free lines is 3248 [14:02:55]MH_Cut [14:02:55]Write to MH i2c: D1 01 00 0C 36 01 14 [14:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 90 4D 47 00 2D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7C 25 01 00 F4 03 04 00 0E 9E 1C 67 B6 04 01 00 00 B1 64 98 84 9C 3B A4 7C [14:02:55]CommunicateWithHost err = 0 [14:02:55]CheckOFDResponse [14:02:55]1017 (14) - 77093643461234 [14:02:55]1041 (16) - 0000000000871795 [14:02:55]1040 (4) - 75132 [14:02:55]1012 (4) - 26.10.2024 07:45 [14:02:55]1206 (1) - 0 [14:02:55]OFD Sender: Remove packet 75132 [14:02:55]ProducePacketName [14:02:55]name=ofd_packets/00075132 [14:02:55]NVStorageDeleteData [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 01 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 01 00 0C 36 00 13 [14:02:55]Write to MH i2c: 01 00 00 0D 36 43 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]OFD Sender: No OFD packet to send [14:02:56]*** Cut start [14:02:56]*** Partial cut [14:02:56]*** CUTSNS_PIN = 1 [14:02:56]*** CUTSNS_PIN = 0 [14:02:56]*** Brake cut motor [14:02:56]Read from MH i2c: 01 [14:02:56]MH_I2C_Read... [14:02:56]*** Stop cut motor [14:02:57]*** Cut end [14:02:57]Read from MH i2c: 01 07 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: 01 07 00 0D 36 00 00 00 00 00 FF 0F 58 [14:02:57]process_action close_receipt done [14:02:57]requested_data is exist [14:02:57]produce_requested_data [14:02:57]requested_item fm.sn is exist - process it [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 11 00 00 [14:02:57]Write to MH i2c: E2 08 00 0E 36 80 11 00 00 00 00 00 00 BE [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 17 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 17 00 0E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 16 [14:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:02:57]wFMCommunicate OK [14:02:57]requested_item fd.num is exist - process it [14:02:57]SAM_PROTO_GetFieldsCounters [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 13 00 00 [14:02:57]Write to MH i2c: E2 08 00 0F 36 80 13 00 00 00 00 00 00 C1 [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 62 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 62 00 0F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7C 25 01 00 0E 04 04 00 00 02 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 00 [14:02:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7C 25 01 00 0E 04 04 00 00 02 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 [14:02:57]wFMCommunicate OK [14:02:57]SAM_PROTO_GetFieldsCounters done [14:02:57]requested_item shift.num is exist - process it [14:02:57]requested_item shift.opened is exist - process it [14:02:57]req_shift_opened [14:02:57]FM_GetShiftState [14:02:57]SAM_PROTO_GetShiftState [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 13 01 00 [14:02:57]Write to MH i2c: E2 08 00 10 36 80 13 01 00 00 00 00 00 C3 [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 0E 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 0E 00 10 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DE [14:02:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:02:57]wFMCommunicate OK [14:02:57]SAM_PROTO_GetShiftState done [14:02:57]FM_GetShiftState done [14:02:57]req_shift_opened done [14:02:57]requested_item shift.open_date is exist - process it [14:02:57]req_shift_open_date [14:02:57]req_shift_open_date done [14:02:57]produce_requested_data done [14:02:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75132,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:02:57]process_action_free close_receipt [14:02:57]json_value_free [14:02:57]json_value_free done [14:02:57]process_json_proto returns [14:02:57]Send response to host [14:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75132,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:02:57]free response buf [14:02:57]execute_script done [14:02:57]execute_script returns [14:02:57]free content buf [14:02:57]Sock 9.Close socket [14:02:57]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11: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:15]accept exits with 8 [14:12:15]New connection [14:12:15]New thread 3066781028 created [14:12:15]Thread 3066924388 joined [14:12:15]Waiting for new connection... [14:12:15] Sock 8.Parse request [14:12:15]Sock 8.Check first char [14:12:15]Sock 8.First char is OK [14:12:15]request: POST /json_proto HTTP/1.0 [14:12:15]Method: POST [14:12:15]URL: /json_proto [14:12:15]Method is POST - this is cgi request [14:12:15]url: /json_proto [14:12:15]query_string will be loaded in cgi processing [14:12:15]execute_cgi json_proto POST (null) [14:12:15]execute_cgi path=json_proto method=POST [14:12:15]POST find Content-Length [14:12:15]Host: 172.17.39.131:8080 [14:12:15]Content-Length: 795 [14:12:15]Content-Type: application/json [14:12:15] [14:12:15]POST finish read [14:12:15]Found Content-Length = 795 [14:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 34.190, "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\u000A86602", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]execute_script... [14:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 34.190, "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\u000A86602", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]POST & json_proto [14:12:15]process_json_proto [14:12:15]json parsed OK: [14:12:15]protocol is kg_v1.0 [14:12:15]action value=close_receipt [14:12:15]process_action close_receipt [14:12:15]cmd_close_receipt [14:12:15]MH_GetDate [14:12:15]Write to MH i2c: F0 00 00 11 36 36 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 09 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 09 00 11 36 00 C4 F8 1C 67 86 57 24 65 E4 [14:12:15]GetLastDocTimeStamp 1729951378 [14:12:15]current date 1729951940 [14:12:15]FM_GetShiftState [14:12:15]SAM_PROTO_GetShiftState [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 13 01 00 [14:12:15]Write to MH i2c: E2 08 00 12 36 80 13 01 00 00 00 00 00 C5 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:15]Read from MH i2c: E2 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 0E 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 0E 00 12 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E0 [14:12:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:12:15]wFMCommunicate OK [14:12:15]SAM_PROTO_GetShiftState done [14:12:15]FM_GetShiftState done [14:12:15]opened in 1729902166 [14:12:15]opened+sec_in_day 1729988566 [14:12:15]quantity*price = 0 [14:12:15]sum+1 = 1 [14:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 125 26.10.2024 14:12 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 86602 ФМ: 0000000000871795 ФД: 75133 ФПД: 74436645118967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141220&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75133&fm=74436645118967&tin=02508201610067®Number=0000000000091691&sum=0 [14:12:16]StoreToDocumentArchive [14:12:16]shift 512 fd 75133 [14:12:16]save to /storage/0512/doc_00075133 [14:12:16]save last doc name /storage/0512/doc_00075133 to /storage/kkm_last_doc_name [14:12:16]save OK [14:12:16]Clear old archive folders... [14:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:12:16]tlvbuf is B6ED3B90 [14:12:16]SAM_PROTO_ClearQueue [14:12:16]wFMCommunicate request_size=4 [14:12:16]MH_SAM_APDU [14:12:16]CAPDU: 80 09 00 00 [14:12:16]Write to MH i2c: E2 08 00 1F 36 80 09 00 00 00 00 00 00 C7 [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 03 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 03 00 1F 36 00 90 00 C9 [14:12:16]RAPDU: 90 00 [14:12:16]wFMCommunicate OK [14:12:16]SAM_PROTO_ClearQueue done [14:12:16]KKMCreateOFDPacket [14:12:16]OFDProtocolAddRootSTLVToBuf [14:12:16]FM_MakeSignedData [14:12:16]FM_MakeSignedData [14:12:16]SAM_PROTO_SignData [14:12:16]wFMCommunicate request_size=4 [14:12:16]MH_SAM_APDU [14:12:16]CAPDU: 80 0D 01 02 [14:12:16]Write to MH i2c: E2 08 00 20 36 80 0D 01 02 00 00 00 00 CF [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 03 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 03 00 20 36 00 90 00 CA [14:12:16]RAPDU: 90 00 [14:12:16]wFMCommunicate OK [14:12:16]wFMCommunicate request_size=255 [14:12:16]MH_SAM_APDU [14:12:16]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8E 85 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 C4 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7D 25 01 00 35 04 06 00 43 B3 [14:12:16]Write to MH i2c: E2 02 01 21 36 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8E 85 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 C4 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7D 25 01 00 35 04 06 00 43 B3 00 00 EE [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 21 36 00 90 00 CB [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]wFMCommunicate request_size=9 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 02 02 04 21 CA 63 F7 [14:12:17]Write to MH i2c: E2 0C 00 22 36 80 0D 02 02 04 00 21 CA 63 F7 00 00 1F [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 22 36 00 90 00 CC [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 03 02 [14:12:17]Write to MH i2c: E2 08 00 23 36 80 0D 03 02 00 00 00 00 D4 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0B 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0B 00 23 36 00 A2 BB 6C 5D CF 6F 2D 62 90 00 C8 [14:12:17]RAPDU: A2 BB 6C 5D CF 6F 2D 62 90 00 [14:12:17]wFMCommunicate OK [14:12:17]SAM_PROTO_SignData done [14:12:17]FM_MakeSignedData done [14:12:17]CreateOFDProtocolMessage [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 11 00 00 [14:12:17]Write to MH i2c: E2 08 00 24 36 80 11 00 00 00 00 00 00 D4 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 24 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2C [14:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:12:17]wFMCommunicate OK [14:12:17]CreateOFDProtocolMessage done [14:12:17]OFDSenderStorePacket 75133 [14:12:17]StoreOFDPacket docnum=75133 [14:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 EB EA 06 01 58 DE 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8E 85 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 C4 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7D 25 01 00 35 04 06 00 43 B3 21 CA 63 F7 A2 BB 6C 5D CF 6F 2D 62 [14:12:17]CheckFolder [14:12:17]dirname=/storage/ofd_packets [14:12:17]CheckFolder done [14:12:17]ProducePacketName [14:12:17]name=ofd_packets/00075133 [14:12:17]NVStorageSaveData ofd_packets/00075133 [14:12:17]File name is /storage/ofd_packets/00075133 [14:12:17]Write 300 bytes [14:12:17]NVStorageSaveData done [14:12:17]OFDSenderStorePacket done [14:12:17]KKMCreateOFDPacket done [14:12:17]NVStorageSaveData kkm_last_timestamp [14:12:17]File name is /storage/kkm_last_timestamp [14:12:17]Write 4 bytes [14:12:17]NVStorageSaveData done [14:12:17]ExternCall_PrintAddStr [14:12:17]wPrintStart [14:12:17]Write to MH i2c: 01 00 00 25 36 5B [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 25 36 00 00 00 00 00 FF 0F 70 [14:12:17]RasterBufferAndPrint [14:12:17]line Счет N : (1)191109 [14:12:17]line ИНН: 02508201610067 [14:12:17]line Контрольно-Кассовый Чек [14:12:17]line ПРОДАЖА [14:12:17]line ТРК (МРК, ГНК) : 51 [14:12:17]line Товар: 2711190000 [14:12:17]line ГАЗ-К-3 [14:12:17]line 34.190 * 0.00 [14:12:17]line = 0.00 [14:12:17]line НДС 12% НСП 1% [14:12:17]line > о реализуемом товаре [14:12:17]line ИТОГО: 0.00 [14:12:17]line НСП 1% : 0.00 [14:12:17]line НДС 12% : 0.00 [14:12:17]line Наличными: 0.00 [14:12:17]line Безнал.: 0.00 [14:12:17]line Место: АЗС № 142 "Партнер Нефть" [14:12:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:12:17]line СНО: Общий режим [14:12:17]line Чек 125 26.10.2024 14:12 [14:12:17]line Смена: 512 ФФД: 1.0 [14:12:17]line ЗНМ: 0300000089 [14:12:17]line РНМ: 0000000000091691 [14:12:17]line Версия ККМ: 001 [14:12:17]line Талоны: Топливная Карта [14:12:17]line 86602 [14:12:17]line ФМ: 0000000000871795 [14:12:17]line ФД: 75133 [14:12:17]line ФПД: 74436645118967 [14:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141220&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75133&fm=74436645118967&tin=02508201610067®Number=0000000000091691&sum=0 [14:12:17]OFD Sender: Processing packet 75133 [packets to send 13, broken 12] [14:12:17]ProducePacketName [14:12:17]name=ofd_packets/00075133 [14:12:17]OFD Sender: To server: pG, [14:12:17]CommunicateWithHost lk.salyk.kg:30040 [14:12:17]ConnectInit lk.salyk.kg [14:12:17]written 0, free lines is 4095 [14:12:17]Connected sock=10 [14:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 EB EA 06 01 58 DE 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 8E 85 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 C4 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7D 25 01 00 35 04 06 00 43 B3 21 CA 63 F7 A2 BB 6C 5D CF 6F 2D 62 [14:12:17]Write to MH i2c: 01 00 00 4F 36 85 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 4F 36 00 00 00 00 00 AE 0C 46 [14:12:17]RasterBufferAndPrint [14:12:17]line [14:12:17]line [14:12:17]line [14:12:17]line [14:12:17]line [14:12:17]written 0, free lines is 3251 [14:12:17]MH_Cut [14:12:17]Write to MH i2c: D1 01 00 56 36 01 5E [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: D1 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: D1 01 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: D1 01 00 56 36 00 5D [14:12:17]Write to MH i2c: 01 00 00 57 36 8D [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2D 72 47 00 6D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7D 25 01 00 F4 03 04 00 40 A0 1C 67 B6 04 01 00 00 2B 92 EE 37 19 0B 97 6A [14:12:17]CommunicateWithHost err = 0 [14:12:17]CheckOFDResponse [14:12:17]1017 (14) - 77093643461234 [14:12:17]1041 (16) - 0000000000871795 [14:12:17]1040 (4) - 75133 [14:12:17]1012 (4) - 26.10.2024 07:54 [14:12:17]1206 (1) - 0 [14:12:17]OFD Sender: Remove packet 75133 [14:12:17]ProducePacketName [14:12:17]name=ofd_packets/00075133 [14:12:17]NVStorageDeleteData [14:12:18]OFD Sender: No OFD packet to send [14:12:18]*** Cut start [14:12:18]*** Partial cut [14:12:18]*** CUTSNS_PIN = 1 [14:12:18]*** CUTSNS_PIN = 0 [14:12:19]*** Brake cut motor [14:12:19]Read from MH i2c: 01 [14:12:19]MH_I2C_Read... [14:12:19]*** Stop cut motor [14:12:19]*** Cut end [14:12:19]Read from MH i2c: 01 07 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: 01 07 00 57 36 00 00 00 00 00 FF 0F A2 [14:12:19]process_action close_receipt done [14:12:19]requested_data is exist [14:12:19]produce_requested_data [14:12:19]requested_item fm.sn is exist - process it [14:12:19]wFMCommunicate request_size=4 [14:12:19]MH_SAM_APDU [14:12:19]CAPDU: 80 11 00 00 [14:12:19]Write to MH i2c: E2 08 00 58 36 80 11 00 00 00 00 00 00 08 [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:19]Read from MH i2c: E2 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 17 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 17 00 58 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 60 [14:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:12:19]wFMCommunicate OK [14:12:19]requested_item fd.num is exist - process it [14:12:19]SAM_PROTO_GetFieldsCounters [14:12:19]wFMCommunicate request_size=4 [14:12:19]MH_SAM_APDU [14:12:19]CAPDU: 80 13 00 00 [14:12:19]Write to MH i2c: E2 08 00 59 36 80 13 00 00 00 00 00 00 0B [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:19]Read from MH i2c: E2 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 62 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 62 00 59 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7D 25 01 00 0E 04 04 00 00 02 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 4E [14:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7D 25 01 00 0E 04 04 00 00 02 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 [14:12:19]wFMCommunicate OK [14:12:19]SAM_PROTO_GetFieldsCounters done [14:12:19]requested_item shift.num is exist - process it [14:12:19]requested_item shift.opened is exist - process it [14:12:19]req_shift_opened [14:12:19]FM_GetShiftState [14:12:19]SAM_PROTO_GetShiftState [14:12:19]wFMCommunicate request_size=4 [14:12:19]MH_SAM_APDU [14:12:19]CAPDU: 80 13 01 00 [14:12:19]Write to MH i2c: E2 08 00 5A 36 80 13 01 00 00 00 00 00 0D [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:19]Read from MH i2c: E2 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 0E 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 0E 00 5A 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 28 [14:12:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:12:19]wFMCommunicate OK [14:12:19]SAM_PROTO_GetShiftState done [14:12:19]FM_GetShiftState done [14:12:19]req_shift_opened done [14:12:19]requested_item shift.open_date is exist - process it [14:12:19]req_shift_open_date [14:12:19]req_shift_open_date done [14:12:19]produce_requested_data done [14:12:19]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75133,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:12:19]process_action_free close_receipt [14:12:19]json_value_free [14:12:19]json_value_free done [14:12:19]process_json_proto returns [14:12:19]Send response to host [14:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75133,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:12:19]free response buf [14:12:19]execute_script done [14:12:19]execute_script returns [14:12:19]free content buf [14:12:19]Sock 8.Close socket [14:12:19]Sock 8.Thread stoped [14:12:23]OFD Sender: No OFD packet to send [14:12:27]accept exits with 9 [14:12:27]New connection [14:12:27]New thread 3066924388 created [14:12:27]Thread 3066781028 joined [14:12:27]Waiting for new connection... [14:12:27] Sock 9.Parse request [14:12:27]Sock 9.Check first char [14:12:27]Sock 9.First char is OK [14:12:27]request: POST /json_proto HTTP/1.0 [14:12:27]Method: POST [14:12:27]URL: /json_proto [14:12:27]Method is POST - this is cgi request [14:12:27]url: /json_proto [14:12:27]query_string will be loaded in cgi processing [14:12:27]execute_cgi json_proto POST (null) [14:12:27]execute_cgi path=json_proto method=POST [14:12:27]POST find Content-Length [14:12:27]Host: 172.17.39.131:8080 [14:12:27]Content-Length: 677 [14:12:27]Content-Type: application/json [14:12:27] [14:12:27]POST finish read [14:12:27]Found Content-Length = 677 [14:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:27]execute_script... [14:12: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)191110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:27]POST & json_proto [14:12:27]process_json_proto [14:12:27]json parsed OK: [14:12:27]protocol is kg_v1.0 [14:12:27]action value=close_receipt [14:12:27]process_action close_receipt [14:12:27]cmd_close_receipt [14:12:27]MH_GetDate [14:12:27]Write to MH i2c: F0 00 00 5B 36 80 [14:12:27]Write i2c OK [14:12:27]MH_I2C_Read... [14:12:27]Read from MH i2c: F0 [14:12:27]MH_I2C_Read... [14:12:27]Read from MH i2c: F0 09 00 [14:12:27]MH_I2C_Read... [14:12:27]Read from MH i2c: F0 09 00 5B 36 00 D1 F8 1C 67 86 57 24 65 3B [14:12:27]GetLastDocTimeStamp 1729951940 [14:12:27]current date 1729951953 [14:12:27]FM_GetShiftState [14:12:27]SAM_PROTO_GetShiftState [14:12:27]wFMCommunicate request_size=4 [14:12:27]MH_SAM_APDU [14:12:27]CAPDU: 80 13 01 00 [14:12:27]Write to MH i2c: E2 08 00 5C 36 80 13 01 00 00 00 00 00 0F [14:12:27]Write i2c OK [14:12:27]MH_I2C_Read... [14:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:27]Read from MH i2c: E2 [14:12:27]MH_I2C_Read... [14:12:27]Read from MH i2c: E2 0E 00 [14:12:27]MH_I2C_Read... [14:12:27]Read from MH i2c: E2 0E 00 5C 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2A [14:12:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:12:27]wFMCommunicate OK [14:12:27]SAM_PROTO_GetShiftState done [14:12:27]FM_GetShiftState done [14:12:27]opened in 1729902166 [14:12:27]opened+sec_in_day 1729988566 [14:12:27]quantity*price = 19066 [14:12:27]sum+1 = 19068 [14:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 126 26.10.2024 14:12 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75134 ФПД: 272530064725079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141233&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75134&fm=272530064725079&tin=02508201610067®Number=0000000000091691&sum=19000 [14:12:29]StoreToDocumentArchive [14:12:29]shift 512 fd 75134 [14:12:29]save to /storage/0512/doc_00075134 [14:12:29]save last doc name /storage/0512/doc_00075134 to /storage/kkm_last_doc_name [14:12:29]save OK [14:12:29]Clear old archive folders... [14:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:29]tlvbuf is B6F51880 [14:12:29]SAM_PROTO_ClearQueue [14:12:29]wFMCommunicate request_size=4 [14:12:29]MH_SAM_APDU [14:12:29]CAPDU: 80 09 00 00 [14:12:29]Write to MH i2c: E2 08 00 69 36 80 09 00 00 00 00 00 00 11 [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 69 36 00 90 00 13 [14:12:29]RAPDU: 90 00 [14:12:29]wFMCommunicate OK [14:12:29]SAM_PROTO_ClearQueue done [14:12:29]KKMCreateOFDPacket [14:12:29]OFDProtocolAddRootSTLVToBuf [14:12:29]FM_MakeSignedData [14:12:29]FM_MakeSignedData [14:12:29]SAM_PROTO_SignData [14:12:29]wFMCommunicate request_size=4 [14:12:29]MH_SAM_APDU [14:12:29]CAPDU: 80 0D 01 02 [14:12:29]Write to MH i2c: E2 08 00 6A 36 80 0D 01 02 00 00 00 00 19 [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 6A 36 00 90 00 14 [14:12:29]RAPDU: 90 00 [14:12:29]wFMCommunicate OK [14:12:29]wFMCommunicate request_size=255 [14:12:29]MH_SAM_APDU [14:12: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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D1 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7E 25 01 00 35 04 06 00 F7 [14:12:29]Write to MH i2c: E2 02 01 6B 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D1 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7E 25 01 00 35 04 06 00 F7 00 00 5B [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 6B 36 00 90 00 15 [14:12:29]RAPDU: 90 00 [14:12:29]wFMCommunicate OK [14:12:29]wFMCommunicate request_size=10 [14:12:29]MH_SAM_APDU [14:12:29]CAPDU: 80 0D 02 02 05 DD 59 B2 D4 57 [14:12:29]Write to MH i2c: E2 0D 00 6C 36 80 0D 02 02 05 00 DD 59 B2 D4 57 00 00 39 [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 03 00 6C 36 00 90 00 16 [14:12:29]RAPDU: 90 00 [14:12:29]wFMCommunicate OK [14:12:29]wFMCommunicate request_size=4 [14:12:29]MH_SAM_APDU [14:12:29]CAPDU: 80 0D 03 02 [14:12:29]Write to MH i2c: E2 08 00 6D 36 80 0D 03 02 00 00 00 00 1E [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 0B 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 0B 00 6D 36 00 DF F3 ED F8 9E 8C F7 F5 90 00 EC [14:12:29]RAPDU: DF F3 ED F8 9E 8C F7 F5 90 00 [14:12:29]wFMCommunicate OK [14:12:29]SAM_PROTO_SignData done [14:12:29]FM_MakeSignedData done [14:12:29]CreateOFDProtocolMessage [14:12:29]wFMCommunicate request_size=4 [14:12:29]MH_SAM_APDU [14:12:29]CAPDU: 80 11 00 00 [14:12:29]Write to MH i2c: E2 08 00 6E 36 80 11 00 00 00 00 00 00 1E [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:29]Read from MH i2c: E2 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 17 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: E2 17 00 6E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 76 [14:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:12:29]wFMCommunicate OK [14:12:29]CreateOFDProtocolMessage done [14:12:29]OFDSenderStorePacket 75134 [14:12:29]StoreOFDPacket docnum=75134 [14:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 06 FC 07 01 29 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D1 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7E 25 01 00 35 04 06 00 F7 DD 59 B2 D4 57 DF F3 ED F8 9E 8C F7 F5 [14:12:29]CheckFolder [14:12:29]dirname=/storage/ofd_packets [14:12:29]CheckFolder done [14:12:29]ProducePacketName [14:12:29]name=ofd_packets/00075134 [14:12:29]NVStorageSaveData ofd_packets/00075134 [14:12:29]File name is /storage/ofd_packets/00075134 [14:12:29]Write 301 bytes [14:12:29]NVStorageSaveData done [14:12:29]OFDSenderStorePacket done [14:12:29]KKMCreateOFDPacket done [14:12:29]NVStorageSaveData kkm_last_timestamp [14:12:29]File name is /storage/kkm_last_timestamp [14:12:29]Write 4 bytes [14:12:29]NVStorageSaveData done [14:12:29]ExternCall_PrintAddStr [14:12:29]wPrintStart [14:12:29]Write to MH i2c: 01 00 00 6F 36 A5 [14:12:29]Write i2c OK [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: 01 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: 01 07 00 [14:12:29]MH_I2C_Read... [14:12:29]Read from MH i2c: 01 07 00 6F 36 00 00 00 00 00 FF 0F BA [14:12:29]RasterBufferAndPrint [14:12:29]line Счет N : (1)191110 [14:12:29]line ИНН: 02508201610067 [14:12:29]line Контрольно-Кассовый Чек [14:12:29]line ПРОДАЖА [14:12:29]line ТРК (МРК, ГНК) : 21 [14:12:29]line Товар: 2710124130 [14:12:29]line Аи-92-К-5 [14:12:29]line 2.850 * 66.90 [14:12:29]line = 190.67 [14:12:29]line НДС 12% НСП 1% [14:12:29]line > о реализуемом товаре [14:12:29]line ОКРУГЛЕНИЕ: -0.67 [14:12:29]line ИТОГО: 190.00 [14:12:29]line Внесено: 190.00 [14:12:29]line СДАЧА: 0.00 [14:12:29]line НСП 1% : 1.69 [14:12:29]line НДС 12% : 20.25 [14:12:29]line Наличными: 190.00 [14:12:29]line Безнал.: 0.00 [14:12:29]line Место: АЗС № 142 "Партнер Нефть" [14:12:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:12:29]line СНО: Общий режим [14:12:29]line Чек 126 26.10.2024 14:12 [14:12:29]line Смена: 512 ФФД: 1.0 [14:12:29]line ЗНМ: 0300000089 [14:12:29]line РНМ: 0000000000091691 [14:12:29]line Версия ККМ: 001 [14:12:29]line ФМ: 0000000000871795 [14:12:29]line ФД: 75134 [14:12:29]line ФПД: 272530064725079 [14:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141233&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75134&fm=272530064725079&tin=02508201610067®Number=0000000000091691&sum=19000 [14:12:29]written 0, free lines is 4095 [14:12:29]OFD Sender: Processing packet 75134 [packets to send 13, broken 12] [14:12:29]ProducePacketName [14:12:29]name=ofd_packets/00075134 [14:12:29]OFD Sender: To server: pG, [14:12:29]CommunicateWithHost lk.salyk.kg:30040 [14:12:29]ConnectInit lk.salyk.kg [14:12:30]Connected sock=8 [14:12:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 06 FC 07 01 29 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 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D1 F8 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7E 25 01 00 35 04 06 00 F7 DD 59 B2 D4 57 DF F3 ED F8 9E 8C F7 F5 [14:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0B D6 47 00 CE 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 38 37 31 37 39 35 10 04 04 00 7E 25 01 00 F4 03 04 00 4D A0 1C 67 B6 04 01 00 00 25 08 35 05 95 A7 72 1E [14:12:30]CommunicateWithHost err = 0 [14:12:30]CheckOFDResponse [14:12:30]1017 (14) - 77093643461234 [14:12:30]1041 (16) - 0000000000871795 [14:12:30]1040 (4) - 75134 [14:12:30]1012 (4) - 26.10.2024 07:54 [14:12:30]1206 (1) - 0 [14:12:30]OFD Sender: Remove packet 75134 [14:12:30]ProducePacketName [14:12:30]name=ofd_packets/00075134 [14:12:30]NVStorageDeleteData [14:12:30]Write to MH i2c: 01 00 00 9A 36 D0 [14:12:30]Write i2c OK [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: 01 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: 01 07 00 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: 01 07 00 9A 36 00 00 00 00 00 A5 0C 88 [14:12:30]RasterBufferAndPrint [14:12:30]line [14:12:30]line [14:12:30]line [14:12:30]line [14:12:30]line [14:12:30]written 0, free lines is 3245 [14:12:30]MH_Cut [14:12:30]Write to MH i2c: D1 01 00 A1 36 01 A9 [14:12:30]Write i2c OK [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: D1 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: D1 01 00 [14:12:30]MH_I2C_Read... [14:12:30]Read from MH i2c: D1 01 00 A1 36 00 A8 [14:12:30]Write to MH i2c: 01 00 00 A2 36 D8 [14:12:30]Write i2c OK [14:12:30]MH_I2C_Read... [14:12:30]OFD Sender: No OFD packet to send [14:12:31]*** Cut start [14:12:31]*** Partial cut [14:12:31]*** CUTSNS_PIN = 1 [14:12:31]*** CUTSNS_PIN = 0 [14:12:31]*** Brake cut motor [14:12:31]Read from MH i2c: 01 [14:12:31]MH_I2C_Read... [14:12:31]*** Stop cut motor [14:12:31]*** Cut end [14:12:31]Read from MH i2c: 01 07 00 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: 01 07 00 A2 36 00 00 00 00 00 FF 0F ED [14:12:31]process_action close_receipt done [14:12:31]requested_data is exist [14:12:31]produce_requested_data [14:12:31]requested_item fm.sn is exist - process it [14:12:31]wFMCommunicate request_size=4 [14:12:31]MH_SAM_APDU [14:12:31]CAPDU: 80 11 00 00 [14:12:31]Write to MH i2c: E2 08 00 A3 36 80 11 00 00 00 00 00 00 53 [14:12:31]Write i2c OK [14:12:31]MH_I2C_Read... [14:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:31]Read from MH i2c: E2 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: E2 17 00 [14:12:31]MH_I2C_Read... [14:12:31]Read from MH i2c: E2 17 00 A3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AB [14:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:12:31]wFMCommunicate OK [14:12:31]requested_item fd.num is exist - process it [14:12:31]SAM_PROTO_GetFieldsCounters [14:12:31]wFMCommunicate request_size=4 [14:12:31]MH_SAM_APDU [14:12:31]CAPDU: 80 13 00 00 [14:12:31]Write to MH i2c: E2 08 00 A4 36 80 13 00 00 00 00 00 00 56 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 62 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 62 00 A4 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7E 25 01 00 0E 04 04 00 00 02 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 9D [14:12:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7E 25 01 00 0E 04 04 00 00 02 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 [14:12:32]wFMCommunicate OK [14:12:32]SAM_PROTO_GetFieldsCounters done [14:12:32]requested_item shift.num is exist - process it [14:12:32]requested_item shift.opened is exist - process it [14:12:32]req_shift_opened [14:12:32]FM_GetShiftState [14:12:32]SAM_PROTO_GetShiftState [14:12:32]wFMCommunicate request_size=4 [14:12:32]MH_SAM_APDU [14:12:32]CAPDU: 80 13 01 00 [14:12:32]Write to MH i2c: E2 08 00 A5 36 80 13 01 00 00 00 00 00 58 [14:12:32]Write i2c OK [14:12:32]MH_I2C_Read... [14:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:32]Read from MH i2c: E2 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 0E 00 [14:12:32]MH_I2C_Read... [14:12:32]Read from MH i2c: E2 0E 00 A5 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 73 [14:12:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:12:32]wFMCommunicate OK [14:12:32]SAM_PROTO_GetShiftState done [14:12:32]FM_GetShiftState done [14:12:32]req_shift_opened done [14:12:32]requested_item shift.open_date is exist - process it [14:12:32]req_shift_open_date [14:12:32]req_shift_open_date done [14:12:32]produce_requested_data done [14:12:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75134,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:12:32]process_action_free close_receipt [14:12:32]json_value_free [14:12:32]json_value_free done [14:12:32]process_json_proto returns [14:12:32]Send response to host [14:12:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75134,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:12:32]free response buf [14:12:32]execute_script done [14:12:32]execute_script returns [14:12:32]free content buf [14:12:32]Sock 9.Close socket [14:12:32]Sock 9.Thread stoped [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]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]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:13]accept exits with 10 [14:19:13]New connection [14:19:13]New thread 3066781028 created [14:19:13]Thread 3066924388 joined [14:19:13]Waiting for new connection... [14:19:13] Sock 10.Parse request [14:19:13]Sock 10.Check first char [14:19:13]Sock 10.First char is OK [14:19:13]request: POST /json_proto HTTP/1.0 [14:19:13]Method: POST [14:19:13]URL: /json_proto [14:19:13]Method is POST - this is cgi request [14:19:13]url: /json_proto [14:19:13]query_string will be loaded in cgi processing [14:19:13]execute_cgi json_proto POST (null) [14:19:13]execute_cgi path=json_proto method=POST [14:19:13]POST find Content-Length [14:19:13]Host: 172.17.39.131:8080 [14:19:13]Content-Length: 809 [14:19:13]Content-Type: application/json [14:19:13] [14:19:13]POST finish read [14:19:13]Found Content-Length = 809 [14:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]execute_script... [14:19: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)191111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]POST & json_proto [14:19:13]process_json_proto [14:19:13]json parsed OK: [14:19:13]protocol is kg_v1.0 [14:19:13]action value=close_receipt [14:19:13]process_action close_receipt [14:19:13]cmd_close_receipt [14:19:13]MH_GetDate [14:19:13]Write to MH i2c: F0 00 00 A6 36 CB [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 A6 36 00 66 FA 1C 67 86 57 24 65 1D [14:19:13]GetLastDocTimeStamp 1729951953 [14:19:13]current date 1729952358 [14:19:13]FM_GetShiftState [14:19:13]SAM_PROTO_GetShiftState [14:19:13]wFMCommunicate request_size=4 [14:19:13]MH_SAM_APDU [14:19:13]CAPDU: 80 13 01 00 [14:19:13]Write to MH i2c: E2 08 00 A7 36 80 13 01 00 00 00 00 00 5A [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:13]Read from MH i2c: E2 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 A7 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 75 [14:19:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:19:13]wFMCommunicate OK [14:19:13]SAM_PROTO_GetShiftState done [14:19:13]FM_GetShiftState done [14:19:13]opened in 1729902166 [14:19:13]opened+sec_in_day 1729988566 [14:19:13]quantity*price = 300076 [14:19:13]sum+1 = 300077 [14:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 127 26.10.2024 14:19 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75135 ФПД: 252475730370581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141918&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75135&fm=252475730370581&tin=02508201610067®Number=0000000000091691&sum=300076 [14:19:14]StoreToDocumentArchive [14:19:14]shift 512 fd 75135 [14:19:14]save to /storage/0512/doc_00075135 [14:19:14]save last doc name /storage/0512/doc_00075135 to /storage/kkm_last_doc_name [14:19:14]save OK [14:19:14]Clear old archive folders... [14:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:19:14]tlvbuf is 008AFD00 [14:19:14]SAM_PROTO_ClearQueue [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 09 00 00 [14:19:14]Write to MH i2c: E2 08 00 B4 36 80 09 00 00 00 00 00 00 5C [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 09 00 00... 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 B4 36 00 90 00 5E [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_ClearQueue done [14:19:14]KKMCreateOFDPacket [14:19:14]OFDProtocolAddRootSTLVToBuf [14:19:14]FM_MakeSignedData [14:19:14]FM_MakeSignedData [14:19:14]SAM_PROTO_SignData [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 01 02 [14:19:14]Write to MH i2c: E2 08 00 B5 36 80 0D 01 02 00 00 00 00 64 [14:19:14]Write i2c OK [14:19:14]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 B5 36 00 90 00 5F [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 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 D0 A2 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 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 7F 00 00 00 F4 03 04 00 66 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7F 25 01 [14:19:14]Write to MH i2c: E2 02 01 B6 36 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 D0 A2 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 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 7F 00 00 00 F4 03 04 00 66 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7F 25 01 00 00 66 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 B6 36 00 90 00 60 [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=16 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 A0 16 39 20 15 [14:19:15]Write to MH i2c: E2 13 00 B7 36 80 0D 02 02 0B 00 00 35 04 06 00 E5 A0 16 39 20 15 00 00 C5 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 B7 36 00 90 00 61 [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 03 02 [14:19:15]Write to MH i2c: E2 08 00 B8 36 80 0D 03 02 00 00 00 00 69 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 B8 36 00 E2 09 14 1D 78 1C 8A BD 90 00 61 [14:19:15]RAPDU: E2 09 14 1D 78 1C 8A BD 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_SignData done [14:19:15]FM_MakeSignedData done [14:19:15]CreateOFDProtocolMessage [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 11 00 00 [14:19:15]Write to MH i2c: E2 08 00 B9 36 80 11 00 00 00 00 00 00 69 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 B9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C1 [14:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:19:15]wFMCommunicate OK [14:19:15]CreateOFDProtocolMessage done [14:19:15]OFDSenderStorePacket 75135 [14:19:15]StoreOFDPacket docnum=75135 [14:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 FE 69 0D 01 0D DD 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 D0 A2 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 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 7F 00 00 00 F4 03 04 00 66 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7F 25 01 00 35 04 06 00 E5 A0 16 39 20 15 E2 09 14 1D 78 1C 8A BD [14:19:15]CheckFolder [14:19:15]dirname=/storage/ofd_packets [14:19:15]CheckFolder done [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00075135 [14:19:15]NVStorageSaveData ofd_packets/00075135 [14:19:15]File name is /storage/ofd_packets/00075135 [14:19:15]Write 307 bytes [14:19:15]NVStorageSaveData done [14:19:15]OFDSenderStorePacket done [14:19:15]KKMCreateOFDPacket done [14:19:15]NVStorageSaveData kkm_last_timestamp [14:19:15]File name is /storage/kkm_last_timestamp [14:19:15]Write 4 bytes [14:19:15]NVStorageSaveData done [14:19:15]ExternCall_PrintAddStr [14:19:15]wPrintStart [14:19:15]Write to MH i2c: 01 00 00 BA 36 F0 [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 BA 36 00 00 00 00 00 FF 0F 05 [14:19:15]RasterBufferAndPrint [14:19:15]line Счет N : (1)191111 [14:19:15]line ИНН: 02508201610067 [14:19:15]line Контрольно-Кассовый Чек [14:19:15]line ПРОДАЖА [14:19:15]line ТРК (МРК, ГНК) : 42 [14:19:15]line Товар: 2710194240 [14:19:15]line D-ENERGY ДТ-К-2 [14:19:15]line 38.870 * 77.20 [14:19:15]line = 3000.76 [14:19:15]line НДС 12% НСП 1% [14:19:15]line > о реализуемом товаре [14:19:15]line ИТОГО: 3000.76 [14:19:15]line НСП 1% : 26.55 [14:19:15]line НДС 12% : 318.66 [14:19:15]line Наличными: 0.00 [14:19:15]line Безнал.: 3000.76 [14:19:15]line Место: АЗС № 142 "Партнер Нефть" [14:19:15]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:19:15]line СНО: Общий режим [14:19:15]line Чек 127 26.10.2024 14:19 [14:19:15]line Смена: 512 ФФД: 1.0 [14:19:15]line ЗНМ: 0300000089 [14:19:15]line РНМ: 0000000000091691 [14:19:15]line Версия ККМ: 001 [14:19:15]line Платежная система: O! деньги [14:19:15]line ФМ: 0000000000871795 [14:19:15]line ФД: 75135 [14:19:15]line ФПД: 252475730370581 [14:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141918&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75135&fm=252475730370581&tin=02508201610067®Number=0000000000091691&sum=300076 [14:19:15]OFD Sender: Processing packet 75135 [packets to send 13, broken 12] [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00075135 [14:19:15]OFD Sender: To server: pG, [14:19:15]CommunicateWithHost lk.salyk.kg:30040 [14:19:15]ConnectInit lk.salyk.kg [14:19:15]written 0, free lines is 4095 [14:19:15]Connected sock=9 [14:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 FE 69 0D 01 0D DD 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 D0 A2 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 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 7F 00 00 00 F4 03 04 00 66 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7F 25 01 00 35 04 06 00 E5 A0 16 39 20 15 E2 09 14 1D 78 1C 8A BD [14:19:16]Write to MH i2c: 01 00 00 E4 36 1A [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: 01 [14:19:16]MH_I2C_Read... [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 E4 36 00 00 00 00 00 BC 0C E9 [14:19:16]RasterBufferAndPrint [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]line [14:19:16]written 0, free lines is 3269 [14:19:16]MH_Cut [14:19:16]Write to MH i2c: D1 01 00 EB 36 01 F3 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 01 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: D1 01 00 EB 36 00 F2 [14:19:16]Write to MH i2c: 01 00 00 EC 36 22 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B4 AC 47 00 C5 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 7F 25 01 00 F4 03 04 00 E2 A1 1C 67 B6 04 01 00 00 D2 32 C1 C7 5A D1 D7 E7 [14:19:16]CommunicateWithHost err = 0 [14:19:16]CheckOFDResponse [14:19:16]1017 (14) - 77093643461234 [14:19:16]1041 (16) - 0000000000871795 [14:19:16]1040 (4) - 75135 [14:19:16]1012 (4) - 26.10.2024 08:01 [14:19:16]1206 (1) - 0 [14:19:16]OFD Sender: Remove packet 75135 [14:19:16]ProducePacketName [14:19:16]name=ofd_packets/00075135 [14:19:16]NVStorageDeleteData [14:19:16]OFD Sender: No OFD packet to send [14:19:16]*** Cut start [14:19:16]*** Partial cut [14:19:16]*** CUTSNS_PIN = 1 [14:19:17]*** CUTSNS_PIN = 0 [14:19:17]*** Brake cut motor [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]*** Stop cut motor [14:19:17]*** Cut end [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 EC 36 00 00 00 00 00 FF 0F 37 [14:19:17]process_action close_receipt done [14:19:17]requested_data is exist [14:19:17]produce_requested_data [14:19:17]requested_item fm.sn is exist - process it [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 11 00 00 [14:19:17]Write to MH i2c: E2 08 00 ED 36 80 11 00 00 00 00 00 00 9D [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 ED 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [14:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:19:17]wFMCommunicate OK [14:19:17]requested_item fd.num is exist - process it [14:19:17]SAM_PROTO_GetFieldsCounters [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 00 00 [14:19:17]Write to MH i2c: E2 08 00 EE 36 80 13 00 00 00 00 00 00 A0 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 EE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7F 25 01 00 0E 04 04 00 00 02 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 EB [14:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 7F 25 01 00 0E 04 04 00 00 02 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 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetFieldsCounters done [14:19:17]requested_item shift.num is exist - process it [14:19:17]requested_item shift.opened is exist - process it [14:19:17]req_shift_opened [14:19:17]FM_GetShiftState [14:19:17]SAM_PROTO_GetShiftState [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 01 00 [14:19:17]Write to MH i2c: E2 08 00 EF 36 80 13 01 00 00 00 00 00 A2 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:17]Read from MH i2c: E2 0E 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 EF 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BD [14:19:17]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetShiftState done [14:19:17]FM_GetShiftState done [14:19:17]req_shift_opened done [14:19:17]requested_item shift.open_date is exist - process it [14:19:17]req_shift_open_date [14:19:17]req_shift_open_date done [14:19:17]produce_requested_data done [14:19:17]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75135,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:19:17]process_action_free close_receipt [14:19:17]json_value_free [14:19:17]json_value_free done [14:19:17]process_json_proto returns [14:19:17]Send response to host [14:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75135,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:19:17]free response buf [14:19:17]execute_script done [14:19:17]execute_script returns [14:19:17]free content buf [14:19:17]Sock 10.Close socket [14:19:17]Sock 10.Thread stoped [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:54]recv_with_timeout no data received [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:19]accept exits with 8 [14:21:19]New connection [14:21:19]New thread 3066924388 created [14:21:19]Thread 3066781028 joined [14:21:19]Waiting for new connection... [14:21:19] Sock 8.Parse request [14:21:19]Sock 8.Check first char [14:21:19]Sock 8.First char is OK [14:21:19]request: POST /json_proto HTTP/1.0 [14:21:19]Method: POST [14:21:19]URL: /json_proto [14:21:19]Method is POST - this is cgi request [14:21:19]url: /json_proto [14:21:19]query_string will be loaded in cgi processing [14:21:19]execute_cgi json_proto POST (null) [14:21:19]execute_cgi path=json_proto method=POST [14:21:19]POST find Content-Length [14:21:19]Host: 172.17.39.131:8080 [14:21:19]Content-Length: 682 [14:21:19]Content-Type: application/json [14:21:19] [14:21:19]POST finish read [14:21:19]Found Content-Length = 682 [14:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]execute_script... [14:21: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)191112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]POST & json_proto [14:21:19]process_json_proto [14:21:19]json parsed OK: [14:21:19]protocol is kg_v1.0 [14:21:19]action value=close_receipt [14:21:19]process_action close_receipt [14:21:19]cmd_close_receipt [14:21:19]MH_GetDate [14:21:19]Write to MH i2c: F0 00 00 F0 36 15 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 F0 36 00 E4 FA 1C 67 86 57 24 65 E5 [14:21:19]GetLastDocTimeStamp 1729952358 [14:21:19]current date 1729952484 [14:21:19]FM_GetShiftState [14:21:19]SAM_PROTO_GetShiftState [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 13 01 00 [14:21:19]Write to MH i2c: E2 08 00 F1 36 80 13 01 00 00 00 00 00 A4 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 F1 36 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BF [14:21:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_GetShiftState done [14:21:19]FM_GetShiftState done [14:21:19]opened in 1729902166 [14:21:19]opened+sec_in_day 1729988566 [14:21:19]quantity*price = 100015 [14:21:19]sum+1 = 100017 [14:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 128 26.10.2024 14:21 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75136 ФПД: 268886826476935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142124&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75136&fm=268886826476935&tin=02508201610067®Number=0000000000091691&sum=100000 [14:21:20]StoreToDocumentArchive [14:21:20]shift 512 fd 75136 [14:21:20]save to /storage/0512/doc_00075136 [14:21:20]save last doc name /storage/0512/doc_00075136 to /storage/kkm_last_doc_name [14:21:20]save OK [14:21:20]Clear old archive folders... [14:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:20]tlvbuf is 00918BF0 [14:21:20]SAM_PROTO_ClearQueue [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 09 00 00 [14:21:20]Write to MH i2c: E2 08 00 FE 36 80 09 00 00 00 00 00 00 A6 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 FE 36 00 90 00 A8 [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]SAM_PROTO_ClearQueue done [14:21:20]KKMCreateOFDPacket [14:21:20]OFDProtocolAddRootSTLVToBuf [14:21:20]FM_MakeSignedData [14:21:20]FM_MakeSignedData [14:21:20]SAM_PROTO_SignData [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 01 02 [14:21:20]Write to MH i2c: E2 08 00 FF 36 80 0D 01 02 00 00 00 00 AE [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 FF 36 00 90 00 A9 [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=255 [14:21:20]MH_SAM_APDU [14:21: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 80 00 00 00 F4 03 04 00 E4 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 80 25 01 00 35 04 06 00 F4 [14:21:20]Write to MH i2c: E2 02 01 00 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 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 80 00 00 00 F4 03 04 00 E4 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 80 25 01 00 35 04 06 00 F4 00 00 BB [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 00 37 00 90 00 AB [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=10 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 02 02 05 8D 17 C6 E5 87 [14:21:20]Write to MH i2c: E2 0D 00 01 37 80 0D 02 02 05 00 8D 17 C6 E5 87 00 00 92 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 01 37 00 90 00 AC [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 03 02 [14:21:20]Write to MH i2c: E2 08 00 02 37 80 0D 03 02 00 00 00 00 B4 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0B 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0B 00 02 37 00 51 03 FF 81 F6 77 C7 6C 90 00 29 [14:21:20]RAPDU: 51 03 FF 81 F6 77 C7 6C 90 00 [14:21:20]wFMCommunicate OK [14:21:20]SAM_PROTO_SignData done [14:21:20]FM_MakeSignedData done [14:21:20]CreateOFDProtocolMessage [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 11 00 00 [14:21:20]Write to MH i2c: E2 08 00 03 37 80 11 00 00 00 00 00 00 B4 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 17 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 17 00 03 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0C [14:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:21:20]wFMCommunicate OK [14:21:20]CreateOFDProtocolMessage done [14:21:20]OFDSenderStorePacket 75136 [14:21:20]StoreOFDPacket docnum=75136 [14:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C5 53 07 01 B0 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 E4 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 80 25 01 00 35 04 06 00 F4 8D 17 C6 E5 87 51 03 FF 81 F6 77 C7 6C [14:21:20]CheckFolder [14:21:20]dirname=/storage/ofd_packets [14:21:20]CheckFolder done [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00075136 [14:21:20]NVStorageSaveData ofd_packets/00075136 [14:21:20]File name is /storage/ofd_packets/00075136 [14:21:20]Write 301 bytes [14:21:20]NVStorageSaveData done [14:21:20]OFDSenderStorePacket done [14:21:20]KKMCreateOFDPacket done [14:21:20]NVStorageSaveData kkm_last_timestamp [14:21:20]File name is /storage/kkm_last_timestamp [14:21:20]Write 4 bytes [14:21:20]NVStorageSaveData done [14:21:20]ExternCall_PrintAddStr [14:21:20]wPrintStart [14:21:20]Write to MH i2c: 01 00 00 04 37 3B [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [14:21:20]RasterBufferAndPrint [14:21:20]line Счет N : (1)191112 [14:21:20]line ИНН: 02508201610067 [14:21:20]line Контрольно-Кассовый Чек [14:21:20]line ПРОДАЖА [14:21:20]line ТРК (МРК, ГНК) : 21 [14:21:20]line Товар: 2710124130 [14:21:20]line Аи-92-К-5 [14:21:20]line 14.950 * 66.90 [14:21:20]line = 1000.16 [14:21:20]line НДС 12% НСП 1% [14:21:20]line > о реализуемом товаре [14:21:20]line ОКРУГЛЕНИЕ: -0.16 [14:21:20]line ИТОГО: 1000.00 [14:21:20]line Внесено: 1000.00 [14:21:20]line СДАЧА: 0.00 [14:21:20]line НСП 1% : 8.85 [14:21:20]line НДС 12% : 106.21 [14:21:20]line Наличными: 1000.00 [14:21:20]line Безнал.: 0.00 [14:21:20]line Место: АЗС № 142 "Партнер Нефть" [14:21:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:21:20]line СНО: Общий режим [14:21:20]line Чек 128 26.10.2024 14:21 [14:21:20]line Смена: 512 ФФД: 1.0 [14:21:20]line ЗНМ: 0300000089 [14:21:20]line РНМ: 0000000000091691 [14:21:20]line Версия ККМ: 001 [14:21:20]line ФМ: 0000000000871795 [14:21:20]line ФД: 75136 [14:21:20]line ФПД: 268886826476935 [14:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142124&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75136&fm=268886826476935&tin=02508201610067®Number=0000000000091691&sum=100000 [14:21:20]written 0, free lines is 4095 [14:21:20]OFD Sender: Processing packet 75136 [packets to send 13, broken 12] [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00075136 [14:21:20]OFD Sender: To server: pG, [14:21:20]CommunicateWithHost lk.salyk.kg:30040 [14:21:20]ConnectInit lk.salyk.kg [14:21:21]Connected sock=10 [14:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 C5 53 07 01 B0 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 E4 FA 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 80 25 01 00 35 04 06 00 F4 8D 17 C6 E5 87 51 03 FF 81 F6 77 C7 6C [14:21:21]Write to MH i2c: 01 00 00 2F 37 66 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 2F 37 00 00 00 00 00 B6 0C 2F [14:21:21]RasterBufferAndPrint [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]written 0, free lines is 3262 [14:21:21]MH_Cut [14:21:21]Write to MH i2c: D1 01 00 36 37 01 3F [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 01 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 01 00 36 37 00 3E [14:21:21]Write to MH i2c: 01 00 00 37 37 6E [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F2 1A 47 00 7B B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 80 25 01 00 F4 03 04 00 60 A2 1C 67 B6 04 01 00 00 FA 2B 08 54 17 A5 1E 51 [14:21:21]CommunicateWithHost err = 0 [14:21:21]CheckOFDResponse [14:21:21]1017 (14) - 77093643461234 [14:21:21]1041 (16) - 0000000000871795 [14:21:21]1040 (4) - 75136 [14:21:21]1012 (4) - 26.10.2024 08:03 [14:21:21]1206 (1) - 0 [14:21:21]OFD Sender: Remove packet 75136 [14:21:21]ProducePacketName [14:21:21]name=ofd_packets/00075136 [14:21:21]NVStorageDeleteData [14:21:21]OFD Sender: No OFD packet to send [14:21:22]*** Cut start [14:21:22]*** Partial cut [14:21:22]*** CUTSNS_PIN = 1 [14:21:22]*** CUTSNS_PIN = 0 [14:21:22]*** Brake cut motor [14:21:22]Read from MH i2c: 01 [14:21:22]MH_I2C_Read... [14:21:22]*** Stop cut motor [14:21:22]*** Cut end [14:21:22]Read from MH i2c: 01 07 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [14:21:22]process_action close_receipt done [14:21:22]requested_data is exist [14:21:22]produce_requested_data [14:21:22]requested_item fm.sn is exist - process it [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 11 00 00 [14:21:22]Write to MH i2c: E2 08 00 38 37 80 11 00 00 00 00 00 00 E9 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 38 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 41 [14:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:21:22]wFMCommunicate OK [14:21:22]requested_item fd.num is exist - process it [14:21:22]SAM_PROTO_GetFieldsCounters [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 13 00 00 [14:21:22]Write to MH i2c: E2 08 00 39 37 80 13 00 00 00 00 00 00 EC [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:23]Read from MH i2c: E2 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 62 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 62 00 39 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 80 25 01 00 0E 04 04 00 00 02 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 3B [14:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 80 25 01 00 0E 04 04 00 00 02 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 [14:21:23]wFMCommunicate OK [14:21:23]SAM_PROTO_GetFieldsCounters done [14:21:23]requested_item shift.num is exist - process it [14:21:23]requested_item shift.opened is exist - process it [14:21:23]req_shift_opened [14:21:23]FM_GetShiftState [14:21:23]SAM_PROTO_GetShiftState [14:21:23]wFMCommunicate request_size=4 [14:21:23]MH_SAM_APDU [14:21:23]CAPDU: 80 13 01 00 [14:21:23]Write to MH i2c: E2 08 00 3A 37 80 13 01 00 00 00 00 00 EE [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:23]Read from MH i2c: E2 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 3A 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 09 [14:21:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:21:23]wFMCommunicate OK [14:21:23]SAM_PROTO_GetShiftState done [14:21:23]FM_GetShiftState done [14:21:23]req_shift_opened done [14:21:23]requested_item shift.open_date is exist - process it [14:21:23]req_shift_open_date [14:21:23]req_shift_open_date done [14:21:23]produce_requested_data done [14:21:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75136,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:21:23]process_action_free close_receipt [14:21:23]json_value_free [14:21:23]json_value_free done [14:21:23]process_json_proto returns [14:21:23]Send response to host [14:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75136,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:21:23]free response buf [14:21:23]execute_script done [14:21:23]execute_script returns [14:21:23]free content buf [14:21:23]Sock 8.Close socket [14:21:23]Sock 8.Thread stoped [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:30]recv_with_timeout no data received [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:28]accept exits with 9 [14:30:28]New connection [14:30:28]New thread 3066781028 created [14:30:28]Thread 3066924388 joined [14:30:28]Waiting for new connection... [14:30:28] Sock 9.Parse request [14:30:28]Sock 9.Check first char [14:30:28]Sock 9.First char is OK [14:30:28]request: POST /json_proto HTTP/1.0 [14:30:28]Method: POST [14:30:28]URL: /json_proto [14:30:28]Method is POST - this is cgi request [14:30:28]url: /json_proto [14:30:28]query_string will be loaded in cgi processing [14:30:28]execute_cgi json_proto POST (null) [14:30:28]execute_cgi path=json_proto method=POST [14:30:28]POST find Content-Length [14:30:28]Host: 172.17.39.131:8080 [14:30:28]Content-Length: 683 [14:30:28]Content-Type: application/json [14:30:28] [14:30:28]POST finish read [14:30:28]Found Content-Length = 683 [14:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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:30:28]execute_script... [14:30: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)191113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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:30:28]POST & json_proto [14:30:28]process_json_proto [14:30:28]json parsed OK: [14:30:28]protocol is kg_v1.0 [14:30:28]action value=close_receipt [14:30:28]process_action close_receipt [14:30:28]cmd_close_receipt [14:30:28]MH_GetDate [14:30:28]Write to MH i2c: F0 00 00 3B 37 61 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 09 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: F0 09 00 3B 37 00 09 FD 1C 67 86 57 24 65 59 [14:30:28]GetLastDocTimeStamp 1729952484 [14:30:28]current date 1729953033 [14:30:28]FM_GetShiftState [14:30:28]SAM_PROTO_GetShiftState [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 13 01 00 [14:30:28]Write to MH i2c: E2 08 00 3C 37 80 13 01 00 00 00 00 00 F0 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 3C 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0B [14:30:28]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetShiftState done [14:30:28]FM_GetShiftState done [14:30:28]opened in 1729902166 [14:30:28]opened+sec_in_day 1729988566 [14:30:28]quantity*price = 50025 [14:30:28]sum+1 = 50027 [14:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 129 26.10.2024 14:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75137 ФПД: 41516398449724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143033&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75137&fm=41516398449724&tin=02508201610067®Number=0000000000091691&sum=50000 [14:30:29]StoreToDocumentArchive [14:30:29]shift 512 fd 75137 [14:30:29]save to /storage/0512/doc_00075137 [14:30:29]save last doc name /storage/0512/doc_00075137 to /storage/kkm_last_doc_name [14:30:29]save OK [14:30:29]Clear old archive folders... [14:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:30:29]tlvbuf is 008AFB00 [14:30:29]SAM_PROTO_ClearQueue [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 09 00 00 [14:30:29]Write to MH i2c: E2 08 00 49 37 80 09 00 00 00 00 00 00 F2 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 49 37 00 90 00 F4 [14:30:29]RAPDU: 90 00 [14:30:29]wFMCommunicate OK [14:30:29]SAM_PROTO_ClearQueue done [14:30:29]KKMCreateOFDPacket [14:30:29]OFDProtocolAddRootSTLVToBuf [14:30:29]FM_MakeSignedData [14:30:29]FM_MakeSignedData [14:30:29]SAM_PROTO_SignData [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 0D 01 02 [14:30:29]Write to MH i2c: E2 08 00 4A 37 80 0D 01 02 00 00 00 00 FA [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 4A 37 00 90 00 F5 [14:30:29]RAPDU: 90 00 [14:30:29]wFMCommunicate OK [14:30:29]wFMCommunicate request_size=255 [14:30:29]MH_SAM_APDU [14:30: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 D0 A2 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 81 00 00 00 F4 03 04 00 09 FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 81 25 01 [14:30:29]Write to MH i2c: E2 02 01 4B 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 D0 A2 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 81 00 00 00 F4 03 04 00 09 FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 81 25 01 00 00 DA [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 03 00 4B 37 00 90 00 F6 [14:30:29]RAPDU: 90 00 [14:30:29]wFMCommunicate OK [14:30:29]wFMCommunicate request_size=16 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 C2 4A 2E 94 3C [14:30:29]Write to MH i2c: E2 13 00 4C 37 80 0D 02 02 0B 00 00 35 04 06 00 25 C2 4A 2E 94 3C 00 00 81 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 03 00 4C 37 00 90 00 F7 [14:30:30]RAPDU: 90 00 [14:30:30]wFMCommunicate OK [14:30:30]wFMCommunicate request_size=4 [14:30:30]MH_SAM_APDU [14:30:30]CAPDU: 80 0D 03 02 [14:30:30]Write to MH i2c: E2 08 00 4D 37 80 0D 03 02 00 00 00 00 FF [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 0B 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 0B 00 4D 37 00 B1 B9 97 49 29 97 6B F3 90 00 68 [14:30:30]RAPDU: B1 B9 97 49 29 97 6B F3 90 00 [14:30:30]wFMCommunicate OK [14:30:30]SAM_PROTO_SignData done [14:30:30]FM_MakeSignedData done [14:30:30]CreateOFDProtocolMessage [14:30:30]wFMCommunicate request_size=4 [14:30:30]MH_SAM_APDU [14:30:30]CAPDU: 80 11 00 00 [14:30:30]Write to MH i2c: E2 08 00 4E 37 80 11 00 00 00 00 00 00 FF [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:30]Read from MH i2c: E2 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 17 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: E2 17 00 4E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 57 [14:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:30:30]wFMCommunicate OK [14:30:30]CreateOFDProtocolMessage done [14:30:30]OFDSenderStorePacket 75137 [14:30:30]StoreOFDPacket docnum=75137 [14:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 CE A9 0D 01 38 6F 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 D0 A2 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 81 00 00 00 F4 03 04 00 09 FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 81 25 01 00 35 04 06 00 25 C2 4A 2E 94 3C B1 B9 97 49 29 97 6B F3 [14:30:30]CheckFolder [14:30:30]dirname=/storage/ofd_packets [14:30:30]CheckFolder done [14:30:30]ProducePacketName [14:30:30]name=ofd_packets/00075137 [14:30:30]NVStorageSaveData ofd_packets/00075137 [14:30:30]File name is /storage/ofd_packets/00075137 [14:30:30]Write 307 bytes [14:30:30]NVStorageSaveData done [14:30:30]OFDSenderStorePacket done [14:30:30]KKMCreateOFDPacket done [14:30:30]NVStorageSaveData kkm_last_timestamp [14:30:30]File name is /storage/kkm_last_timestamp [14:30:30]Write 4 bytes [14:30:30]NVStorageSaveData done [14:30:30]ExternCall_PrintAddStr [14:30:30]wPrintStart [14:30:30]Write to MH i2c: 01 00 00 4F 37 86 [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 4F 37 00 00 00 00 00 FF 0F 9B [14:30:30]RasterBufferAndPrint [14:30:30]line Счет N : (1)191113 [14:30:30]line ИНН: 02508201610067 [14:30:30]line Контрольно-Кассовый Чек [14:30:30]line ПРОДАЖА [14:30:30]line ТРК (МРК, ГНК) : 32 [14:30:30]line Товар: 2710194240 [14:30:30]line D-ENERGY ДТ-К-2 [14:30:30]line 6.480 * 77.20 [14:30:30]line = 500.26 [14:30:30]line НДС 12% НСП 1% [14:30:30]line > о реализуемом товаре [14:30:30]line ОКРУГЛЕНИЕ: -0.26 [14:30:30]line ИТОГО: 500.00 [14:30:30]line Внесено: 500.00 [14:30:30]line СДАЧА: 0.00 [14:30:30]line НСП 1% : 4.43 [14:30:30]line НДС 12% : 53.12 [14:30:30]line Наличными: 500.00 [14:30:30]line Безнал.: 0.00 [14:30:30]line Место: АЗС № 142 "Партнер Нефть" [14:30:30]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:30:30]line СНО: Общий режим [14:30:30]line Чек 129 26.10.2024 14:30 [14:30:30]line Смена: 512 ФФД: 1.0 [14:30:30]line ЗНМ: 0300000089 [14:30:30]line РНМ: 0000000000091691 [14:30:30]line Версия ККМ: 001 [14:30:30]line ФМ: 0000000000871795 [14:30:30]line ФД: 75137 [14:30:30]line ФПД: 41516398449724 [14:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143033&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75137&fm=41516398449724&tin=02508201610067®Number=0000000000091691&sum=50000 [14:30:30]OFD Sender: Processing packet 75137 [packets to send 13, broken 12] [14:30:30]ProducePacketName [14:30:30]name=ofd_packets/00075137 [14:30:30]OFD Sender: To server: pG, [14:30:30]CommunicateWithHost lk.salyk.kg:30040 [14:30:30]ConnectInit lk.salyk.kg [14:30:30]written 0, free lines is 4095 [14:30:30]Connected sock=10 [14:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 CE A9 0D 01 38 6F 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 D0 A2 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 81 00 00 00 F4 03 04 00 09 FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 81 25 01 00 35 04 06 00 25 C2 4A 2E 94 3C B1 B9 97 49 29 97 6B F3 [14:30:30]Write to MH i2c: 01 00 00 7A 37 B1 [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: 01 07 00 7A 37 00 00 00 00 00 B0 0C 74 [14:30:30]RasterBufferAndPrint [14:30:30]line [14:30:30]line [14:30:30]line [14:30:30]line [14:30:30]line [14:30:30]written 0, free lines is 3255 [14:30:30]MH_Cut [14:30:30]Write to MH i2c: D1 01 00 81 37 01 8A [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: D1 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: D1 01 00 [14:30:30]MH_I2C_Read... [14:30:30]Read from MH i2c: D1 01 00 81 37 00 89 [14:30:30]Write to MH i2c: 01 00 00 82 37 B9 [14:30:30]Write i2c OK [14:30:30]MH_I2C_Read... [14:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FA D1 47 00 56 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 38 37 31 37 39 35 10 04 04 00 81 25 01 00 F4 03 04 00 85 A4 1C 67 B6 04 01 00 00 AB 2F AC 42 AA A4 A8 5C [14:30:31]CommunicateWithHost err = 0 [14:30:31]CheckOFDResponse [14:30:31]1017 (14) - 77093643461234 [14:30:31]1041 (16) - 0000000000871795 [14:30:31]1040 (4) - 75137 [14:30:31]1012 (4) - 26.10.2024 08:12 [14:30:31]1206 (1) - 0 [14:30:31]OFD Sender: Remove packet 75137 [14:30:31]ProducePacketName [14:30:31]name=ofd_packets/00075137 [14:30:31]NVStorageDeleteData [14:30:31]OFD Sender: No OFD packet to send [14:30:31]*** Cut start [14:30:31]*** Partial cut [14:30:31]*** CUTSNS_PIN = 1 [14:30:31]*** CUTSNS_PIN = 0 [14:30:32]*** Brake cut motor [14:30:32]Read from MH i2c: 01 [14:30:32]MH_I2C_Read... [14:30:32]*** Stop cut motor [14:30:32]*** Cut end [14:30:32]Read from MH i2c: 01 07 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: 01 07 00 82 37 00 00 00 00 00 FF 0F CE [14:30:32]process_action close_receipt done [14:30:32]requested_data is exist [14:30:32]produce_requested_data [14:30:32]requested_item fm.sn is exist - process it [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 11 00 00 [14:30:32]Write to MH i2c: E2 08 00 83 37 80 11 00 00 00 00 00 00 34 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 17 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 17 00 83 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8C [14:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:30:32]wFMCommunicate OK [14:30:32]requested_item fd.num is exist - process it [14:30:32]SAM_PROTO_GetFieldsCounters [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 00 00 [14:30:32]Write to MH i2c: E2 08 00 84 37 80 13 00 00 00 00 00 00 37 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 62 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 62 00 84 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 81 25 01 00 0E 04 04 00 00 02 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 8A [14:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 81 25 01 00 0E 04 04 00 00 02 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 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetFieldsCounters done [14:30:32]requested_item shift.num is exist - process it [14:30:32]requested_item shift.opened is exist - process it [14:30:32]req_shift_opened [14:30:32]FM_GetShiftState [14:30:32]SAM_PROTO_GetShiftState [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 01 00 [14:30:32]Write to MH i2c: E2 08 00 85 37 80 13 01 00 00 00 00 00 39 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:32]Read from MH i2c: E2 0E 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 85 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 54 [14:30:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetShiftState done [14:30:32]FM_GetShiftState done [14:30:32]req_shift_opened done [14:30:32]requested_item shift.open_date is exist - process it [14:30:32]req_shift_open_date [14:30:32]req_shift_open_date done [14:30:32]produce_requested_data done [14:30:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75137,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:30:32]process_action_free close_receipt [14:30:32]json_value_free [14:30:32]json_value_free done [14:30:32]process_json_proto returns [14:30:32]Send response to host [14:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75137,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:30:32]free response buf [14:30:32]execute_script done [14:30:32]execute_script returns [14:30:32]free content buf [14:30:32]Sock 9.Close socket [14:30:32]Sock 9.Thread stoped [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:45]accept exits with 8 [14:30:45]New connection [14:30:45]New thread 3066924388 created [14:30:45]Thread 3066781028 joined [14:30:45]Waiting for new connection... [14:30:45] Sock 8.Parse request [14:30:45]Sock 8.Check first char [14:30:45]Sock 8.First char is OK [14:30:45]request: POST /json_proto HTTP/1.0 [14:30:45]Method: POST [14:30:45]URL: /json_proto [14:30:45]Method is POST - this is cgi request [14:30:45]url: /json_proto [14:30:45]query_string will be loaded in cgi processing [14:30:45]execute_cgi json_proto POST (null) [14:30:45]execute_cgi path=json_proto method=POST [14:30:45]POST find Content-Length [14:30:45]Host: 172.17.39.131:8080 [14:30:45]Content-Length: 769 [14:30:45]Content-Type: application/json [14:30:45] [14:30:45]POST finish read [14:30:45]Found Content-Length = 769 [14:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:30:45]execute_script... [14:30: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)191114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:30:45]POST & json_proto [14:30:45]process_json_proto [14:30:45]json parsed OK: [14:30:45]protocol is kg_v1.0 [14:30:45]action value=close_receipt [14:30:45]process_action close_receipt [14:30:45]cmd_close_receipt [14:30:45]MH_GetDate [14:30:45]Write to MH i2c: F0 00 00 86 37 AC [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 09 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 09 00 86 37 00 1B FD 1C 67 86 57 24 65 B6 [14:30:45]GetLastDocTimeStamp 1729953033 [14:30:45]current date 1729953051 [14:30:45]FM_GetShiftState [14:30:45]SAM_PROTO_GetShiftState [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 13 01 00 [14:30:45]Write to MH i2c: E2 08 00 87 37 80 13 01 00 00 00 00 00 3B [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 87 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 56 [14:30:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:30:45]wFMCommunicate OK [14:30:45]SAM_PROTO_GetShiftState done [14:30:45]FM_GetShiftState done [14:30:45]opened in 1729902166 [14:30:45]opened+sec_in_day 1729988566 [14:30:45]quantity*price = 100015 [14:30:45]sum+1 = 100017 [14:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 130 26.10.2024 14:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75138 ФПД: 81855455573308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143051&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75138&fm=81855455573308&tin=02508201610067®Number=0000000000091691&sum=100016 [14:30:47]StoreToDocumentArchive [14:30:47]shift 512 fd 75138 [14:30:47]save to /storage/0512/doc_00075138 [14:30:47]save last doc name /storage/0512/doc_00075138 to /storage/kkm_last_doc_name [14:30:47]save OK [14:30:47]Clear old archive folders... [14:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:47]tlvbuf is 007D93E0 [14:30:47]SAM_PROTO_ClearQueue [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 09 00 00 [14:30:47]Write to MH i2c: E2 08 00 94 37 80 09 00 00 00 00 00 00 3D [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]SAM_PROTO_ClearQueue done [14:30:47]KKMCreateOFDPacket [14:30:47]OFDProtocolAddRootSTLVToBuf [14:30:47]FM_MakeSignedData [14:30:47]FM_MakeSignedData [14:30:47]SAM_PROTO_SignData [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 01 02 [14:30:47]Write to MH i2c: E2 08 00 95 37 80 0D 01 02 00 00 00 00 45 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=255 [14:30:47]MH_SAM_APDU [14:30: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 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 82 00 00 00 F4 03 04 00 1B FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 82 25 01 00 35 04 06 00 4A [14:30:47]Write to MH i2c: E2 02 01 96 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 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 82 00 00 00 F4 03 04 00 1B FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 82 25 01 00 35 04 06 00 4A 00 00 05 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 96 37 00 90 00 41 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=10 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 02 02 05 72 75 5A 35 3C [14:30:47]Write to MH i2c: E2 0D 00 97 37 80 0D 02 02 05 00 72 75 5A 35 3C 00 00 04 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 97 37 00 90 00 42 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 03 02 [14:30:47]Write to MH i2c: E2 08 00 98 37 80 0D 03 02 00 00 00 00 4A [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 98 37 00 22 A5 05 42 3C 23 27 AE 90 00 8D [14:30:47]RAPDU: 22 A5 05 42 3C 23 27 AE 90 00 [14:30:47]wFMCommunicate OK [14:30:47]SAM_PROTO_SignData done [14:30:47]FM_MakeSignedData done [14:30:47]CreateOFDProtocolMessage [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 11 00 00 [14:30:47]Write to MH i2c: E2 08 00 99 37 80 11 00 00 00 00 00 00 4A [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 99 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A2 [14:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:30:47]wFMCommunicate OK [14:30:47]CreateOFDProtocolMessage done [14:30:47]OFDSenderStorePacket 75138 [14:30:47]StoreOFDPacket docnum=75138 [14:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AF 22 07 01 89 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1B FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 82 25 01 00 35 04 06 00 4A 72 75 5A 35 3C 22 A5 05 42 3C 23 27 AE [14:30:47]CheckFolder [14:30:47]dirname=/storage/ofd_packets [14:30:47]CheckFolder done [14:30:47]ProducePacketName [14:30:47]name=ofd_packets/00075138 [14:30:47]NVStorageSaveData ofd_packets/00075138 [14:30:47]File name is /storage/ofd_packets/00075138 [14:30:47]Write 301 bytes [14:30:47]NVStorageSaveData done [14:30:47]OFDSenderStorePacket done [14:30:47]KKMCreateOFDPacket done [14:30:47]NVStorageSaveData kkm_last_timestamp [14:30:47]File name is /storage/kkm_last_timestamp [14:30:47]Write 4 bytes [14:30:47]NVStorageSaveData done [14:30:47]ExternCall_PrintAddStr [14:30:47]wPrintStart [14:30:47]Write to MH i2c: 01 00 00 9A 37 D1 [14:30:47]OFD Sender: Processing packet 75138 [packets to send 13, broken 12] [14:30:47]ProducePacketName [14:30:47]name=ofd_packets/00075138 [14:30:47]OFD Sender: To server: pG, [14:30:47]CommunicateWithHost lk.salyk.kg:30040 [14:30:47]ConnectInit lk.salyk.kg [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 9A 37 00 00 00 00 00 FF 0F E6 [14:30:47]RasterBufferAndPrint [14:30:47]line Счет N : (1)191114 [14:30:47]line ИНН: 02508201610067 [14:30:47]line Контрольно-Кассовый Чек [14:30:47]line ПРОДАЖА [14:30:47]line ТРК (МРК, ГНК) : 21 [14:30:47]line Товар: 2710124130 [14:30:47]line Аи-92-К-5 [14:30:47]line 14.950 * 66.90 [14:30:47]line = 1000.16 [14:30:47]line НДС 12% НСП 1% [14:30:47]line > о реализуемом товаре [14:30:47]line ИТОГО: 1000.16 [14:30:47]line НСП 1% : 8.85 [14:30:47]line НДС 12% : 106.21 [14:30:47]line Наличными: 0.00 [14:30:47]line Безнал.: 1000.16 [14:30:47]line Место: АЗС № 142 "Партнер Нефть" [14:30:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:30:47]line СНО: Общий режим [14:30:47]line Чек 130 26.10.2024 14:30 [14:30:47]line Смена: 512 ФФД: 1.0 [14:30:47]line ЗНМ: 0300000089 [14:30:47]line РНМ: 0000000000091691 [14:30:47]line Версия ККМ: 001 [14:30:47]line Платежная система: Mbank [14:30:47]line ФМ: 0000000000871795 [14:30:47]line ФД: 75138 [14:30:47]line ФПД: 81855455573308 [14:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143051&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75138&fm=81855455573308&tin=02508201610067®Number=0000000000091691&sum=100016 [14:30:47]written 0, free lines is 4095 [14:30:47]Connected sock=10 [14:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AF 22 07 01 89 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1B FD 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 82 25 01 00 35 04 06 00 4A 72 75 5A 35 3C 22 A5 05 42 3C 23 27 AE [14:30:48]Write to MH i2c: 01 00 00 C3 37 FA [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 C3 37 00 00 00 00 00 DB 0C E8 [14:30:48]RasterBufferAndPrint [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]written 0, free lines is 3300 [14:30:48]MH_Cut [14:30:48]Write to MH i2c: D1 01 00 CA 37 01 D3 [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 CA 37 00 D2 [14:30:48]Write to MH i2c: 01 00 00 CB 37 02 [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 5B 1C 47 00 4D 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 38 37 31 37 39 35 10 04 04 00 82 25 01 00 F4 03 04 00 96 A4 1C 67 B6 04 01 00 00 B4 01 59 63 EC C7 F1 DD [14:30:48]CommunicateWithHost err = 0 [14:30:48]CheckOFDResponse [14:30:48]1017 (14) - 77093643461234 [14:30:48]1041 (16) - 0000000000871795 [14:30:48]1040 (4) - 75138 [14:30:48]1012 (4) - 26.10.2024 08:13 [14:30:48]1206 (1) - 0 [14:30:48]OFD Sender: Remove packet 75138 [14:30:48]ProducePacketName [14:30:48]name=ofd_packets/00075138 [14:30:48]NVStorageDeleteData [14:30:48]OFD Sender: No OFD packet to send [14:30:48]*** Cut start [14:30:48]*** Partial cut [14:30:48]*** CUTSNS_PIN = 1 [14:30:48]*** CUTSNS_PIN = 0 [14:30:49]*** Brake cut motor [14:30:49]Read from MH i2c: 01 [14:30:49]MH_I2C_Read... [14:30:49]*** Stop cut motor [14:30:49]*** Cut end [14:30:49]Read from MH i2c: 01 07 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 FF 0F 17 [14:30:49]process_action close_receipt done [14:30:49]requested_data is exist [14:30:49]produce_requested_data [14:30:49]requested_item fm.sn is exist - process it [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 11 00 00 [14:30:49]Write to MH i2c: E2 08 00 CC 37 80 11 00 00 00 00 00 00 7D [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 CC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D5 [14:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:30:49]wFMCommunicate OK [14:30:49]requested_item fd.num is exist - process it [14:30:49]SAM_PROTO_GetFieldsCounters [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 00 00 [14:30:49]Write to MH i2c: E2 08 00 CD 37 80 13 00 00 00 00 00 00 80 [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 CD 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 82 25 01 00 0E 04 04 00 00 02 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 D7 [14:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 82 25 01 00 0E 04 04 00 00 02 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 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetFieldsCounters done [14:30:49]requested_item shift.num is exist - process it [14:30:49]requested_item shift.opened is exist - process it [14:30:49]req_shift_opened [14:30:49]FM_GetShiftState [14:30:49]SAM_PROTO_GetShiftState [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 01 00 [14:30:49]Write to MH i2c: E2 08 00 CE 37 80 13 01 00 00 00 00 00 82 [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 CE 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9D [14:30:49]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetShiftState done [14:30:49]FM_GetShiftState done [14:30:49]req_shift_opened done [14:30:49]requested_item shift.open_date is exist - process it [14:30:49]req_shift_open_date [14:30:49]req_shift_open_date done [14:30:49]produce_requested_data done [14:30:49]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75138,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:30:49]process_action_free close_receipt [14:30:49]json_value_free [14:30:49]json_value_free done [14:30:49]process_json_proto returns [14:30:49]Send response to host [14:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75138,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:30:49]free response buf [14:30:49]execute_script done [14:30:49]execute_script returns [14:30:49]free content buf [14:30:49]Sock 8.Close socket [14:30:49]Sock 8.Thread stoped [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:16]recv_with_timeout no data received [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:39]accept exits with 9 [14:35:39]New connection [14:35:39]New thread 3066781028 created [14:35:39]Thread 3066924388 joined [14:35:39]Waiting for new connection... [14:35:39] Sock 9.Parse request [14:35:39]Sock 9.Check first char [14:35:39]Sock 9.First char is OK [14:35:39]request: POST /json_proto HTTP/1.0 [14:35:39]Method: POST [14:35:39]URL: /json_proto [14:35:39]Method is POST - this is cgi request [14:35:39]url: /json_proto [14:35:39]query_string will be loaded in cgi processing [14:35:39]execute_cgi json_proto POST (null) [14:35:39]execute_cgi path=json_proto method=POST [14:35:39]POST find Content-Length [14:35:39]Host: 172.17.39.131:8080 [14:35:39]Content-Length: 677 [14:35:39]Content-Type: application/json [14:35:39] [14:35:39]POST finish read [14:35:39]Found Content-Length = 677 [14:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:39]execute_script... [14:35: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)191115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:35:39]POST & json_proto [14:35:39]process_json_proto [14:35:39]json parsed OK: [14:35:39]protocol is kg_v1.0 [14:35:39]action value=close_receipt [14:35:39]process_action close_receipt [14:35:39]cmd_close_receipt [14:35:39]MH_GetDate [14:35:39]Write to MH i2c: F0 00 00 CF 37 F5 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: F0 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: F0 09 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: F0 09 00 CF 37 00 40 FE 1C 67 86 57 24 65 25 [14:35:39]GetLastDocTimeStamp 1729953051 [14:35:39]current date 1729953344 [14:35:39]FM_GetShiftState [14:35:39]SAM_PROTO_GetShiftState [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 13 01 00 [14:35:39]Write to MH i2c: E2 08 00 D0 37 80 13 01 00 00 00 00 00 84 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 D0 37 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9F [14:35:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:35:39]wFMCommunicate OK [14:35:39]SAM_PROTO_GetShiftState done [14:35:39]FM_GetShiftState done [14:35:39]opened in 1729902166 [14:35:39]opened+sec_in_day 1729988566 [14:35:39]quantity*price = 50041 [14:35:39]sum+1 = 50042 [14:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 131 26.10.2024 14:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75139 ФПД: 219115622366977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143544&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75139&fm=219115622366977&tin=02508201610067®Number=0000000000091691&sum=50000 [14:35:40]StoreToDocumentArchive [14:35:40]shift 512 fd 75139 [14:35:40]save to /storage/0512/doc_00075139 [14:35:40]save last doc name /storage/0512/doc_00075139 to /storage/kkm_last_doc_name [14:35:40]save OK [14:35:40]Clear old archive folders... [14:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:40]tlvbuf is 007D9A10 [14:35:40]SAM_PROTO_ClearQueue [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 09 00 00 [14:35:40]Write to MH i2c: E2 08 00 DD 37 80 09 00 00 00 00 00 00 86 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_ClearQueue done [14:35:40]KKMCreateOFDPacket [14:35:40]OFDProtocolAddRootSTLVToBuf [14:35:40]FM_MakeSignedData [14:35:40]FM_MakeSignedData [14:35:40]SAM_PROTO_SignData [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 01 02 [14:35:40]Write to MH i2c: E2 08 00 DE 37 80 0D 01 02 00 00 00 00 8E [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=255 [14:35:40]MH_SAM_APDU [14:35: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 FE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 83 25 01 00 35 04 06 00 C7 [14:35:40]Write to MH i2c: E2 02 01 DF 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 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 40 FE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 83 25 01 00 35 04 06 00 C7 00 00 D9 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=10 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 02 02 05 48 D4 D5 FF 01 [14:35:40]Write to MH i2c: E2 0D 00 E0 37 80 0D 02 02 05 00 48 D4 D5 FF 01 00 00 8C [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 03 02 [14:35:40]Write to MH i2c: E2 08 00 E1 37 80 0D 03 02 00 00 00 00 93 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 E1 37 00 86 33 44 6C A8 0B 71 22 90 00 43 [14:35:40]RAPDU: 86 33 44 6C A8 0B 71 22 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_SignData done [14:35:40]FM_MakeSignedData done [14:35:40]CreateOFDProtocolMessage [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 11 00 00 [14:35:40]Write to MH i2c: E2 08 00 E2 37 80 11 00 00 00 00 00 00 93 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 E2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 EB [14:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:35:40]wFMCommunicate OK [14:35:40]CreateOFDProtocolMessage done [14:35:40]OFDSenderStorePacket 75139 [14:35:40]StoreOFDPacket docnum=75139 [14:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8E 05 07 01 57 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 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 40 FE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 83 25 01 00 35 04 06 00 C7 48 D4 D5 FF 01 86 33 44 6C A8 0B 71 22 [14:35:40]CheckFolder [14:35:40]dirname=/storage/ofd_packets [14:35:40]CheckFolder done [14:35:40]ProducePacketName [14:35:40]name=ofd_packets/00075139 [14:35:40]NVStorageSaveData ofd_packets/00075139 [14:35:40]File name is /storage/ofd_packets/00075139 [14:35:40]Write 301 bytes [14:35:40]NVStorageSaveData done [14:35:40]OFDSenderStorePacket done [14:35:40]KKMCreateOFDPacket done [14:35:40]NVStorageSaveData kkm_last_timestamp [14:35:40]File name is /storage/kkm_last_timestamp [14:35:40]Write 4 bytes [14:35:40]NVStorageSaveData done [14:35:40]ExternCall_PrintAddStr [14:35:40]wPrintStart [14:35:40]Write to MH i2c: 01 00 00 E3 37 1A [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 E3 37 00 00 00 00 00 FF 0F 2F [14:35:40]RasterBufferAndPrint [14:35:40]line Счет N : (1)191115 [14:35:40]line ИНН: 02508201610067 [14:35:40]line Контрольно-Кассовый Чек [14:35:40]line ПРОДАЖА [14:35:40]line ТРК (МРК, ГНК) : 21 [14:35:40]line Товар: 2710124130 [14:35:40]line Аи-92-К-5 [14:35:40]line 7.480 * 66.90 [14:35:40]line = 500.41 [14:35:40]line НДС 12% НСП 1% [14:35:40]line > о реализуемом товаре [14:35:40]line ОКРУГЛЕНИЕ: -0.41 [14:35:40]line ИТОГО: 500.00 [14:35:40]line Внесено: 500.00 [14:35:40]line СДАЧА: 0.00 [14:35:40]line НСП 1% : 4.43 [14:35:40]line НДС 12% : 53.14 [14:35:40]line Наличными: 500.00 [14:35:40]line Безнал.: 0.00 [14:35:40]line Место: АЗС № 142 "Партнер Нефть" [14:35:40]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:35:40]line СНО: Общий режим [14:35:40]line Чек 131 26.10.2024 14:35 [14:35:40]line Смена: 512 ФФД: 1.0 [14:35:40]line ЗНМ: 0300000089 [14:35:40]line РНМ: 0000000000091691 [14:35:40]line Версия ККМ: 001 [14:35:40]line ФМ: 0000000000871795 [14:35:40]line ФД: 75139 [14:35:40]line ФПД: 219115622366977 [14:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143544&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75139&fm=219115622366977&tin=02508201610067®Number=0000000000091691&sum=50000 [14:35:41]written 0, free lines is 4095 [14:35:41]OFD Sender: Processing packet 75139 [packets to send 13, broken 12] [14:35:41]ProducePacketName [14:35:41]name=ofd_packets/00075139 [14:35:41]OFD Sender: To server: pG, [14:35:41]CommunicateWithHost lk.salyk.kg:30040 [14:35:41]ConnectInit lk.salyk.kg [14:35:41]Connected sock=10 [14:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 8E 05 07 01 57 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 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 40 FE 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 83 25 01 00 35 04 06 00 C7 48 D4 D5 FF 01 86 33 44 6C A8 0B 71 22 [14:35:41]Write to MH i2c: 01 00 00 0E 38 46 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 07 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 07 00 0E 38 00 00 00 00 00 A4 0C FD [14:35:41]RasterBufferAndPrint [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]written 0, free lines is 3242 [14:35:41]MH_Cut [14:35:41]Write to MH i2c: D1 01 00 15 38 01 1F [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 01 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 01 00 15 38 00 1E [14:35:41]Write to MH i2c: 01 00 00 16 38 4E [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 57 CB 47 00 D0 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 38 37 31 37 39 35 10 04 04 00 83 25 01 00 F4 03 04 00 BC A5 1C 67 B6 04 01 00 00 FB 64 A4 AB 8E 98 9F 68 [14:35:41]CommunicateWithHost err = 0 [14:35:41]CheckOFDResponse [14:35:41]1017 (14) - 77093643461234 [14:35:41]1041 (16) - 0000000000871795 [14:35:41]1040 (4) - 75139 [14:35:41]1012 (4) - 26.10.2024 08:18 [14:35:41]1206 (1) - 0 [14:35:41]OFD Sender: Remove packet 75139 [14:35:41]ProducePacketName [14:35:41]name=ofd_packets/00075139 [14:35:41]NVStorageDeleteData [14:35:42]OFD Sender: No OFD packet to send [14:35:42]*** Cut start [14:35:42]*** Partial cut [14:35:42]*** CUTSNS_PIN = 1 [14:35:42]*** CUTSNS_PIN = 0 [14:35:42]*** Brake cut motor [14:35:43]Read from MH i2c: 01 [14:35:43]MH_I2C_Read... [14:35:43]*** Stop cut motor [14:35:43]*** Cut end [14:35:43]Read from MH i2c: 01 07 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: 01 07 00 16 38 00 00 00 00 00 FF 0F 63 [14:35:43]process_action close_receipt done [14:35:43]requested_data is exist [14:35:43]produce_requested_data [14:35:43]requested_item fm.sn is exist - process it [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 11 00 00 [14:35:43]Write to MH i2c: E2 08 00 17 38 80 11 00 00 00 00 00 00 C9 [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 17 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 17 00 17 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 21 [14:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:35:43]wFMCommunicate OK [14:35:43]requested_item fd.num is exist - process it [14:35:43]SAM_PROTO_GetFieldsCounters [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 00 00 [14:35:43]Write to MH i2c: E2 08 00 18 38 80 13 00 00 00 00 00 00 CC [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 18 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 83 25 01 00 0E 04 04 00 00 02 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 27 [14:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 83 25 01 00 0E 04 04 00 00 02 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 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetFieldsCounters done [14:35:43]requested_item shift.num is exist - process it [14:35:43]requested_item shift.opened is exist - process it [14:35:43]req_shift_opened [14:35:43]FM_GetShiftState [14:35:43]SAM_PROTO_GetShiftState [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 01 00 [14:35:43]Write to MH i2c: E2 08 00 19 38 80 13 01 00 00 00 00 00 CE [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 19 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E9 [14:35:43]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetShiftState done [14:35:43]FM_GetShiftState done [14:35:43]req_shift_opened done [14:35:43]requested_item shift.open_date is exist - process it [14:35:43]req_shift_open_date [14:35:43]req_shift_open_date done [14:35:43]produce_requested_data done [14:35:43]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75139,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:35:43]process_action_free close_receipt [14:35:43]json_value_free [14:35:43]json_value_free done [14:35:43]process_json_proto returns [14:35:43]Send response to host [14:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75139,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:35:43]free response buf [14:35:43]execute_script done [14:35:43]execute_script returns [14:35:43]free content buf [14:35:43]Sock 9.Close socket [14:35:43]Sock 9.Thread stoped [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:00]recv_with_timeout no data received [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:49]accept exits with 8 [14:41:49]New connection [14:41:49]New thread 3066924388 created [14:41:49]Thread 3066781028 joined [14:41:49]Waiting for new connection... [14:41:49] Sock 8.Parse request [14:41:49]Sock 8.Check first char [14:41:49]Sock 8.First char is OK [14:41:49]request: POST /json_proto HTTP/1.0 [14:41:49]Method: POST [14:41:49]URL: /json_proto [14:41:49]Method is POST - this is cgi request [14:41:49]url: /json_proto [14:41:49]query_string will be loaded in cgi processing [14:41:49]execute_cgi json_proto POST (null) [14:41:49]execute_cgi path=json_proto method=POST [14:41:49]POST find Content-Length [14:41:49]Host: 172.17.39.131:8080 [14:41:49]Content-Length: 800 [14:41:49]Content-Type: application/json [14:41:49] [14:41:49]POST finish read [14:41:49]Found Content-Length = 800 [14:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:49]execute_script... [14: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)191117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:49]POST & json_proto [14:41:49]process_json_proto [14:41:49]json parsed OK: [14:41:49]protocol is kg_v1.0 [14:41:49]action value=close_receipt [14:41:49]process_action close_receipt [14:41:49]cmd_close_receipt [14:41:49]MH_GetDate [14:41:49]Write to MH i2c: F0 00 00 1A 38 41 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: F0 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: F0 09 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: F0 09 00 1A 38 00 B3 FF 1C 67 86 57 24 65 E5 [14:41:49]GetLastDocTimeStamp 1729953344 [14:41:49]current date 1729953715 [14:41:49]FM_GetShiftState [14:41:49]SAM_PROTO_GetShiftState [14:41:49]wFMCommunicate request_size=4 [14:41:49]MH_SAM_APDU [14:41:49]CAPDU: 80 13 01 00 [14:41:49]Write to MH i2c: E2 08 00 1B 38 80 13 01 00 00 00 00 00 D0 [14:41:49]Write i2c OK [14:41:49]MH_I2C_Read... [14:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:49]Read from MH i2c: E2 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0E 00 [14:41:49]MH_I2C_Read... [14:41:49]Read from MH i2c: E2 0E 00 1B 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EB [14:41:49]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:41:49]wFMCommunicate OK [14:41:49]SAM_PROTO_GetShiftState done [14:41:49]FM_GetShiftState done [14:41:49]opened in 1729902166 [14:41:49]opened+sec_in_day 1729988566 [14:41:49]quantity*price = 400050 [14:41:49]sum+1 = 400051 [14:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 132 26.10.2024 14:41 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75140 ФПД: 147845323632059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144155&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75140&fm=147845323632059&tin=02508201610067®Number=0000000000091691&sum=400050 [14:41:51]StoreToDocumentArchive [14:41:51]shift 512 fd 75140 [14:41:51]save to /storage/0512/doc_00075140 [14:41:51]save last doc name /storage/0512/doc_00075140 to /storage/kkm_last_doc_name [14:41:51]save OK [14:41:51]Clear old archive folders... [14:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:51]tlvbuf is 007D9420 [14:41:51]SAM_PROTO_ClearQueue [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 09 00 00 [14:41:51]Write to MH i2c: E2 08 00 28 38 80 09 00 00 00 00 00 00 D2 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_ClearQueue done [14:41:51]KKMCreateOFDPacket [14:41:51]OFDProtocolAddRootSTLVToBuf [14:41:51]FM_MakeSignedData [14:41:51]FM_MakeSignedData [14:41:51]SAM_PROTO_SignData [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 01 02 [14:41:51]Write to MH i2c: E2 08 00 29 38 80 0D 01 02 00 00 00 00 DA [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 29 38 00 90 00 D5 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=255 [14:41:51]MH_SAM_APDU [14:41: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 34 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 84 00 00 00 F4 03 04 00 B3 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 84 25 01 00 35 04 06 00 86 76 EB FF [14:41:51]Write to MH i2c: E2 02 01 2A 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 34 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 84 00 00 00 F4 03 04 00 B3 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 84 25 01 00 35 04 06 00 86 76 EB FF 00 00 38 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 2A 38 00 90 00 D6 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=7 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 02 02 02 2D BB [14:41:51]Write to MH i2c: E2 0A 00 2B 38 80 0D 02 02 02 00 2D BB 00 00 C9 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 2B 38 00 90 00 D7 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 03 02 [14:41:51]Write to MH i2c: E2 08 00 2C 38 80 0D 03 02 00 00 00 00 DF [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0B 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0B 00 2C 38 00 54 C8 12 90 18 D5 D4 F9 90 00 58 [14:41:51]RAPDU: 54 C8 12 90 18 D5 D4 F9 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_SignData done [14:41:51]FM_MakeSignedData done [14:41:51]CreateOFDProtocolMessage [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 11 00 00 [14:41:51]Write to MH i2c: E2 08 00 2D 38 80 11 00 00 00 00 00 00 DF [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 2D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 37 [14:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:41:51]wFMCommunicate OK [14:41:51]CreateOFDProtocolMessage done [14:41:51]OFDSenderStorePacket 75140 [14:41:51]StoreOFDPacket docnum=75140 [14:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C 74 04 01 22 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 B3 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 84 25 01 00 35 04 06 00 86 76 EB FF 2D BB 54 C8 12 90 18 D5 D4 F9 [14:41:51]CheckFolder [14:41:51]dirname=/storage/ofd_packets [14:41:51]CheckFolder done [14:41:51]ProducePacketName [14:41:51]name=ofd_packets/00075140 [14:41:51]NVStorageSaveData ofd_packets/00075140 [14:41:51]File name is /storage/ofd_packets/00075140 [14:41:51]Write 298 bytes [14:41:51]NVStorageSaveData done [14:41:51]OFDSenderStorePacket done [14:41:51]KKMCreateOFDPacket done [14:41:51]NVStorageSaveData kkm_last_timestamp [14:41:51]File name is /storage/kkm_last_timestamp [14:41:51]Write 4 bytes [14:41:51]NVStorageSaveData done [14:41:51]ExternCall_PrintAddStr [14:41:51]wPrintStart [14:41:51]Write to MH i2c: 01 00 00 2E 38 66 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 07 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 07 00 2E 38 00 00 00 00 00 FF 0F 7B [14:41:51]RasterBufferAndPrint [14:41:51]line Счет N : (1)191117 [14:41:51]line ИНН: 02508201610067 [14:41:51]line Контрольно-Кассовый Чек [14:41:51]line ПРОДАЖА [14:41:51]line ТРК (МРК, ГНК) : 31 [14:41:51]line Товар: 2710194210 [14:41:51]line ДТ-К-4 [14:41:51]line 52.500 * 76.20 [14:41:51]line = 4000.50 [14:41:51]line НДС 12% НСП 1% [14:41:51]line > о реализуемом товаре [14:41:51]line ИТОГО: 4000.50 [14:41:51]line НСП 1% : 35.40 [14:41:51]line НДС 12% : 424.83 [14:41:51]line Наличными: 0.00 [14:41:51]line Безнал.: 4000.50 [14:41:51]line Место: АЗС № 142 "Партнер Нефть" [14:41:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:41:51]line СНО: Общий режим [14:41:51]line Чек 132 26.10.2024 14:41 [14:41:51]line Смена: 512 ФФД: 1.0 [14:41:51]line ЗНМ: 0300000089 [14:41:51]line РНМ: 0000000000091691 [14:41:51]line Версия ККМ: 001 [14:41:51]line Платежная система: O! деньги [14:41:51]line ФМ: 0000000000871795 [14:41:51]line ФД: 75140 [14:41:51]line ФПД: 147845323632059 [14:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144155&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75140&fm=147845323632059&tin=02508201610067®Number=0000000000091691&sum=400050 [14:41:51]OFD Sender: Processing packet 75140 [packets to send 13, broken 12] [14:41:51]ProducePacketName [14:41:51]name=ofd_packets/00075140 [14:41:51]OFD Sender: To server: pG, [14:41:51]CommunicateWithHost lk.salyk.kg:30040 [14:41:51]ConnectInit lk.salyk.kg [14:41:51]written 0, free lines is 4095 [14:41:52]Connected sock=10 [14:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C 74 04 01 22 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 84 00 00 00 F4 03 04 00 B3 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 84 25 01 00 35 04 06 00 86 76 EB FF 2D BB 54 C8 12 90 18 D5 D4 F9 [14:41:52]Write to MH i2c: 01 00 00 58 38 90 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 58 38 00 00 00 00 00 B0 0C 53 [14:41:52]RasterBufferAndPrint [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]written 0, free lines is 3254 [14:41:52]MH_Cut [14:41:52]Write to MH i2c: D1 01 00 5F 38 01 69 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 5F 38 00 68 [14:41:52]Write to MH i2c: 01 00 00 60 38 98 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 68 76 47 00 9C 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 38 37 31 37 39 35 10 04 04 00 84 25 01 00 F4 03 04 00 2F A7 1C 67 B6 04 01 00 00 4F 49 06 51 58 99 42 8C [14:41:52]CommunicateWithHost err = 0 [14:41:52]CheckOFDResponse [14:41:52]1017 (14) - 77093643461234 [14:41:52]1041 (16) - 0000000000871795 [14:41:52]1040 (4) - 75140 [14:41:52]1012 (4) - 26.10.2024 08:24 [14:41:52]1206 (1) - 0 [14:41:52]OFD Sender: Remove packet 75140 [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00075140 [14:41:52]NVStorageDeleteData [14:41:52]OFD Sender: No OFD packet to send [14:41:53]*** Cut start [14:41:53]*** Partial cut [14:41:53]*** CUTSNS_PIN = 1 [14:41:53]*** CUTSNS_PIN = 0 [14:41:53]*** Brake cut motor [14:41:53]Read from MH i2c: 01 [14:41:53]MH_I2C_Read... [14:41:53]*** Stop cut motor [14:41:53]*** Cut end [14:41:53]Read from MH i2c: 01 07 00 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: 01 07 00 60 38 00 00 00 00 00 FF 0F AD [14:41:53]process_action close_receipt done [14:41:53]requested_data is exist [14:41:53]produce_requested_data [14:41:53]requested_item fm.sn is exist - process it [14:41:53]wFMCommunicate request_size=4 [14:41:53]MH_SAM_APDU [14:41:53]CAPDU: 80 11 00 00 [14:41:53]Write to MH i2c: E2 08 00 61 38 80 11 00 00 00 00 00 00 13 [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:53]Read from MH i2c: E2 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: E2 17 00 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: E2 17 00 61 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6B [14:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:41:53]wFMCommunicate OK [14:41:53]requested_item fd.num is exist - process it [14:41:53]SAM_PROTO_GetFieldsCounters [14:41:53]wFMCommunicate request_size=4 [14:41:53]MH_SAM_APDU [14:41:53]CAPDU: 80 13 00 00 [14:41:53]Write to MH i2c: E2 08 00 62 38 80 13 00 00 00 00 00 00 16 [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 62 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 84 25 01 00 0E 04 04 00 00 02 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 75 [14:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 84 25 01 00 0E 04 04 00 00 02 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 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetFieldsCounters done [14:41:54]requested_item shift.num is exist - process it [14:41:54]requested_item shift.opened is exist - process it [14:41:54]req_shift_opened [14:41:54]FM_GetShiftState [14:41:54]SAM_PROTO_GetShiftState [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 01 00 [14:41:54]Write to MH i2c: E2 08 00 63 38 80 13 01 00 00 00 00 00 18 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:54]Read from MH i2c: E2 0E 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 63 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 33 [14:41:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetShiftState done [14:41:54]FM_GetShiftState done [14:41:54]req_shift_opened done [14:41:54]requested_item shift.open_date is exist - process it [14:41:54]req_shift_open_date [14:41:54]req_shift_open_date done [14:41:54]produce_requested_data done [14:41:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75140,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:41:54]process_action_free close_receipt [14:41:54]json_value_free [14:41:54]json_value_free done [14:41:54]process_json_proto returns [14:41:54]Send response to host [14:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75140,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:41:54]free response buf [14:41:54]execute_script done [14:41:54]execute_script returns [14:41:54]free content buf [14:41:54]Sock 8.Close socket [14:41:54]Sock 8.Thread stoped [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]accept exits with 9 [14:42:52]New connection [14:42:52]New thread 3066781028 created [14:42:52]Thread 3066924388 joined [14:42:52]Waiting for new connection... [14:42:52] Sock 9.Parse request [14:42:52]Sock 9.Check first char [14:42:52]Sock 9.First char is OK [14:42:52]request: POST /json_proto HTTP/1.0 [14:42:52]Method: POST [14:42:52]URL: /json_proto [14:42:52]Method is POST - this is cgi request [14:42:52]url: /json_proto [14:42:52]query_string will be loaded in cgi processing [14:42:52]execute_cgi json_proto POST (null) [14:42:52]execute_cgi path=json_proto method=POST [14:42:52]POST find Content-Length [14:42:52]Host: 172.17.39.131:8080 [14:42:52]Content-Length: 766 [14:42:52]Content-Type: application/json [14:42:52] [14:42:52]POST finish read [14:42:52]Found Content-Length = 766 [14:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.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" : 7500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:52]execute_script... [14:42: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)191116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.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" : 7500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:52]POST & json_proto [14:42:52]process_json_proto [14:42:52]json parsed OK: [14:42:52]protocol is kg_v1.0 [14:42:52]action value=close_receipt [14:42:52]process_action close_receipt [14:42:52]cmd_close_receipt [14:42:52]MH_GetDate [14:42:52]Write to MH i2c: F0 00 00 64 38 8B [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: F0 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: F0 09 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: F0 09 00 64 38 00 F1 FF 1C 67 86 57 24 65 6D [14:42:52]GetLastDocTimeStamp 1729953715 [14:42:52]current date 1729953777 [14:42:52]FM_GetShiftState [14:42:52]SAM_PROTO_GetShiftState [14:42:52]wFMCommunicate request_size=4 [14:42:52]MH_SAM_APDU [14:42:52]CAPDU: 80 13 01 00 [14:42:52]Write to MH i2c: E2 08 00 65 38 80 13 01 00 00 00 00 00 1A [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:52]Read from MH i2c: E2 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: E2 0E 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: E2 0E 00 65 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 35 [14:42:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:42:52]wFMCommunicate OK [14:42:52]SAM_PROTO_GetShiftState done [14:42:52]FM_GetShiftState done [14:42:52]opened in 1729902166 [14:42:52]opened+sec_in_day 1729988566 [14:42:52]quantity*price = 750036 [14:42:52]sum+1 = 750038 [14:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7500.37 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 0.00 Безнал.: 7500.37 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 133 26.10.2024 14:42 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75141 ФПД: 155649193411000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144257&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75141&fm=155649193411000&tin=02508201610067®Number=0000000000091691&sum=750037 [14:42:53]StoreToDocumentArchive [14:42:53]shift 512 fd 75141 [14:42:53]save to /storage/0512/doc_00075141 [14:42:53]save last doc name /storage/0512/doc_00075141 to /storage/kkm_last_doc_name [14:42:53]save OK [14:42:53]Clear old archive folders... [14:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:53]tlvbuf is B6ED3640 [14:42:53]SAM_PROTO_ClearQueue [14:42:53]wFMCommunicate request_size=4 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 09 00 00 [14:42:53]Write to MH i2c: E2 08 00 72 38 80 09 00 00 00 00 00 00 1C [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:53]Read from MH i2c: E2 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 03 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 03 00 72 38 00 90 00 1E [14:42:53]RAPDU: 90 00 [14:42:53]wFMCommunicate OK [14:42:53]SAM_PROTO_ClearQueue done [14:42:53]KKMCreateOFDPacket [14:42:53]OFDProtocolAddRootSTLVToBuf [14:42:53]FM_MakeSignedData [14:42:53]FM_MakeSignedData [14:42:53]SAM_PROTO_SignData [14:42:53]wFMCommunicate request_size=4 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 0D 01 02 [14:42:53]Write to MH i2c: E2 08 00 73 38 80 0D 01 02 00 00 00 00 24 [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:53]Read from MH i2c: E2 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 03 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 03 00 73 38 00 90 00 1F [14:42:53]RAPDU: 90 00 [14:42:53]wFMCommunicate OK [14:42:53]wFMCommunicate request_size=255 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F1 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 85 25 01 00 35 04 06 00 8D 8F E6 E2 [14:42:53]Write to MH i2c: E2 02 01 74 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 34 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F1 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 85 25 01 00 35 04 06 00 8D 8F E6 E2 00 00 42 [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 03 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 03 00 74 38 00 90 00 20 [14:42:54]RAPDU: 90 00 [14:42:54]wFMCommunicate OK [14:42:54]wFMCommunicate request_size=7 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 0D 02 02 02 01 B8 [14:42:54]Write to MH i2c: E2 0A 00 75 38 80 0D 02 02 02 00 01 B8 00 00 E4 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 03 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 03 00 75 38 00 90 00 21 [14:42:54]RAPDU: 90 00 [14:42:54]wFMCommunicate OK [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 0D 03 02 [14:42:54]Write to MH i2c: E2 08 00 76 38 80 0D 03 02 00 00 00 00 29 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0B 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0B 00 76 38 00 5F C9 7C 07 4F 4D 0E 7E 90 00 FD [14:42:54]RAPDU: 5F C9 7C 07 4F 4D 0E 7E 90 00 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_SignData done [14:42:54]FM_MakeSignedData done [14:42:54]CreateOFDProtocolMessage [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 11 00 00 [14:42:54]Write to MH i2c: E2 08 00 77 38 80 11 00 00 00 00 00 00 29 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 17 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 17 00 77 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 81 [14:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:42:54]wFMCommunicate OK [14:42:54]CreateOFDProtocolMessage done [14:42:54]OFDSenderStorePacket 75141 [14:42:54]StoreOFDPacket docnum=75141 [14:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 17 B7 04 01 A7 C7 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 34 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F1 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 85 25 01 00 35 04 06 00 8D 8F E6 E2 01 B8 5F C9 7C 07 4F 4D 0E 7E [14:42:54]CheckFolder [14:42:54]dirname=/storage/ofd_packets [14:42:54]CheckFolder done [14:42:54]ProducePacketName [14:42:54]name=ofd_packets/00075141 [14:42:54]NVStorageSaveData ofd_packets/00075141 [14:42:54]File name is /storage/ofd_packets/00075141 [14:42:54]Write 298 bytes [14:42:54]NVStorageSaveData done [14:42:54]OFDSenderStorePacket done [14:42:54]KKMCreateOFDPacket done [14:42:54]NVStorageSaveData kkm_last_timestamp [14:42:54]File name is /storage/kkm_last_timestamp [14:42:54]Write 4 bytes [14:42:54]NVStorageSaveData done [14:42:54]ExternCall_PrintAddStr [14:42:54]wPrintStart [14:42:54]Write to MH i2c: 01 00 00 78 38 B0 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: 01 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: 01 07 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: 01 07 00 78 38 00 00 00 00 00 FF 0F C5 [14:42:54]RasterBufferAndPrint [14:42:54]line Счет N : (1)191116 [14:42:54]line ИНН: 02508201610067 [14:42:54]line Контрольно-Кассовый Чек [14:42:54]line ПРОДАЖА [14:42:54]line ТРК (МРК, ГНК) : 41 [14:42:54]line Товар: 2710194210 [14:42:54]line ДТ-К-4 [14:42:54]line 98.430 * 76.20 [14:42:54]line = 7500.37 [14:42:54]line НДС 12% НСП 1% [14:42:54]line > о реализуемом товаре [14:42:54]line ИТОГО: 7500.37 [14:42:54]line НСП 1% : 66.37 [14:42:54]line НДС 12% : 796.50 [14:42:54]line Наличными: 0.00 [14:42:54]line Безнал.: 7500.37 [14:42:54]line Место: АЗС № 142 "Партнер Нефть" [14:42:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:42:54]line СНО: Общий режим [14:42:54]line Чек 133 26.10.2024 14:42 [14:42:54]line Смена: 512 ФФД: 1.0 [14:42:54]line ЗНМ: 0300000089 [14:42:54]line РНМ: 0000000000091691 [14:42:54]line Версия ККМ: 001 [14:42:54]line Платежная система: Mbank [14:42:54]line ФМ: 0000000000871795 [14:42:54]line ФД: 75141 [14:42:54]line ФПД: 155649193411000 [14:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144257&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75141&fm=155649193411000&tin=02508201610067®Number=0000000000091691&sum=750037 [14:42:54]OFD Sender: Processing packet 75141 [packets to send 13, broken 12] [14:42:54]ProducePacketName [14:42:54]name=ofd_packets/00075141 [14:42:54]OFD Sender: To server: pG, [14:42:54]CommunicateWithHost lk.salyk.kg:30040 [14:42:54]ConnectInit lk.salyk.kg [14:42:54]written 0, free lines is 4095 [14:42:54]Connected sock=10 [14:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 17 B7 04 01 A7 C7 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 34 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F1 FF 1C 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 85 25 01 00 35 04 06 00 8D 8F E6 E2 01 B8 5F C9 7C 07 4F 4D 0E 7E [14:42:55]Write to MH i2c: 01 00 00 A1 38 D9 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 07 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: 01 07 00 A1 38 00 00 00 00 00 CB 0C B7 [14:42:55]RasterBufferAndPrint [14:42:55]line [14:42:55]line [14:42:55]line [14:42:55]line [14:42:55]line [14:42:55]written 0, free lines is 3280 [14:42:55]MH_Cut [14:42:55]Write to MH i2c: D1 01 00 A8 38 01 B2 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: D1 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: D1 01 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: D1 01 00 A8 38 00 B1 [14:42:55]Write to MH i2c: 01 00 00 A9 38 E1 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AC B4 47 00 5C 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 38 37 31 37 39 35 10 04 04 00 85 25 01 00 F4 03 04 00 6D A7 1C 67 B6 04 01 00 00 85 09 20 CE AA 54 E8 7A [14:42:55]CommunicateWithHost err = 0 [14:42:55]CheckOFDResponse [14:42:55]1017 (14) - 77093643461234 [14:42:55]1041 (16) - 0000000000871795 [14:42:55]1040 (4) - 75141 [14:42:55]1012 (4) - 26.10.2024 08:25 [14:42:55]1206 (1) - 0 [14:42:55]OFD Sender: Remove packet 75141 [14:42:55]ProducePacketName [14:42:55]name=ofd_packets/00075141 [14:42:55]NVStorageDeleteData [14:42:55]OFD Sender: No OFD packet to send [14:42:55]*** Cut start [14:42:55]*** Partial cut [14:42:55]*** CUTSNS_PIN = 1 [14:42:56]*** CUTSNS_PIN = 0 [14:42:56]*** Brake cut motor [14:42:56]Read from MH i2c: 01 [14:42:56]MH_I2C_Read... [14:42:56]*** Stop cut motor [14:42:56]*** Cut end [14:42:56]Read from MH i2c: 01 07 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: 01 07 00 A9 38 00 00 00 00 00 FF 0F F6 [14:42:56]process_action close_receipt done [14:42:56]requested_data is exist [14:42:56]produce_requested_data [14:42:56]requested_item fm.sn is exist - process it [14:42:56]wFMCommunicate request_size=4 [14:42:56]MH_SAM_APDU [14:42:56]CAPDU: 80 11 00 00 [14:42:56]Write to MH i2c: E2 08 00 AA 38 80 11 00 00 00 00 00 00 5C [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:56]Read from MH i2c: E2 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 17 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 17 00 AA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B4 [14:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:42:56]wFMCommunicate OK [14:42:56]requested_item fd.num is exist - process it [14:42:56]SAM_PROTO_GetFieldsCounters [14:42:56]wFMCommunicate request_size=4 [14:42:56]MH_SAM_APDU [14:42:56]CAPDU: 80 13 00 00 [14:42:56]Write to MH i2c: E2 08 00 AB 38 80 13 00 00 00 00 00 00 5F [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:56]Read from MH i2c: E2 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 62 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 62 00 AB 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 85 25 01 00 0E 04 04 00 00 02 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 C2 [14:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 85 25 01 00 0E 04 04 00 00 02 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 [14:42:56]wFMCommunicate OK [14:42:56]SAM_PROTO_GetFieldsCounters done [14:42:56]requested_item shift.num is exist - process it [14:42:56]requested_item shift.opened is exist - process it [14:42:56]req_shift_opened [14:42:56]FM_GetShiftState [14:42:56]SAM_PROTO_GetShiftState [14:42:56]wFMCommunicate request_size=4 [14:42:56]MH_SAM_APDU [14:42:56]CAPDU: 80 13 01 00 [14:42:56]Write to MH i2c: E2 08 00 AC 38 80 13 01 00 00 00 00 00 61 [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:56]Read from MH i2c: E2 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 0E 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 0E 00 AC 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7C [14:42:56]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:42:56]wFMCommunicate OK [14:42:56]SAM_PROTO_GetShiftState done [14:42:56]FM_GetShiftState done [14:42:56]req_shift_opened done [14:42:56]requested_item shift.open_date is exist - process it [14:42:56]req_shift_open_date [14:42:56]req_shift_open_date done [14:42:56]produce_requested_data done [14:42:56]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75141,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:42:56]process_action_free close_receipt [14:42:56]json_value_free [14:42:56]json_value_free done [14:42:56]process_json_proto returns [14:42:56]Send response to host [14:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75141,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:42:56]free response buf [14:42:56]execute_script done [14:42:56]execute_script returns [14:42:56]free content buf [14:42:56]Sock 9.Close socket [14:42:56]Sock 9.Thread stoped [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:52]accept exits with 8 [14:46:52]New connection [14:46:52]New thread 3066924388 created [14:46:52]Thread 3066781028 joined [14:46:52]Waiting for new connection... [14:46:52] Sock 8.Parse request [14:46:52]Sock 8.Check first char [14:46:52]Sock 8.First char is OK [14:46:52]request: POST /json_proto HTTP/1.0 [14:46:52]Method: POST [14:46:52]URL: /json_proto [14:46:52]Method is POST - this is cgi request [14:46:52]url: /json_proto [14:46:52]query_string will be loaded in cgi processing [14:46:52]execute_cgi json_proto POST (null) [14:46:52]execute_cgi path=json_proto method=POST [14:46:52]POST find Content-Length [14:46:52]Host: 172.17.39.131:8080 [14:46:52]Content-Length: 677 [14:46:52]Content-Type: application/json [14:46:52] [14:46:52]POST finish read [14:46:52]Found Content-Length = 677 [14:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:46:52]execute_script... [14:46: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)191120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:46:52]POST & json_proto [14:46:52]process_json_proto [14:46:52]json parsed OK: [14:46:52]protocol is kg_v1.0 [14:46:52]action value=close_receipt [14:46:52]process_action close_receipt [14:46:52]cmd_close_receipt [14:46:52]MH_GetDate [14:46:52]Write to MH i2c: F0 00 00 AD 38 D4 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 AD 38 00 E1 00 1D 67 86 57 24 65 A8 [14:46:52]GetLastDocTimeStamp 1729953777 [14:46:52]current date 1729954017 [14:46:52]FM_GetShiftState [14:46:52]SAM_PROTO_GetShiftState [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 13 01 00 [14:46:52]Write to MH i2c: E2 08 00 AE 38 80 13 01 00 00 00 00 00 63 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 AE 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7E [14:46:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_GetShiftState done [14:46:52]FM_GetShiftState done [14:46:52]opened in 1729902166 [14:46:52]opened+sec_in_day 1729988566 [14:46:52]quantity*price = 40006 [14:46:52]sum+1 = 40007 [14:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 134 26.10.2024 14:46 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75142 ФПД: 253420484834586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144657&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75142&fm=253420484834586&tin=02508201610067®Number=0000000000091691&sum=40000 [14:46:53]StoreToDocumentArchive [14:46:53]shift 512 fd 75142 [14:46:53]save to /storage/0512/doc_00075142 [14:46:53]save last doc name /storage/0512/doc_00075142 to /storage/kkm_last_doc_name [14:46:53]save OK [14:46:53]Clear old archive folders... [14:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:53]tlvbuf is 007FB090 [14:46:53]SAM_PROTO_ClearQueue [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 09 00 00 [14:46:53]Write to MH i2c: E2 08 00 BB 38 80 09 00 00 00 00 00 00 65 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 BB 38 00 90 00 67 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_ClearQueue done [14:46:53]KKMCreateOFDPacket [14:46:53]OFDProtocolAddRootSTLVToBuf [14:46:53]FM_MakeSignedData [14:46:53]FM_MakeSignedData [14:46:53]SAM_PROTO_SignData [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 01 02 [14:46:53]Write to MH i2c: E2 08 00 BC 38 80 0D 01 02 00 00 00 00 6D [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 BC 38 00 90 00 68 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=255 [14:46:53]MH_SAM_APDU [14:46: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 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 86 00 00 00 F4 03 04 00 E1 00 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 86 25 01 00 35 04 06 00 E6 [14:46:53]Write to MH i2c: E2 02 01 BD 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 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 86 00 00 00 F4 03 04 00 E1 00 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 86 25 01 00 35 04 06 00 E6 00 00 50 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 BD 38 00 90 00 69 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=10 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 02 02 05 7C 0D FA 35 1A [14:46:53]Write to MH i2c: E2 0D 00 BE 38 80 0D 02 02 05 00 7C 0D FA 35 1A 00 00 4C [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 BE 38 00 90 00 6A [14:46:54]RAPDU: 90 00 [14:46:54]wFMCommunicate OK [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 0D 03 02 [14:46:54]Write to MH i2c: E2 08 00 BF 38 80 0D 03 02 00 00 00 00 72 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0B 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 0B 00 BF 38 00 8F F2 E5 34 42 4D 19 F2 90 00 A7 [14:46:54]RAPDU: 8F F2 E5 34 42 4D 19 F2 90 00 [14:46:54]wFMCommunicate OK [14:46:54]SAM_PROTO_SignData done [14:46:54]FM_MakeSignedData done [14:46:54]CreateOFDProtocolMessage [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 11 00 00 [14:46:54]Write to MH i2c: E2 08 00 C0 38 80 11 00 00 00 00 00 00 72 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 17 00 C0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CA [14:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:46:54]wFMCommunicate OK [14:46:54]CreateOFDProtocolMessage done [14:46:54]OFDSenderStorePacket 75142 [14:46:54]StoreOFDPacket docnum=75142 [14:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BA A4 07 01 D2 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 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 86 00 00 00 F4 03 04 00 E1 00 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 86 25 01 00 35 04 06 00 E6 7C 0D FA 35 1A 8F F2 E5 34 42 4D 19 F2 [14:46:54]CheckFolder [14:46:54]dirname=/storage/ofd_packets [14:46:54]CheckFolder done [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00075142 [14:46:54]NVStorageSaveData ofd_packets/00075142 [14:46:54]File name is /storage/ofd_packets/00075142 [14:46:54]Write 301 bytes [14:46:54]NVStorageSaveData done [14:46:54]OFDSenderStorePacket done [14:46:54]KKMCreateOFDPacket done [14:46:54]NVStorageSaveData kkm_last_timestamp [14:46:54]File name is /storage/kkm_last_timestamp [14:46:54]Write 4 bytes [14:46:54]NVStorageSaveData done [14:46:54]ExternCall_PrintAddStr [14:46:54]wPrintStart [14:46:54]Write to MH i2c: 01 00 00 C1 38 F9 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 C1 38 00 00 00 00 00 FF 0F 0E [14:46:54]RasterBufferAndPrint [14:46:54]line Счет N : (1)191120 [14:46:54]line ИНН: 02508201610067 [14:46:54]line Контрольно-Кассовый Чек [14:46:54]line ПРОДАЖА [14:46:54]line ТРК (МРК, ГНК) : 21 [14:46:54]line Товар: 2710124130 [14:46:54]line Аи-92-К-5 [14:46:54]line 5.980 * 66.90 [14:46:54]line = 400.06 [14:46:54]line НДС 12% НСП 1% [14:46:54]line > о реализуемом товаре [14:46:54]line ОКРУГЛЕНИЕ: -0.06 [14:46:54]line ИТОГО: 400.00 [14:46:54]line Внесено: 400.00 [14:46:54]line СДАЧА: 0.00 [14:46:54]line НСП 1% : 3.54 [14:46:54]line НДС 12% : 42.48 [14:46:54]line Наличными: 400.00 [14:46:54]line Безнал.: 0.00 [14:46:54]line Место: АЗС № 142 "Партнер Нефть" [14:46:54]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:46:54]line СНО: Общий режим [14:46:54]line Чек 134 26.10.2024 14:46 [14:46:54]line Смена: 512 ФФД: 1.0 [14:46:54]line ЗНМ: 0300000089 [14:46:54]line РНМ: 0000000000091691 [14:46:54]line Версия ККМ: 001 [14:46:54]line ФМ: 0000000000871795 [14:46:54]line ФД: 75142 [14:46:54]line ФПД: 253420484834586 [14:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144657&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75142&fm=253420484834586&tin=02508201610067®Number=0000000000091691&sum=40000 [14:46:54]OFD Sender: Processing packet 75142 [packets to send 13, broken 12] [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00075142 [14:46:54]OFD Sender: To server: pG, [14:46:54]CommunicateWithHost lk.salyk.kg:30040 [14:46:54]ConnectInit lk.salyk.kg [14:46:54]written 0, free lines is 4095 [14:46:54]Write to MH i2c: 01 00 00 EC 38 24 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 EC 38 00 00 00 00 00 99 0C D0 [14:46:54]RasterBufferAndPrint [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]written 0, free lines is 3229 [14:46:54]MH_Cut [14:46:54]Write to MH i2c: D1 01 00 F3 38 01 FD [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 F3 38 00 FC [14:46:54]Write to MH i2c: 01 00 00 F4 38 2C [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:55]*** Cut start [14:46:55]*** Partial cut [14:46:55]*** CUTSNS_PIN = 1 [14:46:55]*** CUTSNS_PIN = 0 [14:46:56]*** Brake cut motor [14:46:56]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]*** Stop cut motor [14:46:56]*** Cut end [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 F4 38 00 00 00 00 00 FF 0F 41 [14:46:56]process_action close_receipt done [14:46:56]requested_data is exist [14:46:56]produce_requested_data [14:46:56]requested_item fm.sn is exist - process it [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 11 00 00 [14:46:56]Write to MH i2c: E2 08 00 F5 38 80 11 00 00 00 00 00 00 A7 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 F5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FF [14:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:46:56]wFMCommunicate OK [14:46:56]requested_item fd.num is exist - process it [14:46:56]SAM_PROTO_GetFieldsCounters [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 13 00 00 [14:46:56]Write to MH i2c: E2 08 00 F6 38 80 13 00 00 00 00 00 00 AA [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 62 00 F6 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 86 25 01 00 0E 04 04 00 00 02 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 [14:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 86 25 01 00 0E 04 04 00 00 02 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 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_GetFieldsCounters done [14:46:56]requested_item shift.num is exist - process it [14:46:56]requested_item shift.opened is exist - process it [14:46:56]req_shift_opened [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 F7 38 80 13 01 00 00 00 00 00 AC [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 F7 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C7 [14:46:56]RAPDU: 09 00 01 56 36 1C 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]req_shift_opened done [14:46:56]requested_item shift.open_date is exist - process it [14:46:56]req_shift_open_date [14:46:56]req_shift_open_date done [14:46:56]produce_requested_data done [14:46:56]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75142,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:46:56]process_action_free close_receipt [14:46:56]json_value_free [14:46:56]json_value_free done [14:46:56]process_json_proto returns [14:46:56]Send response to host [14:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75142,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:46:56]free response buf [14:46:56]execute_script done [14:46:56]execute_script returns [14:46:56]free content buf [14:46:56]Sock 8.Close socket [14:46:56]Sock 8.Thread stoped [14:46:57]Connected sock=11 [14:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 BA A4 07 01 D2 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 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 86 00 00 00 F4 03 04 00 E1 00 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 86 25 01 00 35 04 06 00 E6 7C 0D FA 35 1A 8F F2 E5 34 42 4D 19 F2 [14:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1E D2 47 00 DC 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 86 25 01 00 F4 03 04 00 60 A8 1C 67 B6 04 01 00 00 FA 2B 6A 1C 2E 19 A1 2A [14:46:57]CommunicateWithHost err = 0 [14:46:57]CheckOFDResponse [14:46:57]1017 (14) - 77093643461234 [14:46:57]1041 (16) - 0000000000871795 [14:46:57]1040 (4) - 75142 [14:46:57]1012 (4) - 26.10.2024 08:29 [14:46:57]1206 (1) - 0 [14:46:57]OFD Sender: Remove packet 75142 [14:46:57]ProducePacketName [14:46:57]name=ofd_packets/00075142 [14:46:57]NVStorageDeleteData [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:14]accept exits with 9 [14:48:14]New connection [14:48:14]New thread 3066781028 created [14:48:14]Thread 3066924388 joined [14:48:14]Waiting for new connection... [14:48:14] Sock 9.Parse request [14:48:14]Sock 9.Check first char [14:48:14]Sock 9.First char is OK [14:48:14]request: POST /json_proto HTTP/1.0 [14:48:14]Method: POST [14:48:14]URL: /json_proto [14:48:14]Method is POST - this is cgi request [14:48:14]url: /json_proto [14:48:14]query_string will be loaded in cgi processing [14:48:14]execute_cgi json_proto POST (null) [14:48:14]execute_cgi path=json_proto method=POST [14:48:14]POST find Content-Length [14:48:14]Host: 172.17.39.131:8080 [14:48:14]Content-Length: 677 [14:48:14]Content-Type: application/json [14:48:14] [14:48:14]POST finish read [14:48:14]Found Content-Length = 677 [14:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:48:14]execute_script... [14:48: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)191121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [14:48:14]POST & json_proto [14:48:14]process_json_proto [14:48:14]json parsed OK: [14:48:14]protocol is kg_v1.0 [14:48:14]action value=close_receipt [14:48:14]process_action close_receipt [14:48:14]cmd_close_receipt [14:48:14]MH_GetDate [14:48:14]Write to MH i2c: F0 00 00 F8 38 1F [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 09 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 09 00 F8 38 00 33 01 1D 67 86 57 24 65 46 [14:48:14]GetLastDocTimeStamp 1729954017 [14:48:14]current date 1729954099 [14:48:14]FM_GetShiftState [14:48:14]SAM_PROTO_GetShiftState [14:48:14]wFMCommunicate request_size=4 [14:48:14]MH_SAM_APDU [14:48:14]CAPDU: 80 13 01 00 [14:48:14]Write to MH i2c: E2 08 00 F9 38 80 13 01 00 00 00 00 00 AE [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:14]Read from MH i2c: E2 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: E2 0E 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: E2 0E 00 F9 38 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C9 [14:48:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:48:14]wFMCommunicate OK [14:48:14]SAM_PROTO_GetShiftState done [14:48:14]FM_GetShiftState done [14:48:14]opened in 1729902166 [14:48:14]opened+sec_in_day 1729988566 [14:48:14]quantity*price = 40006 [14:48:14]sum+1 = 40007 [14:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 135 26.10.2024 14:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75143 ФПД: 51094447926300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144819&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75143&fm=51094447926300&tin=02508201610067®Number=0000000000091691&sum=40000 [14:48:15]StoreToDocumentArchive [14:48:15]shift 512 fd 75143 [14:48:15]save to /storage/0512/doc_00075143 [14:48:15]save last doc name /storage/0512/doc_00075143 to /storage/kkm_last_doc_name [14:48:15]save OK [14:48:15]Clear old archive folders... [14:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:15]tlvbuf is 007F5550 [14:48:15]SAM_PROTO_ClearQueue [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 09 00 00 [14:48:15]Write to MH i2c: E2 08 00 06 39 80 09 00 00 00 00 00 00 B1 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 06 39 00 90 00 B3 [14:48:15]RAPDU: 90 00 [14:48:15]wFMCommunicate OK [14:48:15]SAM_PROTO_ClearQueue done [14:48:15]KKMCreateOFDPacket [14:48:15]OFDProtocolAddRootSTLVToBuf [14:48:15]FM_MakeSignedData [14:48:15]FM_MakeSignedData [14:48:15]SAM_PROTO_SignData [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 0D 01 02 [14:48:15]Write to MH i2c: E2 08 00 07 39 80 0D 01 02 00 00 00 00 B9 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 07 39 00 90 00 B4 [14:48:15]RAPDU: 90 00 [14:48:15]wFMCommunicate OK [14:48:15]wFMCommunicate request_size=255 [14:48:15]MH_SAM_APDU [14:48: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 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 87 00 00 00 F4 03 04 00 33 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 87 25 01 00 35 04 06 00 2E [14:48:15]Write to MH i2c: E2 02 01 08 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 33 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 87 25 01 00 35 04 06 00 2E 00 00 39 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 08 39 00 90 00 B5 [14:48:15]RAPDU: 90 00 [14:48:15]wFMCommunicate OK [14:48:15]wFMCommunicate request_size=10 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 0D 02 02 05 78 5A 6B 2C 1C [14:48:15]Write to MH i2c: E2 0D 00 09 39 80 0D 02 02 05 00 78 5A 6B 2C 1C 00 00 4B [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 03 00 09 39 00 90 00 B6 [14:48:15]RAPDU: 90 00 [14:48:15]wFMCommunicate OK [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 0D 03 02 [14:48:15]Write to MH i2c: E2 08 00 0A 39 80 0D 03 02 00 00 00 00 BE [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0B 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0B 00 0A 39 00 F4 FD A2 16 2F A4 0F 3D 90 00 87 [14:48:15]RAPDU: F4 FD A2 16 2F A4 0F 3D 90 00 [14:48:15]wFMCommunicate OK [14:48:15]SAM_PROTO_SignData done [14:48:15]FM_MakeSignedData done [14:48:15]CreateOFDProtocolMessage [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 11 00 00 [14:48:15]Write to MH i2c: E2 08 00 0B 39 80 11 00 00 00 00 00 00 BE [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 17 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 17 00 0B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 16 [14:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:48:16]wFMCommunicate OK [14:48:16]CreateOFDProtocolMessage done [14:48:16]OFDSenderStorePacket 75143 [14:48:16]StoreOFDPacket docnum=75143 [14:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6B 52 07 01 F4 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 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 87 00 00 00 F4 03 04 00 33 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 87 25 01 00 35 04 06 00 2E 78 5A 6B 2C 1C F4 FD A2 16 2F A4 0F 3D [14:48:16]CheckFolder [14:48:16]dirname=/storage/ofd_packets [14:48:16]CheckFolder done [14:48:16]ProducePacketName [14:48:16]name=ofd_packets/00075143 [14:48:16]NVStorageSaveData ofd_packets/00075143 [14:48:16]File name is /storage/ofd_packets/00075143 [14:48:16]Write 301 bytes [14:48:16]NVStorageSaveData done [14:48:16]OFDSenderStorePacket done [14:48:16]KKMCreateOFDPacket done [14:48:16]NVStorageSaveData kkm_last_timestamp [14:48:16]File name is /storage/kkm_last_timestamp [14:48:16]Write 4 bytes [14:48:16]NVStorageSaveData done [14:48:16]ExternCall_PrintAddStr [14:48:16]wPrintStart [14:48:16]Write to MH i2c: 01 00 00 0C 39 45 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 0C 39 00 00 00 00 00 FF 0F 5A [14:48:16]RasterBufferAndPrint [14:48:16]line Счет N : (1)191121 [14:48:16]line ИНН: 02508201610067 [14:48:16]line Контрольно-Кассовый Чек [14:48:16]line ПРОДАЖА [14:48:16]line ТРК (МРК, ГНК) : 21 [14:48:16]line Товар: 2710124130 [14:48:16]line Аи-92-К-5 [14:48:16]line 5.980 * 66.90 [14:48:16]line = 400.06 [14:48:16]line НДС 12% НСП 1% [14:48:16]line > о реализуемом товаре [14:48:16]line ОКРУГЛЕНИЕ: -0.06 [14:48:16]line ИТОГО: 400.00 [14:48:16]line Внесено: 400.00 [14:48:16]line СДАЧА: 0.00 [14:48:16]line НСП 1% : 3.54 [14:48:16]line НДС 12% : 42.48 [14:48:16]line Наличными: 400.00 [14:48:16]line Безнал.: 0.00 [14:48:16]line Место: АЗС № 142 "Партнер Нефть" [14:48:16]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:48:16]line СНО: Общий режим [14:48:16]line Чек 135 26.10.2024 14:48 [14:48:16]line Смена: 512 ФФД: 1.0 [14:48:16]line ЗНМ: 0300000089 [14:48:16]line РНМ: 0000000000091691 [14:48:16]line Версия ККМ: 001 [14:48:16]line ФМ: 0000000000871795 [14:48:16]line ФД: 75143 [14:48:16]line ФПД: 51094447926300 [14:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144819&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75143&fm=51094447926300&tin=02508201610067®Number=0000000000091691&sum=40000 [14:48:16]written 0, free lines is 4095 [14:48:16]OFD Sender: Processing packet 75143 [packets to send 13, broken 12] [14:48:16]ProducePacketName [14:48:16]name=ofd_packets/00075143 [14:48:16]OFD Sender: To server: pG, [14:48:16]CommunicateWithHost lk.salyk.kg:30040 [14:48:16]ConnectInit lk.salyk.kg [14:48:16]Connected sock=10 [14:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6B 52 07 01 F4 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 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 87 00 00 00 F4 03 04 00 33 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 87 25 01 00 35 04 06 00 2E 78 5A 6B 2C 1C F4 FD A2 16 2F A4 0F 3D [14:48:16]Write to MH i2c: 01 00 00 37 39 70 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 37 39 00 00 00 00 00 AA 0C 2D [14:48:16]RasterBufferAndPrint [14:48:16]line [14:48:16]line [14:48:16]line [14:48:16]line [14:48:16]line [14:48:16]written 0, free lines is 3251 [14:48:16]MH_Cut [14:48:16]Write to MH i2c: D1 01 00 3E 39 01 49 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: D1 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: D1 01 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: D1 01 00 3E 39 00 48 [14:48:16]Write to MH i2c: 01 00 00 3F 39 78 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F3 96 47 00 65 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 87 25 01 00 F4 03 04 00 AF A8 1C 67 B6 04 01 00 00 89 94 BE 2C 43 FA BE FF [14:48:16]CommunicateWithHost err = 0 [14:48:16]CheckOFDResponse [14:48:16]1017 (14) - 77093643461234 [14:48:16]1041 (16) - 0000000000871795 [14:48:16]1040 (4) - 75143 [14:48:16]1012 (4) - 26.10.2024 08:30 [14:48:16]1206 (1) - 0 [14:48:16]OFD Sender: Remove packet 75143 [14:48:16]ProducePacketName [14:48:16]name=ofd_packets/00075143 [14:48:16]NVStorageDeleteData [14:48:17]OFD Sender: No OFD packet to send [14:48:17]*** Cut start [14:48:17]*** Partial cut [14:48:17]*** CUTSNS_PIN = 1 [14:48:17]*** CUTSNS_PIN = 0 [14:48:17]*** Brake cut motor [14:48:17]Read from MH i2c: 01 [14:48:18]MH_I2C_Read... [14:48:18]*** Stop cut motor [14:48:18]*** Cut end [14:48:18]Read from MH i2c: 01 07 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: 01 07 00 3F 39 00 00 00 00 00 FF 0F 8D [14:48:18]process_action close_receipt done [14:48:18]requested_data is exist [14:48:18]produce_requested_data [14:48:18]requested_item fm.sn is exist - process it [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 11 00 00 [14:48:18]Write to MH i2c: E2 08 00 40 39 80 11 00 00 00 00 00 00 F3 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 40 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4B [14:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:48:18]wFMCommunicate OK [14:48:18]requested_item fd.num is exist - process it [14:48:18]SAM_PROTO_GetFieldsCounters [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 13 00 00 [14:48:18]Write to MH i2c: E2 08 00 41 39 80 13 00 00 00 00 00 00 F6 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 62 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 62 00 41 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 87 25 01 00 0E 04 04 00 00 02 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 61 [14:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 87 25 01 00 0E 04 04 00 00 02 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 [14:48:18]wFMCommunicate OK [14:48:18]SAM_PROTO_GetFieldsCounters done [14:48:18]requested_item shift.num is exist - process it [14:48:18]requested_item shift.opened is exist - process it [14:48:18]req_shift_opened [14:48:18]FM_GetShiftState [14:48:18]SAM_PROTO_GetShiftState [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 13 01 00 [14:48:18]Write to MH i2c: E2 08 00 42 39 80 13 01 00 00 00 00 00 F8 [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0E 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0E 00 42 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 13 [14:48:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:48:18]wFMCommunicate OK [14:48:18]SAM_PROTO_GetShiftState done [14:48:18]FM_GetShiftState done [14:48:18]req_shift_opened done [14:48:18]requested_item shift.open_date is exist - process it [14:48:18]req_shift_open_date [14:48:18]req_shift_open_date done [14:48:18]produce_requested_data done [14:48:18]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75143,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:48:18]process_action_free close_receipt [14:48:18]json_value_free [14:48:18]json_value_free done [14:48:18]process_json_proto returns [14:48:18]Send response to host [14:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75143,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:48:18]free response buf [14:48:18]execute_script done [14:48:18]execute_script returns [14:48:18]free content buf [14:48:18]Sock 9.Close socket [14:48:18]Sock 9.Thread stoped [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:52]accept exits with 8 [14:49:52]New connection [14:49:52]New thread 3066924388 created [14:49:52]Thread 3066781028 joined [14:49:52]Waiting for new connection... [14:49:52] Sock 8.Parse request [14:49:52]Sock 8.Check first char [14:49:52]Sock 8.First char is OK [14:49:52]request: POST /json_proto HTTP/1.0 [14:49:52]Method: POST [14:49:52]URL: /json_proto [14:49:52]Method is POST - this is cgi request [14:49:52]url: /json_proto [14:49:52]query_string will be loaded in cgi processing [14:49:52]execute_cgi json_proto POST (null) [14:49:52]execute_cgi path=json_proto method=POST [14:49:52]POST find Content-Length [14:49:52]Host: 172.17.39.131:8080 [14:49:52]Content-Length: 801 [14:49:52]Content-Type: application/json [14:49:52] [14:49:52]POST finish read [14:49:52]Found Content-Length = 801 [14:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:52]execute_script... [14:49: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)191118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:52]POST & json_proto [14:49:52]process_json_proto [14:49:52]json parsed OK: [14:49:52]protocol is kg_v1.0 [14:49:52]action value=close_receipt [14:49:52]process_action close_receipt [14:49:52]cmd_close_receipt [14:49:52]MH_GetDate [14:49:52]Write to MH i2c: F0 00 00 43 39 6B [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 43 39 00 95 01 1D 67 86 57 24 65 F4 [14:49:52]GetLastDocTimeStamp 1729954099 [14:49:52]current date 1729954197 [14:49:52]FM_GetShiftState [14:49:52]SAM_PROTO_GetShiftState [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 13 01 00 [14:49:52]Write to MH i2c: E2 08 00 44 39 80 13 01 00 00 00 00 00 FA [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 44 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 15 [14:49:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_GetShiftState done [14:49:52]FM_GetShiftState done [14:49:52]opened in 1729902166 [14:49:52]opened+sec_in_day 1729988566 [14:49:52]quantity*price = 800023 [14:49:52]sum+1 = 800025 [14:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.24 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.24 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 136 26.10.2024 14:49 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75144 ФПД: 122540265108876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144957&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75144&fm=122540265108876&tin=02508201610067®Number=0000000000091691&sum=800024 [14:49:53]StoreToDocumentArchive [14:49:53]shift 512 fd 75144 [14:49:53]save to /storage/0512/doc_00075144 [14:49:53]save last doc name /storage/0512/doc_00075144 to /storage/kkm_last_doc_name [14:49:53]save OK [14:49:53]Clear old archive folders... [14:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:53]tlvbuf is 007FD8B0 [14:49:53]SAM_PROTO_ClearQueue [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 09 00 00 [14:49:53]Write to MH i2c: E2 08 00 51 39 80 09 00 00 00 00 00 00 FC [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 51 39 00 90 00 FE [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_ClearQueue done [14:49:53]KKMCreateOFDPacket [14:49:53]OFDProtocolAddRootSTLVToBuf [14:49:53]FM_MakeSignedData [14:49:53]FM_MakeSignedData [14:49:53]SAM_PROTO_SignData [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 01 02 [14:49:53]Write to MH i2c: E2 08 00 52 39 80 0D 01 02 00 00 00 00 04 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 52 39 00 90 00 FF [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=255 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 88 00 00 00 F4 03 04 00 95 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 88 25 01 00 35 04 06 00 6F 73 20 F8 [14:49:53]Write to MH i2c: E2 02 01 53 39 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 34 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 88 00 00 00 F4 03 04 00 95 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 88 25 01 00 35 04 06 00 6F 73 20 F8 00 00 44 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 53 39 00 90 00 00 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=7 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 02 02 02 F5 8C [14:49:53]Write to MH i2c: E2 0A 00 54 39 80 0D 02 02 02 00 F5 8C 00 00 8C [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 54 39 00 90 00 01 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 03 02 [14:49:53]Write to MH i2c: E2 08 00 55 39 80 0D 03 02 00 00 00 00 09 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0B 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0B 00 55 39 00 44 36 F3 4D 4F 5D AE 1D 90 00 3B [14:49:53]RAPDU: 44 36 F3 4D 4F 5D AE 1D 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_SignData done [14:49:53]FM_MakeSignedData done [14:49:53]CreateOFDProtocolMessage [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 11 00 00 [14:49:53]Write to MH i2c: E2 08 00 56 39 80 11 00 00 00 00 00 00 09 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 56 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 61 [14:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:49:53]wFMCommunicate OK [14:49:53]CreateOFDProtocolMessage done [14:49:53]OFDSenderStorePacket 75144 [14:49:53]StoreOFDPacket docnum=75144 [14:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 32 62 04 01 B2 02 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 34 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 88 00 00 00 F4 03 04 00 95 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 88 25 01 00 35 04 06 00 6F 73 20 F8 F5 8C 44 36 F3 4D 4F 5D AE 1D [14:49:53]CheckFolder [14:49:53]dirname=/storage/ofd_packets [14:49:53]CheckFolder done [14:49:53]ProducePacketName [14:49:53]name=ofd_packets/00075144 [14:49:53]NVStorageSaveData ofd_packets/00075144 [14:49:53]File name is /storage/ofd_packets/00075144 [14:49:53]Write 298 bytes [14:49:53]NVStorageSaveData done [14:49:53]OFDSenderStorePacket done [14:49:53]KKMCreateOFDPacket done [14:49:53]NVStorageSaveData kkm_last_timestamp [14:49:53]File name is /storage/kkm_last_timestamp [14:49:53]Write 4 bytes [14:49:53]NVStorageSaveData done [14:49:53]ExternCall_PrintAddStr [14:49:53]wPrintStart [14:49:53]Write to MH i2c: 01 00 00 57 39 90 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 07 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 07 00 57 39 00 00 00 00 00 FF 0F A5 [14:49:53]RasterBufferAndPrint [14:49:53]line Счет N : (1)191118 [14:49:53]line ИНН: 02508201610067 [14:49:53]line Контрольно-Кассовый Чек [14:49:53]line ПРОДАЖА [14:49:53]line ТРК (МРК, ГНК) : 31 [14:49:53]line Товар: 2710194210 [14:49:53]line ДТ-К-4 [14:49:53]line 104.990 * 76.20 [14:49:53]line = 8000.24 [14:49:53]line НДС 12% НСП 1% [14:49:53]line > о реализуемом товаре [14:49:53]line ИТОГО: 8000.24 [14:49:53]line НСП 1% : 70.80 [14:49:53]line НДС 12% : 849.58 [14:49:53]line Наличными: 0.00 [14:49:53]line Безнал.: 8000.24 [14:49:53]line Место: АЗС № 142 "Партнер Нефть" [14:49:53]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:49:53]line СНО: Общий режим [14:49:53]line Чек 136 26.10.2024 14:49 [14:49:53]line Смена: 512 ФФД: 1.0 [14:49:53]line ЗНМ: 0300000089 [14:49:53]line РНМ: 0000000000091691 [14:49:53]line Версия ККМ: 001 [14:49:53]line Платежная система: O! деньги [14:49:53]line ФМ: 0000000000871795 [14:49:53]line ФД: 75144 [14:49:53]line ФПД: 122540265108876 [14:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144957&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75144&fm=122540265108876&tin=02508201610067®Number=0000000000091691&sum=800024 [14:49:54]OFD Sender: Processing packet 75144 [packets to send 13, broken 12] [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00075144 [14:49:54]OFD Sender: To server: pG, [14:49:54]CommunicateWithHost lk.salyk.kg:30040 [14:49:54]ConnectInit lk.salyk.kg [14:49:54]written 0, free lines is 4095 [14:49:54]Connected sock=10 [14:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 32 62 04 01 B2 02 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 34 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 88 00 00 00 F4 03 04 00 95 01 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 88 25 01 00 35 04 06 00 6F 73 20 F8 F5 8C 44 36 F3 4D 4F 5D AE 1D [14:49:54]Write to MH i2c: 01 00 00 81 39 BA [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 81 39 00 00 00 00 00 AF 0C 7C [14:49:54]RasterBufferAndPrint [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]written 0, free lines is 3255 [14:49:54]MH_Cut [14:49:54]Write to MH i2c: D1 01 00 88 39 01 93 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 88 39 00 92 [14:49:54]Write to MH i2c: 01 00 00 89 39 C2 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A3 A9 47 00 60 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 38 37 31 37 39 35 10 04 04 00 88 25 01 00 F4 03 04 00 11 A9 1C 67 B6 04 01 00 00 75 2B 2B D9 F9 06 5F 88 [14:49:54]CommunicateWithHost err = 0 [14:49:54]CheckOFDResponse [14:49:54]1017 (14) - 77093643461234 [14:49:54]1041 (16) - 0000000000871795 [14:49:54]1040 (4) - 75144 [14:49:54]1012 (4) - 26.10.2024 08:32 [14:49:54]1206 (1) - 0 [14:49:54]OFD Sender: Remove packet 75144 [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00075144 [14:49:54]NVStorageDeleteData [14:49:55]OFD Sender: No OFD packet to send [14:49:55]*** Cut start [14:49:55]*** Partial cut [14:49:55]*** CUTSNS_PIN = 1 [14:49:55]*** CUTSNS_PIN = 0 [14:49:55]*** Brake cut motor [14:49:56]Read from MH i2c: 01 [14:49:56]MH_I2C_Read... [14:49:56]*** Stop cut motor [14:49:56]*** Cut end [14:49:56]Read from MH i2c: 01 07 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: 01 07 00 89 39 00 00 00 00 00 FF 0F D7 [14:49:56]process_action close_receipt done [14:49:56]requested_data is exist [14:49:56]produce_requested_data [14:49:56]requested_item fm.sn is exist - process it [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 11 00 00 [14:49:56]Write to MH i2c: E2 08 00 8A 39 80 11 00 00 00 00 00 00 3D [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 8A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 95 [14:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:49:56]wFMCommunicate OK [14:49:56]requested_item fd.num is exist - process it [14:49:56]SAM_PROTO_GetFieldsCounters [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 00 00 [14:49:56]Write to MH i2c: E2 08 00 8B 39 80 13 00 00 00 00 00 00 40 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 8B 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 88 25 01 00 0E 04 04 00 00 02 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 AF [14:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 88 25 01 00 0E 04 04 00 00 02 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 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetFieldsCounters done [14:49:56]requested_item shift.num is exist - process it [14:49:56]requested_item shift.opened is exist - process it [14:49:56]req_shift_opened [14:49:56]FM_GetShiftState [14:49:56]SAM_PROTO_GetShiftState [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 01 00 [14:49:56]Write to MH i2c: E2 08 00 8C 39 80 13 01 00 00 00 00 00 42 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 8C 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5D [14:49:56]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetShiftState done [14:49:56]FM_GetShiftState done [14:49:56]req_shift_opened done [14:49:56]requested_item shift.open_date is exist - process it [14:49:56]req_shift_open_date [14:49:56]req_shift_open_date done [14:49:56]produce_requested_data done [14:49:56]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75144,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:49:56]process_action_free close_receipt [14:49:56]json_value_free [14:49:56]json_value_free done [14:49:56]process_json_proto returns [14:49:56]Send response to host [14:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75144,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:49:56]free response buf [14:49:56]execute_script done [14:49:56]execute_script returns [14:49:56]free content buf [14:49:56]Sock 8.Close socket [14:49:56]Sock 8.Thread stoped [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:01]accept exits with 9 [14:54:01]New connection [14:54:01]New thread 3066781028 created [14:54:01]Thread 3066924388 joined [14:54:01]Waiting for new connection... [14:54:01] Sock 9.Parse request [14:54:01]Sock 9.Check first char [14:54:01]Sock 9.First char is OK [14:54:01]request: POST /json_proto HTTP/1.0 [14:54:01]Method: POST [14:54:01]URL: /json_proto [14:54:01]Method is POST - this is cgi request [14:54:01]url: /json_proto [14:54:01]query_string will be loaded in cgi processing [14:54:01]execute_cgi json_proto POST (null) [14:54:01]execute_cgi path=json_proto method=POST [14:54:01]POST find Content-Length [14:54:01]Host: 172.17.39.131:8080 [14:54:01]Content-Length: 801 [14:54:01]Content-Type: application/json [14:54:01] [14:54:01]POST finish read [14:54:01]Found Content-Length = 801 [14:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:01]execute_script... [14:54: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)191119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:01]POST & json_proto [14:54:01]process_json_proto [14:54:01]json parsed OK: [14:54:01]protocol is kg_v1.0 [14:54:01]action value=close_receipt [14:54:01]process_action close_receipt [14:54:01]cmd_close_receipt [14:54:01]MH_GetDate [14:54:01]Write to MH i2c: F0 00 00 8D 39 B5 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: F0 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: F0 09 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: F0 09 00 8D 39 00 8E 02 1D 67 86 57 24 65 38 [14:54:01]GetLastDocTimeStamp 1729954197 [14:54:01]current date 1729954446 [14:54:01]FM_GetShiftState [14:54:01]SAM_PROTO_GetShiftState [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 13 01 00 [14:54:01]Write to MH i2c: E2 08 00 8E 39 80 13 01 00 00 00 00 00 44 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0E 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0E 00 8E 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5F [14:54:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:54:01]wFMCommunicate OK [14:54:01]SAM_PROTO_GetShiftState done [14:54:01]FM_GetShiftState done [14:54:01]opened in 1729902166 [14:54:01]opened+sec_in_day 1729988566 [14:54:01]quantity*price = 900074 [14:54:01]sum+1 = 900075 [14:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 137 26.10.2024 14:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75145 ФПД: 45555384888702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145406&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75145&fm=45555384888702&tin=02508201610067®Number=0000000000091691&sum=900074 [14:54:02]StoreToDocumentArchive [14:54:02]shift 512 fd 75145 [14:54:02]save to /storage/0512/doc_00075145 [14:54:02]save last doc name /storage/0512/doc_00075145 to /storage/kkm_last_doc_name [14:54:02]save OK [14:54:02]Clear old archive folders... [14:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:02]tlvbuf is 008AF940 [14:54:02]SAM_PROTO_ClearQueue [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 09 00 00 [14:54:02]Write to MH i2c: E2 08 00 9B 39 80 09 00 00 00 00 00 00 46 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 9B 39 00 90 00 48 [14:54:02]RAPDU: 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_ClearQueue done [14:54:02]KKMCreateOFDPacket [14:54:02]OFDProtocolAddRootSTLVToBuf [14:54:02]FM_MakeSignedData [14:54:02]FM_MakeSignedData [14:54:02]SAM_PROTO_SignData [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 0D 01 02 [14:54:02]Write to MH i2c: E2 08 00 9C 39 80 0D 01 02 00 00 00 00 4E [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 9C 39 00 90 00 49 [14:54:02]RAPDU: 90 00 [14:54:02]wFMCommunicate OK [14:54:02]wFMCommunicate request_size=255 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 [14:54:02]Write to MH i2c: E2 02 01 9D 39 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 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 00 00 0B [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 9D 39 00 90 00 4A [14:54:02]RAPDU: 90 00 [14:54:02]wFMCommunicate OK [14:54:02]wFMCommunicate request_size=7 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 0D 02 02 02 AD 7E [14:54:02]Write to MH i2c: E2 0A 00 9E 39 80 0D 02 02 02 00 AD 7E 00 00 80 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 9E 39 00 90 00 4B [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 03 02 [14:54:03]Write to MH i2c: E2 08 00 9F 39 80 0D 03 02 00 00 00 00 53 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 9F 39 00 46 51 B5 6E E0 F0 50 75 90 00 A3 [14:54:03]RAPDU: 46 51 B5 6E E0 F0 50 75 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_SignData done [14:54:03]FM_MakeSignedData done [14:54:03]CreateOFDProtocolMessage [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 A0 39 80 11 00 00 00 00 00 00 53 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 A0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AB [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:54:03]wFMCommunicate OK [14:54:03]CreateOFDProtocolMessage done [14:54:03]OFDSenderStorePacket 75145 [14:54:03]StoreOFDPacket docnum=75145 [14:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1D E4 04 01 54 03 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 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 AD 7E 46 51 B5 6E E0 F0 50 75 [14:54:03]CheckFolder [14:54:03]dirname=/storage/ofd_packets [14:54:03]CheckFolder done [14:54:03]ProducePacketName [14:54:03]name=ofd_packets/00075145 [14:54:03]NVStorageSaveData ofd_packets/00075145 [14:54:03]File name is /storage/ofd_packets/00075145 [14:54:03]Write 298 bytes [14:54:03]NVStorageSaveData done [14:54:03]OFDSenderStorePacket done [14:54:03]KKMCreateOFDPacket done [14:54:03]NVStorageSaveData kkm_last_timestamp [14:54:03]File name is /storage/kkm_last_timestamp [14:54:03]Write 4 bytes [14:54:03]NVStorageSaveData done [14:54:03]ExternCall_PrintAddStr [14:54:03]wPrintStart [14:54:03]Write to MH i2c: 01 00 00 A1 39 DA [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 A1 39 00 00 00 00 00 FF 0F EF [14:54:03]RasterBufferAndPrint [14:54:03]line Счет N : (1)191119 [14:54:03]line ИНН: 02508201610067 [14:54:03]line Контрольно-Кассовый Чек [14:54:03]line ПРОДАЖА [14:54:03]line ТРК (МРК, ГНК) : 41 [14:54:03]line Товар: 2710194210 [14:54:03]line ДТ-К-4 [14:54:03]line 118.120 * 76.20 [14:54:03]line = 9000.74 [14:54:03]line НДС 12% НСП 1% [14:54:03]line > о реализуемом товаре [14:54:03]line ИТОГО: 9000.74 [14:54:03]line НСП 1% : 79.65 [14:54:03]line НДС 12% : 955.83 [14:54:03]line Наличными: 0.00 [14:54:03]line Безнал.: 9000.74 [14:54:03]line Место: АЗС № 142 "Партнер Нефть" [14:54:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:54:03]line СНО: Общий режим [14:54:03]line Чек 137 26.10.2024 14:54 [14:54:03]line Смена: 512 ФФД: 1.0 [14:54:03]line ЗНМ: 0300000089 [14:54:03]line РНМ: 0000000000091691 [14:54:03]line Версия ККМ: 001 [14:54:03]line Платежная система: O! деньги [14:54:03]line ФМ: 0000000000871795 [14:54:03]line ФД: 75145 [14:54:03]line ФПД: 45555384888702 [14:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145406&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75145&fm=45555384888702&tin=02508201610067®Number=0000000000091691&sum=900074 [14:54:03]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:54:03]ProducePacketName [14:54:03]name=ofd_packets/00075145 [14:54:03]OFD Sender: To server: pG, [14:54:03]CommunicateWithHost lk.salyk.kg:30040 [14:54:03]ConnectInit lk.salyk.kg [14:54:03]written 0, free lines is 4095 [14:54:03]Write to MH i2c: 01 00 00 CB 39 04 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 CB 39 00 00 00 00 00 AE 0C C5 [14:54:03]RasterBufferAndPrint [14:54:03]line [14:54:03]line [14:54:03]line [14:54:03]line [14:54:03]line [14:54:03]written 0, free lines is 3250 [14:54:03]MH_Cut [14:54:03]Write to MH i2c: D1 01 00 D2 39 01 DD [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: D1 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: D1 01 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: D1 01 00 D2 39 00 DC [14:54:03]Write to MH i2c: 01 00 00 D3 39 0C [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:04]*** Cut start [14:54:04]*** Partial cut [14:54:04]*** CUTSNS_PIN = 1 [14:54:04]*** CUTSNS_PIN = 0 [14:54:05]*** Brake cut motor [14:54:05]Read from MH i2c: 01 [14:54:05]MH_I2C_Read... [14:54:05]*** Stop cut motor [14:54:05]*** Cut end [14:54:05]Read from MH i2c: 01 07 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 FF 0F 21 [14:54:05]process_action close_receipt done [14:54:05]requested_data is exist [14:54:05]produce_requested_data [14:54:05]requested_item fm.sn is exist - process it [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 11 00 00 [14:54:05]Write to MH i2c: E2 08 00 D4 39 80 11 00 00 00 00 00 00 87 [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 17 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 17 00 D4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DF [14:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:54:05]wFMCommunicate OK [14:54:05]requested_item fd.num is exist - process it [14:54:05]SAM_PROTO_GetFieldsCounters [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 13 00 00 [14:54:05]Write to MH i2c: E2 08 00 D5 39 80 13 00 00 00 00 00 00 8A [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 62 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 62 00 D5 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 89 25 01 00 0E 04 04 00 00 02 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 FD [14:54:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 89 25 01 00 0E 04 04 00 00 02 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 [14:54:05]wFMCommunicate OK [14:54:05]SAM_PROTO_GetFieldsCounters done [14:54:05]requested_item shift.num is exist - process it [14:54:05]requested_item shift.opened is exist - process it [14:54:05]req_shift_opened [14:54:05]FM_GetShiftState [14:54:05]SAM_PROTO_GetShiftState [14:54:05]wFMCommunicate request_size=4 [14:54:05]MH_SAM_APDU [14:54:05]CAPDU: 80 13 01 00 [14:54:05]Write to MH i2c: E2 08 00 D6 39 80 13 01 00 00 00 00 00 8C [14:54:05]Write i2c OK [14:54:05]MH_I2C_Read... [14:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:05]Read from MH i2c: E2 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 0E 00 [14:54:05]MH_I2C_Read... [14:54:05]Read from MH i2c: E2 0E 00 D6 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A7 [14:54:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:54:05]wFMCommunicate OK [14:54:05]SAM_PROTO_GetShiftState done [14:54:05]FM_GetShiftState done [14:54:05]req_shift_opened done [14:54:05]requested_item shift.open_date is exist - process it [14:54:05]req_shift_open_date [14:54:05]req_shift_open_date done [14:54:05]produce_requested_data done [14:54:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75145,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:54:05]process_action_free close_receipt [14:54:05]json_value_free [14:54:05]json_value_free done [14:54:05]process_json_proto returns [14:54:05]Send response to host [14:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75145,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:54:05]free response buf [14:54:05]execute_script done [14:54:05]execute_script returns [14:54:05]free content buf [14:54:05]Sock 9.Close socket [14:54:05]Sock 9.Thread stoped [14:54:08]Connected sock=11 [14:54:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1D E4 04 01 54 03 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 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 AD 7E 46 51 B5 6E E0 F0 50 75 [14:54:13]recv_with_timeout no data received [14:54:13]CommunicateWithHost answer receiving error [14:54:13]CommunicateWithHost err = -3 [14:54:13]OFD Sender: Server communicate error [14:54:18]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:54:18]ProducePacketName [14:54:18]name=ofd_packets/00075145 [14:54:18]OFD Sender: To server: pG, [14:54:18]CommunicateWithHost lk.salyk.kg:30040 [14:54:18]ConnectInit lk.salyk.kg [14:54:23]ConnectInit Can't take IP for lk.salyk.kg [14:54:23]CommunicateWithHost connect error [14:54:23]CommunicateWithHost err = -1 [14:54:23]OFD Sender: Server communicate error [14:54:28]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:54:28]ProducePacketName [14:54:28]name=ofd_packets/00075145 [14:54:28]OFD Sender: To server: pG, [14:54:28]CommunicateWithHost lk.salyk.kg:30040 [14:54:28]ConnectInit lk.salyk.kg [14:54:34]recv_with_timeout no data received [14:54:37]Connected sock=10 [14:54:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1D E4 04 01 54 03 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 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 AD 7E 46 51 B5 6E E0 F0 50 75 [14:54:43]recv_with_timeout no data received [14:54:43]CommunicateWithHost answer receiving error [14:54:43]CommunicateWithHost err = -3 [14:54:43]OFD Sender: Server communicate error [14:54:48]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:54:48]ProducePacketName [14:54:48]name=ofd_packets/00075145 [14:54:48]OFD Sender: To server: pG, [14:54:48]CommunicateWithHost lk.salyk.kg:30040 [14:54:48]ConnectInit lk.salyk.kg [14:54:53]ConnectInit Can't take IP for lk.salyk.kg [14:54:53]CommunicateWithHost connect error [14:54:53]CommunicateWithHost err = -1 [14:54:53]OFD Sender: Server communicate error [14:54:58]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:54:58]ProducePacketName [14:54:58]name=ofd_packets/00075145 [14:54:58]OFD Sender: To server: pG, [14:54:58]CommunicateWithHost lk.salyk.kg:30040 [14:54:58]ConnectInit lk.salyk.kg [14:55:03]ConnectInit Can't take IP for lk.salyk.kg [14:55:03]CommunicateWithHost connect error [14:55:03]CommunicateWithHost err = -1 [14:55:03]OFD Sender: Server communicate error [14:55:08]OFD Sender: Processing packet 75145 [packets to send 13, broken 12] [14:55:08]ProducePacketName [14:55:08]name=ofd_packets/00075145 [14:55:08]OFD Sender: To server: pG, [14:55:08]CommunicateWithHost lk.salyk.kg:30040 [14:55:08]ConnectInit lk.salyk.kg [14:55:16]recv_with_timeout no data received [14:55:22]Connected sock=10 [14:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1D E4 04 01 54 03 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 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 02 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 35 04 06 00 29 6E B0 88 AD 7E 46 51 B5 6E E0 F0 50 75 [14:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 5B 2F 47 00 93 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 89 25 01 00 F4 03 04 00 59 AA 1C 67 B6 04 01 00 00 17 49 2D 1D 63 56 BC 94 [14:55:22]CommunicateWithHost err = 0 [14:55:22]CheckOFDResponse [14:55:22]1017 (14) - 77093643461234 [14:55:22]1041 (16) - 0000000000871795 [14:55:22]1040 (4) - 75145 [14:55:22]1012 (4) - 26.10.2024 08:37 [14:55:22]1206 (1) - 0 [14:55:22]OFD Sender: Remove packet 75145 [14:55:22]ProducePacketName [14:55:22]name=ofd_packets/00075145 [14:55:22]NVStorageDeleteData [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:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:11]accept exits with 8 [14:57:11]New connection [14:57:11]New thread 3066924388 created [14:57:11]Thread 3066781028 joined [14:57:11]Waiting for new connection... [14:57:11] Sock 8.Parse request [14:57:11]Sock 8.Check first char [14:57:11]Sock 8.First char is OK [14:57:11]request: POST /json_proto HTTP/1.0 [14:57:11]Method: POST [14:57:11]URL: /json_proto [14:57:11]Method is POST - this is cgi request [14:57:11]url: /json_proto [14:57:11]query_string will be loaded in cgi processing [14:57:11]execute_cgi json_proto POST (null) [14:57:11]execute_cgi path=json_proto method=POST [14:57:11]POST find Content-Length [14:57:11]Host: 172.17.39.131:8080 [14:57:11]Content-Length: 674 [14:57:11]Content-Type: application/json [14:57:11] [14:57:11]POST finish read [14:57:11]Found Content-Length = 674 [14:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.070, "sum" : 2.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:11]execute_script... [14:57: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)191122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.070, "sum" : 2.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:11]POST & json_proto [14:57:11]process_json_proto [14:57:11]json parsed OK: [14:57:11]protocol is kg_v1.0 [14:57:11]action value=close_receipt [14:57:11]process_action close_receipt [14:57:11]cmd_close_receipt [14:57:11]MH_GetDate [14:57:11]Write to MH i2c: F0 00 00 D7 39 FF [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 09 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: F0 09 00 D7 39 00 4C 03 1D 67 86 57 24 65 41 [14:57:11]GetLastDocTimeStamp 1729954446 [14:57:11]current date 1729954636 [14:57:11]FM_GetShiftState [14:57:11]SAM_PROTO_GetShiftState [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 13 01 00 [14:57:11]Write to MH i2c: E2 08 00 D8 39 80 13 01 00 00 00 00 00 8E [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0E 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0E 00 D8 39 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A9 [14:57:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:57:11]wFMCommunicate OK [14:57:11]SAM_PROTO_GetShiftState done [14:57:11]FM_GetShiftState done [14:57:11]opened in 1729902166 [14:57:11]opened+sec_in_day 1729988566 [14:57:11]quantity*price = 272 [14:57:11]sum+1 = 273 [14:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2.00 Внесено: 940.00 СДАЧА: 938.00 НСП 1% : 0.02 НДС 12% : 0.29 Наличными: 2.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 138 26.10.2024 14:57 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75146 ФПД: 235274331284479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145716&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75146&fm=235274331284479&tin=02508201610067®Number=0000000000091691&sum=200 [14:57:12]StoreToDocumentArchive [14:57:12]shift 512 fd 75146 [14:57:12]save to /storage/0512/doc_00075146 [14:57:12]save last doc name /storage/0512/doc_00075146 to /storage/kkm_last_doc_name [14:57:12]save OK [14:57:12]Clear old archive folders... [14:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:57:12]tlvbuf is 00836140 [14:57:12]SAM_PROTO_ClearQueue [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 09 00 00 [14:57:12]Write to MH i2c: E2 08 00 E5 39 80 09 00 00 00 00 00 00 90 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 E5 39 00 90 00 92 [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_ClearQueue done [14:57:12]KKMCreateOFDPacket [14:57:12]OFDProtocolAddRootSTLVToBuf [14:57:12]FM_MakeSignedData [14:57:12]FM_MakeSignedData [14:57:12]SAM_PROTO_SignData [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 01 02 [14:57:12]Write to MH i2c: E2 08 00 E6 39 80 0D 01 02 00 00 00 00 98 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 E6 39 00 90 00 93 [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=255 [14:57:12]MH_SAM_APDU [14:57: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 4C 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8A 25 01 00 35 04 06 00 D5 FB [14:57:12]Write to MH i2c: E2 02 01 E7 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 4C 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8A 25 01 00 35 04 06 00 D5 FB 00 00 73 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 E7 39 00 90 00 94 [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=9 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 02 02 04 12 F0 E3 FF [14:57:12]Write to MH i2c: E2 0C 00 E8 39 80 0D 02 02 04 00 12 F0 E3 FF 00 00 87 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 E8 39 00 90 00 95 [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 03 02 [14:57:12]Write to MH i2c: E2 08 00 E9 39 80 0D 03 02 00 00 00 00 9D [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0B 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0B 00 E9 39 00 01 0A B1 3D 7E 23 BA E1 90 00 D3 [14:57:12]RAPDU: 01 0A B1 3D 7E 23 BA E1 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_SignData done [14:57:12]FM_MakeSignedData done [14:57:12]CreateOFDProtocolMessage [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 11 00 00 [14:57:12]Write to MH i2c: E2 08 00 EA 39 80 11 00 00 00 00 00 00 9D [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 EA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F5 [14:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:57:12]wFMCommunicate OK [14:57:12]CreateOFDProtocolMessage done [14:57:12]OFDSenderStorePacket 75146 [14:57:12]StoreOFDPacket docnum=75146 [14:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C4 81 06 01 35 99 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 4C 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8A 25 01 00 35 04 06 00 D5 FB 12 F0 E3 FF 01 0A B1 3D 7E 23 BA E1 [14:57:12]CheckFolder [14:57:12]dirname=/storage/ofd_packets [14:57:12]CheckFolder done [14:57:12]ProducePacketName [14:57:12]name=ofd_packets/00075146 [14:57:12]NVStorageSaveData ofd_packets/00075146 [14:57:12]File name is /storage/ofd_packets/00075146 [14:57:12]Write 300 bytes [14:57:12]NVStorageSaveData done [14:57:12]OFDSenderStorePacket done [14:57:12]KKMCreateOFDPacket done [14:57:12]NVStorageSaveData kkm_last_timestamp [14:57:12]File name is /storage/kkm_last_timestamp [14:57:12]Write 4 bytes [14:57:12]NVStorageSaveData done [14:57:12]ExternCall_PrintAddStr [14:57:12]wPrintStart [14:57:12]Write to MH i2c: 01 00 00 EB 39 24 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 EB 39 00 00 00 00 00 FF 0F 39 [14:57:12]RasterBufferAndPrint [14:57:12]line Счет N : (1)191122 [14:57:12]line ИНН: 02508201610067 [14:57:12]line Контрольно-Кассовый Чек [14:57:12]line ПРОДАЖА [14:57:12]line ТРК (МРК, ГНК) : 51 [14:57:12]line Товар: 2711190000 [14:57:12]line ГАЗ-К-3 [14:57:12]line 0.070 * 38.90 [14:57:12]line = 2.72 [14:57:12]line НДС 12% НСП 1% [14:57:12]line > о реализуемом товаре [14:57:12]line ОКРУГЛЕНИЕ: -0.72 [14:57:12]line ИТОГО: 2.00 [14:57:12]line Внесено: 940.00 [14:57:12]line СДАЧА: 938.00 [14:57:12]line НСП 1% : 0.02 [14:57:12]line НДС 12% : 0.29 [14:57:12]line Наличными: 2.00 [14:57:12]line Безнал.: 0.00 [14:57:12]line Место: АЗС № 142 "Партнер Нефть" [14:57:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:57:12]line СНО: Общий режим [14:57:12]line Чек 138 26.10.2024 14:57 [14:57:12]line Смена: 512 ФФД: 1.0 [14:57:12]line ЗНМ: 0300000089 [14:57:12]line РНМ: 0000000000091691 [14:57:12]line Версия ККМ: 001 [14:57:12]line ФМ: 0000000000871795 [14:57:12]line ФД: 75146 [14:57:12]line ФПД: 235274331284479 [14:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145716&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75146&fm=235274331284479&tin=02508201610067®Number=0000000000091691&sum=200 [14:57:13]written 0, free lines is 4095 [14:57:13]OFD Sender: Processing packet 75146 [packets to send 13, broken 12] [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00075146 [14:57:13]OFD Sender: To server: pG, [14:57:13]CommunicateWithHost lk.salyk.kg:30040 [14:57:13]ConnectInit lk.salyk.kg [14:57:13]Connected sock=9 [14:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C4 81 06 01 35 99 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 4C 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8A 25 01 00 35 04 06 00 D5 FB 12 F0 E3 FF 01 0A B1 3D 7E 23 BA E1 [14:57:13]Write to MH i2c: 01 00 00 16 3A 50 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 16 3A 00 00 00 00 00 97 0C FA [14:57:13]RasterBufferAndPrint [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]written 0, free lines is 3229 [14:57:13]MH_Cut [14:57:13]Write to MH i2c: D1 01 00 1D 3A 01 29 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 01 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 01 00 1D 3A 00 28 [14:57:13]Write to MH i2c: 01 00 00 1E 3A 58 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 99 36 47 00 69 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8A 25 01 00 F4 03 04 00 C8 AA 1C 67 B6 04 01 00 00 79 E3 29 50 2C 98 62 E9 [14:57:13]CommunicateWithHost err = 0 [14:57:13]CheckOFDResponse [14:57:13]1017 (14) - 77093643461234 [14:57:13]1041 (16) - 0000000000871795 [14:57:13]1040 (4) - 75146 [14:57:13]1012 (4) - 26.10.2024 08:39 [14:57:13]1206 (1) - 0 [14:57:13]OFD Sender: Remove packet 75146 [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00075146 [14:57:13]NVStorageDeleteData [14:57:14]OFD Sender: No OFD packet to send [14:57:14]*** Cut start [14:57:14]*** Partial cut [14:57:14]*** CUTSNS_PIN = 1 [14:57:14]*** CUTSNS_PIN = 0 [14:57:14]*** Brake cut motor [14:57:15]Read from MH i2c: 01 [14:57:15]MH_I2C_Read... [14:57:15]*** Stop cut motor [14:57:15]*** Cut end [14:57:15]Read from MH i2c: 01 07 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: 01 07 00 1E 3A 00 00 00 00 00 FF 0F 6D [14:57:15]process_action close_receipt done [14:57:15]requested_data is exist [14:57:15]produce_requested_data [14:57:15]requested_item fm.sn is exist - process it [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 11 00 00 [14:57:15]Write to MH i2c: E2 08 00 1F 3A 80 11 00 00 00 00 00 00 D3 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 17 00 1F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2B [14:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:57:15]wFMCommunicate OK [14:57:15]requested_item fd.num is exist - process it [14:57:15]SAM_PROTO_GetFieldsCounters [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 13 00 00 [14:57:15]Write to MH i2c: E2 08 00 20 3A 80 13 00 00 00 00 00 00 D6 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 62 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 62 00 20 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8A 25 01 00 0E 04 04 00 00 02 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 4D [14:57:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8A 25 01 00 0E 04 04 00 00 02 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 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_GetFieldsCounters done [14:57:15]requested_item shift.num is exist - process it [14:57:15]requested_item shift.opened is exist - process it [14:57:15]req_shift_opened [14:57:15]FM_GetShiftState [14:57:15]SAM_PROTO_GetShiftState [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 13 01 00 [14:57:15]Write to MH i2c: E2 08 00 21 3A 80 13 01 00 00 00 00 00 D8 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 21 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F3 [14:57:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_GetShiftState done [14:57:15]FM_GetShiftState done [14:57:15]req_shift_opened done [14:57:15]requested_item shift.open_date is exist - process it [14:57:15]req_shift_open_date [14:57:15]req_shift_open_date done [14:57:15]produce_requested_data done [14:57:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75146,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:57:15]process_action_free close_receipt [14:57:15]json_value_free [14:57:15]json_value_free done [14:57:15]process_json_proto returns [14:57:15]Send response to host [14:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75146,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:57:15]free response buf [14:57:15]execute_script done [14:57:15]execute_script returns [14:57:15]free content buf [14:57:15]Sock 8.Close socket [14:57:15]Sock 8.Thread stoped [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:44]recv_with_timeout no data received [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:00]accept exits with 10 [14:58:00]New connection [14:58:00]New thread 3066781028 created [14:58:00]Thread 3066924388 joined [14:58:00]Waiting for new connection... [14:58:00] Sock 10.Parse request [14:58:00]Sock 10.Check first char [14:58:00]Sock 10.First char is OK [14:58:00]request: POST /json_proto HTTP/1.0 [14:58:00]Method: POST [14:58:00]URL: /json_proto [14:58:00]Method is POST - this is cgi request [14:58:00]url: /json_proto [14:58:00]query_string will be loaded in cgi processing [14:58:00]execute_cgi json_proto POST (null) [14:58:00]execute_cgi path=json_proto method=POST [14:58:00]POST find Content-Length [14:58:00]Host: 172.17.39.131:8080 [14:58:00]Content-Length: 674 [14:58:00]Content-Type: application/json [14:58:00] [14:58:00]POST finish read [14:58:00]Found Content-Length = 674 [14:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.090, "sum" : 3.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 938.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:00]execute_script... [14:58: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)191123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.090, "sum" : 3.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 938.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:00]POST & json_proto [14:58:00]process_json_proto [14:58:00]json parsed OK: [14:58:00]protocol is kg_v1.0 [14:58:00]action value=close_receipt [14:58:00]process_action close_receipt [14:58:00]cmd_close_receipt [14:58:00]MH_GetDate [14:58:00]Write to MH i2c: F0 00 00 22 3A 4B [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: F0 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: F0 09 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: F0 09 00 22 3A 00 7D 03 1D 67 86 57 24 65 BE [14:58:00]GetLastDocTimeStamp 1729954636 [14:58:00]current date 1729954685 [14:58:00]FM_GetShiftState [14:58:00]SAM_PROTO_GetShiftState [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 13 01 00 [14:58:00]Write to MH i2c: E2 08 00 23 3A 80 13 01 00 00 00 00 00 DA [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0E 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0E 00 23 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F5 [14:58:00]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:58:00]wFMCommunicate OK [14:58:00]SAM_PROTO_GetShiftState done [14:58:00]FM_GetShiftState done [14:58:00]opened in 1729902166 [14:58:00]opened+sec_in_day 1729988566 [14:58:00]quantity*price = 350 [14:58:00]sum+1 = 351 [14:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 3.00 Внесено: 938.00 СДАЧА: 935.00 НСП 1% : 0.03 НДС 12% : 0.37 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 139 26.10.2024 14:58 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75147 ФПД: 114964254739182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145805&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75147&fm=114964254739182&tin=02508201610067®Number=0000000000091691&sum=300 [14:58:01]StoreToDocumentArchive [14:58:01]shift 512 fd 75147 [14:58:01]save to /storage/0512/doc_00075147 [14:58:01]save last doc name /storage/0512/doc_00075147 to /storage/kkm_last_doc_name [14:58:01]save OK [14:58:01]Clear old archive folders... [14:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:58:01]tlvbuf is 008455A0 [14:58:01]SAM_PROTO_ClearQueue [14:58:01]wFMCommunicate request_size=4 [14:58:01]MH_SAM_APDU [14:58:01]CAPDU: 80 09 00 00 [14:58:01]Write to MH i2c: E2 08 00 30 3A 80 09 00 00 00 00 00 00 DC [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:01]Read from MH i2c: E2 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: E2 03 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: E2 03 00 30 3A 00 90 00 DE [14:58:01]RAPDU: 90 00 [14:58:01]wFMCommunicate OK [14:58:01]SAM_PROTO_ClearQueue done [14:58:01]KKMCreateOFDPacket [14:58:01]OFDProtocolAddRootSTLVToBuf [14:58:01]FM_MakeSignedData [14:58:01]FM_MakeSignedData [14:58:01]SAM_PROTO_SignData [14:58:01]wFMCommunicate request_size=4 [14:58:01]MH_SAM_APDU [14:58:01]CAPDU: 80 0D 01 02 [14:58:01]Write to MH i2c: E2 08 00 31 3A 80 0D 01 02 00 00 00 00 E4 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:01]Read from MH i2c: E2 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: E2 03 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: E2 03 00 31 3A 00 90 00 DF [14:58:01]RAPDU: 90 00 [14:58:01]wFMCommunicate OK [14:58:01]wFMCommunicate request_size=255 [14:58:01]MH_SAM_APDU [14:58:01]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 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 8B 00 00 00 F4 03 04 00 7D 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8B 25 01 00 35 04 06 00 68 8F [14:58:01]Write to MH i2c: E2 02 01 32 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 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 8B 00 00 00 F4 03 04 00 7D 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8B 25 01 00 35 04 06 00 68 8F 00 00 4E [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 03 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 03 00 32 3A 00 90 00 E0 [14:58:02]RAPDU: 90 00 [14:58:02]wFMCommunicate OK [14:58:02]wFMCommunicate request_size=9 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 0D 02 02 04 33 90 CA EE [14:58:02]Write to MH i2c: E2 0C 00 33 3A 80 0D 02 02 04 00 33 90 CA EE 00 00 6A [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 03 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 03 00 33 3A 00 90 00 E1 [14:58:02]RAPDU: 90 00 [14:58:02]wFMCommunicate OK [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 0D 03 02 [14:58:02]Write to MH i2c: E2 08 00 34 3A 80 0D 03 02 00 00 00 00 E9 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0B 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0B 00 34 3A 00 04 CC 84 91 0E 43 30 FF 90 00 4F [14:58:02]RAPDU: 04 CC 84 91 0E 43 30 FF 90 00 [14:58:02]wFMCommunicate OK [14:58:02]SAM_PROTO_SignData done [14:58:02]FM_MakeSignedData done [14:58:02]CreateOFDProtocolMessage [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 11 00 00 [14:58:02]Write to MH i2c: E2 08 00 35 3A 80 11 00 00 00 00 00 00 E9 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 17 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 17 00 35 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 41 [14:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:58:02]wFMCommunicate OK [14:58:02]CreateOFDProtocolMessage done [14:58:02]OFDSenderStorePacket 75147 [14:58:02]StoreOFDPacket docnum=75147 [14:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 65 80 06 01 18 CD 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 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 8B 00 00 00 F4 03 04 00 7D 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8B 25 01 00 35 04 06 00 68 8F 33 90 CA EE 04 CC 84 91 0E 43 30 FF [14:58:02]CheckFolder [14:58:02]dirname=/storage/ofd_packets [14:58:02]CheckFolder done [14:58:02]ProducePacketName [14:58:02]name=ofd_packets/00075147 [14:58:02]NVStorageSaveData ofd_packets/00075147 [14:58:02]File name is /storage/ofd_packets/00075147 [14:58:02]Write 300 bytes [14:58:02]NVStorageSaveData done [14:58:02]OFDSenderStorePacket done [14:58:02]KKMCreateOFDPacket done [14:58:02]NVStorageSaveData kkm_last_timestamp [14:58:02]File name is /storage/kkm_last_timestamp [14:58:02]Write 4 bytes [14:58:02]NVStorageSaveData done [14:58:02]ExternCall_PrintAddStr [14:58:02]wPrintStart [14:58:02]Write to MH i2c: 01 00 00 36 3A 70 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 36 3A 00 00 00 00 00 FF 0F 85 [14:58:02]RasterBufferAndPrint [14:58:02]line Счет N : (1)191123 [14:58:02]line ИНН: 02508201610067 [14:58:02]line Контрольно-Кассовый Чек [14:58:02]line ПРОДАЖА [14:58:02]line ТРК (МРК, ГНК) : 51 [14:58:02]line Товар: 2711190000 [14:58:02]line ГАЗ-К-3 [14:58:02]line 0.090 * 38.90 [14:58:02]line = 3.50 [14:58:02]line НДС 12% НСП 1% [14:58:02]line > о реализуемом товаре [14:58:02]line ОКРУГЛЕНИЕ: -0.50 [14:58:02]line ИТОГО: 3.00 [14:58:02]line Внесено: 938.00 [14:58:02]line СДАЧА: 935.00 [14:58:02]line НСП 1% : 0.03 [14:58:02]line НДС 12% : 0.37 [14:58:02]line Наличными: 3.00 [14:58:02]line Безнал.: 0.00 [14:58:02]line Место: АЗС № 142 "Партнер Нефть" [14:58:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:58:02]line СНО: Общий режим [14:58:02]line Чек 139 26.10.2024 14:58 [14:58:02]line Смена: 512 ФФД: 1.0 [14:58:02]line ЗНМ: 0300000089 [14:58:02]line РНМ: 0000000000091691 [14:58:02]line Версия ККМ: 001 [14:58:02]line ФМ: 0000000000871795 [14:58:02]line ФД: 75147 [14:58:02]line ФПД: 114964254739182 [14:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145805&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75147&fm=114964254739182&tin=02508201610067®Number=0000000000091691&sum=300 [14:58:02]OFD Sender: Processing packet 75147 [packets to send 13, broken 12] [14:58:02]ProducePacketName [14:58:02]name=ofd_packets/00075147 [14:58:02]OFD Sender: To server: pG, [14:58:02]CommunicateWithHost lk.salyk.kg:30040 [14:58:02]ConnectInit lk.salyk.kg [14:58:02]written 0, free lines is 4095 [14:58:03]Write to MH i2c: 01 00 00 61 3A 9B [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: 01 07 00 61 3A 00 00 00 00 00 90 0C 3E [14:58:03]RasterBufferAndPrint [14:58:03]line [14:58:03]line [14:58:03]line [14:58:03]line [14:58:03]line [14:58:03]written 0, free lines is 3222 [14:58:03]MH_Cut [14:58:03]Write to MH i2c: D1 01 00 68 3A 01 74 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D1 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D1 01 00 [14:58:03]MH_I2C_Read... [14:58:03]Read from MH i2c: D1 01 00 68 3A 00 73 [14:58:03]Write to MH i2c: 01 00 00 69 3A A3 [14:58:03]Write i2c OK [14:58:03]MH_I2C_Read... [14:58:03]*** Cut start [14:58:03]*** Partial cut [14:58:03]*** CUTSNS_PIN = 1 [14:58:03]*** CUTSNS_PIN = 0 [14:58:04]*** Brake cut motor [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]*** Stop cut motor [14:58:04]*** Cut end [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 69 3A 00 00 00 00 00 FF 0F B8 [14:58:04]process_action close_receipt done [14:58:04]requested_data is exist [14:58:04]produce_requested_data [14:58:04]requested_item fm.sn is exist - process it [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 11 00 00 [14:58:04]Write to MH i2c: E2 08 00 6A 3A 80 11 00 00 00 00 00 00 1E [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 17 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 17 00 6A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 76 [14:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:58:04]wFMCommunicate OK [14:58:04]requested_item fd.num is exist - process it [14:58:04]SAM_PROTO_GetFieldsCounters [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 13 00 00 [14:58:04]Write to MH i2c: E2 08 00 6B 3A 80 13 00 00 00 00 00 00 21 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 62 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 62 00 6B 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8B 25 01 00 0E 04 04 00 00 02 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 9C [14:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8B 25 01 00 0E 04 04 00 00 02 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 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_GetFieldsCounters done [14:58:04]requested_item shift.num is exist - process it [14:58:04]requested_item shift.opened is exist - process it [14:58:04]req_shift_opened [14:58:04]FM_GetShiftState [14:58:04]SAM_PROTO_GetShiftState [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 13 01 00 [14:58:04]Write to MH i2c: E2 08 00 6C 3A 80 13 01 00 00 00 00 00 23 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 6C 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 3E [14:58:04]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_GetShiftState done [14:58:04]FM_GetShiftState done [14:58:04]req_shift_opened done [14:58:04]requested_item shift.open_date is exist - process it [14:58:04]req_shift_open_date [14:58:04]req_shift_open_date done [14:58:04]produce_requested_data done [14:58:04]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75147,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:58:04]process_action_free close_receipt [14:58:04]json_value_free [14:58:04]json_value_free done [14:58:04]process_json_proto returns [14:58:04]Send response to host [14:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75147,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:58:04]free response buf [14:58:04]execute_script done [14:58:04]execute_script returns [14:58:04]free content buf [14:58:04]Sock 10.Close socket [14:58:04]Sock 10.Thread stoped [14:58:05]Connected sock=9 [14:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 65 80 06 01 18 CD 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 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 8B 00 00 00 F4 03 04 00 7D 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8B 25 01 00 35 04 06 00 68 8F 33 90 CA EE 04 CC 84 91 0E 43 30 FF [14:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 45 8F 47 00 1C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8B 25 01 00 F4 03 04 00 FE AA 1C 67 B6 04 01 00 00 F4 B2 C5 CB ED 03 92 85 [14:58:07]CommunicateWithHost err = 0 [14:58:07]CheckOFDResponse [14:58:07]1017 (14) - 77093643461234 [14:58:07]1041 (16) - 0000000000871795 [14:58:07]1040 (4) - 75147 [14:58:07]1012 (4) - 26.10.2024 08:40 [14:58:07]1206 (1) - 0 [14:58:07]OFD Sender: Remove packet 75147 [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00075147 [14:58:07]NVStorageDeleteData [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:24]recv_with_timeout no data received [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:03]accept exits with 8 [14:59:03]New connection [14:59:03]New thread 3066924388 created [14:59:03]Thread 3066781028 joined [14:59:03]Waiting for new connection... [14:59:03] Sock 8.Parse request [14:59:03]Sock 8.Check first char [14:59:03]Sock 8.First char is OK [14:59:03]request: POST /json_proto HTTP/1.0 [14:59:03]Method: POST [14:59:03]URL: /json_proto [14:59:03]Method is POST - this is cgi request [14:59:03]url: /json_proto [14:59:03]query_string will be loaded in cgi processing [14:59:03]execute_cgi json_proto POST (null) [14:59:03]execute_cgi path=json_proto method=POST [14:59:03]POST find Content-Length [14:59:03]Host: 172.17.39.131:8080 [14:59:03]Content-Length: 674 [14:59:03]Content-Type: application/json [14:59:03] [14:59:03]POST finish read [14:59:03]Found Content-Length = 674 [14:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.100, "sum" : 3.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 935.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:03]execute_script... [14:59: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)191124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 0.100, "sum" : 3.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 935.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:03]POST & json_proto [14:59:03]process_json_proto [14:59:03]json parsed OK: [14:59:03]protocol is kg_v1.0 [14:59:03]action value=close_receipt [14:59:03]process_action close_receipt [14:59:03]cmd_close_receipt [14:59:03]MH_GetDate [14:59:03]Write to MH i2c: F0 00 00 6D 3A 96 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 09 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 09 00 6D 3A 00 BC 03 1D 67 86 57 24 65 48 [14:59:03]GetLastDocTimeStamp 1729954685 [14:59:03]current date 1729954748 [14:59:03]FM_GetShiftState [14:59:03]SAM_PROTO_GetShiftState [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 13 01 00 [14:59:03]Write to MH i2c: E2 08 00 6E 3A 80 13 01 00 00 00 00 00 25 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0E 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0E 00 6E 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 40 [14:59:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:59:03]wFMCommunicate OK [14:59:03]SAM_PROTO_GetShiftState done [14:59:03]FM_GetShiftState done [14:59:03]opened in 1729902166 [14:59:03]opened+sec_in_day 1729988566 [14:59:03]quantity*price = 389 [14:59:03]sum+1 = 390 [14:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 3.00 Внесено: 935.00 СДАЧА: 932.00 НСП 1% : 0.03 НДС 12% : 0.41 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 140 26.10.2024 14:59 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75148 ФПД: 75563892901249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145908&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75148&fm=75563892901249&tin=02508201610067®Number=0000000000091691&sum=300 [14:59:04]StoreToDocumentArchive [14:59:04]shift 512 fd 75148 [14:59:04]save to /storage/0512/doc_00075148 [14:59:04]save last doc name /storage/0512/doc_00075148 to /storage/kkm_last_doc_name [14:59:04]save OK [14:59:04]Clear old archive folders... [14:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:59:04]tlvbuf is 008F25D0 [14:59:04]SAM_PROTO_ClearQueue [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 09 00 00 [14:59:04]Write to MH i2c: E2 08 00 7B 3A 80 09 00 00 00 00 00 00 27 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [14:59:04]RAPDU: 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_ClearQueue done [14:59:04]KKMCreateOFDPacket [14:59:04]OFDProtocolAddRootSTLVToBuf [14:59:04]FM_MakeSignedData [14:59:04]FM_MakeSignedData [14:59:04]SAM_PROTO_SignData [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 0D 01 02 [14:59:04]Write to MH i2c: E2 08 00 7C 3A 80 0D 01 02 00 00 00 00 2F [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [14:59:04]RAPDU: 90 00 [14:59:04]wFMCommunicate OK [14:59:04]wFMCommunicate request_size=255 [14:59:04]MH_SAM_APDU [14:59: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 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 8C 00 00 00 F4 03 04 00 BC 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8C 25 01 00 35 04 06 00 44 B9 [14:59:04]Write to MH i2c: E2 02 01 7D 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 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 8C 00 00 00 F4 03 04 00 BC 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8C 25 01 00 35 04 06 00 44 B9 00 00 15 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 7D 3A 00 90 00 2B [14:59:05]RAPDU: 90 00 [14:59:05]wFMCommunicate OK [14:59:05]wFMCommunicate request_size=9 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 0D 02 02 04 96 FE 85 81 [14:59:05]Write to MH i2c: E2 0C 00 7E 3A 80 0D 02 02 04 00 96 FE 85 81 00 00 D4 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 7E 3A 00 90 00 2C [14:59:05]RAPDU: 90 00 [14:59:05]wFMCommunicate OK [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 0D 03 02 [14:59:05]Write to MH i2c: E2 08 00 7F 3A 80 0D 03 02 00 00 00 00 34 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 0B 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 0B 00 7F 3A 00 52 B8 A7 A2 43 8D D5 D7 90 00 04 [14:59:05]RAPDU: 52 B8 A7 A2 43 8D D5 D7 90 00 [14:59:05]wFMCommunicate OK [14:59:05]SAM_PROTO_SignData done [14:59:05]FM_MakeSignedData done [14:59:05]CreateOFDProtocolMessage [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 11 00 00 [14:59:05]Write to MH i2c: E2 08 00 80 3A 80 11 00 00 00 00 00 00 34 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 80 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8C [14:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:59:05]wFMCommunicate OK [14:59:05]CreateOFDProtocolMessage done [14:59:05]OFDSenderStorePacket 75148 [14:59:05]StoreOFDPacket docnum=75148 [14:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B9 C9 06 01 81 C8 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 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 8C 00 00 00 F4 03 04 00 BC 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8C 25 01 00 35 04 06 00 44 B9 96 FE 85 81 52 B8 A7 A2 43 8D D5 D7 [14:59:05]CheckFolder [14:59:05]dirname=/storage/ofd_packets [14:59:05]CheckFolder done [14:59:05]ProducePacketName [14:59:05]name=ofd_packets/00075148 [14:59:05]NVStorageSaveData ofd_packets/00075148 [14:59:05]File name is /storage/ofd_packets/00075148 [14:59:05]Write 300 bytes [14:59:05]NVStorageSaveData done [14:59:05]OFDSenderStorePacket done [14:59:05]KKMCreateOFDPacket done [14:59:05]NVStorageSaveData kkm_last_timestamp [14:59:05]File name is /storage/kkm_last_timestamp [14:59:05]Write 4 bytes [14:59:05]NVStorageSaveData done [14:59:05]ExternCall_PrintAddStr [14:59:05]wPrintStart [14:59:05]Write to MH i2c: 01 00 00 81 3A BB [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 07 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 07 00 81 3A 00 00 00 00 00 FF 0F D0 [14:59:05]RasterBufferAndPrint [14:59:05]line Счет N : (1)191124 [14:59:05]line ИНН: 02508201610067 [14:59:05]line Контрольно-Кассовый Чек [14:59:05]line ПРОДАЖА [14:59:05]line ТРК (МРК, ГНК) : 51 [14:59:05]line Товар: 2711190000 [14:59:05]line ГАЗ-К-3 [14:59:05]line 0.100 * 38.90 [14:59:05]line = 3.89 [14:59:05]line НДС 12% НСП 1% [14:59:05]line > о реализуемом товаре [14:59:05]line ОКРУГЛЕНИЕ: -0.89 [14:59:05]line ИТОГО: 3.00 [14:59:05]line Внесено: 935.00 [14:59:05]line СДАЧА: 932.00 [14:59:05]line НСП 1% : 0.03 [14:59:05]line НДС 12% : 0.41 [14:59:05]line Наличными: 3.00 [14:59:05]line Безнал.: 0.00 [14:59:05]line Место: АЗС № 142 "Партнер Нефть" [14:59:05]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [14:59:05]line СНО: Общий режим [14:59:05]line Чек 140 26.10.2024 14:59 [14:59:05]line Смена: 512 ФФД: 1.0 [14:59:05]line ЗНМ: 0300000089 [14:59:05]line РНМ: 0000000000091691 [14:59:05]line Версия ККМ: 001 [14:59:05]line ФМ: 0000000000871795 [14:59:05]line ФД: 75148 [14:59:05]line ФПД: 75563892901249 [14:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145908&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75148&fm=75563892901249&tin=02508201610067®Number=0000000000091691&sum=300 [14:59:05]OFD Sender: Processing packet 75148 [packets to send 13, broken 12] [14:59:05]ProducePacketName [14:59:05]name=ofd_packets/00075148 [14:59:05]OFD Sender: To server: pG, [14:59:05]CommunicateWithHost lk.salyk.kg:30040 [14:59:05]ConnectInit lk.salyk.kg [14:59:05]written 0, free lines is 4095 [14:59:06]Write to MH i2c: 01 00 00 AC 3A E6 [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 07 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 07 00 AC 3A 00 00 00 00 00 8F 0C 88 [14:59:06]RasterBufferAndPrint [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]written 0, free lines is 3219 [14:59:06]MH_Cut [14:59:06]Write to MH i2c: D1 01 00 B3 3A 01 BF [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 01 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 01 00 B3 3A 00 BE [14:59:06]Write to MH i2c: 01 00 00 B4 3A EE [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]*** Cut start [14:59:06]*** Partial cut [14:59:06]*** CUTSNS_PIN = 1 [14:59:07]*** CUTSNS_PIN = 0 [14:59:07]*** Brake cut motor [14:59:07]Read from MH i2c: 01 [14:59:07]MH_I2C_Read... [14:59:07]*** Stop cut motor [14:59:07]*** Cut end [14:59:07]Read from MH i2c: 01 07 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: 01 07 00 B4 3A 00 00 00 00 00 FF 0F 03 [14:59:07]process_action close_receipt done [14:59:07]requested_data is exist [14:59:07]produce_requested_data [14:59:07]requested_item fm.sn is exist - process it [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 11 00 00 [14:59:07]Write to MH i2c: E2 08 00 B5 3A 80 11 00 00 00 00 00 00 69 [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 17 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 17 00 B5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C1 [14:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [14:59:07]wFMCommunicate OK [14:59:07]requested_item fd.num is exist - process it [14:59:07]SAM_PROTO_GetFieldsCounters [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 13 00 00 [14:59:07]Write to MH i2c: E2 08 00 B6 3A 80 13 00 00 00 00 00 00 6C [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 62 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 62 00 B6 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8C 25 01 00 0E 04 04 00 00 02 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 EB [14:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8C 25 01 00 0E 04 04 00 00 02 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 [14:59:07]wFMCommunicate OK [14:59:07]SAM_PROTO_GetFieldsCounters done [14:59:07]requested_item shift.num is exist - process it [14:59:07]requested_item shift.opened is exist - process it [14:59:07]req_shift_opened [14:59:07]FM_GetShiftState [14:59:07]SAM_PROTO_GetShiftState [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 13 01 00 [14:59:07]Write to MH i2c: E2 08 00 B7 3A 80 13 01 00 00 00 00 00 6E [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 0E 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 0E 00 B7 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 89 [14:59:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [14:59:07]wFMCommunicate OK [14:59:07]SAM_PROTO_GetShiftState done [14:59:07]FM_GetShiftState done [14:59:07]req_shift_opened done [14:59:07]requested_item shift.open_date is exist - process it [14:59:07]req_shift_open_date [14:59:07]req_shift_open_date done [14:59:07]produce_requested_data done [14:59:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75148,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [14:59:07]process_action_free close_receipt [14:59:07]json_value_free [14:59:07]json_value_free done [14:59:07]process_json_proto returns [14:59:07]Send response to host [14:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75148,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [14:59:07]free response buf [14:59:07]execute_script done [14:59:07]execute_script returns [14:59:07]free content buf [14:59:07]Sock 8.Close socket [14:59:07]Sock 8.Thread stoped [14:59:10]ConnectInit Can't take IP for lk.salyk.kg [14:59:10]CommunicateWithHost connect error [14:59:10]CommunicateWithHost err = -1 [14:59:10]OFD Sender: Server communicate error [14:59:15]OFD Sender: Processing packet 75148 [packets to send 13, broken 12] [14:59:15]ProducePacketName [14:59:15]name=ofd_packets/00075148 [14:59:15]OFD Sender: To server: pG, [14:59:15]CommunicateWithHost lk.salyk.kg:30040 [14:59:15]ConnectInit lk.salyk.kg [14:59:20]ConnectInit Can't take IP for lk.salyk.kg [14:59:20]CommunicateWithHost connect error [14:59:20]CommunicateWithHost err = -1 [14:59:20]OFD Sender: Server communicate error [14:59:25]OFD Sender: Processing packet 75148 [packets to send 13, broken 12] [14:59:25]ProducePacketName [14:59:25]name=ofd_packets/00075148 [14:59:25]OFD Sender: To server: pG, [14:59:25]CommunicateWithHost lk.salyk.kg:30040 [14:59:25]ConnectInit lk.salyk.kg [14:59:25]Connected sock=8 [14:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B9 C9 06 01 81 C8 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 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 8C 00 00 00 F4 03 04 00 BC 03 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8C 25 01 00 35 04 06 00 44 B9 96 FE 85 81 52 B8 A7 A2 43 8D D5 D7 [14:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 00 84 47 00 67 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 38 37 31 37 39 35 10 04 04 00 8C 25 01 00 F4 03 04 00 4D AB 1C 67 B6 04 01 00 00 01 80 53 C6 3B 6C F2 B1 [14:59:26]CommunicateWithHost err = 0 [14:59:26]CheckOFDResponse [14:59:26]1017 (14) - 77093643461234 [14:59:26]1041 (16) - 0000000000871795 [14:59:26]1040 (4) - 75148 [14:59:26]1012 (4) - 26.10.2024 08:41 [14:59:26]1206 (1) - 0 [14:59:26]OFD Sender: Remove packet 75148 [14:59:26]ProducePacketName [14:59:26]name=ofd_packets/00075148 [14:59:26]NVStorageDeleteData [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:47]accept exits with 10 [15:02:47]New connection [15:02:47]New thread 3066781028 created [15:02:47]Thread 3066924388 joined [15:02:47]Waiting for new connection... [15:02:47] Sock 10.Parse request [15:02:47]Sock 10.Check first char [15:02:47]Sock 10.First char is OK [15:02:47]request: POST /json_proto HTTP/1.0 [15:02:47]Method: POST [15:02:47]URL: /json_proto [15:02:47]Method is POST - this is cgi request [15:02:47]url: /json_proto [15:02:47]query_string will be loaded in cgi processing [15:02:47]execute_cgi json_proto POST (null) [15:02:47]execute_cgi path=json_proto method=POST [15:02:47]POST find Content-Length [15:02:47]Host: 172.17.39.131:8080 [15:02:47]Content-Length: 682 [15:02:47]Content-Type: application/json [15:02:47] [15:02:47]POST finish read [15:02:47]Found Content-Length = 682 [15:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:47]execute_script... [15:02: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)191125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:02:47]POST & json_proto [15:02:47]process_json_proto [15:02:47]json parsed OK: [15:02:47]protocol is kg_v1.0 [15:02:47]action value=close_receipt [15:02:47]process_action close_receipt [15:02:47]cmd_close_receipt [15:02:47]MH_GetDate [15:02:47]Write to MH i2c: F0 00 00 B8 3A E1 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 09 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 09 00 B8 3A 00 9C 04 1D 67 86 57 24 65 74 [15:02:47]GetLastDocTimeStamp 1729954748 [15:02:47]current date 1729954972 [15:02:47]FM_GetShiftState [15:02:47]SAM_PROTO_GetShiftState [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 13 01 00 [15:02:47]Write to MH i2c: E2 08 00 B9 3A 80 13 01 00 00 00 00 00 70 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 B9 3A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8B [15:02:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:02:47]wFMCommunicate OK [15:02:47]SAM_PROTO_GetShiftState done [15:02:47]FM_GetShiftState done [15:02:47]opened in 1729902166 [15:02:47]opened+sec_in_day 1729988566 [15:02:47]quantity*price = 100015 [15:02:47]sum+1 = 100017 [15:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 141 26.10.2024 15:02 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75149 ФПД: 77304497207688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150252&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75149&fm=77304497207688&tin=02508201610067®Number=0000000000091691&sum=100000 [15:02:48]StoreToDocumentArchive [15:02:48]shift 512 fd 75149 [15:02:48]save to /storage/0512/doc_00075149 [15:02:48]save last doc name /storage/0512/doc_00075149 to /storage/kkm_last_doc_name [15:02:48]save OK [15:02:48]Clear old archive folders... [15:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:48]tlvbuf is 00882DB0 [15:02:48]SAM_PROTO_ClearQueue [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 09 00 00 [15:02:48]Write to MH i2c: E2 08 00 C6 3A 80 09 00 00 00 00 00 00 72 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 C6 3A 00 90 00 74 [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]SAM_PROTO_ClearQueue done [15:02:48]KKMCreateOFDPacket [15:02:48]OFDProtocolAddRootSTLVToBuf [15:02:48]FM_MakeSignedData [15:02:48]FM_MakeSignedData [15:02:48]SAM_PROTO_SignData [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 0D 01 02 [15:02:48]Write to MH i2c: E2 08 00 C7 3A 80 0D 01 02 00 00 00 00 7A [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 C7 3A 00 90 00 75 [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]wFMCommunicate request_size=255 [15:02:48]MH_SAM_APDU [15:02: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 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 9C 04 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8D 25 01 00 35 04 06 00 46 [15:02:48]Write to MH i2c: E2 02 01 C8 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 8D 00 00 00 F4 03 04 00 9C 04 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8D 25 01 00 35 04 06 00 46 00 00 B5 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 C8 3A 00 90 00 76 [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]wFMCommunicate request_size=10 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 0D 02 02 05 4E DB 18 79 88 [15:02:48]Write to MH i2c: E2 0D 00 C9 3A 80 0D 02 02 05 00 4E DB 18 79 88 00 00 C9 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 03 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 03 00 C9 3A 00 90 00 77 [15:02:49]RAPDU: 90 00 [15:02:49]wFMCommunicate OK [15:02:49]wFMCommunicate request_size=4 [15:02:49]MH_SAM_APDU [15:02:49]CAPDU: 80 0D 03 02 [15:02:49]Write to MH i2c: E2 08 00 CA 3A 80 0D 03 02 00 00 00 00 7F [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 0B 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 0B 00 CA 3A 00 6B 7B 41 5B BF 8D B9 30 90 00 37 [15:02:49]RAPDU: 6B 7B 41 5B BF 8D B9 30 90 00 [15:02:49]wFMCommunicate OK [15:02:49]SAM_PROTO_SignData done [15:02:49]FM_MakeSignedData done [15:02:49]CreateOFDProtocolMessage [15:02:49]wFMCommunicate request_size=4 [15:02:49]MH_SAM_APDU [15:02:49]CAPDU: 80 11 00 00 [15:02:49]Write to MH i2c: E2 08 00 CB 3A 80 11 00 00 00 00 00 00 7F [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 17 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 17 00 CB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D7 [15:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:02:49]wFMCommunicate OK [15:02:49]CreateOFDProtocolMessage done [15:02:49]OFDSenderStorePacket 75149 [15:02:49]StoreOFDPacket docnum=75149 [15:02:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 DB BE 07 01 F0 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 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 9C 04 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8D 25 01 00 35 04 06 00 46 4E DB 18 79 88 6B 7B 41 5B BF 8D B9 30 [15:02:49]CheckFolder [15:02:49]dirname=/storage/ofd_packets [15:02:49]CheckFolder done [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00075149 [15:02:49]NVStorageSaveData ofd_packets/00075149 [15:02:49]File name is /storage/ofd_packets/00075149 [15:02:49]Write 301 bytes [15:02:49]NVStorageSaveData done [15:02:49]OFDSenderStorePacket done [15:02:49]KKMCreateOFDPacket done [15:02:49]NVStorageSaveData kkm_last_timestamp [15:02:49]File name is /storage/kkm_last_timestamp [15:02:49]Write 4 bytes [15:02:49]NVStorageSaveData done [15:02:49]ExternCall_PrintAddStr [15:02:49]wPrintStart [15:02:49]Write to MH i2c: 01 00 00 CC 3A 06 [15:02:49]OFD Sender: Processing packet 75149 [packets to send 13, broken 12] [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00075149 [15:02:49]OFD Sender: To server: pG, [15:02:49]CommunicateWithHost lk.salyk.kg:30040 [15:02:49]ConnectInit lk.salyk.kg [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 CC 3A 00 00 00 00 00 FF 0F 1B [15:02:49]RasterBufferAndPrint [15:02:49]line Счет N : (1)191125 [15:02:49]line ИНН: 02508201610067 [15:02:49]line Контрольно-Кассовый Чек [15:02:49]line ПРОДАЖА [15:02:49]line ТРК (МРК, ГНК) : 21 [15:02:49]line Товар: 2710124130 [15:02:49]line Аи-92-К-5 [15:02:49]line 14.950 * 66.90 [15:02:49]line = 1000.16 [15:02:49]line НДС 12% НСП 1% [15:02:49]line > о реализуемом товаре [15:02:49]line ОКРУГЛЕНИЕ: -0.16 [15:02:49]line ИТОГО: 1000.00 [15:02:49]line Внесено: 1000.00 [15:02:49]line СДАЧА: 0.00 [15:02:49]line НСП 1% : 8.85 [15:02:49]line НДС 12% : 106.21 [15:02:49]line Наличными: 1000.00 [15:02:49]line Безнал.: 0.00 [15:02:49]line Место: АЗС № 142 "Партнер Нефть" [15:02:49]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:02:49]line СНО: Общий режим [15:02:49]line Чек 141 26.10.2024 15:02 [15:02:49]line Смена: 512 ФФД: 1.0 [15:02:49]line ЗНМ: 0300000089 [15:02:49]line РНМ: 0000000000091691 [15:02:49]line Версия ККМ: 001 [15:02:49]line ФМ: 0000000000871795 [15:02:49]line ФД: 75149 [15:02:49]line ФПД: 77304497207688 [15:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150252&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75149&fm=77304497207688&tin=02508201610067®Number=0000000000091691&sum=100000 [15:02:49]Connected sock=9 [15:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 DB BE 07 01 F0 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 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 9C 04 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8D 25 01 00 35 04 06 00 46 4E DB 18 79 88 6B 7B 41 5B BF 8D B9 30 [15:02:49]written 0, free lines is 4095 [15:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 38 94 47 00 45 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8D 25 01 00 F4 03 04 00 18 AC 1C 67 B6 04 01 00 00 8D 4D EE 64 8D EC DA EE [15:02:49]CommunicateWithHost err = 0 [15:02:49]CheckOFDResponse [15:02:49]1017 (14) - 77093643461234 [15:02:49]1041 (16) - 0000000000871795 [15:02:49]1040 (4) - 75149 [15:02:49]1012 (4) - 26.10.2024 08:45 [15:02:49]1206 (1) - 0 [15:02:49]OFD Sender: Remove packet 75149 [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00075149 [15:02:49]NVStorageDeleteData [15:02:49]Write to MH i2c: 01 00 00 F7 3A 31 [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 F7 3A 00 00 00 00 00 93 0C D7 [15:02:49]RasterBufferAndPrint [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]written 0, free lines is 3225 [15:02:49]MH_Cut [15:02:49]Write to MH i2c: D1 01 00 FE 3A 01 0A [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 01 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 01 00 FE 3A 00 09 [15:02:49]Write to MH i2c: 01 00 00 FF 3A 39 [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:50]OFD Sender: No OFD packet to send [15:02:50]*** Cut start [15:02:50]*** Partial cut [15:02:50]*** CUTSNS_PIN = 1 [15:02:50]*** CUTSNS_PIN = 0 [15:02:51]*** Brake cut motor [15:02:51]Read from MH i2c: 01 [15:02:51]MH_I2C_Read... [15:02:51]*** Stop cut motor [15:02:51]*** Cut end [15:02:51]Read from MH i2c: 01 07 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: 01 07 00 FF 3A 00 00 00 00 00 FF 0F 4E [15:02:51]process_action close_receipt done [15:02:51]requested_data is exist [15:02:51]produce_requested_data [15:02:51]requested_item fm.sn is exist - process it [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 11 00 00 [15:02:51]Write to MH i2c: E2 08 00 00 3B 80 11 00 00 00 00 00 00 B5 [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 17 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 17 00 00 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0D [15:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:02:51]wFMCommunicate OK [15:02:51]requested_item fd.num is exist - process it [15:02:51]SAM_PROTO_GetFieldsCounters [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 13 00 00 [15:02:51]Write to MH i2c: E2 08 00 01 3B 80 13 00 00 00 00 00 00 B8 [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 62 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 62 00 01 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8D 25 01 00 0E 04 04 00 00 02 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 3B [15:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8D 25 01 00 0E 04 04 00 00 02 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 [15:02:51]wFMCommunicate OK [15:02:51]SAM_PROTO_GetFieldsCounters done [15:02:51]requested_item shift.num is exist - process it [15:02:51]requested_item shift.opened is exist - process it [15:02:51]req_shift_opened [15:02:51]FM_GetShiftState [15:02:51]SAM_PROTO_GetShiftState [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 13 01 00 [15:02:51]Write to MH i2c: E2 08 00 02 3B 80 13 01 00 00 00 00 00 BA [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 02 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D5 [15:02:51]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:02:51]wFMCommunicate OK [15:02:51]SAM_PROTO_GetShiftState done [15:02:51]FM_GetShiftState done [15:02:51]req_shift_opened done [15:02:51]requested_item shift.open_date is exist - process it [15:02:51]req_shift_open_date [15:02:51]req_shift_open_date done [15:02:51]produce_requested_data done [15:02:51]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75149,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [15:02:51]process_action_free close_receipt [15:02:51]json_value_free [15:02:51]json_value_free done [15:02:51]process_json_proto returns [15:02:51]Send response to host [15:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75149,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [15:02:51]free response buf [15:02:51]execute_script done [15:02:51]execute_script returns [15:02:51]free content buf [15:02:51]Sock 10.Close socket [15:02:51]Sock 10.Thread stoped [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:01]accept exits with 8 [15:21:01]New connection [15:21:01]New thread 3066924388 created [15:21:01]Thread 3066781028 joined [15:21:01]Waiting for new connection... [15:21:01] Sock 8.Parse request [15:21:01]Sock 8.Check first char [15:21:01]Sock 8.First char is OK [15:21:01]request: POST /json_proto HTTP/1.0 [15:21:01]Method: POST [15:21:01]URL: /json_proto [15:21:01]Method is POST - this is cgi request [15:21:01]url: /json_proto [15:21:01]query_string will be loaded in cgi processing [15:21:01]execute_cgi json_proto POST (null) [15:21:01]execute_cgi path=json_proto method=POST [15:21:01]POST find Content-Length [15:21:01]Host: 172.17.39.131:8080 [15:21:01]Content-Length: 677 [15:21:01]Content-Type: application/json [15:21:01] [15:21:01]POST finish read [15:21:01]Found Content-Length = 677 [15:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:21:01]execute_script... [15:21: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)191126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:21:01]POST & json_proto [15:21:01]process_json_proto [15:21:01]json parsed OK: [15:21:01]protocol is kg_v1.0 [15:21:01]action value=close_receipt [15:21:01]process_action close_receipt [15:21:01]cmd_close_receipt [15:21:01]MH_GetDate [15:21:01]Write to MH i2c: F0 00 00 03 3B 2D [15:21:01]Write i2c OK [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 09 00 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 09 00 03 3B 00 E2 08 1D 67 86 57 24 65 0A [15:21:01]GetLastDocTimeStamp 1729954972 [15:21:01]current date 1729956066 [15:21:01]FM_GetShiftState [15:21:01]SAM_PROTO_GetShiftState [15:21:01]wFMCommunicate request_size=4 [15:21:01]MH_SAM_APDU [15:21:01]CAPDU: 80 13 01 00 [15:21:01]Write to MH i2c: E2 08 00 04 3B 80 13 01 00 00 00 00 00 BC [15:21:01]Write i2c OK [15:21:01]MH_I2C_Read... [15:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:01]Read from MH i2c: E2 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: E2 0E 00 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: E2 0E 00 04 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D7 [15:21:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:21:01]wFMCommunicate OK [15:21:01]SAM_PROTO_GetShiftState done [15:21:01]FM_GetShiftState done [15:21:01]opened in 1729902166 [15:21:01]opened+sec_in_day 1729988566 [15:21:01]quantity*price = 30038 [15:21:01]sum+1 = 30039 [15:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре [15:21:02]line ОКРУГЛЕНИЕ: -0.38 [15:21:02]line ИТОГО: 300.00 [15:21:02]line Внесено: 300.00 [15:21:02]line СДАЧА: 0.00 [15:21:02]line НСП 1% : 2.66 [15:21:02]line НДС 12% : 31.90 [15:21:02]line Наличными: 300.00 [15:21:02]line Безнал.: 0.00 [15:21:02]line Место: АЗС № 142 "Партнер Нефть" [15:21:02]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:21:02]line СНО: Общий режим [15:21:02]line Чек 142 26.10.2024 15:21 [15:21:02]line Смена: 512 ФФД: 1.0 [15:21:02]line ЗНМ: 0300000089 [15:21:02]line РНМ: 0000000000091691 [15:21:02]line Версия ККМ: 001 [15:21:02]line ФМ: 0000000000871795 [15:21:02]line ФД: 75150 [15:21:02]line ФПД: 10191806046711 [15:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152106&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75150&fm=10191806046711&tin=02508201610067®Number=0000000000091691&sum=30000 [15:21:03]written 0, free lines is 4095 [15:21:03]OFD Sender: Processing packet 75150 [packets to send 13, broken 12] [15:21:03]ProducePacketName [15:21:03]name=ofd_packets/00075150 [15:21:03]OFD Sender: To server: pG, [15:21:03]CommunicateWithHost lk.salyk.kg:30040 [15:21:03]ConnectInit lk.salyk.kg [15:21:03]Connected sock=11 [15:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 78 33 07 01 75 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8E 00 00 00 F4 03 04 00 E2 08 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8E 25 01 00 35 04 06 00 09 44 F6 FA A1 F7 3B 42 D9 1B F3 C4 D7 8F [15:21:03]Write to MH i2c: 01 00 00 42 3B 7D [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 07 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 07 00 42 3B 00 00 00 00 00 90 0C 20 [15:21:03]RasterBufferAndPrint [15:21:03]line [15:21:03]line [15:21:03]line [15:21:03]line [15:21:03]line [15:21:03]written 0, free lines is 3222 [15:21:03]MH_Cut [15:21:03]Write to MH i2c: D1 01 00 49 3B 01 56 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: D1 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: D1 01 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: D1 01 00 49 3B 00 55 [15:21:03]Write to MH i2c: 01 00 00 4A 3B 85 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 30 99 47 00 55 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8E 25 01 00 F4 03 04 00 5E B0 1C 67 B6 04 01 00 00 13 2D CD 47 69 9C 48 74 [15:21:03]CommunicateWithHost err = 0 [15:21:03]CheckOFDResponse [15:21:03]1017 (14) - 77093643461234 [15:21:03]1041 (16) - 0000000000871795 [15:21:03]1040 (4) - 75150 [15:21:03]1012 (4) - 26.10.2024 09:03 [15:21:03]1206 (1) - 0 [15:21:03]OFD Sender: Remove packet 75150 [15:21:03]ProducePacketName [15:21:03]name=ofd_packets/00075150 [15:21:03]NVStorageDeleteData [15:21:04]OFD Sender: No OFD packet to send [15:21:04]*** Cut start [15:21:04]*** Partial cut [15:21:04]*** CUTSNS_PIN = 1 [15:21:04]*** CUTSNS_PIN = 0 [15:21:04]*** Brake cut motor [15:21:05]Read from MH i2c: 01 [15:21:05]MH_I2C_Read... [15:21:05]*** Stop cut motor [15:21:05]*** Cut end [15:21:05]Read from MH i2c: 01 07 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 4A 3B 00 00 00 00 00 FF 0F 9A [15:21:05]process_action close_receipt done [15:21:05]requested_data is exist [15:21:05]produce_requested_data [15:21:05]requested_item fm.sn is exist - process it [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 11 00 00 [15:21:05]Write to MH i2c: E2 08 00 4B 3B 80 11 00 00 00 00 00 00 00 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 17 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 17 00 4B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 58 [15:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:21:05]wFMCommunicate OK [15:21:05]requested_item fd.num is exist - process it [15:21:05]SAM_PROTO_GetFieldsCounters [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 13 00 00 [15:21:05]Write to MH i2c: E2 08 00 4C 3B 80 13 00 00 00 00 00 00 03 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 62 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 62 00 4C 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8E 25 01 00 0E 04 04 00 00 02 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 8A [15:21:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8E 25 01 00 0E 04 04 00 00 02 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 [15:21:05]wFMCommunicate OK [15:21:05]SAM_PROTO_GetFieldsCounters done [15:21:05]requested_item shift.num is exist - process it [15:21:05]requested_item shift.opened is exist - process it [15:21:05]req_shift_opened [15:21:05]FM_GetShiftState [15:21:05]SAM_PROTO_GetShiftState [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 13 01 00 [15:21:05]Write to MH i2c: E2 08 00 4D 3B 80 13 01 00 00 00 00 00 05 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 0E 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 0E 00 4D 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 20 [15:21:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:21:05]wFMCommunicate OK [15:21:05]SAM_PROTO_GetShiftState done [15:21:05]FM_GetShiftState done [15:21:05]req_shift_opened done [15:21:05]requested_item shift.open_date is exist - process it [15:21:05]req_shift_open_date [15:21:05]req_shift_open_date done [15:21:05]produce_requested_data done [15:21:05]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75150,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [15:21:05]process_action_free close_receipt [15:21:05]json_value_free [15:21:05]json_value_free done [15:21:05]process_json_proto returns [15:21:05]Send response to host [15:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75150,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [15:21:05]free response buf [15:21:05]execute_script done [15:21:05]execute_script returns [15:21:05]free content buf [15:21:05]Sock 8.Close socket [15:21:05]Sock 8.Thread stoped [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]ConnectInit Can't connect to host [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26: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:06]accept exits with 10 [15:27:06]New connection [15:27:06]New thread 3066781028 created [15:27:06]Thread 3066924388 joined [15:27:06]Waiting for new connection... [15:27:06] Sock 10.Parse request [15:27:06]Sock 10.Check first char [15:27:06]Sock 10.First char is OK [15:27:06]request: POST /json_proto HTTP/1.0 [15:27:06]Method: POST [15:27:06]URL: /json_proto [15:27:06]Method is POST - this is cgi request [15:27:06]url: /json_proto [15:27:06]query_string will be loaded in cgi processing [15:27:06]execute_cgi json_proto POST (null) [15:27:06]execute_cgi path=json_proto method=POST [15:27:06]POST find Content-Length [15:27:06]Host: 172.17.39.131:8080 [15:27:06]Content-Length: 678 [15:27:06]Content-Type: application/json [15:27:06] [15:27:06]POST finish read [15:27:06]Found Content-Length = 678 [15:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:27:06]execute_script... [15:27: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)191127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:27:06]POST & json_proto [15:27:06]process_json_proto [15:27:06]json parsed OK: [15:27:06]protocol is kg_v1.0 [15:27:06]action value=close_receipt [15:27:06]process_action close_receipt [15:27:06]cmd_close_receipt [15:27:06]MH_GetDate [15:27:06]Write to MH i2c: F0 00 00 4E 3B 78 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: F0 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: F0 09 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: F0 09 00 4E 3B 00 50 0A 1D 67 86 57 24 65 C5 [15:27:06]GetLastDocTimeStamp 1729956066 [15:27:06]current date 1729956432 [15:27:06]FM_GetShiftState [15:27:06]SAM_PROTO_GetShiftState [15:27:06]wFMCommunicate request_size=4 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 13 01 00 [15:27:06]Write to MH i2c: E2 08 00 4F 3B 80 13 01 00 00 00 00 00 07 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 0E 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 0E 00 4F 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 22 [15:27:06]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:27:06]wFMCommunicate OK [15:27:06]SAM_PROTO_GetShiftState done [15:27:06]FM_GetShiftState done [15:27:06]opened in 1729902166 [15:27:06]opened+sec_in_day 1729988566 [15:27:06]quantity*price = 70044 [15:27:06]sum+1 = 70045 [15:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 143 26.10.2024 15:27 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75151 ФПД: 246956369689816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152712&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75151&fm=246956369689816&tin=02508201610067®Number=0000000000091691&sum=70000 [15:27:07]StoreToDocumentArchive [15:27:07]shift 512 fd 75151 [15:27:07]save to /storage/0512/doc_00075151 [15:27:07]save last doc name /storage/0512/doc_00075151 to /storage/kkm_last_doc_name [15:27:07]save OK [15:27:07]Clear old archive folders... [15:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:07]tlvbuf is 008AF7E0 [15:27:07]SAM_PROTO_ClearQueue [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 09 00 00 [15:27:07]Write to MH i2c: E2 08 00 5C 3B 80 09 00 00 00 00 00 00 09 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 5C 3B 00 90 00 0B [15:27:08]RAPDU: 90 00 [15:27:08]wFMCommunicate OK [15:27:08]SAM_PROTO_ClearQueue done [15:27:08]KKMCreateOFDPacket [15:27:08]OFDProtocolAddRootSTLVToBuf [15:27:08]FM_MakeSignedData [15:27:08]FM_MakeSignedData [15:27:08]SAM_PROTO_SignData [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 0D 01 02 [15:27:08]Write to MH i2c: E2 08 00 5D 3B 80 0D 01 02 00 00 00 00 11 [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 5D 3B 00 90 00 0C [15:27:08]RAPDU: 90 00 [15:27:08]wFMCommunicate OK [15:27:08]wFMCommunicate request_size=255 [15:27:08]MH_SAM_APDU [15:27: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 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 8F 00 00 00 F4 03 04 00 50 0A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8F 25 01 00 35 04 06 00 E0 [15:27:08]Write to MH i2c: E2 02 01 5E 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 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 8F 00 00 00 F4 03 04 00 50 0A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8F 25 01 00 35 04 06 00 E0 00 00 BA [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 5E 3B 00 90 00 0D [15:27:08]RAPDU: 90 00 [15:27:08]wFMCommunicate OK [15:27:08]wFMCommunicate request_size=10 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 0D 02 02 05 9B 02 B0 BC D8 [15:27:08]Write to MH i2c: E2 0D 00 5F 3B 80 0D 02 02 05 00 9B 02 B0 BC D8 00 00 FF [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 03 00 5F 3B 00 90 00 0E [15:27:08]RAPDU: 90 00 [15:27:08]wFMCommunicate OK [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 0D 03 02 [15:27:08]Write to MH i2c: E2 08 00 60 3B 80 0D 03 02 00 00 00 00 16 [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 0B 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 0B 00 60 3B 00 2F 92 D9 4A 25 F8 9C 90 90 00 44 [15:27:08]RAPDU: 2F 92 D9 4A 25 F8 9C 90 90 00 [15:27:08]wFMCommunicate OK [15:27:08]SAM_PROTO_SignData done [15:27:08]FM_MakeSignedData done [15:27:08]CreateOFDProtocolMessage [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 11 00 00 [15:27:08]Write to MH i2c: E2 08 00 61 3B 80 11 00 00 00 00 00 00 16 [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 17 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 17 00 61 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6E [15:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:27:08]wFMCommunicate OK [15:27:08]CreateOFDProtocolMessage done [15:27:08]OFDSenderStorePacket 75151 [15:27:08]StoreOFDPacket docnum=75151 [15:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 98 7C 07 01 FA 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 8F 00 00 00 F4 03 04 00 50 0A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8F 25 01 00 35 04 06 00 E0 9B 02 B0 BC D8 2F 92 D9 4A 25 F8 9C 90 [15:27:08]CheckFolder [15:27:08]dirname=/storage/ofd_packets [15:27:08]CheckFolder done [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00075151 [15:27:08]NVStorageSaveData ofd_packets/00075151 [15:27:08]File name is /storage/ofd_packets/00075151 [15:27:08]Write 301 bytes [15:27:08]NVStorageSaveData done [15:27:08]OFDSenderStorePacket done [15:27:08]KKMCreateOFDPacket done [15:27:08]NVStorageSaveData kkm_last_timestamp [15:27:08]File name is /storage/kkm_last_timestamp [15:27:08]Write 4 bytes [15:27:08]NVStorageSaveData done [15:27:08]ExternCall_PrintAddStr [15:27:08]wPrintStart [15:27:08]Write to MH i2c: 01 00 00 62 3B 9D [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: 01 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: 01 07 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: 01 07 00 62 3B 00 00 00 00 00 FF 0F B2 [15:27:08]RasterBufferAndPrint [15:27:08]line Счет N : (1)191127 [15:27:08]line ИНН: 02508201610067 [15:27:08]line Контрольно-Кассовый Чек [15:27:08]line ПРОДАЖА [15:27:08]line ТРК (МРК, ГНК) : 21 [15:27:08]line Товар: 2710124130 [15:27:08]line Аи-92-К-5 [15:27:08]line 10.470 * 66.90 [15:27:08]line = 700.44 [15:27:08]line НДС 12% НСП 1% [15:27:08]line > о реализуемом товаре [15:27:08]line ОКРУГЛЕНИЕ: -0.44 [15:27:08]line ИТОГО: 700.00 [15:27:08]line Внесено: 700.00 [15:27:08]line СДАЧА: 0.00 [15:27:08]line НСП 1% : 6.20 [15:27:08]line НДС 12% : 74.38 [15:27:08]line Наличными: 700.00 [15:27:08]line Безнал.: 0.00 [15:27:08]line Место: АЗС № 142 "Партнер Нефть" [15:27:08]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:27:08]line СНО: Общий режим [15:27:08]line Чек 143 26.10.2024 15:27 [15:27:08]line Смена: 512 ФФД: 1.0 [15:27:08]line ЗНМ: 0300000089 [15:27:08]line РНМ: 0000000000091691 [15:27:08]line Версия ККМ: 001 [15:27:08]line ФМ: 0000000000871795 [15:27:08]line ФД: 75151 [15:27:08]line ФПД: 246956369689816 [15:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152712&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75151&fm=246956369689816&tin=02508201610067®Number=0000000000091691&sum=70000 [15:27:08]written 0, free lines is 4095 [15:27:08]OFD Sender: Processing packet 75151 [packets to send 13, broken 12] [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00075151 [15:27:08]OFD Sender: To server: pG, [15:27:08]CommunicateWithHost lk.salyk.kg:30040 [15:27:08]ConnectInit lk.salyk.kg [15:27:08]Connected sock=9 [15:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 98 7C 07 01 FA 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 8F 00 00 00 F4 03 04 00 50 0A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8F 25 01 00 35 04 06 00 E0 9B 02 B0 BC D8 2F 92 D9 4A 25 F8 9C 90 [15:27:09]Write to MH i2c: 01 00 00 8D 3B C8 [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: 01 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: 01 07 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: 01 07 00 8D 3B 00 00 00 00 00 A2 0C 7D [15:27:09]RasterBufferAndPrint [15:27:09]line [15:27:09]line [15:27:09]line [15:27:09]line [15:27:09]line [15:27:09]written 0, free lines is 3241 [15:27:09]MH_Cut [15:27:09]Write to MH i2c: D1 01 00 94 3B 01 A1 [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: D1 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: D1 01 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: D1 01 00 94 3B 00 A0 [15:27:09]Write to MH i2c: 01 00 00 95 3B D0 [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CF 4B 47 00 55 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 8F 25 01 00 F4 03 04 00 CC B1 1C 67 B6 04 01 00 00 E5 18 66 CC 56 B9 93 0B [15:27:09]CommunicateWithHost err = 0 [15:27:09]CheckOFDResponse [15:27:09]1017 (14) - 77093643461234 [15:27:09]1041 (16) - 0000000000871795 [15:27:09]1040 (4) - 75151 [15:27:09]1012 (4) - 26.10.2024 09:09 [15:27:09]1206 (1) - 0 [15:27:09]OFD Sender: Remove packet 75151 [15:27:09]ProducePacketName [15:27:09]name=ofd_packets/00075151 [15:27:09]NVStorageDeleteData [15:27:09]OFD Sender: No OFD packet to send [15:27:10]*** Cut start [15:27:10]*** Partial cut [15:27:10]*** CUTSNS_PIN = 1 [15:27:10]*** CUTSNS_PIN = 0 [15:27:10]*** Brake cut motor [15:27:10]Read from MH i2c: 01 [15:27:10]MH_I2C_Read... [15:27:10]*** Stop cut motor [15:27:10]*** Cut end [15:27:10]Read from MH i2c: 01 07 00 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: 01 07 00 95 3B 00 00 00 00 00 FF 0F E5 [15:27:10]process_action close_receipt done [15:27:10]requested_data is exist [15:27:10]produce_requested_data [15:27:10]requested_item fm.sn is exist - process it [15:27:10]wFMCommunicate request_size=4 [15:27:10]MH_SAM_APDU [15:27:10]CAPDU: 80 11 00 00 [15:27:10]Write to MH i2c: E2 08 00 96 3B 80 11 00 00 00 00 00 00 4B [15:27:10]Write i2c OK [15:27:10]MH_I2C_Read... [15:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:10]Read from MH i2c: E2 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 17 00 [15:27:10]MH_I2C_Read... [15:27:10]Read from MH i2c: E2 17 00 96 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A3 [15:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:27:10]wFMCommunicate OK [15:27:10]requested_item fd.num is exist - process it [15:27:10]SAM_PROTO_GetFieldsCounters [15:27:10]wFMCommunicate request_size=4 [15:27:10]MH_SAM_APDU [15:27:10]CAPDU: 80 13 00 00 [15:27:10]Write to MH i2c: E2 08 00 97 3B 80 13 00 00 00 00 00 00 4E [15:27:10]Write i2c OK [15:27:10]MH_I2C_Read... [15:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 62 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 62 00 97 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8F 25 01 00 0E 04 04 00 00 02 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 D9 [15:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 8F 25 01 00 0E 04 04 00 00 02 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 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_GetFieldsCounters done [15:27:11]requested_item shift.num is exist - process it [15:27:11]requested_item shift.opened is exist - process it [15:27:11]req_shift_opened [15:27:11]FM_GetShiftState [15:27:11]SAM_PROTO_GetShiftState [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 13 01 00 [15:27:11]Write to MH i2c: E2 08 00 98 3B 80 13 01 00 00 00 00 00 50 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 98 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6B [15:27:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_GetShiftState done [15:27:11]FM_GetShiftState done [15:27:11]req_shift_opened done [15:27:11]requested_item shift.open_date is exist - process it [15:27:11]req_shift_open_date [15:27:11]req_shift_open_date done [15:27:11]produce_requested_data done [15:27:11]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75151,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [15:27:11]process_action_free close_receipt [15:27:11]json_value_free [15:27:11]json_value_free done [15:27:11]process_json_proto returns [15:27:11]Send response to host [15:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75151,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [15:27:11]free response buf [15:27:11]execute_script done [15:27:11]execute_script returns [15:27:11]free content buf [15:27:11]Sock 10.Close socket [15:27:11]Sock 10.Thread stoped [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:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:16]accept exits with 8 [15:35:16]New connection [15:35:16]New thread 3066924388 created [15:35:16]Thread 3066781028 joined [15:35:16]Waiting for new connection... [15:35:16] Sock 8.Parse request [15:35:16]Sock 8.Check first char [15:35:16]Sock 8.First char is OK [15:35:16]request: POST /json_proto HTTP/1.0 [15:35:16]Method: POST [15:35:16]URL: /json_proto [15:35:16]Method is POST - this is cgi request [15:35:16]url: /json_proto [15:35:16]query_string will be loaded in cgi processing [15:35:16]execute_cgi json_proto POST (null) [15:35:16]execute_cgi path=json_proto method=POST [15:35:16]POST find Content-Length [15:35:16]Host: 172.17.39.131:8080 [15:35:16]Content-Length: 800 [15:35:16]Content-Type: application/json [15:35:16] [15:35:16]POST finish read [15:35:16]Found Content-Length = 800 [15:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:16]execute_script... [15:35: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)191128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:16]POST & json_proto [15:35:16]process_json_proto [15:35:16]json parsed OK: [15:35:16]protocol is kg_v1.0 [15:35:16]action value=close_receipt [15:35:16]process_action close_receipt [15:35:16]cmd_close_receipt [15:35:16]MH_GetDate [15:35:16]Write to MH i2c: F0 00 00 99 3B C3 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: F0 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: F0 09 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: F0 09 00 99 3B 00 3A 0C 1D 67 86 57 24 65 FC [15:35:16]GetLastDocTimeStamp 1729956432 [15:35:16]current date 1729956922 [15:35:16]FM_GetShiftState [15:35:16]SAM_PROTO_GetShiftState [15:35:16]wFMCommunicate request_size=4 [15:35:16]MH_SAM_APDU [15:35:16]CAPDU: 80 13 01 00 [15:35:16]Write to MH i2c: E2 08 00 9A 3B 80 13 01 00 00 00 00 00 52 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 0E 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 0E 00 9A 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6D [15:35:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:35:16]wFMCommunicate OK [15:35:16]SAM_PROTO_GetShiftState done [15:35:16]FM_GetShiftState done [15:35:16]opened in 1729902166 [15:35:16]opened+sec_in_day 1729988566 [15:35:16]quantity*price = 230047 [15:35:16]sum+1 = 230049 [15:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.48 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 0.00 Безнал.: 2300.48 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 144 26.10.2024 15:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75152 ФПД: 162387217883763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153522&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75152&fm=162387217883763&tin=02508201610067®Number=0000000000091691&sum=230048 [15:35:17]StoreToDocumentArchive [15:35:17]shift 512 fd 75152 [15:35:17]save to /storage/0512/doc_00075152 [15:35:17]save last doc name /storage/0512/doc_00075152 to /storage/kkm_last_doc_name [15:35:17]save OK [15:35:17]Clear old archive folders... [15:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:35:17]tlvbuf is 00933270 [15:35:17]SAM_PROTO_ClearQueue [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 09 00 00 [15:35:17]Write to MH i2c: E2 08 00 A7 3B 80 09 00 00 00 00 00 00 54 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 03 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 03 00 A7 3B 00 90 00 56 [15:35:17]RAPDU: 90 00 [15:35:17]wFMCommunicate OK [15:35:17]SAM_PROTO_ClearQueue done [15:35:17]KKMCreateOFDPacket [15:35:17]OFDProtocolAddRootSTLVToBuf [15:35:17]FM_MakeSignedData [15:35:17]FM_MakeSignedData [15:35:17]SAM_PROTO_SignData [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 0D 01 02 [15:35:17]Write to MH i2c: E2 08 00 A8 3B 80 0D 01 02 00 00 00 00 5C [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 03 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 03 00 A8 3B 00 90 00 57 [15:35:17]RAPDU: 90 00 [15:35:17]wFMCommunicate OK [15:35:17]wFMCommunicate request_size=255 [15:35:17]MH_SAM_APDU [15:35: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 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3A 0C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 90 25 01 00 35 04 06 00 93 B0 B8 70 [15:35:17]Write to MH i2c: E2 02 01 A9 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 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3A 0C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 90 25 01 00 35 04 06 00 93 B0 B8 70 00 00 B6 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:18]Read from MH i2c: E2 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 03 00 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 03 00 A9 3B 00 90 00 58 [15:35:18]RAPDU: 90 00 [15:35:18]wFMCommunicate OK [15:35:18]wFMCommunicate request_size=7 [15:35:18]MH_SAM_APDU [15:35:18]CAPDU: 80 0D 02 02 02 22 73 [15:35:18]Write to MH i2c: E2 0A 00 AA 3B 80 0D 02 02 02 00 22 73 00 00 F8 [15:35:18]Write i2c OK [15:35:18]MH_I2C_Read... [15:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:18]Read from MH i2c: E2 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 03 00 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 03 00 AA 3B 00 90 00 59 [15:35:18]RAPDU: 90 00 [15:35:18]wFMCommunicate OK [15:35:18]wFMCommunicate request_size=4 [15:35:18]MH_SAM_APDU [15:35:18]CAPDU: 80 0D 03 02 [15:35:18]Write to MH i2c: E2 08 00 AB 3B 80 0D 03 02 00 00 00 00 61 [15:35:18]Write i2c OK [15:35:18]MH_I2C_Read... [15:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:18]Read from MH i2c: E2 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 0B 00 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 0B 00 AB 3B 00 66 32 6F 87 D8 54 CE 37 90 00 21 [15:35:18]RAPDU: 66 32 6F 87 D8 54 CE 37 90 00 [15:35:18]wFMCommunicate OK [15:35:18]SAM_PROTO_SignData done [15:35:18]FM_MakeSignedData done [15:35:18]CreateOFDProtocolMessage [15:35:18]wFMCommunicate request_size=4 [15:35:18]MH_SAM_APDU [15:35:18]CAPDU: 80 11 00 00 [15:35:18]Write to MH i2c: E2 08 00 AC 3B 80 11 00 00 00 00 00 00 61 [15:35:18]Write i2c OK [15:35:18]MH_I2C_Read... [15:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:18]Read from MH i2c: E2 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 17 00 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: E2 17 00 AC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B9 [15:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:35:18]wFMCommunicate OK [15:35:18]CreateOFDProtocolMessage done [15:35:18]OFDSenderStorePacket 75152 [15:35:18]StoreOFDPacket docnum=75152 [15:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C 5F 04 01 DF 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 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3A 0C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 90 25 01 00 35 04 06 00 93 B0 B8 70 22 73 66 32 6F 87 D8 54 CE 37 [15:35:18]CheckFolder [15:35:18]dirname=/storage/ofd_packets [15:35:18]CheckFolder done [15:35:18]ProducePacketName [15:35:18]name=ofd_packets/00075152 [15:35:18]NVStorageSaveData ofd_packets/00075152 [15:35:18]File name is /storage/ofd_packets/00075152 [15:35:18]Write 298 bytes [15:35:18]NVStorageSaveData done [15:35:18]OFDSenderStorePacket done [15:35:18]KKMCreateOFDPacket done [15:35:18]NVStorageSaveData kkm_last_timestamp [15:35:18]File name is /storage/kkm_last_timestamp [15:35:18]Write 4 bytes [15:35:18]NVStorageSaveData done [15:35:18]ExternCall_PrintAddStr [15:35:18]wPrintStart [15:35:18]Write to MH i2c: 01 00 00 AD 3B E8 [15:35:18]Write i2c OK [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: 01 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: 01 07 00 [15:35:18]MH_I2C_Read... [15:35:18]Read from MH i2c: 01 07 00 AD 3B 00 00 00 00 00 FF 0F FD [15:35:18]RasterBufferAndPrint [15:35:18]line Счет N : (1)191128 [15:35:18]line ИНН: 02508201610067 [15:35:18]line Контрольно-Кассовый Чек [15:35:18]line ПРОДАЖА [15:35:18]line ТРК (МРК, ГНК) : 41 [15:35:18]line Товар: 2710194210 [15:35:18]line ДТ-К-4 [15:35:18]line 30.190 * 76.20 [15:35:18]line = 2300.48 [15:35:18]line НДС 12% НСП 1% [15:35:18]line > о реализуемом товаре [15:35:18]line ИТОГО: 2300.48 [15:35:18]line НСП 1% : 20.36 [15:35:18]line НДС 12% : 244.30 [15:35:18]line Наличными: 0.00 [15:35:18]line Безнал.: 2300.48 [15:35:18]line Место: АЗС № 142 "Партнер Нефть" [15:35:18]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:35:18]line СНО: Общий режим [15:35:18]line Чек 144 26.10.2024 15:35 [15:35:18]line Смена: 512 ФФД: 1.0 [15:35:18]line ЗНМ: 0300000089 [15:35:18]line РНМ: 0000000000091691 [15:35:18]line Версия ККМ: 001 [15:35:18]line Платежная система: O! деньги [15:35:18]line ФМ: 0000000000871795 [15:35:18]line ФД: 75152 [15:35:18]line ФПД: 162387217883763 [15:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153522&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75152&fm=162387217883763&tin=02508201610067®Number=0000000000091691&sum=230048 [15:35:18]OFD Sender: Processing packet 75152 [packets to send 13, broken 12] [15:35:18]ProducePacketName [15:35:18]name=ofd_packets/00075152 [15:35:18]OFD Sender: To server: pG, [15:35:18]CommunicateWithHost lk.salyk.kg:30040 [15:35:18]ConnectInit lk.salyk.kg [15:35:18]written 0, free lines is 4095 [15:35:18]Connected sock=10 [15:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5C 5F 04 01 DF 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 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3A 0C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 90 25 01 00 35 04 06 00 93 B0 B8 70 22 73 66 32 6F 87 D8 54 CE 37 [15:35:19]Write to MH i2c: 01 00 00 D7 3B 12 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: 01 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: 01 07 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 B7 0C DC [15:35:19]RasterBufferAndPrint [15:35:19]line [15:35:19]line [15:35:19]line [15:35:19]line [15:35:19]line [15:35:19]written 0, free lines is 3260 [15:35:19]MH_Cut [15:35:19]Write to MH i2c: D1 01 00 DE 3B 01 EB [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: D1 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: D1 01 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: D1 01 00 DE 3B 00 EA [15:35:19]Write to MH i2c: 01 00 00 DF 3B 1A [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 96 B2 47 00 33 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 38 37 31 37 39 35 10 04 04 00 90 25 01 00 F4 03 04 00 B6 B3 1C 67 B6 04 01 00 00 13 7B 2A 4E B7 39 E7 38 [15:35:19]CommunicateWithHost err = 0 [15:35:19]CheckOFDResponse [15:35:19]1017 (14) - 77093643461234 [15:35:19]1041 (16) - 0000000000871795 [15:35:19]1040 (4) - 75152 [15:35:19]1012 (4) - 26.10.2024 09:17 [15:35:19]1206 (1) - 0 [15:35:19]OFD Sender: Remove packet 75152 [15:35:19]ProducePacketName [15:35:19]name=ofd_packets/00075152 [15:35:19]NVStorageDeleteData [15:35:19]OFD Sender: No OFD packet to send [15:35:19]*** Cut start [15:35:19]*** Partial cut [15:35:19]*** CUTSNS_PIN = 1 [15:35:20]*** CUTSNS_PIN = 0 [15:35:20]*** Brake cut motor [15:35:20]Read from MH i2c: 01 [15:35:20]MH_I2C_Read... [15:35:20]*** Stop cut motor [15:35:20]*** Cut end [15:35:20]Read from MH i2c: 01 07 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: 01 07 00 DF 3B 00 00 00 00 00 FF 0F 2F [15:35:20]process_action close_receipt done [15:35:20]requested_data is exist [15:35:20]produce_requested_data [15:35:20]requested_item fm.sn is exist - process it [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 11 00 00 [15:35:20]Write to MH i2c: E2 08 00 E0 3B 80 11 00 00 00 00 00 00 95 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 17 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 17 00 E0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 ED [15:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:35:20]wFMCommunicate OK [15:35:20]requested_item fd.num is exist - process it [15:35:20]SAM_PROTO_GetFieldsCounters [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 13 00 00 [15:35:20]Write to MH i2c: E2 08 00 E1 3B 80 13 00 00 00 00 00 00 98 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 62 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 62 00 E1 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 90 25 01 00 0E 04 04 00 00 02 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 27 [15:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 90 25 01 00 0E 04 04 00 00 02 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 [15:35:20]wFMCommunicate OK [15:35:20]SAM_PROTO_GetFieldsCounters done [15:35:20]requested_item shift.num is exist - process it [15:35:20]requested_item shift.opened is exist - process it [15:35:20]req_shift_opened [15:35:20]FM_GetShiftState [15:35:20]SAM_PROTO_GetShiftState [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 13 01 00 [15:35:20]Write to MH i2c: E2 08 00 E2 3B 80 13 01 00 00 00 00 00 9A [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 0E 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 0E 00 E2 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B5 [15:35:20]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:35:20]wFMCommunicate OK [15:35:20]SAM_PROTO_GetShiftState done [15:35:20]FM_GetShiftState done [15:35:20]req_shift_opened done [15:35:20]requested_item shift.open_date is exist - process it [15:35:20]req_shift_open_date [15:35:20]req_shift_open_date done [15:35:20]produce_requested_data done [15:35:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75152,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [15:35:20]process_action_free close_receipt [15:35:20]json_value_free [15:35:20]json_value_free done [15:35:20]process_json_proto returns [15:35:20]Send response to host [15:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75152,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [15:35:20]free response buf [15:35:20]execute_script done [15:35:20]execute_script returns [15:35:20]free content buf [15:35:20]Sock 8.Close socket [15:35:20]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:35]accept exits with 9 [15:51:35]New connection [15:51:35]New thread 3066781028 created [15:51:35]Thread 3066924388 joined [15:51:35]Waiting for new connection... [15:51:35] Sock 9.Parse request [15:51:35]Sock 9.Check first char [15:51:35]Sock 9.First char is OK [15:51:35]request: POST /json_proto HTTP/1.0 [15:51:35]Method: POST [15:51:35]URL: /json_proto [15:51:35]Method is POST - this is cgi request [15:51:35]url: /json_proto [15:51:35]query_string will be loaded in cgi processing [15:51:35]execute_cgi json_proto POST (null) [15:51:35]execute_cgi path=json_proto method=POST [15:51:35]POST find Content-Length [15:51:35]Host: 172.17.39.131:8080 [15:51:35]Content-Length: 809 [15:51:35]Content-Type: application/json [15:51:35] [15:51:35]POST finish read [15:51:35]Found Content-Length = 809 [15:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:35]execute_script... [15:51: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)191129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:35]POST & json_proto [15:51:35]process_json_proto [15:51:35]json parsed OK: [15:51:35]protocol is kg_v1.0 [15:51:35]action value=close_receipt [15:51:35]process_action close_receipt [15:51:35]cmd_close_receipt [15:51:35]MH_GetDate [15:51:35]Write to MH i2c: F0 00 00 E3 3B 0D [15:51:35]Write i2c OK [15:51:35]MH_I2C_Read... [15:51:35]Read from MH i2c: F0 [15:51:35]MH_I2C_Read... [15:51:35]Read from MH i2c: F0 09 00 [15:51:35]MH_I2C_Read... [15:51:35]Read from MH i2c: F0 09 00 E3 3B 00 0D 10 1D 67 86 57 24 65 1D [15:51:35]GetLastDocTimeStamp 1729956922 [15:51:35]current date 1729957901 [15:51:35]FM_GetShiftState [15:51:35]SAM_PROTO_GetShiftState [15:51:35]wFMCommunicate request_size=4 [15:51:35]MH_SAM_APDU [15:51:35]CAPDU: 80 13 01 00 [15:51:35]Write to MH i2c: E2 08 00 E4 3B 80 13 01 00 00 00 00 00 9C [15:51:35]Write i2c OK [15:51:35]MH_I2C_Read... [15:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:35]Read from MH i2c: E2 [15:51:35]MH_I2C_Read... [15:51:35]Read from MH i2c: E2 0E 00 [15:51:35]MH_I2C_Read... [15:51:35]Read from MH i2c: E2 0E 00 E4 3B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B7 [15:51:35]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:51:35]wFMCommunicate OK [15:51:35]SAM_PROTO_GetShiftState done [15:51:35]FM_GetShiftState done [15:51:35]opened in 1729902166 [15:51:35]opened+sec_in_day 1729988566 [15:51:35]quantity*price = 150076 [15:51:35]sum+1 = 150078 [15:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 145 26.10.2024 15:51 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75153 ФПД: 158617677351076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155141&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75153&fm=158617677351076&tin=02508201610067®Number=0000000000091691&sum=150077 [15:51:36]StoreToDocumentArchive [15:51:36]shift 512 fd 75153 [15:51:36]save to /storage/0512/doc_00075153 [15:51:36]save last doc name /storage/0512/doc_00075153 to /storage/kkm_last_doc_name [15:51:36]save OK [15:51:36]Clear old archive folders... [15:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:51:36]tlvbuf is 00932C10 [15:51:36]SAM_PROTO_ClearQueue [15:51:36]wFMCommunicate request_size=4 [15:51:36]MH_SAM_APDU [15:51:36]CAPDU: 80 09 00 00 [15:51:36]Write to MH i2c: E2 08 00 F1 3B 80 09 00 00 00 00 00 00 9E [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:36]Read from MH i2c: E2 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 03 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 03 00 F1 3B 00 90 00 A0 [15:51:36]RAPDU: 90 00 [15:51:36]wFMCommunicate OK [15:51:36]SAM_PROTO_ClearQueue done [15:51:36]KKMCreateOFDPacket [15:51:36]OFDProtocolAddRootSTLVToBuf [15:51:36]FM_MakeSignedData [15:51:36]FM_MakeSignedData [15:51:36]SAM_PROTO_SignData [15:51:36]wFMCommunicate request_size=4 [15:51:36]MH_SAM_APDU [15:51:36]CAPDU: 80 0D 01 02 [15:51:36]Write to MH i2c: E2 08 00 F2 3B 80 0D 01 02 00 00 00 00 A6 [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:36]Read from MH i2c: E2 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 03 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 03 00 F2 3B 00 90 00 A1 [15:51:36]RAPDU: 90 00 [15:51:36]wFMCommunicate OK [15:51:36]wFMCommunicate request_size=255 [15:51:36]MH_SAM_APDU [15:51:36]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 D0 A2 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 91 00 00 00 F4 03 04 00 0D 10 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 91 25 01 [15:51:36]Write to MH i2c: E2 02 01 F3 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 D0 A2 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 91 00 00 00 F4 03 04 00 0D 10 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 91 25 01 00 00 FC [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:37]Read from MH i2c: E2 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 03 00 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 03 00 F3 3B 00 90 00 A2 [15:51:37]RAPDU: 90 00 [15:51:37]wFMCommunicate OK [15:51:37]wFMCommunicate request_size=16 [15:51:37]MH_SAM_APDU [15:51:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 90 43 0E 50 48 A4 [15:51:37]Write to MH i2c: E2 13 00 F4 3B 80 0D 02 02 0B 00 00 35 04 06 00 90 43 0E 50 48 A4 00 00 1B [15:51:37]Write i2c OK [15:51:37]MH_I2C_Read... [15:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:37]Read from MH i2c: E2 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 03 00 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 03 00 F4 3B 00 90 00 A3 [15:51:37]RAPDU: 90 00 [15:51:37]wFMCommunicate OK [15:51:37]wFMCommunicate request_size=4 [15:51:37]MH_SAM_APDU [15:51:37]CAPDU: 80 0D 03 02 [15:51:37]Write to MH i2c: E2 08 00 F5 3B 80 0D 03 02 00 00 00 00 AB [15:51:37]Write i2c OK [15:51:37]MH_I2C_Read... [15:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:37]Read from MH i2c: E2 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 0B 00 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 0B 00 F5 3B 00 20 30 27 C8 E8 3E BA 74 90 00 3F [15:51:37]RAPDU: 20 30 27 C8 E8 3E BA 74 90 00 [15:51:37]wFMCommunicate OK [15:51:37]SAM_PROTO_SignData done [15:51:37]FM_MakeSignedData done [15:51:37]CreateOFDProtocolMessage [15:51:37]wFMCommunicate request_size=4 [15:51:37]MH_SAM_APDU [15:51:37]CAPDU: 80 11 00 00 [15:51:37]Write to MH i2c: E2 08 00 F6 3B 80 11 00 00 00 00 00 00 AB [15:51:37]Write i2c OK [15:51:37]MH_I2C_Read... [15:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:37]Read from MH i2c: E2 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 17 00 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: E2 17 00 F6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 03 [15:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:51:37]wFMCommunicate OK [15:51:37]CreateOFDProtocolMessage done [15:51:37]OFDSenderStorePacket 75153 [15:51:37]StoreOFDPacket docnum=75153 [15:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 D1 15 0D 01 2E DD 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 D0 A2 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 91 00 00 00 F4 03 04 00 0D 10 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 91 25 01 00 35 04 06 00 90 43 0E 50 48 A4 20 30 27 C8 E8 3E BA 74 [15:51:37]CheckFolder [15:51:37]dirname=/storage/ofd_packets [15:51:37]CheckFolder done [15:51:37]ProducePacketName [15:51:37]name=ofd_packets/00075153 [15:51:37]NVStorageSaveData ofd_packets/00075153 [15:51:37]File name is /storage/ofd_packets/00075153 [15:51:37]Write 307 bytes [15:51:37]NVStorageSaveData done [15:51:37]OFDSenderStorePacket done [15:51:37]KKMCreateOFDPacket done [15:51:37]NVStorageSaveData kkm_last_timestamp [15:51:37]File name is /storage/kkm_last_timestamp [15:51:37]Write 4 bytes [15:51:37]NVStorageSaveData done [15:51:37]ExternCall_PrintAddStr [15:51:37]wPrintStart [15:51:37]Write to MH i2c: 01 00 00 F7 3B 32 [15:51:37]OFD Sender: Processing packet 75153 [packets to send 13, broken 12] [15:51:37]ProducePacketName [15:51:37]name=ofd_packets/00075153 [15:51:37]OFD Sender: To server: pG, [15:51:37]CommunicateWithHost lk.salyk.kg:30040 [15:51:37]ConnectInit lk.salyk.kg [15:51:37]Write i2c OK [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: 01 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: 01 07 00 [15:51:37]MH_I2C_Read... [15:51:37]Read from MH i2c: 01 07 00 F7 3B 00 00 00 00 00 FF 0F 47 [15:51:37]RasterBufferAndPrint [15:51:37]line Счет N : (1)191129 [15:51:37]line ИНН: 02508201610067 [15:51:37]line Контрольно-Кассовый Чек [15:51:37]line ПРОДАЖА [15:51:37]line ТРК (МРК, ГНК) : 42 [15:51:37]line Товар: 2710194240 [15:51:37]line D-ENERGY ДТ-К-2 [15:51:37]line 19.440 * 77.20 [15:51:37]line = 1500.77 [15:51:37]line НДС 12% НСП 1% [15:51:37]line > о реализуемом товаре [15:51:37]line ИТОГО: 1500.77 [15:51:37]line НСП 1% : 13.28 [15:51:37]line НДС 12% : 159.37 [15:51:37]line Наличными: 0.00 [15:51:37]line Безнал.: 1500.77 [15:51:37]line Место: АЗС № 142 "Партнер Нефть" [15:51:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [15:51:37]line СНО: Общий режим [15:51:37]line Чек 145 26.10.2024 15:51 [15:51:37]line Смена: 512 ФФД: 1.0 [15:51:37]line ЗНМ: 0300000089 [15:51:37]line РНМ: 0000000000091691 [15:51:37]line Версия ККМ: 001 [15:51:37]line Платежная система: O! деньги [15:51:37]line ФМ: 0000000000871795 [15:51:37]line ФД: 75153 [15:51:37]line ФПД: 158617677351076 [15:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155141&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75153&fm=158617677351076&tin=02508201610067®Number=0000000000091691&sum=150077 [15:51:37]Connected sock=10 [15:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 D1 15 0D 01 2E DD 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 D0 A2 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 91 00 00 00 F4 03 04 00 0D 10 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 91 25 01 00 35 04 06 00 90 43 0E 50 48 A4 20 30 27 C8 E8 3E BA 74 [15:51:37]written 0, free lines is 4095 [15:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 08 E6 47 00 25 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 38 37 31 37 39 35 10 04 04 00 91 25 01 00 F4 03 04 00 88 B7 1C 67 B6 04 01 00 00 EA F9 CC 73 54 B2 CA 88 [15:51:37]CommunicateWithHost err = 0 [15:51:37]CheckOFDResponse [15:51:37]1017 (14) - 77093643461234 [15:51:37]1041 (16) - 0000000000871795 [15:51:37]1040 (4) - 75153 [15:51:37]1012 (4) - 26.10.2024 09:34 [15:51:37]1206 (1) - 0 [15:51:37]OFD Sender: Remove packet 75153 [15:51:37]ProducePacketName [15:51:37]name=ofd_packets/00075153 [15:51:37]NVStorageDeleteData [15:51:38]Write to MH i2c: 01 00 00 21 3C 5D [15:51:38]Write i2c OK [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: 01 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: 01 07 00 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: 01 07 00 21 3C 00 00 00 00 00 B2 0C 22 [15:51:38]RasterBufferAndPrint [15:51:38]line [15:51:38]line [15:51:38]line [15:51:38]line [15:51:38]line [15:51:38]written 0, free lines is 3256 [15:51:38]MH_Cut [15:51:38]Write to MH i2c: D1 01 00 28 3C 01 36 [15:51:38]Write i2c OK [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: D1 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: D1 01 00 [15:51:38]MH_I2C_Read... [15:51:38]Read from MH i2c: D1 01 00 28 3C 00 35 [15:51:38]Write to MH i2c: 01 00 00 29 3C 65 [15:51:38]Write i2c OK [15:51:38]MH_I2C_Read... [15:51:38]OFD Sender: No OFD packet to send [15:51:38]*** Cut start [15:51:38]*** Partial cut [15:51:38]*** CUTSNS_PIN = 1 [15:51:39]*** CUTSNS_PIN = 0 [15:51:39]*** Brake cut motor [15:51:39]Read from MH i2c: 01 [15:51:39]MH_I2C_Read... [15:51:39]*** Stop cut motor [15:51:39]*** Cut end [15:51:39]Read from MH i2c: 01 07 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: 01 07 00 29 3C 00 00 00 00 00 FF 0F 7A [15:51:39]process_action close_receipt done [15:51:39]requested_data is exist [15:51:39]produce_requested_data [15:51:39]requested_item fm.sn is exist - process it [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 11 00 00 [15:51:39]Write to MH i2c: E2 08 00 2A 3C 80 11 00 00 00 00 00 00 E0 [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 17 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 17 00 2A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 38 [15:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [15:51:39]wFMCommunicate OK [15:51:39]requested_item fd.num is exist - process it [15:51:39]SAM_PROTO_GetFieldsCounters [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 13 00 00 [15:51:39]Write to MH i2c: E2 08 00 2B 3C 80 13 00 00 00 00 00 00 E3 [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 62 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 62 00 2B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 91 25 01 00 0E 04 04 00 00 02 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 76 [15:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 91 25 01 00 0E 04 04 00 00 02 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 [15:51:39]wFMCommunicate OK [15:51:39]SAM_PROTO_GetFieldsCounters done [15:51:39]requested_item shift.num is exist - process it [15:51:39]requested_item shift.opened is exist - process it [15:51:39]req_shift_opened [15:51:39]FM_GetShiftState [15:51:39]SAM_PROTO_GetShiftState [15:51:39]wFMCommunicate request_size=4 [15:51:39]MH_SAM_APDU [15:51:39]CAPDU: 80 13 01 00 [15:51:39]Write to MH i2c: E2 08 00 2C 3C 80 13 01 00 00 00 00 00 E5 [15:51:39]Write i2c OK [15:51:39]MH_I2C_Read... [15:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:39]Read from MH i2c: E2 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 0E 00 [15:51:39]MH_I2C_Read... [15:51:39]Read from MH i2c: E2 0E 00 2C 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 00 [15:51:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [15:51:39]wFMCommunicate OK [15:51:39]SAM_PROTO_GetShiftState done [15:51:39]FM_GetShiftState done [15:51:39]req_shift_opened done [15:51:39]requested_item shift.open_date is exist - process it [15:51:39]req_shift_open_date [15:51:39]req_shift_open_date done [15:51:39]produce_requested_data done [15:51:39]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75153,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [15:51:39]process_action_free close_receipt [15:51:39]json_value_free [15:51:39]json_value_free done [15:51:39]process_json_proto returns [15:51:39]Send response to host [15:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75153,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [15:51:39]free response buf [15:51:39]execute_script done [15:51:39]execute_script returns [15:51:39]free content buf [15:51:39]Sock 9.Close socket [15:51:39]Sock 9.Thread stoped [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:46]accept exits with 8 [16:01:46]New connection [16:01:46]New thread 3066924388 created [16:01:46]Thread 3066781028 joined [16:01:46]Waiting for new connection... [16:01:46] Sock 8.Parse request [16:01:46]Sock 8.Check first char [16:01:46]Sock 8.First char is OK [16:01:46]request: POST /json_proto HTTP/1.0 [16:01:46]Method: POST [16:01:46]URL: /json_proto [16:01:46]Method is POST - this is cgi request [16:01:46]url: /json_proto [16:01:46]query_string will be loaded in cgi processing [16:01:46]execute_cgi json_proto POST (null) [16:01:46]execute_cgi path=json_proto method=POST [16:01:46]POST find Content-Length [16:01:46]Host: 172.17.39.131:8080 [16:01:46]Content-Length: 682 [16:01:46]Content-Type: application/json [16:01:46] [16:01:46]POST finish read [16:01:46]Found Content-Length = 682 [16:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:01:46]execute_script... [16:01: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)191130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:01:46]POST & json_proto [16:01:46]process_json_proto [16:01:46]json parsed OK: [16:01:46]protocol is kg_v1.0 [16:01:46]action value=close_receipt [16:01:46]process_action close_receipt [16:01:46]cmd_close_receipt [16:01:46]MH_GetDate [16:01:46]Write to MH i2c: F0 00 00 2D 3C 58 [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 09 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: F0 09 00 2D 3C 00 6F 12 1D 67 86 57 24 65 CC [16:01:46]GetLastDocTimeStamp 1729957901 [16:01:46]current date 1729958511 [16:01:46]FM_GetShiftState [16:01:46]SAM_PROTO_GetShiftState [16:01:46]wFMCommunicate request_size=4 [16:01:46]MH_SAM_APDU [16:01:46]CAPDU: 80 13 01 00 [16:01:46]Write to MH i2c: E2 08 00 2E 3C 80 13 01 00 00 00 00 00 E7 [16:01:46]Write i2c OK [16:01:46]MH_I2C_Read... [16:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:46]Read from MH i2c: E2 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 0E 00 [16:01:46]MH_I2C_Read... [16:01:46]Read from MH i2c: E2 0E 00 2E 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 02 [16:01:46]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:01:46]wFMCommunicate OK [16:01:46]SAM_PROTO_GetShiftState done [16:01:46]FM_GetShiftState done [16:01:46]opened in 1729902166 [16:01:46]opened+sec_in_day 1729988566 [16:01:46]quantity*price = 200031 [16:01:46]sum+1 = 200032 [16:01: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 146 26.10.2024 16:01 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75154 ФПД: 36110789419233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160151&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75154&fm=36110789419233&tin=02508201610067®Number=0000000000091691&sum=200000 [16:01:47]StoreToDocumentArchive [16:01:47]shift 512 fd 75154 [16:01:47]save to /storage/0512/doc_00075154 [16:01:47]save last doc name /storage/0512/doc_00075154 to /storage/kkm_last_doc_name [16:01:47]save OK [16:01:47]Clear old archive folders... [16:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:47]tlvbuf is 00868D90 [16:01:47]SAM_PROTO_ClearQueue [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 09 00 00 [16:01:47]Write to MH i2c: E2 08 00 3B 3C 80 09 00 00 00 00 00 00 E9 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 3B 3C 00 90 00 EB [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_ClearQueue done [16:01:47]KKMCreateOFDPacket [16:01:47]OFDProtocolAddRootSTLVToBuf [16:01:47]FM_MakeSignedData [16:01:47]FM_MakeSignedData [16:01:47]SAM_PROTO_SignData [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 01 02 [16:01:47]Write to MH i2c: E2 08 00 3C 3C 80 0D 01 02 00 00 00 00 F1 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 3C 3C 00 90 00 EC [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=255 [16:01:47]MH_SAM_APDU [16:01: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 92 00 00 00 F4 03 04 00 6F 12 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 92 25 01 00 35 04 06 00 20 [16:01:47]Write to MH i2c: E2 02 01 3D 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 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 92 00 00 00 F4 03 04 00 6F 12 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 92 25 01 00 35 04 06 00 20 00 00 39 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 3D 3C 00 90 00 ED [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=10 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 02 02 05 D7 B2 C6 A0 E1 [16:01:47]Write to MH i2c: E2 0D 00 3E 3C 80 0D 02 02 05 00 D7 B2 C6 A0 E1 00 00 CE [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 03 00 3E 3C 00 90 00 EE [16:01:47]RAPDU: 90 00 [16:01:47]wFMCommunicate OK [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 0D 03 02 [16:01:47]Write to MH i2c: E2 08 00 3F 3C 80 0D 03 02 00 00 00 00 F6 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0B 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0B 00 3F 3C 00 B0 9C 5F 81 4E EE FF 0B 90 00 69 [16:01:47]RAPDU: B0 9C 5F 81 4E EE FF 0B 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_SignData done [16:01:47]FM_MakeSignedData done [16:01:47]CreateOFDProtocolMessage [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 11 00 00 [16:01:47]Write to MH i2c: E2 08 00 40 3C 80 11 00 00 00 00 00 00 F6 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 17 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 17 00 40 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4E [16:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:01:47]wFMCommunicate OK [16:01:47]CreateOFDProtocolMessage done [16:01:47]OFDSenderStorePacket 75154 [16:01:47]StoreOFDPacket docnum=75154 [16:01:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 53 AF 07 01 E6 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 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 92 00 00 00 F4 03 04 00 6F 12 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 92 25 01 00 35 04 06 00 20 D7 B2 C6 A0 E1 B0 9C 5F 81 4E EE FF 0B [16:01:47]CheckFolder [16:01:47]dirname=/storage/ofd_packets [16:01:47]CheckFolder done [16:01:47]ProducePacketName [16:01:47]name=ofd_packets/00075154 [16:01:47]NVStorageSaveData ofd_packets/00075154 [16:01:47]File name is /storage/ofd_packets/00075154 [16:01:47]Write 301 bytes [16:01:47]NVStorageSaveData done [16:01:47]OFDSenderStorePacket done [16:01:47]KKMCreateOFDPacket done [16:01:47]NVStorageSaveData kkm_last_timestamp [16:01:47]File name is /storage/kkm_last_timestamp [16:01:47]Write 4 bytes [16:01:47]NVStorageSaveData done [16:01:47]ExternCall_PrintAddStr [16:01:47]wPrintStart [16:01:47]Write to MH i2c: 01 00 00 41 3C 7D [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 07 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: 01 07 00 41 3C 00 00 00 00 00 FF 0F 92 [16:01:47]RasterBufferAndPrint [16:01:47]line Счет N : (1)191130 [16:01:47]line ИНН: 02508201610067 [16:01:47]line Контрольно-Кассовый Чек [16:01:47]line ПРОДАЖА [16:01:47]line ТРК (МРК, ГНК) : 21 [16:01:47]line Товар: 2710124130 [16:01:47]line Аи-92-К-5 [16:01:47]line 29.900 * 66.90 [16:01:47]line = 2000.31 [16:01:47]line НДС 12% НСП 1% [16:01:47]line > о реализуемом товаре [16:01:47]line ОКРУГЛЕНИЕ: -0.31 [16:01:47]line ИТОГО: 2000.00 [16:01:47]line Внесено: 2000.00 [16:01:47]line СДАЧА: 0.00 [16:01:47]line НСП 1% : 17.70 [16:01:47]line НДС 12% : 212.42 [16:01:47]line Наличными: 2000.00 [16:01:47]line Безнал.: 0.00 [16:01:47]line Место: АЗС № 142 "Партнер Нефть" [16:01:47]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:01:47]line СНО: Общий режим [16:01:47]line Чек 146 26.10.2024 16:01 [16:01:47]line Смена: 512 ФФД: 1.0 [16:01:47]line ЗНМ: 0300000089 [16:01:47]line РНМ: 0000000000091691 [16:01:47]line Версия ККМ: 001 [16:01:47]line ФМ: 0000000000871795 [16:01:47]line ФД: 75154 [16:01:47]line ФПД: 36110789419233 [16:01:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160151&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75154&fm=36110789419233&tin=02508201610067®Number=0000000000091691&sum=200000 [16:01:47]written 0, free lines is 4095 [16:01:47]OFD Sender: Processing packet 75154 [packets to send 13, broken 12] [16:01:47]ProducePacketName [16:01:47]name=ofd_packets/00075154 [16:01:47]OFD Sender: To server: pG, [16:01:47]CommunicateWithHost lk.salyk.kg:30040 [16:01:47]ConnectInit lk.salyk.kg [16:01:47]Connected sock=10 [16:01:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 53 AF 07 01 E6 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 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 92 00 00 00 F4 03 04 00 6F 12 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 92 25 01 00 35 04 06 00 20 D7 B2 C6 A0 E1 B0 9C 5F 81 4E EE FF 0B [16:01:48]Write to MH i2c: 01 00 00 6C 3C A8 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 07 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: 01 07 00 6C 3C 00 00 00 00 00 A7 0C 62 [16:01:48]RasterBufferAndPrint [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]line [16:01:48]written 0, free lines is 3245 [16:01:48]MH_Cut [16:01:48]Write to MH i2c: D1 01 00 73 3C 01 81 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 01 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: D1 01 00 73 3C 00 80 [16:01:48]Write to MH i2c: 01 00 00 74 3C B0 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E7 35 47 00 A2 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 38 37 31 37 39 35 10 04 04 00 92 25 01 00 F4 03 04 00 EB B9 1C 67 B6 04 01 00 00 02 02 A7 4C 8B C4 67 38 [16:01:48]CommunicateWithHost err = 0 [16:01:48]CheckOFDResponse [16:01:48]1017 (14) - 77093643461234 [16:01:48]1041 (16) - 0000000000871795 [16:01:48]1040 (4) - 75154 [16:01:48]1012 (4) - 26.10.2024 09:44 [16:01:48]1206 (1) - 0 [16:01:48]OFD Sender: Remove packet 75154 [16:01:48]ProducePacketName [16:01:48]name=ofd_packets/00075154 [16:01:48]NVStorageDeleteData [16:01:48]OFD Sender: No OFD packet to send [16:01:49]*** Cut start [16:01:49]*** Partial cut [16:01:49]*** CUTSNS_PIN = 1 [16:01:49]*** CUTSNS_PIN = 0 [16:01:49]*** Brake cut motor [16:01:49]Read from MH i2c: 01 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 74 3C 00 00 00 00 00 FF 0F C5 [16:01:49]process_action close_receipt done [16:01:49]requested_data is exist [16:01:49]produce_requested_data [16:01:49]requested_item fm.sn is exist - process it [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 11 00 00 [16:01:49]Write to MH i2c: E2 08 00 75 3C 80 11 00 00 00 00 00 00 2B [16:01:49]*** Stop cut motor [16:01:49]*** Cut end [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 17 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 17 00 75 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 83 [16:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:01:49]wFMCommunicate OK [16:01:49]requested_item fd.num is exist - process it [16:01:49]SAM_PROTO_GetFieldsCounters [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 13 00 00 [16:01:49]Write to MH i2c: E2 08 00 76 3C 80 13 00 00 00 00 00 00 2E [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 62 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 62 00 76 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 92 25 01 00 0E 04 04 00 00 02 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 C5 [16:01:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 92 25 01 00 0E 04 04 00 00 02 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 [16:01:49]wFMCommunicate OK [16:01:49]SAM_PROTO_GetFieldsCounters done [16:01:49]requested_item shift.num is exist - process it [16:01:49]requested_item shift.opened is exist - process it [16:01:49]req_shift_opened [16:01:49]FM_GetShiftState [16:01:49]SAM_PROTO_GetShiftState [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 13 01 00 [16:01:49]Write to MH i2c: E2 08 00 77 3C 80 13 01 00 00 00 00 00 30 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 77 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 4B [16:01:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_GetShiftState done [16:01:50]FM_GetShiftState done [16:01:50]req_shift_opened done [16:01:50]requested_item shift.open_date is exist - process it [16:01:50]req_shift_open_date [16:01:50]req_shift_open_date done [16:01:50]produce_requested_data done [16:01:50]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75154,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:01:50]process_action_free close_receipt [16:01:50]json_value_free [16:01:50]json_value_free done [16:01:50]process_json_proto returns [16:01:50]Send response to host [16:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75154,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:01:50]free response buf [16:01:50]execute_script done [16:01:50]execute_script returns [16:01:50]free content buf [16:01:50]Sock 8.Close socket [16:01:50]Sock 8.Thread stoped [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:23]accept exits with 9 [16:09:23]New connection [16:09:23]New thread 3066781028 created [16:09:23]Thread 3066924388 joined [16:09:23]Waiting for new connection... [16:09:23] Sock 9.Parse request [16:09:23]Sock 9.Check first char [16:09:23]Sock 9.First char is OK [16:09:23]request: POST /json_proto HTTP/1.0 [16:09:23]Method: POST [16:09:23]URL: /json_proto [16:09:23]Method is POST - this is cgi request [16:09:23]url: /json_proto [16:09:23]query_string will be loaded in cgi processing [16:09:23]execute_cgi json_proto POST (null) [16:09:23]execute_cgi path=json_proto method=POST [16:09:23]POST find Content-Length [16:09:23]Host: 172.17.39.131:8080 [16:09:23]Content-Length: 678 [16:09:23]Content-Type: application/json [16:09:23] [16:09:23]POST finish read [16:09:23]Found Content-Length = 678 [16:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:23]execute_script... [16:09:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:23]POST & json_proto [16:09:23]process_json_proto [16:09:23]json parsed OK: [16:09:23]protocol is kg_v1.0 [16:09:23]action value=close_receipt [16:09:23]process_action close_receipt [16:09:23]cmd_close_receipt [16:09:23]MH_GetDate [16:09:23]Write to MH i2c: F0 00 00 78 3C A3 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: F0 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: F0 09 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: F0 09 00 78 3C 00 39 14 1D 67 86 57 24 65 E3 [16:09:23]GetLastDocTimeStamp 1729958511 [16:09:23]current date 1729958969 [16:09:23]FM_GetShiftState [16:09:23]SAM_PROTO_GetShiftState [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 13 01 00 [16:09:23]Write to MH i2c: E2 08 00 79 3C 80 13 01 00 00 00 00 00 32 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0E 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0E 00 79 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 4D [16:09:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:09:23]wFMCommunicate OK [16:09:23]SAM_PROTO_GetShiftState done [16:09:23]FM_GetShiftState done [16:09:23]opened in 1729902166 [16:09:23]opened+sec_in_day 1729988566 [16:09:23]quantity*price = 75061 [16:09:23]sum+1 = 75063 [16:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 147 26.10.2024 16:09 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75155 ФПД: 139855395970945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160929&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75155&fm=139855395970945&tin=02508201610067®Number=0000000000091691&sum=75000 [16:09:24]StoreToDocumentArchive [16:09:24]shift 512 fd 75155 [16:09:24]save to /storage/0512/doc_00075155 [16:09:24]save last doc name /storage/0512/doc_00075155 to /storage/kkm_last_doc_name [16:09:24]save OK [16:09:24]Clear old archive folders... [16:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:24]tlvbuf is 00835F80 [16:09:24]SAM_PROTO_ClearQueue [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 09 00 00 [16:09:24]Write to MH i2c: E2 08 00 86 3C 80 09 00 00 00 00 00 00 34 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 03 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 03 00 86 3C 00 90 00 36 [16:09:24]RAPDU: 90 00 [16:09:24]wFMCommunicate OK [16:09:24]SAM_PROTO_ClearQueue done [16:09:24]KKMCreateOFDPacket [16:09:24]OFDProtocolAddRootSTLVToBuf [16:09:24]FM_MakeSignedData [16:09:24]FM_MakeSignedData [16:09:24]SAM_PROTO_SignData [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 0D 01 02 [16:09:24]Write to MH i2c: E2 08 00 87 3C 80 0D 01 02 00 00 00 00 3C [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 03 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 03 00 87 3C 00 90 00 37 [16:09:24]RAPDU: 90 00 [16:09:24]wFMCommunicate OK [16:09:24]wFMCommunicate request_size=255 [16:09:24]MH_SAM_APDU [16:09: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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 39 14 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 93 25 01 00 35 04 06 00 7F [16:09:24]Write to MH i2c: E2 02 01 88 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 39 14 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 93 25 01 00 35 04 06 00 7F 00 00 97 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 03 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 03 00 88 3C 00 90 00 38 [16:09:25]RAPDU: 90 00 [16:09:25]wFMCommunicate OK [16:09:25]wFMCommunicate request_size=10 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 0D 02 02 05 32 9F 32 5F 81 [16:09:25]Write to MH i2c: E2 0D 00 89 3C 80 0D 02 02 05 00 32 9F 32 5F 81 00 00 2C [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 03 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [16:09:25]RAPDU: 90 00 [16:09:25]wFMCommunicate OK [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 0D 03 02 [16:09:25]Write to MH i2c: E2 08 00 8A 3C 80 0D 03 02 00 00 00 00 41 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0B 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 0B 00 8A 3C 00 F1 2B 05 08 CE 30 77 F9 90 00 D9 [16:09:25]RAPDU: F1 2B 05 08 CE 30 77 F9 90 00 [16:09:25]wFMCommunicate OK [16:09:25]SAM_PROTO_SignData done [16:09:25]FM_MakeSignedData done [16:09:25]CreateOFDProtocolMessage [16:09:25]wFMCommunicate request_size=4 [16:09:25]MH_SAM_APDU [16:09:25]CAPDU: 80 11 00 00 [16:09:25]Write to MH i2c: E2 08 00 8B 3C 80 11 00 00 00 00 00 00 41 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:25]Read from MH i2c: E2 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: E2 17 00 8B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 99 [16:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:09:25]wFMCommunicate OK [16:09:25]CreateOFDProtocolMessage done [16:09:25]OFDSenderStorePacket 75155 [16:09:25]StoreOFDPacket docnum=75155 [16:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 68 83 07 01 E4 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 39 14 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 93 25 01 00 35 04 06 00 7F 32 9F 32 5F 81 F1 2B 05 08 CE 30 77 F9 [16:09:25]CheckFolder [16:09:25]dirname=/storage/ofd_packets [16:09:25]CheckFolder done [16:09:25]ProducePacketName [16:09:25]name=ofd_packets/00075155 [16:09:25]NVStorageSaveData ofd_packets/00075155 [16:09:25]File name is /storage/ofd_packets/00075155 [16:09:25]Write 301 bytes [16:09:25]NVStorageSaveData done [16:09:25]OFDSenderStorePacket done [16:09:25]KKMCreateOFDPacket done [16:09:25]NVStorageSaveData kkm_last_timestamp [16:09:25]File name is /storage/kkm_last_timestamp [16:09:25]Write 4 bytes [16:09:25]NVStorageSaveData done [16:09:25]ExternCall_PrintAddStr [16:09:25]wPrintStart [16:09:25]Write to MH i2c: 01 00 00 8C 3C C8 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 8C 3C 00 00 00 00 00 FF 0F DD [16:09:25]RasterBufferAndPrint [16:09:25]line Счет N : (1)191131 [16:09:25]line ИНН: 02508201610067 [16:09:25]line Контрольно-Кассовый Чек [16:09:25]line ПРОДАЖА [16:09:25]line ТРК (МРК, ГНК) : 21 [16:09:25]line Товар: 2710124130 [16:09:25]line Аи-92-К-5 [16:09:25]line 11.220 * 66.90 [16:09:25]line = 750.62 [16:09:25]line НДС 12% НСП 1% [16:09:25]line > о реализуемом товаре [16:09:25]line ОКРУГЛЕНИЕ: -0.62 [16:09:25]line ИТОГО: 750.00 [16:09:25]line Внесено: 750.00 [16:09:25]line СДАЧА: 0.00 [16:09:25]line НСП 1% : 6.64 [16:09:25]line НДС 12% : 79.71 [16:09:25]line Наличными: 750.00 [16:09:25]line Безнал.: 0.00 [16:09:25]line Место: АЗС № 142 "Партнер Нефть" [16:09:25]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:09:25]line СНО: Общий режим [16:09:25]line Чек 147 26.10.2024 16:09 [16:09:25]line Смена: 512 ФФД: 1.0 [16:09:25]line ЗНМ: 0300000089 [16:09:25]line РНМ: 0000000000091691 [16:09:25]line Версия ККМ: 001 [16:09:25]line ФМ: 0000000000871795 [16:09:25]line ФД: 75155 [16:09:25]line ФПД: 139855395970945 [16:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160929&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75155&fm=139855395970945&tin=02508201610067®Number=0000000000091691&sum=75000 [16:09:25]OFD Sender: Processing packet 75155 [packets to send 13, broken 12] [16:09:25]ProducePacketName [16:09:25]name=ofd_packets/00075155 [16:09:25]OFD Sender: To server: pG, [16:09:25]CommunicateWithHost lk.salyk.kg:30040 [16:09:25]ConnectInit lk.salyk.kg [16:09:25]written 0, free lines is 4095 [16:09:25]Connected sock=10 [16:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 68 83 07 01 E4 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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 39 14 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 93 25 01 00 35 04 06 00 7F 32 9F 32 5F 81 F1 2B 05 08 CE 30 77 F9 [16:09:26]Write to MH i2c: 01 00 00 B7 3C F3 [16:09:26]Write i2c OK [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: 01 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: 01 07 00 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: 01 07 00 B7 3C 00 00 00 00 00 A4 0C AA [16:09:26]RasterBufferAndPrint [16:09:26]line [16:09:26]line [16:09:26]line [16:09:26]line [16:09:26]line [16:09:26]written 0, free lines is 3242 [16:09:26]MH_Cut [16:09:26]Write to MH i2c: D1 01 00 BE 3C 01 CC [16:09:26]Write i2c OK [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: D1 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: D1 01 00 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: D1 01 00 BE 3C 00 CB [16:09:26]Write to MH i2c: 01 00 00 BF 3C FB [16:09:26]Write i2c OK [16:09:26]MH_I2C_Read... [16:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 71 F9 47 00 D9 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 38 37 31 37 39 35 10 04 04 00 93 25 01 00 F4 03 04 00 B5 BB 1C 67 B6 04 01 00 00 37 BC 23 6F E1 D1 9E A4 [16:09:26]CommunicateWithHost err = 0 [16:09:26]CheckOFDResponse [16:09:26]1017 (14) - 77093643461234 [16:09:26]1041 (16) - 0000000000871795 [16:09:26]1040 (4) - 75155 [16:09:26]1012 (4) - 26.10.2024 09:51 [16:09:26]1206 (1) - 0 [16:09:26]OFD Sender: Remove packet 75155 [16:09:26]ProducePacketName [16:09:26]name=ofd_packets/00075155 [16:09:26]NVStorageDeleteData [16:09:26]OFD Sender: No OFD packet to send [16:09:26]*** Cut start [16:09:26]*** Partial cut [16:09:26]*** CUTSNS_PIN = 1 [16:09:26]*** CUTSNS_PIN = 0 [16:09:27]*** Brake cut motor [16:09:27]Read from MH i2c: 01 [16:09:27]MH_I2C_Read... [16:09:27]*** Stop cut motor [16:09:27]*** Cut end [16:09:27]Read from MH i2c: 01 07 00 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: 01 07 00 BF 3C 00 00 00 00 00 FF 0F 10 [16:09:27]process_action close_receipt done [16:09:27]requested_data is exist [16:09:27]produce_requested_data [16:09:27]requested_item fm.sn is exist - process it [16:09:27]wFMCommunicate request_size=4 [16:09:27]MH_SAM_APDU [16:09:27]CAPDU: 80 11 00 00 [16:09:27]Write to MH i2c: E2 08 00 C0 3C 80 11 00 00 00 00 00 00 76 [16:09:27]Write i2c OK [16:09:27]MH_I2C_Read... [16:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:27]Read from MH i2c: E2 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 17 00 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 17 00 C0 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CE [16:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:09:27]wFMCommunicate OK [16:09:27]requested_item fd.num is exist - process it [16:09:27]SAM_PROTO_GetFieldsCounters [16:09:27]wFMCommunicate request_size=4 [16:09:27]MH_SAM_APDU [16:09:27]CAPDU: 80 13 00 00 [16:09:27]Write to MH i2c: E2 08 00 C1 3C 80 13 00 00 00 00 00 00 79 [16:09:27]Write i2c OK [16:09:27]MH_I2C_Read... [16:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:27]Read from MH i2c: E2 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 62 00 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 62 00 C1 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 93 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 93 25 01 00 0E 04 04 00 00 02 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 [16:09:27]wFMCommunicate OK [16:09:27]SAM_PROTO_GetFieldsCounters done [16:09:27]requested_item shift.num is exist - process it [16:09:27]requested_item shift.opened is exist - process it [16:09:27]req_shift_opened [16:09:27]FM_GetShiftState [16:09:27]SAM_PROTO_GetShiftState [16:09:27]wFMCommunicate request_size=4 [16:09:27]MH_SAM_APDU [16:09:27]CAPDU: 80 13 01 00 [16:09:27]Write to MH i2c: E2 08 00 C2 3C 80 13 01 00 00 00 00 00 7B [16:09:27]Write i2c OK [16:09:27]MH_I2C_Read... [16:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:27]Read from MH i2c: E2 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 0E 00 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 0E 00 C2 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 96 [16:09:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:09:27]wFMCommunicate OK [16:09:27]SAM_PROTO_GetShiftState done [16:09:27]FM_GetShiftState done [16:09:27]req_shift_opened done [16:09:27]requested_item shift.open_date is exist - process it [16:09:27]req_shift_open_date [16:09:27]req_shift_open_date done [16:09:27]produce_requested_data done [16:09:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75155,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:09:27]process_action_free close_receipt [16:09:27]json_value_free [16:09:27]json_value_free done [16:09:27]process_json_proto returns [16:09:27]Send response to host [16:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75155,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:09:27]free response buf [16:09:27]execute_script done [16:09:27]execute_script returns [16:09:27]free content buf [16:09:27]Sock 9.Close socket [16:09:27]Sock 9.Thread stoped [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:26]accept exits with 8 [16:19:26]New connection [16:19:26]New thread 3066924388 created [16:19:26]Thread 3066781028 joined [16:19:26]Waiting for new connection... [16:19:26] Sock 8.Parse request [16:19:26]Sock 8.Check first char [16:19:26]Sock 8.First char is OK [16:19:26]request: POST /json_proto HTTP/1.0 [16:19:26]Method: POST [16:19:26]URL: /json_proto [16:19:26]Method is POST - this is cgi request [16:19:26]url: /json_proto [16:19:26]query_string will be loaded in cgi processing [16:19:26]execute_cgi json_proto POST (null) [16:19:26]execute_cgi path=json_proto method=POST [16:19:26]POST find Content-Length [16:19:26]Host: 172.17.39.131:8080 [16:19:26]Content-Length: 770 [16:19:26]Content-Type: application/json [16:19:26] [16:19:26]POST finish read [16:19:26]Found Content-Length = 770 [16:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [16:19:26]execute_script... [16: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)191132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [16:19:26]POST & json_proto [16:19:26]process_json_proto [16:19:26]json parsed OK: [16:19:26]protocol is kg_v1.0 [16:19:26]action value=close_receipt [16:19:26]process_action close_receipt [16:19:26]cmd_close_receipt [16:19:26]MH_GetDate [16:19:26]Write to MH i2c: F0 00 00 C3 3C EE [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 C3 3C 00 94 16 1D 67 86 57 24 65 8B [16:19:26]GetLastDocTimeStamp 1729958969 [16:19:26]current date 1729959572 [16:19:26]FM_GetShiftState [16:19:26]SAM_PROTO_GetShiftState [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 13 01 00 [16:19:26]Write to MH i2c: E2 08 00 C4 3C 80 13 01 00 00 00 00 00 7D [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 C4 3C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 98 [16:19:26]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_GetShiftState done [16:19:26]FM_GetShiftState done [16:19:26]opened in 1729902166 [16:19:26]opened+sec_in_day 1729988566 [16:19:26]quantity*price = 50025 [16:19:26]sum+1 = 50026 [16:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 148 26.10.2024 16:19 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75156 ФПД: 253677890844901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161932&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75156&fm=253677890844901&tin=02508201610067®Number=0000000000091691&sum=50025 [16:19:27]StoreToDocumentArchive [16:19:27]shift 512 fd 75156 [16:19:27]save to /storage/0512/doc_00075156 [16:19:27]save last doc name /storage/0512/doc_00075156 to /storage/kkm_last_doc_name [16:19:27]save OK [16:19:27]Clear old archive folders... [16:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:19:27]tlvbuf is B6ED3AB0 [16:19:27]SAM_PROTO_ClearQueue [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 09 00 00 [16:19:27]Write to MH i2c: E2 08 00 D1 3C 80 09 00 00 00 00 00 00 7F [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 D1 3C 00 90 00 81 [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_ClearQueue done [16:19:27]KKMCreateOFDPacket [16:19:27]OFDProtocolAddRootSTLVToBuf [16:19:27]FM_MakeSignedData [16:19:27]FM_MakeSignedData [16:19:27]SAM_PROTO_SignData [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 01 02 [16:19:27]Write to MH i2c: E2 08 00 D2 3C 80 0D 01 02 00 00 00 00 87 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 D2 3C 00 90 00 82 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=255 [16:19:28]MH_SAM_APDU [16:19:28]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 39 30 30 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 94 00 00 00 F4 03 04 00 94 16 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 94 25 01 00 35 04 06 00 E6 B7 [16:19:28]Write to MH i2c: E2 02 01 D3 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 39 30 30 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 94 00 00 00 F4 03 04 00 94 16 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 94 25 01 00 35 04 06 00 E6 B7 00 00 1A [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 D3 3C 00 90 00 83 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=9 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 02 02 04 FC 92 38 E5 [16:19:28]Write to MH i2c: E2 0C 00 D4 3C 80 0D 02 02 04 00 FC 92 38 E5 00 00 3D [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 03 02 [16:19:28]Write to MH i2c: E2 08 00 D5 3C 80 0D 03 02 00 00 00 00 8C [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0B 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0B 00 D5 3C 00 44 51 EF 58 14 ED 88 6F 90 00 61 [16:19:28]RAPDU: 44 51 EF 58 14 ED 88 6F 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_SignData done [16:19:28]FM_MakeSignedData done [16:19:28]CreateOFDProtocolMessage [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 11 00 00 [16:19:28]Write to MH i2c: E2 08 00 D6 3C 80 11 00 00 00 00 00 00 8C [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 D6 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E4 [16:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:19:28]wFMCommunicate OK [16:19:28]CreateOFDProtocolMessage done [16:19:28]OFDSenderStorePacket 75156 [16:19:28]StoreOFDPacket docnum=75156 [16:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C2 B4 06 01 C4 82 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 39 30 30 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 94 00 00 00 F4 03 04 00 94 16 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 94 25 01 00 35 04 06 00 E6 B7 FC 92 38 E5 44 51 EF 58 14 ED 88 6F [16:19:28]CheckFolder [16:19:28]dirname=/storage/ofd_packets [16:19:28]CheckFolder done [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00075156 [16:19:28]NVStorageSaveData ofd_packets/00075156 [16:19:28]File name is /storage/ofd_packets/00075156 [16:19:28]Write 300 bytes [16:19:28]NVStorageSaveData done [16:19:28]OFDSenderStorePacket done [16:19:28]KKMCreateOFDPacket done [16:19:28]NVStorageSaveData kkm_last_timestamp [16:19:28]File name is /storage/kkm_last_timestamp [16:19:28]Write 4 bytes [16:19:28]NVStorageSaveData done [16:19:28]ExternCall_PrintAddStr [16:19:28]wPrintStart [16:19:28]Write to MH i2c: 01 00 00 D7 3C 13 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 D7 3C 00 00 00 00 00 FF 0F 28 [16:19:28]RasterBufferAndPrint [16:19:28]line Счет N : (1)191132 [16:19:28]line ИНН: 02508201610067 [16:19:28]line Контрольно-Кассовый Чек [16:19:28]line ПРОДАЖА [16:19:28]line ТРК (МРК, ГНК) : 51 [16:19:28]line Товар: 2711190000 [16:19:28]line ГАЗ-К-3 [16:19:28]line 12.860 * 38.90 [16:19:28]line = 500.25 [16:19:28]line НДС 12% НСП 1% [16:19:28]line > о реализуемом товаре [16:19:28]line ИТОГО: 500.25 [16:19:28]line НСП 1% : 4.43 [16:19:28]line НДС 12% : 53.12 [16:19:28]line Наличными: 0.00 [16:19:28]line Безнал.: 500.25 [16:19:28]line Место: АЗС № 142 "Партнер Нефть" [16:19:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:19:28]line СНО: Общий режим [16:19:28]line Чек 148 26.10.2024 16:19 [16:19:28]line Смена: 512 ФФД: 1.0 [16:19:28]line ЗНМ: 0300000089 [16:19:28]line РНМ: 0000000000091691 [16:19:28]line Версия ККМ: 001 [16:19:28]line Платежная система: Mbank [16:19:28]line ФМ: 0000000000871795 [16:19:28]line ФД: 75156 [16:19:28]line ФПД: 253677890844901 [16:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161932&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75156&fm=253677890844901&tin=02508201610067®Number=0000000000091691&sum=50025 [16:19:28]written 0, free lines is 4095 [16:19:28]OFD Sender: Processing packet 75156 [packets to send 13, broken 12] [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00075156 [16:19:28]OFD Sender: To server: pG, [16:19:28]CommunicateWithHost lk.salyk.kg:30040 [16:19:28]ConnectInit lk.salyk.kg [16:19:28]Write to MH i2c: 01 00 00 00 3D 3D [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 00 3D 00 00 00 00 00 C8 0C 18 [16:19:28]RasterBufferAndPrint [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]written 0, free lines is 3278 [16:19:28]MH_Cut [16:19:28]Write to MH i2c: D1 01 00 07 3D 01 16 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 07 3D 00 15 [16:19:28]Write to MH i2c: 01 00 00 08 3D 45 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:29]Connected sock=10 [16:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 C2 B4 06 01 C4 82 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 39 30 30 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 94 00 00 00 F4 03 04 00 94 16 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 94 25 01 00 35 04 06 00 E6 B7 FC 92 38 E5 44 51 EF 58 14 ED 88 6F [16:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2F 64 47 00 03 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 38 37 31 37 39 35 10 04 04 00 94 25 01 00 F4 03 04 00 10 BE 1C 67 B6 04 01 00 00 38 D6 0A 79 EE 7A 9E C3 [16:19:29]CommunicateWithHost err = 0 [16:19:29]CheckOFDResponse [16:19:29]1017 (14) - 77093643461234 [16:19:29]1041 (16) - 0000000000871795 [16:19:29]1040 (4) - 75156 [16:19:29]1012 (4) - 26.10.2024 10:01 [16:19:29]1206 (1) - 0 [16:19:29]OFD Sender: Remove packet 75156 [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00075156 [16:19:29]NVStorageDeleteData [16:19:29]*** Cut start [16:19:29]*** Partial cut [16:19:29]*** CUTSNS_PIN = 1 [16:19:29]*** CUTSNS_PIN = 0 [16:19:29]OFD Sender: No OFD packet to send [16:19:30]*** Brake cut motor [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]*** Stop cut motor [16:19:30]*** Cut end [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 08 3D 00 00 00 00 00 FF 0F 5A [16:19:30]process_action close_receipt done [16:19:30]requested_data is exist [16:19:30]produce_requested_data [16:19:30]requested_item fm.sn is exist - process it [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 11 00 00 [16:19:30]Write to MH i2c: E2 08 00 09 3D 80 11 00 00 00 00 00 00 C0 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 09 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 18 [16:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:19:30]wFMCommunicate OK [16:19:30]requested_item fd.num is exist - process it [16:19:30]SAM_PROTO_GetFieldsCounters [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 00 00 [16:19:30]Write to MH i2c: E2 08 00 0A 3D 80 13 00 00 00 00 00 00 C3 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 0A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 94 25 01 00 0E 04 04 00 00 02 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 62 [16:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 94 25 01 00 0E 04 04 00 00 02 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 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetFieldsCounters done [16:19:30]requested_item shift.num is exist - process it [16:19:30]requested_item shift.opened is exist - process it [16:19:30]req_shift_opened [16:19:30]FM_GetShiftState [16:19:30]SAM_PROTO_GetShiftState [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 01 00 [16:19:30]Write to MH i2c: E2 08 00 0B 3D 80 13 01 00 00 00 00 00 C5 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 0B 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E0 [16:19:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetShiftState done [16:19:30]FM_GetShiftState done [16:19:30]req_shift_opened done [16:19:30]requested_item shift.open_date is exist - process it [16:19:30]req_shift_open_date [16:19:30]req_shift_open_date done [16:19:30]produce_requested_data done [16:19:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75156,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:19:30]process_action_free close_receipt [16:19:30]json_value_free [16:19:30]json_value_free done [16:19:30]process_json_proto returns [16:19:30]Send response to host [16:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75156,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:19:30]free response buf [16:19:30]execute_script done [16:19:30]execute_script returns [16:19:30]free content buf [16:19:30]Sock 8.Close socket [16:19:30]Sock 8.Thread stoped [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:35]accept exits with 9 [16:28:35]New connection [16:28:35]New thread 3066781028 created [16:28:35]Thread 3066924388 joined [16:28:35]Waiting for new connection... [16:28:35] Sock 9.Parse request [16:28:35]Sock 9.Check first char [16:28:35]Sock 9.First char is OK [16:28:35]request: POST /json_proto HTTP/1.0 [16:28:35]Method: POST [16:28:35]URL: /json_proto [16:28:35]Method is POST - this is cgi request [16:28:35]url: /json_proto [16:28:35]query_string will be loaded in cgi processing [16:28:35]execute_cgi json_proto POST (null) [16:28:35]execute_cgi path=json_proto method=POST [16:28:35]POST find Content-Length [16:28:35]Host: 172.17.39.131:8080 [16:28:35]Content-Length: 677 [16:28:35]Content-Type: application/json [16:28:35] [16:28:35]POST finish read [16:28:35]Found Content-Length = 677 [16:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:28:35]execute_script... [16:28: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)191133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:28:35]POST & json_proto [16:28:35]process_json_proto [16:28:35]json parsed OK: [16:28:35]protocol is kg_v1.0 [16:28:35]action value=close_receipt [16:28:35]process_action close_receipt [16:28:35]cmd_close_receipt [16:28:35]MH_GetDate [16:28:35]Write to MH i2c: F0 00 00 0C 3D 38 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: F0 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: F0 09 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: F0 09 00 0C 3D 00 B9 18 1D 67 86 57 24 65 FC [16:28:35]GetLastDocTimeStamp 1729959572 [16:28:35]current date 1729960121 [16:28:35]FM_GetShiftState [16:28:35]SAM_PROTO_GetShiftState [16:28:35]wFMCommunicate request_size=4 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 13 01 00 [16:28:35]Write to MH i2c: E2 08 00 0D 3D 80 13 01 00 00 00 00 00 C7 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 0E 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 0E 00 0D 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E2 [16:28:35]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:28:35]wFMCommunicate OK [16:28:35]SAM_PROTO_GetShiftState done [16:28:35]FM_GetShiftState done [16:28:35]opened in 1729902166 [16:28:35]opened+sec_in_day 1729988566 [16:28:35]quantity*price = 20003 [16:28:35]sum+1 = 20004 [16:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 149 26.10.2024 16:28 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75157 ФПД: 70635610193012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162841&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75157&fm=70635610193012&tin=02508201610067®Number=0000000000091691&sum=20000 [16:28:36]StoreToDocumentArchive [16:28:36]shift 512 fd 75157 [16:28:36]save to /storage/0512/doc_00075157 [16:28:36]save last doc name /storage/0512/doc_00075157 to /storage/kkm_last_doc_name [16:28:36]save OK [16:28:36]Clear old archive folders... [16:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:36]tlvbuf is B6F51A30 [16:28:36]SAM_PROTO_ClearQueue [16:28:36]wFMCommunicate request_size=4 [16:28:36]MH_SAM_APDU [16:28:36]CAPDU: 80 09 00 00 [16:28:36]Write to MH i2c: E2 08 00 1A 3D 80 09 00 00 00 00 00 00 C9 [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:36]Read from MH i2c: E2 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 03 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 03 00 1A 3D 00 90 00 CB [16:28:36]RAPDU: 90 00 [16:28:36]wFMCommunicate OK [16:28:36]SAM_PROTO_ClearQueue done [16:28:36]KKMCreateOFDPacket [16:28:36]OFDProtocolAddRootSTLVToBuf [16:28:36]FM_MakeSignedData [16:28:36]FM_MakeSignedData [16:28:36]SAM_PROTO_SignData [16:28:36]wFMCommunicate request_size=4 [16:28:36]MH_SAM_APDU [16:28:36]CAPDU: 80 0D 01 02 [16:28:36]Write to MH i2c: E2 08 00 1B 3D 80 0D 01 02 00 00 00 00 D1 [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:36]Read from MH i2c: E2 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 03 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 03 00 1B 3D 00 90 00 CC [16:28:36]RAPDU: 90 00 [16:28:36]wFMCommunicate OK [16:28:36]wFMCommunicate request_size=255 [16:28:36]MH_SAM_APDU [16:28: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 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 95 00 00 00 F4 03 04 00 B9 18 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 95 25 01 00 35 04 06 00 40 [16:28:36]Write to MH i2c: E2 02 01 1C 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 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 95 00 00 00 F4 03 04 00 B9 18 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 95 25 01 00 35 04 06 00 40 00 00 0F [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:37]Read from MH i2c: E2 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 03 00 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 03 00 1C 3D 00 90 00 CD [16:28:37]RAPDU: 90 00 [16:28:37]wFMCommunicate OK [16:28:37]wFMCommunicate request_size=10 [16:28:37]MH_SAM_APDU [16:28:37]CAPDU: 80 0D 02 02 05 3E 22 74 3C 74 [16:28:37]Write to MH i2c: E2 0D 00 1D 3D 80 0D 02 02 05 00 3E 22 74 3C 74 00 00 62 [16:28:37]Write i2c OK [16:28:37]MH_I2C_Read... [16:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:37]Read from MH i2c: E2 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 03 00 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 03 00 1D 3D 00 90 00 CE [16:28:37]RAPDU: 90 00 [16:28:37]wFMCommunicate OK [16:28:37]wFMCommunicate request_size=4 [16:28:37]MH_SAM_APDU [16:28:37]CAPDU: 80 0D 03 02 [16:28:37]Write to MH i2c: E2 08 00 1E 3D 80 0D 03 02 00 00 00 00 D6 [16:28:37]Write i2c OK [16:28:37]MH_I2C_Read... [16:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:37]Read from MH i2c: E2 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 0B 00 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 0B 00 1E 3D 00 AB A8 E2 06 8B 27 8E 09 90 00 5B [16:28:37]RAPDU: AB A8 E2 06 8B 27 8E 09 90 00 [16:28:37]wFMCommunicate OK [16:28:37]SAM_PROTO_SignData done [16:28:37]FM_MakeSignedData done [16:28:37]CreateOFDProtocolMessage [16:28:37]wFMCommunicate request_size=4 [16:28:37]MH_SAM_APDU [16:28:37]CAPDU: 80 11 00 00 [16:28:37]Write to MH i2c: E2 08 00 1F 3D 80 11 00 00 00 00 00 00 D6 [16:28:37]Write i2c OK [16:28:37]MH_I2C_Read... [16:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:37]Read from MH i2c: E2 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 17 00 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: E2 17 00 1F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2E [16:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:28:37]wFMCommunicate OK [16:28:37]CreateOFDProtocolMessage done [16:28:37]OFDSenderStorePacket 75157 [16:28:37]StoreOFDPacket docnum=75157 [16:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 71 50 07 01 D9 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 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 95 00 00 00 F4 03 04 00 B9 18 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 95 25 01 00 35 04 06 00 40 3E 22 74 3C 74 AB A8 E2 06 8B 27 8E 09 [16:28:37]CheckFolder [16:28:37]dirname=/storage/ofd_packets [16:28:37]CheckFolder done [16:28:37]ProducePacketName [16:28:37]name=ofd_packets/00075157 [16:28:37]NVStorageSaveData ofd_packets/00075157 [16:28:37]File name is /storage/ofd_packets/00075157 [16:28:37]Write 301 bytes [16:28:37]NVStorageSaveData done [16:28:37]OFDSenderStorePacket done [16:28:37]KKMCreateOFDPacket done [16:28:37]NVStorageSaveData kkm_last_timestamp [16:28:37]File name is /storage/kkm_last_timestamp [16:28:37]Write 4 bytes [16:28:37]NVStorageSaveData done [16:28:37]ExternCall_PrintAddStr [16:28:37]wPrintStart [16:28:37]Write to MH i2c: 01 00 00 20 3D 5D [16:28:37]Write i2c OK [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: 01 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: 01 07 00 [16:28:37]MH_I2C_Read... [16:28:37]Read from MH i2c: 01 07 00 20 3D 00 00 00 00 00 FF 0F 72 [16:28:37]RasterBufferAndPrint [16:28:37]line Счет N : (1)191133 [16:28:37]line ИНН: 02508201610067 [16:28:37]line Контрольно-Кассовый Чек [16:28:37]line ПРОДАЖА [16:28:37]line ТРК (МРК, ГНК) : 21 [16:28:37]line Товар: 2710124130 [16:28:37]line Аи-92-К-5 [16:28:37]line 2.990 * 66.90 [16:28:37]line = 200.03 [16:28:37]line НДС 12% НСП 1% [16:28:37]line > о реализуемом товаре [16:28:37]line ОКРУГЛЕНИЕ: -0.03 [16:28:37]line ИТОГО: 200.00 [16:28:37]line Внесено: 200.00 [16:28:37]line СДАЧА: 0.00 [16:28:37]line НСП 1% : 1.77 [16:28:37]line НДС 12% : 21.24 [16:28:37]line Наличными: 200.00 [16:28:37]line Безнал.: 0.00 [16:28:37]line Место: АЗС № 142 "Партнер Нефть" [16:28:37]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:28:37]line СНО: Общий режим [16:28:37]line Чек 149 26.10.2024 16:28 [16:28:37]line Смена: 512 ФФД: 1.0 [16:28:37]line ЗНМ: 0300000089 [16:28:37]line РНМ: 0000000000091691 [16:28:37]line Версия ККМ: 001 [16:28:37]line ФМ: 0000000000871795 [16:28:37]line ФД: 75157 [16:28:37]line ФПД: 70635610193012 [16:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162841&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75157&fm=70635610193012&tin=02508201610067®Number=0000000000091691&sum=20000 [16:28:37]OFD Sender: Processing packet 75157 [packets to send 13, broken 12] [16:28:37]ProducePacketName [16:28:37]name=ofd_packets/00075157 [16:28:37]OFD Sender: To server: pG, [16:28:37]CommunicateWithHost lk.salyk.kg:30040 [16:28:37]ConnectInit lk.salyk.kg [16:28:37]written 0, free lines is 4095 [16:28:37]Connected sock=10 [16:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 71 50 07 01 D9 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 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 95 00 00 00 F4 03 04 00 B9 18 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 95 25 01 00 35 04 06 00 40 3E 22 74 3C 74 AB A8 E2 06 8B 27 8E 09 [16:28:38]Write to MH i2c: 01 00 00 4B 3D 88 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: 01 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: 01 07 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: 01 07 00 4B 3D 00 00 00 00 00 A7 0C 42 [16:28:38]RasterBufferAndPrint [16:28:38]line [16:28:38]line [16:28:38]line [16:28:38]line [16:28:38]line [16:28:38]written 0, free lines is 3242 [16:28:38]MH_Cut [16:28:38]Write to MH i2c: D1 01 00 52 3D 01 61 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: D1 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: D1 01 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: D1 01 00 52 3D 00 60 [16:28:38]Write to MH i2c: 01 00 00 53 3D 90 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F4 D6 47 00 BB 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 38 37 31 37 39 35 10 04 04 00 95 25 01 00 F4 03 04 00 35 C0 1C 67 B6 04 01 00 00 A4 5E E9 78 F7 15 C3 D8 [16:28:38]CommunicateWithHost err = 0 [16:28:38]CheckOFDResponse [16:28:38]1017 (14) - 77093643461234 [16:28:38]1041 (16) - 0000000000871795 [16:28:38]1040 (4) - 75157 [16:28:38]1012 (4) - 26.10.2024 10:11 [16:28:38]1206 (1) - 0 [16:28:38]OFD Sender: Remove packet 75157 [16:28:38]ProducePacketName [16:28:38]name=ofd_packets/00075157 [16:28:38]NVStorageDeleteData [16:28:38]OFD Sender: No OFD packet to send [16:28:39]*** Cut start [16:28:39]*** Partial cut [16:28:39]*** CUTSNS_PIN = 1 [16:28:39]*** CUTSNS_PIN = 0 [16:28:39]*** Brake cut motor [16:28:39]Read from MH i2c: 01 [16:28:39]MH_I2C_Read... [16:28:39]*** Stop cut motor [16:28:39]*** Cut end [16:28:39]Read from MH i2c: 01 07 00 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: 01 07 00 53 3D 00 00 00 00 00 FF 0F A5 [16:28:39]process_action close_receipt done [16:28:39]requested_data is exist [16:28:39]produce_requested_data [16:28:39]requested_item fm.sn is exist - process it [16:28:39]wFMCommunicate request_size=4 [16:28:39]MH_SAM_APDU [16:28:39]CAPDU: 80 11 00 00 [16:28:39]Write to MH i2c: E2 08 00 54 3D 80 11 00 00 00 00 00 00 0B [16:28:39]Write i2c OK [16:28:39]MH_I2C_Read... [16:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:39]Read from MH i2c: E2 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 17 00 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 17 00 54 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 63 [16:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:28:39]wFMCommunicate OK [16:28:39]requested_item fd.num is exist - process it [16:28:39]SAM_PROTO_GetFieldsCounters [16:28:39]wFMCommunicate request_size=4 [16:28:39]MH_SAM_APDU [16:28:39]CAPDU: 80 13 00 00 [16:28:39]Write to MH i2c: E2 08 00 55 3D 80 13 00 00 00 00 00 00 0E [16:28:39]Write i2c OK [16:28:39]MH_I2C_Read... [16:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:39]Read from MH i2c: E2 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 62 00 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 62 00 55 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 95 25 01 00 0E 04 04 00 00 02 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 B1 [16:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 95 25 01 00 0E 04 04 00 00 02 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 [16:28:39]wFMCommunicate OK [16:28:39]SAM_PROTO_GetFieldsCounters done [16:28:39]requested_item shift.num is exist - process it [16:28:39]requested_item shift.opened is exist - process it [16:28:39]req_shift_opened [16:28:39]FM_GetShiftState [16:28:39]SAM_PROTO_GetShiftState [16:28:39]wFMCommunicate request_size=4 [16:28:39]MH_SAM_APDU [16:28:39]CAPDU: 80 13 01 00 [16:28:39]Write to MH i2c: E2 08 00 56 3D 80 13 01 00 00 00 00 00 10 [16:28:39]Write i2c OK [16:28:39]MH_I2C_Read... [16:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:39]Read from MH i2c: E2 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 0E 00 [16:28:39]MH_I2C_Read... [16:28:39]Read from MH i2c: E2 0E 00 56 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2B [16:28:39]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:28:39]wFMCommunicate OK [16:28:39]SAM_PROTO_GetShiftState done [16:28:39]FM_GetShiftState done [16:28:39]req_shift_opened done [16:28:39]requested_item shift.open_date is exist - process it [16:28:39]req_shift_open_date [16:28:39]req_shift_open_date done [16:28:39]produce_requested_data done [16:28:39]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75157,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:28:39]process_action_free close_receipt [16:28:39]json_value_free [16:28:39]json_value_free done [16:28:39]process_json_proto returns [16:28:39]Send response to host [16:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75157,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:28:39]free response buf [16:28:39]execute_script done [16:28:39]execute_script returns [16:28:39]free content buf [16:28:39]Sock 9.Close socket [16:28:39]Sock 9.Thread stoped [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:22]recv_with_timeout no data received [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:02]accept exits with 8 [16:34:02]New connection [16:34:02]New thread 3066924388 created [16:34:02]Thread 3066781028 joined [16:34:02]Waiting for new connection... [16:34:02] Sock 8.Parse request [16:34:02]Sock 8.Check first char [16:34:02]Sock 8.First char is OK [16:34:02]request: POST /json_proto HTTP/1.0 [16:34:02]Method: POST [16:34:02]URL: /json_proto [16:34:02]Method is POST - this is cgi request [16:34:02]url: /json_proto [16:34:02]query_string will be loaded in cgi processing [16:34:02]execute_cgi json_proto POST (null) [16:34:02]execute_cgi path=json_proto method=POST [16:34:02]POST find Content-Length [16:34:02]Host: 172.17.39.131:8080 [16:34:02]Content-Length: 800 [16:34:02]Content-Type: application/json [16:34:02] [16:34:02]POST finish read [16:34:02]Found Content-Length = 800 [16:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:02]execute_script... [16:34: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)191134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:02]POST & json_proto [16:34:02]process_json_proto [16:34:02]json parsed OK: [16:34:02]protocol is kg_v1.0 [16:34:02]action value=close_receipt [16:34:02]process_action close_receipt [16:34:02]cmd_close_receipt [16:34:02]MH_GetDate [16:34:02]Write to MH i2c: F0 00 00 57 3D 83 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 09 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 09 00 57 3D 00 00 1A 1D 67 86 57 24 65 90 [16:34:02]GetLastDocTimeStamp 1729960121 [16:34:02]current date 1729960448 [16:34:02]FM_GetShiftState [16:34:02]SAM_PROTO_GetShiftState [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 13 01 00 [16:34:02]Write to MH i2c: E2 08 00 58 3D 80 13 01 00 00 00 00 00 12 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0E 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0E 00 58 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2D [16:34:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:34:02]wFMCommunicate OK [16:34:02]SAM_PROTO_GetShiftState done [16:34:02]FM_GetShiftState done [16:34:02]opened in 1729902166 [16:34:02]opened+sec_in_day 1729988566 [16:34:02]quantity*price = 300075 [16:34:02]sum+1 = 300077 [16:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 150 26.10.2024 16:34 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75158 ФПД: 107854707485167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163408&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75158&fm=107854707485167&tin=02508201610067®Number=0000000000091691&sum=300076 [16:34:04]StoreToDocumentArchive [16:34:04]shift 512 fd 75158 [16:34:04]save to /storage/0512/doc_00075158 [16:34:04]save last doc name /storage/0512/doc_00075158 to /storage/kkm_last_doc_name [16:34:04]save OK [16:34:04]Clear old archive folders... [16:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:34:04]tlvbuf is 00949640 [16:34:04]SAM_PROTO_ClearQueue [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 09 00 00 [16:34:04]Write to MH i2c: E2 08 00 65 3D 80 09 00 00 00 00 00 00 14 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]OFD Sender: No OFD packet to send [16:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 65 3D 00 90 00 16 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_ClearQueue done [16:34:04]KKMCreateOFDPacket [16:34:04]OFDProtocolAddRootSTLVToBuf [16:34:04]FM_MakeSignedData [16:34:04]FM_MakeSignedData [16:34:04]SAM_PROTO_SignData [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 01 02 [16:34:04]Write to MH i2c: E2 08 00 66 3D 80 0D 01 02 00 00 00 00 1C [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 66 3D 00 90 00 17 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]wFMCommunicate request_size=255 [16:34:04]MH_SAM_APDU [16:34: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 34 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 96 00 00 00 F4 03 04 00 00 1A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 96 25 01 00 35 04 06 00 62 17 E1 86 [16:34:04]Write to MH i2c: E2 02 01 67 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 34 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 96 00 00 00 F4 03 04 00 00 1A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 96 25 01 00 35 04 06 00 62 17 E1 86 00 00 49 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 67 3D 00 90 00 18 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]wFMCommunicate request_size=7 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 02 02 02 E9 EF [16:34:04]Write to MH i2c: E2 0A 00 68 3D 80 0D 02 02 02 00 E9 EF 00 00 FB [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 68 3D 00 90 00 19 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 03 02 [16:34:04]Write to MH i2c: E2 08 00 69 3D 80 0D 03 02 00 00 00 00 21 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0B 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0B 00 69 3D 00 FE FE A4 DF 14 32 2B 26 90 00 38 [16:34:04]RAPDU: FE FE A4 DF 14 32 2B 26 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_SignData done [16:34:04]FM_MakeSignedData done [16:34:04]CreateOFDProtocolMessage [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 11 00 00 [16:34:04]Write to MH i2c: E2 08 00 6A 3D 80 11 00 00 00 00 00 00 21 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 6A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 79 [16:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:34:04]wFMCommunicate OK [16:34:04]CreateOFDProtocolMessage done [16:34:04]OFDSenderStorePacket 75158 [16:34:04]StoreOFDPacket docnum=75158 [16:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1A 67 04 01 44 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 34 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 96 00 00 00 F4 03 04 00 00 1A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 96 25 01 00 35 04 06 00 62 17 E1 86 E9 EF FE FE A4 DF 14 32 2B 26 [16:34:04]CheckFolder [16:34:04]dirname=/storage/ofd_packets [16:34:04]CheckFolder done [16:34:04]ProducePacketName [16:34:04]name=ofd_packets/00075158 [16:34:04]NVStorageSaveData ofd_packets/00075158 [16:34:04]File name is /storage/ofd_packets/00075158 [16:34:04]Write 298 bytes [16:34:04]NVStorageSaveData done [16:34:04]OFDSenderStorePacket done [16:34:04]KKMCreateOFDPacket done [16:34:04]NVStorageSaveData kkm_last_timestamp [16:34:04]File name is /storage/kkm_last_timestamp [16:34:04]Write 4 bytes [16:34:04]NVStorageSaveData done [16:34:04]ExternCall_PrintAddStr [16:34:04]wPrintStart [16:34:04]Write to MH i2c: 01 00 00 6B 3D A8 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 6B 3D 00 00 00 00 00 FF 0F BD [16:34:04]RasterBufferAndPrint [16:34:04]line Счет N : (1)191134 [16:34:04]line ИНН: 02508201610067 [16:34:04]line Контрольно-Кассовый Чек [16:34:04]line ПРОДАЖА [16:34:04]line ТРК (МРК, ГНК) : 31 [16:34:04]line Товар: 2710194210 [16:34:04]line ДТ-К-4 [16:34:04]line 39.380 * 76.20 [16:34:04]line = 3000.76 [16:34:04]line НДС 12% НСП 1% [16:34:04]line > о реализуемом товаре [16:34:04]line ИТОГО: 3000.76 [16:34:04]line НСП 1% : 26.55 [16:34:04]line НДС 12% : 318.66 [16:34:04]line Наличными: 0.00 [16:34:04]line Безнал.: 3000.76 [16:34:04]line Место: АЗС № 142 "Партнер Нефть" [16:34:04]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:34:04]line СНО: Общий режим [16:34:04]line Чек 150 26.10.2024 16:34 [16:34:04]line Смена: 512 ФФД: 1.0 [16:34:04]line ЗНМ: 0300000089 [16:34:04]line РНМ: 0000000000091691 [16:34:04]line Версия ККМ: 001 [16:34:04]line Платежная система: O! деньги [16:34:04]line ФМ: 0000000000871795 [16:34:04]line ФД: 75158 [16:34:04]line ФПД: 107854707485167 [16:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163408&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75158&fm=107854707485167&tin=02508201610067®Number=0000000000091691&sum=300076 [16:34:04]OFD Sender: Processing packet 75158 [packets to send 13, broken 12] [16:34:04]ProducePacketName [16:34:04]name=ofd_packets/00075158 [16:34:04]OFD Sender: To server: pG, [16:34:04]CommunicateWithHost lk.salyk.kg:30040 [16:34:04]ConnectInit lk.salyk.kg [16:34:04]written 0, free lines is 4095 [16:34:05]Connected sock=10 [16:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 1A 67 04 01 44 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 34 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 96 00 00 00 F4 03 04 00 00 1A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 96 25 01 00 35 04 06 00 62 17 E1 86 E9 EF FE FE A4 DF 14 32 2B 26 [16:34:05]Write to MH i2c: 01 00 00 95 3D D2 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 95 3D 00 00 00 00 00 B8 0C 9D [16:34:05]RasterBufferAndPrint [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]written 0, free lines is 3263 [16:34:05]MH_Cut [16:34:05]Write to MH i2c: D1 01 00 9C 3D 01 AB [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 9C 3D 00 AA [16:34:05]Write to MH i2c: 01 00 00 9D 3D DA [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B0 9B 47 00 DB 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 96 25 01 00 F4 03 04 00 7C C1 1C 67 B6 04 01 00 00 EE F8 F2 A0 DF 2C 84 53 [16:34:05]CommunicateWithHost err = 0 [16:34:05]CheckOFDResponse [16:34:05]1017 (14) - 77093643461234 [16:34:05]1041 (16) - 0000000000871795 [16:34:05]1040 (4) - 75158 [16:34:05]1012 (4) - 26.10.2024 10:16 [16:34:05]1206 (1) - 0 [16:34:05]OFD Sender: Remove packet 75158 [16:34:05]ProducePacketName [16:34:05]name=ofd_packets/00075158 [16:34:05]NVStorageDeleteData [16:34:05]OFD Sender: No OFD packet to send [16:34:06]*** Cut start [16:34:06]*** Partial cut [16:34:06]*** CUTSNS_PIN = 1 [16:34:06]*** CUTSNS_PIN = 0 [16:34:06]*** Brake cut motor [16:34:06]Read from MH i2c: 01 [16:34:06]MH_I2C_Read... [16:34:06]*** Stop cut motor [16:34:06]*** Cut end [16:34:06]Read from MH i2c: 01 07 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: 01 07 00 9D 3D 00 00 00 00 00 FF 0F EF [16:34:06]process_action close_receipt done [16:34:06]requested_data is exist [16:34:06]produce_requested_data [16:34:06]requested_item fm.sn is exist - process it [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 11 00 00 [16:34:06]Write to MH i2c: E2 08 00 9E 3D 80 11 00 00 00 00 00 00 55 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 9E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AD [16:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:34:06]wFMCommunicate OK [16:34:06]requested_item fd.num is exist - process it [16:34:06]SAM_PROTO_GetFieldsCounters [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 13 00 00 [16:34:06]Write to MH i2c: E2 08 00 9F 3D 80 13 00 00 00 00 00 00 58 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 62 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 62 00 9F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 96 25 01 00 0E 04 04 00 00 02 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 FF [16:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 96 25 01 00 0E 04 04 00 00 02 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 [16:34:07]wFMCommunicate OK [16:34:07]SAM_PROTO_GetFieldsCounters done [16:34:07]requested_item shift.num is exist - process it [16:34:07]requested_item shift.opened is exist - process it [16:34:07]req_shift_opened [16:34:07]FM_GetShiftState [16:34:07]SAM_PROTO_GetShiftState [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 13 01 00 [16:34:07]Write to MH i2c: E2 08 00 A0 3D 80 13 01 00 00 00 00 00 5A [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 0E 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 0E 00 A0 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 75 [16:34:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:34:07]wFMCommunicate OK [16:34:07]SAM_PROTO_GetShiftState done [16:34:07]FM_GetShiftState done [16:34:07]req_shift_opened done [16:34:07]requested_item shift.open_date is exist - process it [16:34:07]req_shift_open_date [16:34:07]req_shift_open_date done [16:34:07]produce_requested_data done [16:34:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75158,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:34:07]process_action_free close_receipt [16:34:07]json_value_free [16:34:07]json_value_free done [16:34:07]process_json_proto returns [16:34:07]Send response to host [16:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75158,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:34:07]free response buf [16:34:07]execute_script done [16:34:07]execute_script returns [16:34:07]free content buf [16:34:07]Sock 8.Close socket [16:34:07]Sock 8.Thread stoped [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:43:57]accept exits with 9 [16:43:57]New connection [16:43:57]New thread 3066781028 created [16:43:57]Thread 3066924388 joined [16:43:57]Waiting for new connection... [16:43:57] Sock 9.Parse request [16:43:57]Sock 9.Check first char [16:43:57]Sock 9.First char is OK [16:43:57]request: POST /json_proto HTTP/1.0 [16:43:57]Method: POST [16:43:57]URL: /json_proto [16:43:57]Method is POST - this is cgi request [16:43:57]url: /json_proto [16:43:57]query_string will be loaded in cgi processing [16:43:57]execute_cgi json_proto POST (null) [16:43:57]execute_cgi path=json_proto method=POST [16:43:57]POST find Content-Length [16:43:57]Host: 172.17.39.131:8080 [16:43:57]Content-Length: 679 [16:43:57]Content-Type: application/json [16:43:57] [16:43:57]POST finish read [16:43:57]Found Content-Length = 679 [16:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:57]execute_script... [16: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)191135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:57]POST & json_proto [16:43:57]process_json_proto [16:43:57]json parsed OK: [16:43:57]protocol is kg_v1.0 [16:43:57]action value=close_receipt [16:43:57]process_action close_receipt [16:43:57]cmd_close_receipt [16:43:57]MH_GetDate [16:43:57]Write to MH i2c: F0 00 00 A1 3D CD [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: F0 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: F0 09 00 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: F0 09 00 A1 3D 00 53 1C 1D 67 86 57 24 65 2F [16:43:57]GetLastDocTimeStamp 1729960448 [16:43:57]current date 1729961043 [16:43:57]FM_GetShiftState [16:43:57]SAM_PROTO_GetShiftState [16:43:57]wFMCommunicate request_size=4 [16:43:57]MH_SAM_APDU [16:43:57]CAPDU: 80 13 01 00 [16:43:57]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:57]Read from MH i2c: E2 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 0E 00 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 77 [16:43:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:43:57]wFMCommunicate OK [16:43:57]SAM_PROTO_GetShiftState done [16:43:57]FM_GetShiftState done [16:43:57]opened in 1729902166 [16:43:57]opened+sec_in_day 1729988566 [16:43:57]quantity*price = 100050 [16:43:57]sum+1 = 100052 [16:43: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 151 26.10.2024 16:44 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75159 ФПД: 218885306644272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75159&fm=218885306644272&tin=02508201610067®Number=0000000000091691&sum=100000 [16:43:58]StoreToDocumentArchive [16:43:58]shift 512 fd 75159 [16:43:58]save to /storage/0512/doc_00075159 [16:43:58]save last doc name /storage/0512/doc_00075159 to /storage/kkm_last_doc_name [16:43:58]save OK [16:43:58]Clear old archive folders... [16:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:58]tlvbuf is 00903180 [16:43:58]SAM_PROTO_ClearQueue [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 09 00 00 [16:43:58]Write to MH i2c: E2 08 00 AF 3D 80 09 00 00 00 00 00 00 5E [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 AF 3D 00 90 00 60 [16:43:58]RAPDU: 90 00 [16:43:58]wFMCommunicate OK [16:43:58]SAM_PROTO_ClearQueue done [16:43:58]KKMCreateOFDPacket [16:43:58]OFDProtocolAddRootSTLVToBuf [16:43:58]FM_MakeSignedData [16:43:58]FM_MakeSignedData [16:43:58]SAM_PROTO_SignData [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 0D 01 02 [16:43:58]Write to MH i2c: E2 08 00 B0 3D 80 0D 01 02 00 00 00 00 66 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 B0 3D 00 90 00 61 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=255 [16:43:59]MH_SAM_APDU [16:43: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 34 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 53 1C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 97 25 01 00 35 04 06 00 C7 13 34 F2 [16:43:59]Write to MH i2c: E2 02 01 B1 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 34 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 53 1C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 97 25 01 00 35 04 06 00 C7 13 34 F2 00 00 39 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=7 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 02 02 02 F7 30 [16:43:59]Write to MH i2c: E2 0A 00 B2 3D 80 0D 02 02 02 00 F7 30 00 00 94 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 03 02 [16:43:59]Write to MH i2c: E2 08 00 B3 3D 80 0D 03 02 00 00 00 00 6B [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0B 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0B 00 B3 3D 00 21 F5 00 95 B8 FD 95 4A 90 00 AB [16:43:59]RAPDU: 21 F5 00 95 B8 FD 95 4A 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_SignData done [16:43:59]FM_MakeSignedData done [16:43:59]CreateOFDProtocolMessage [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 11 00 00 [16:43:59]Write to MH i2c: E2 08 00 B4 3D 80 11 00 00 00 00 00 00 6B [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 B4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C3 [16:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:43:59]wFMCommunicate OK [16:43:59]CreateOFDProtocolMessage done [16:43:59]OFDSenderStorePacket 75159 [16:43:59]StoreOFDPacket docnum=75159 [16:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AD 43 04 01 89 4F 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 34 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 53 1C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 97 25 01 00 35 04 06 00 C7 13 34 F2 F7 30 21 F5 00 95 B8 FD 95 4A [16:43:59]CheckFolder [16:43:59]dirname=/storage/ofd_packets [16:43:59]CheckFolder done [16:43:59]ProducePacketName [16:43:59]name=ofd_packets/00075159 [16:43:59]NVStorageSaveData ofd_packets/00075159 [16:43:59]File name is /storage/ofd_packets/00075159 [16:43:59]Write 298 bytes [16:43:59]NVStorageSaveData done [16:43:59]OFDSenderStorePacket done [16:43:59]KKMCreateOFDPacket done [16:43:59]NVStorageSaveData kkm_last_timestamp [16:43:59]File name is /storage/kkm_last_timestamp [16:43:59]Write 4 bytes [16:43:59]NVStorageSaveData done [16:43:59]ExternCall_PrintAddStr [16:43:59]wPrintStart [16:43:59]Write to MH i2c: 01 00 00 B5 3D F2 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 FF 0F 07 [16:43:59]RasterBufferAndPrint [16:43:59]line Счет N : (1)191135 [16:43:59]line ИНН: 02508201610067 [16:43:59]line Контрольно-Кассовый Чек [16:43:59]line ПРОДАЖА [16:43:59]line ТРК (МРК, ГНК) : 31 [16:43:59]line Товар: 2710194210 [16:43:59]line ДТ-К-4 [16:43:59]line 13.130 * 76.20 [16:43:59]line = 1000.51 [16:43:59]line НДС 12% НСП 1% [16:43:59]line > о реализуемом товаре [16:43:59]line ОКРУГЛЕНИЕ: -0.51 [16:43:59]line ИТОГО: 1000.00 [16:43:59]line Внесено: 1000.00 [16:43:59]line СДАЧА: 0.00 [16:43:59]line НСП 1% : 8.85 [16:43:59]line НДС 12% : 106.25 [16:43:59]line Наличными: 1000.00 [16:43:59]line Безнал.: 0.00 [16:43:59]line Место: АЗС № 142 "Партнер Нефть" [16:43:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:43:59]line СНО: Общий режим [16:43:59]line Чек 151 26.10.2024 16:44 [16:43:59]line Смена: 512 ФФД: 1.0 [16:43:59]line ЗНМ: 0300000089 [16:43:59]line РНМ: 0000000000091691 [16:43:59]line Версия ККМ: 001 [16:43:59]line ФМ: 0000000000871795 [16:43:59]line ФД: 75159 [16:43:59]line ФПД: 218885306644272 [16:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164403&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75159&fm=218885306644272&tin=02508201610067®Number=0000000000091691&sum=100000 [16:43:59]OFD Sender: Processing packet 75159 [packets to send 13, broken 12] [16:43:59]ProducePacketName [16:43:59]name=ofd_packets/00075159 [16:43:59]OFD Sender: To server: pG, [16:43:59]CommunicateWithHost lk.salyk.kg:30040 [16:43:59]ConnectInit lk.salyk.kg [16:43:59]written 0, free lines is 4095 [16:43:59]Connected sock=10 [16:43:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 AD 43 04 01 89 4F 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 34 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 53 1C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 97 25 01 00 35 04 06 00 C7 13 34 F2 F7 30 21 F5 00 95 B8 FD 95 4A [16:44:00]Write to MH i2c: 01 00 00 E0 3D 1D [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 E0 3D 00 00 00 00 00 A4 0C D4 [16:44:00]RasterBufferAndPrint [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]written 0, free lines is 3242 [16:44:00]MH_Cut [16:44:00]Write to MH i2c: D1 01 00 E7 3D 01 F6 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 E7 3D 00 F5 [16:44:00]Write to MH i2c: 01 00 00 E8 3D 25 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 65 E8 47 00 F5 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 97 25 01 00 F4 03 04 00 CF C3 1C 67 B6 04 01 00 00 71 F9 18 57 E2 14 41 2E [16:44:00]CommunicateWithHost err = 0 [16:44:00]CheckOFDResponse [16:44:00]1017 (14) - 77093643461234 [16:44:00]1041 (16) - 0000000000871795 [16:44:00]1040 (4) - 75159 [16:44:00]1012 (4) - 26.10.2024 10:26 [16:44:00]1206 (1) - 0 [16:44:00]OFD Sender: Remove packet 75159 [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00075159 [16:44:00]NVStorageDeleteData [16:44:00]OFD Sender: No OFD packet to send [16:44:01]*** Cut start [16:44:01]*** Partial cut [16:44:01]*** CUTSNS_PIN = 1 [16:44:01]*** CUTSNS_PIN = 0 [16:44:01]*** Brake cut motor [16:44:01]Read from MH i2c: 01 [16:44:01]MH_I2C_Read... [16:44:01]*** Stop cut motor [16:44:01]*** Cut end [16:44:01]Read from MH i2c: 01 07 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: 01 07 00 E8 3D 00 00 00 00 00 FF 0F 3A [16:44:01]process_action close_receipt done [16:44:01]requested_data is exist [16:44:01]produce_requested_data [16:44:01]requested_item fm.sn is exist - process it [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 11 00 00 [16:44:01]Write to MH i2c: E2 08 00 E9 3D 80 11 00 00 00 00 00 00 A0 [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 17 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 17 00 E9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F8 [16:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:44:01]wFMCommunicate OK [16:44:01]requested_item fd.num is exist - process it [16:44:01]SAM_PROTO_GetFieldsCounters [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 13 00 00 [16:44:01]Write to MH i2c: E2 08 00 EA 3D 80 13 00 00 00 00 00 00 A3 [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 62 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 62 00 EA 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 97 25 01 00 0E 04 04 00 00 02 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 4E [16:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 97 25 01 00 0E 04 04 00 00 02 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 [16:44:01]wFMCommunicate OK [16:44:01]SAM_PROTO_GetFieldsCounters done [16:44:01]requested_item shift.num is exist - process it [16:44:01]requested_item shift.opened is exist - process it [16:44:01]req_shift_opened [16:44:01]FM_GetShiftState [16:44:01]SAM_PROTO_GetShiftState [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 13 01 00 [16:44:01]Write to MH i2c: E2 08 00 EB 3D 80 13 01 00 00 00 00 00 A5 [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 0E 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 0E 00 EB 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C0 [16:44:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetShiftState done [16:44:02]FM_GetShiftState done [16:44:02]req_shift_opened done [16:44:02]requested_item shift.open_date is exist - process it [16:44:02]req_shift_open_date [16:44:02]req_shift_open_date done [16:44:02]produce_requested_data done [16:44:02]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75159,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:44:02]process_action_free close_receipt [16:44:02]json_value_free [16:44:02]json_value_free done [16:44:02]process_json_proto returns [16:44:02]Send response to host [16:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75159,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:44:02]free response buf [16:44:02]execute_script done [16:44:02]execute_script returns [16:44:02]free content buf [16:44:02]Sock 9.Close socket [16:44:02]Sock 9.Thread stoped [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]accept exits with 8 [16:47:40]New connection [16:47:40]New thread 3066924388 created [16:47:40]Thread 3066781028 joined [16:47:40]Waiting for new connection... [16:47:40] Sock 8.Parse request [16:47:40]Sock 8.Check first char [16:47:40]Sock 8.First char is OK [16:47:40]request: POST /json_proto HTTP/1.0 [16:47:40]Method: POST [16:47:40]URL: /json_proto [16:47:40]Method is POST - this is cgi request [16:47:40]url: /json_proto [16:47:40]query_string will be loaded in cgi processing [16:47:40]execute_cgi json_proto POST (null) [16:47:40]execute_cgi path=json_proto method=POST [16:47:40]POST find Content-Length [16:47:40]Host: 172.17.39.131:8080 [16:47:40]Content-Length: 677 [16:47:40]Content-Type: application/json [16:47:40] [16:47:40]POST finish read [16:47:40]Found Content-Length = 677 [16:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:47:40]execute_script... [16:47: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)191137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:47:40]POST & json_proto [16:47:40]process_json_proto [16:47:40]json parsed OK: [16:47:40]protocol is kg_v1.0 [16:47:40]action value=close_receipt [16:47:40]process_action close_receipt [16:47:40]cmd_close_receipt [16:47:40]MH_GetDate [16:47:40]Write to MH i2c: F0 00 00 EC 3D 18 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 EC 3D 00 32 1D 1D 67 86 57 24 65 5A [16:47:40]GetLastDocTimeStamp 1729961043 [16:47:40]current date 1729961266 [16:47:40]FM_GetShiftState [16:47:40]SAM_PROTO_GetShiftState [16:47:40]wFMCommunicate request_size=4 [16:47:40]MH_SAM_APDU [16:47:40]CAPDU: 80 13 01 00 [16:47:40]Write to MH i2c: E2 08 00 ED 3D 80 13 01 00 00 00 00 00 A7 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:40]Read from MH i2c: E2 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 ED 3D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C2 [16:47:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:47:40]wFMCommunicate OK [16:47:40]SAM_PROTO_GetShiftState done [16:47:40]FM_GetShiftState done [16:47:40]opened in 1729902166 [16:47:40]opened+sec_in_day 1729988566 [16:47:40]quantity*price = 20003 [16:47:40]sum+1 = 20004 [16:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 152 26.10.2024 16:47 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75160 ФПД: 144372637656777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164746&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75160&fm=144372637656777&tin=02508201610067®Number=0000000000091691&sum=20000 [16:47:41]StoreToDocumentArchive [16:47:41]shift 512 fd 75160 [16:47:41]save to /storage/0512/doc_00075160 [16:47:41]save last doc name /storage/0512/doc_00075160 to /storage/kkm_last_doc_name [16:47:41]save OK [16:47:41]Clear old archive folders... [16:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:41]tlvbuf is B6DA1010 [16:47:41]SAM_PROTO_ClearQueue [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 09 00 00 [16:47:41]Write to MH i2c: E2 08 00 FA 3D 80 09 00 00 00 00 00 00 A9 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 FA 3D 00 90 00 AB [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_ClearQueue done [16:47:41]KKMCreateOFDPacket [16:47:41]OFDProtocolAddRootSTLVToBuf [16:47:41]FM_MakeSignedData [16:47:41]FM_MakeSignedData [16:47:41]SAM_PROTO_SignData [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 01 02 [16:47:41]Write to MH i2c: E2 08 00 FB 3D 80 0D 01 02 00 00 00 00 B1 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 FB 3D 00 90 00 AC [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=255 [16:47:42]MH_SAM_APDU [16:47: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 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 98 00 00 00 F4 03 04 00 32 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 98 25 01 00 35 04 06 00 83 [16:47:42]Write to MH i2c: E2 02 01 FC 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 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 98 00 00 00 F4 03 04 00 32 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 98 25 01 00 35 04 06 00 83 00 00 B6 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 FC 3D 00 90 00 AD [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=10 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 02 02 05 4E 5F C8 66 C9 [16:47:42]Write to MH i2c: E2 0D 00 FD 3D 80 0D 02 02 05 00 4E 5F C8 66 C9 00 00 62 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 03 00 FD 3D 00 90 00 AE [16:47:42]RAPDU: 90 00 [16:47:42]wFMCommunicate OK [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 0D 03 02 [16:47:42]Write to MH i2c: E2 08 00 FE 3D 80 0D 03 02 00 00 00 00 B6 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0B 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0B 00 FE 3D 00 47 28 C6 2E E2 02 80 63 90 00 E1 [16:47:42]RAPDU: 47 28 C6 2E E2 02 80 63 90 00 [16:47:42]wFMCommunicate OK [16:47:42]SAM_PROTO_SignData done [16:47:42]FM_MakeSignedData done [16:47:42]CreateOFDProtocolMessage [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 11 00 00 [16:47:42]Write to MH i2c: E2 08 00 FF 3D 80 11 00 00 00 00 00 00 B6 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 FF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0E [16:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:47:42]wFMCommunicate OK [16:47:42]CreateOFDProtocolMessage done [16:47:42]OFDSenderStorePacket 75160 [16:47:42]StoreOFDPacket docnum=75160 [16:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 93 07 01 53 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 32 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 98 25 01 00 35 04 06 00 83 4E 5F C8 66 C9 47 28 C6 2E E2 02 80 63 [16:47:42]CheckFolder [16:47:42]dirname=/storage/ofd_packets [16:47:42]CheckFolder done [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00075160 [16:47:42]NVStorageSaveData ofd_packets/00075160 [16:47:42]File name is /storage/ofd_packets/00075160 [16:47:42]Write 301 bytes [16:47:42]NVStorageSaveData done [16:47:42]OFDSenderStorePacket done [16:47:42]KKMCreateOFDPacket done [16:47:42]NVStorageSaveData kkm_last_timestamp [16:47:42]File name is /storage/kkm_last_timestamp [16:47:42]Write 4 bytes [16:47:42]NVStorageSaveData done [16:47:42]ExternCall_PrintAddStr [16:47:42]wPrintStart [16:47:42]Write to MH i2c: 01 00 00 00 3E 3E [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 00 3E 00 00 00 00 00 FF 0F 53 [16:47:42]RasterBufferAndPrint [16:47:42]line Счет N : (1)191137 [16:47:42]line ИНН: 02508201610067 [16:47:42]line Контрольно-Кассовый Чек [16:47:42]line ПРОДАЖА [16:47:42]line ТРК (МРК, ГНК) : 21 [16:47:42]line Товар: 2710124130 [16:47:42]line Аи-92-К-5 [16:47:42]line 2.990 * 66.90 [16:47:42]line = 200.03 [16:47:42]line НДС 12% НСП 1% [16:47:42]line > о реализуемом товаре [16:47:42]line ОКРУГЛЕНИЕ: -0.03 [16:47:42]line ИТОГО: 200.00 [16:47:42]line Внесено: 200.00 [16:47:42]line СДАЧА: 0.00 [16:47:42]line НСП 1% : 1.77 [16:47:42]line НДС 12% : 21.24 [16:47:42]line Наличными: 200.00 [16:47:42]line Безнал.: 0.00 [16:47:42]line Место: АЗС № 142 "Партнер Нефть" [16:47:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:47:42]line СНО: Общий режим [16:47:42]line Чек 152 26.10.2024 16:47 [16:47:42]line Смена: 512 ФФД: 1.0 [16:47:42]line ЗНМ: 0300000089 [16:47:42]line РНМ: 0000000000091691 [16:47:42]line Версия ККМ: 001 [16:47:42]line ФМ: 0000000000871795 [16:47:42]line ФД: 75160 [16:47:42]line ФПД: 144372637656777 [16:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164746&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75160&fm=144372637656777&tin=02508201610067®Number=0000000000091691&sum=20000 [16:47:42]written 0, free lines is 4095 [16:47:42]OFD Sender: Processing packet 75160 [packets to send 13, broken 12] [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00075160 [16:47:42]OFD Sender: To server: pG, [16:47:42]CommunicateWithHost lk.salyk.kg:30040 [16:47:42]ConnectInit lk.salyk.kg [16:47:42]Connected sock=10 [16:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 00 93 07 01 53 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 32 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 98 25 01 00 35 04 06 00 83 4E 5F C8 66 C9 47 28 C6 2E E2 02 80 63 [16:47:43]Write to MH i2c: 01 00 00 2B 3E 69 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 2B 3E 00 00 00 00 00 93 0C 0F [16:47:43]RasterBufferAndPrint [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]line [16:47:43]written 0, free lines is 3225 [16:47:43]MH_Cut [16:47:43]Write to MH i2c: D1 01 00 32 3E 01 42 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 01 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: D1 01 00 32 3E 00 41 [16:47:43]Write to MH i2c: 01 00 00 33 3E 71 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1A FD 47 00 B2 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 98 25 01 00 F4 03 04 00 AE C4 1C 67 B6 04 01 00 00 51 A0 EB 03 5E DB 03 69 [16:47:43]CommunicateWithHost err = 0 [16:47:43]CheckOFDResponse [16:47:43]1017 (14) - 77093643461234 [16:47:43]1041 (16) - 0000000000871795 [16:47:43]1040 (4) - 75160 [16:47:43]1012 (4) - 26.10.2024 10:30 [16:47:43]1206 (1) - 0 [16:47:43]OFD Sender: Remove packet 75160 [16:47:43]ProducePacketName [16:47:43]name=ofd_packets/00075160 [16:47:43]NVStorageDeleteData [16:47:43]OFD Sender: No OFD packet to send [16:47:44]*** Cut start [16:47:44]*** Partial cut [16:47:44]*** CUTSNS_PIN = 1 [16:47:44]*** CUTSNS_PIN = 0 [16:47:44]*** Brake cut motor [16:47:44]Read from MH i2c: 01 [16:47:44]MH_I2C_Read... [16:47:44]*** Stop cut motor [16:47:44]*** Cut end [16:47:44]Read from MH i2c: 01 07 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: 01 07 00 33 3E 00 00 00 00 00 FF 0F 86 [16:47:44]process_action close_receipt done [16:47:44]requested_data is exist [16:47:44]produce_requested_data [16:47:44]requested_item fm.sn is exist - process it [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 11 00 00 [16:47:44]Write to MH i2c: E2 08 00 34 3E 80 11 00 00 00 00 00 00 EC [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 34 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 44 [16:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:47:44]wFMCommunicate OK [16:47:44]requested_item fd.num is exist - process it [16:47:44]SAM_PROTO_GetFieldsCounters [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 00 00 [16:47:44]Write to MH i2c: E2 08 00 35 3E 80 13 00 00 00 00 00 00 EF [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 35 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 98 25 01 00 0E 04 04 00 00 02 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 9E [16:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 98 25 01 00 0E 04 04 00 00 02 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 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetFieldsCounters done [16:47:44]requested_item shift.num is exist - process it [16:47:44]requested_item shift.opened is exist - process it [16:47:44]req_shift_opened [16:47:44]FM_GetShiftState [16:47:44]SAM_PROTO_GetShiftState [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 01 00 [16:47:44]Write to MH i2c: E2 08 00 36 3E 80 13 01 00 00 00 00 00 F1 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:45]Read from MH i2c: E2 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 [16:47:45]MH_I2C_Read... [16:47:45]Read from MH i2c: E2 0E 00 36 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0C [16:47:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:47:45]wFMCommunicate OK [16:47:45]SAM_PROTO_GetShiftState done [16:47:45]FM_GetShiftState done [16:47:45]req_shift_opened done [16:47:45]requested_item shift.open_date is exist - process it [16:47:45]req_shift_open_date [16:47:45]req_shift_open_date done [16:47:45]produce_requested_data done [16:47:45]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75160,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:47:45]process_action_free close_receipt [16:47:45]json_value_free [16:47:45]json_value_free done [16:47:45]process_json_proto returns [16:47:45]Send response to host [16:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75160,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:47:45]free response buf [16:47:45]execute_script done [16:47:45]execute_script returns [16:47:45]free content buf [16:47:45]Sock 8.Close socket [16:47:45]Sock 8.Thread stoped [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:11]accept exits with 9 [16:48:11]New connection [16:48:11]New thread 3066781028 created [16:48:11]Thread 3066924388 joined [16:48:11]Waiting for new connection... [16:48:11] Sock 9.Parse request [16:48:11]Sock 9.Check first char [16:48:11]Sock 9.First char is OK [16:48:11]request: POST /json_proto HTTP/1.0 [16:48:11]Method: POST [16:48:11]URL: /json_proto [16:48:11]Method is POST - this is cgi request [16:48:11]url: /json_proto [16:48:11]query_string will be loaded in cgi processing [16:48:11]execute_cgi json_proto POST (null) [16:48:11]execute_cgi path=json_proto method=POST [16:48:11]POST find Content-Length [16:48:11]Host: 172.17.39.131:8080 [16:48:11]Content-Length: 679 [16:48:11]Content-Type: application/json [16:48:11] [16:48:11]POST finish read [16:48:11]Found Content-Length = 679 [16:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [16:48:11]execute_script... [16: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)191136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [16:48:11]POST & json_proto [16:48:11]process_json_proto [16:48:11]json parsed OK: [16:48:11]protocol is kg_v1.0 [16:48:11]action value=close_receipt [16:48:11]process_action close_receipt [16:48:11]cmd_close_receipt [16:48:11]MH_GetDate [16:48:11]Write to MH i2c: F0 00 00 37 3E 64 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 37 3E 00 50 1D 1D 67 86 57 24 65 C4 [16:48:11]GetLastDocTimeStamp 1729961266 [16:48:11]current date 1729961296 [16:48:11]FM_GetShiftState [16:48:11]SAM_PROTO_GetShiftState [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 01 00 [16:48:11]Write to MH i2c: E2 08 00 38 3E 80 13 01 00 00 00 00 00 F3 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 38 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0E [16:48:11]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetShiftState done [16:48:11]FM_GetShiftState done [16:48:11]opened in 1729902166 [16:48:11]opened+sec_in_day 1729988566 [16:48:11]quantity*price = 110032 [16:48:11]sum+1 = 110034 [16:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 153 26.10.2024 16:48 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75161 ФПД: 140731251989842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164816&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75161&fm=140731251989842&tin=02508201610067®Number=0000000000091691&sum=110000 [16:48:12]StoreToDocumentArchive [16:48:12]shift 512 fd 75161 [16:48:12]save to /storage/0512/doc_00075161 [16:48:12]save last doc name /storage/0512/doc_00075161 to /storage/kkm_last_doc_name [16:48:12]save OK [16:48:12]Clear old archive folders... [16:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:48:12]tlvbuf is 008365B0 [16:48:12]SAM_PROTO_ClearQueue [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 09 00 00 [16:48:12]Write to MH i2c: E2 08 00 45 3E 80 09 00 00 00 00 00 00 F5 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 45 3E 00 90 00 F7 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]SAM_PROTO_ClearQueue done [16:48:12]KKMCreateOFDPacket [16:48:12]OFDProtocolAddRootSTLVToBuf [16:48:12]FM_MakeSignedData [16:48:12]FM_MakeSignedData [16:48:12]SAM_PROTO_SignData [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 01 02 [16:48:12]Write to MH i2c: E2 08 00 46 3E 80 0D 01 02 00 00 00 00 FD [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 46 3E 00 90 00 F8 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=255 [16:48:12]MH_SAM_APDU [16:48: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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 99 00 00 00 F4 03 04 00 50 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 99 25 01 00 35 04 06 00 7F FE 8C 48 [16:48:12]Write to MH i2c: E2 02 01 47 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 99 00 00 00 F4 03 04 00 50 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 99 25 01 00 35 04 06 00 7F FE 8C 48 00 00 5A [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 47 3E 00 90 00 F9 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=7 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 02 02 02 9D 52 [16:48:12]Write to MH i2c: E2 0A 00 48 3E 80 0D 02 02 02 00 9D 52 00 00 F3 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 48 3E 00 90 00 FA [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 03 02 [16:48:12]Write to MH i2c: E2 08 00 49 3E 80 0D 03 02 00 00 00 00 02 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 0B 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 0B 00 49 3E 00 BC B0 AC AF 32 8B 07 AD 90 00 3B [16:48:12]RAPDU: BC B0 AC AF 32 8B 07 AD 90 00 [16:48:12]wFMCommunicate OK [16:48:12]SAM_PROTO_SignData done [16:48:12]FM_MakeSignedData done [16:48:12]CreateOFDProtocolMessage [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 11 00 00 [16:48:12]Write to MH i2c: E2 08 00 4A 3E 80 11 00 00 00 00 00 00 02 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 17 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 17 00 4A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5A [16:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:48:12]wFMCommunicate OK [16:48:12]CreateOFDProtocolMessage done [16:48:12]OFDSenderStorePacket 75161 [16:48:12]StoreOFDPacket docnum=75161 [16:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 D7 65 04 01 C9 80 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 99 00 00 00 F4 03 04 00 50 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 99 25 01 00 35 04 06 00 7F FE 8C 48 9D 52 BC B0 AC AF 32 8B 07 AD [16:48:12]CheckFolder [16:48:12]dirname=/storage/ofd_packets [16:48:12]CheckFolder done [16:48:12]ProducePacketName [16:48:12]name=ofd_packets/00075161 [16:48:12]NVStorageSaveData ofd_packets/00075161 [16:48:12]File name is /storage/ofd_packets/00075161 [16:48:12]Write 298 bytes [16:48:12]NVStorageSaveData done [16:48:12]OFDSenderStorePacket done [16:48:12]KKMCreateOFDPacket done [16:48:12]NVStorageSaveData kkm_last_timestamp [16:48:12]File name is /storage/kkm_last_timestamp [16:48:12]Write 4 bytes [16:48:12]NVStorageSaveData done [16:48:12]ExternCall_PrintAddStr [16:48:12]wPrintStart [16:48:12]Write to MH i2c: 01 00 00 4B 3E 89 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: 01 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: 01 07 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: 01 07 00 4B 3E 00 00 00 00 00 FF 0F 9E [16:48:12]RasterBufferAndPrint [16:48:12]line Счет N : (1)191136 [16:48:12]line ИНН: 02508201610067 [16:48:12]line Контрольно-Кассовый Чек [16:48:12]line ПРОДАЖА [16:48:12]line ТРК (МРК, ГНК) : 41 [16:48:12]line Товар: 2710194210 [16:48:12]line ДТ-К-4 [16:48:12]line 14.440 * 76.20 [16:48:12]line = 1100.33 [16:48:12]line НДС 12% НСП 1% [16:48:12]line > о реализуемом товаре [16:48:12]line ОКРУГЛЕНИЕ: -0.33 [16:48:12]line ИТОГО: 1100.00 [16:48:12]line Внесено: 1100.00 [16:48:12]line СДАЧА: 0.00 [16:48:12]line НСП 1% : 9.74 [16:48:12]line НДС 12% : 116.85 [16:48:12]line Наличными: 1100.00 [16:48:12]line Безнал.: 0.00 [16:48:12]line Место: АЗС № 142 "Партнер Нефть" [16:48:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:48:12]line СНО: Общий режим [16:48:12]line Чек 153 26.10.2024 16:48 [16:48:12]line Смена: 512 ФФД: 1.0 [16:48:12]line ЗНМ: 0300000089 [16:48:12]line РНМ: 0000000000091691 [16:48:12]line Версия ККМ: 001 [16:48:12]line ФМ: 0000000000871795 [16:48:12]line ФД: 75161 [16:48:12]line ФПД: 140731251989842 [16:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164816&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75161&fm=140731251989842&tin=02508201610067®Number=0000000000091691&sum=110000 [16:48:13]OFD Sender: Processing packet 75161 [packets to send 13, broken 12] [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00075161 [16:48:13]OFD Sender: To server: pG, [16:48:13]CommunicateWithHost lk.salyk.kg:30040 [16:48:13]ConnectInit lk.salyk.kg [16:48:13]written 0, free lines is 4095 [16:48:13]Connected sock=10 [16:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 D7 65 04 01 C9 80 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 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 99 00 00 00 F4 03 04 00 50 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 99 25 01 00 35 04 06 00 7F FE 8C 48 9D 52 BC B0 AC AF 32 8B 07 AD [16:48:13]Write to MH i2c: 01 00 00 76 3E B4 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 76 3E 00 00 00 00 00 9A 0C 61 [16:48:13]RasterBufferAndPrint [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]written 0, free lines is 3233 [16:48:13]MH_Cut [16:48:13]Write to MH i2c: D1 01 00 7D 3E 01 8D [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 7D 3E 00 8C [16:48:13]Write to MH i2c: 01 00 00 7E 3E BC [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EE A3 47 00 75 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 38 37 31 37 39 35 10 04 04 00 99 25 01 00 F4 03 04 00 CC C4 1C 67 B6 04 01 00 00 41 F2 37 66 41 8F EA A5 [16:48:13]CommunicateWithHost err = 0 [16:48:13]CheckOFDResponse [16:48:13]1017 (14) - 77093643461234 [16:48:13]1041 (16) - 0000000000871795 [16:48:13]1040 (4) - 75161 [16:48:13]1012 (4) - 26.10.2024 10:30 [16:48:13]1206 (1) - 0 [16:48:13]OFD Sender: Remove packet 75161 [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00075161 [16:48:13]NVStorageDeleteData [16:48:14]OFD Sender: No OFD packet to send [16:48:14]*** Cut start [16:48:14]*** Partial cut [16:48:14]*** CUTSNS_PIN = 1 [16:48:14]*** CUTSNS_PIN = 0 [16:48:14]*** Brake cut motor [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]*** Stop cut motor [16:48:15]*** Cut end [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 7E 3E 00 00 00 00 00 FF 0F D1 [16:48:15]process_action close_receipt done [16:48:15]requested_data is exist [16:48:15]produce_requested_data [16:48:15]requested_item fm.sn is exist - process it [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 11 00 00 [16:48:15]Write to MH i2c: E2 08 00 7F 3E 80 11 00 00 00 00 00 00 37 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 7F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8F [16:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:48:15]wFMCommunicate OK [16:48:15]requested_item fd.num is exist - process it [16:48:15]SAM_PROTO_GetFieldsCounters [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 00 00 [16:48:15]Write to MH i2c: E2 08 00 80 3E 80 13 00 00 00 00 00 00 3A [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 80 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 99 25 01 00 0E 04 04 00 00 02 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 ED [16:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 99 25 01 00 0E 04 04 00 00 02 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 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetFieldsCounters done [16:48:15]requested_item shift.num is exist - process it [16:48:15]requested_item shift.opened is exist - process it [16:48:15]req_shift_opened [16:48:15]FM_GetShiftState [16:48:15]SAM_PROTO_GetShiftState [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 01 00 [16:48:15]Write to MH i2c: E2 08 00 81 3E 80 13 01 00 00 00 00 00 3C [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 81 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 57 [16:48:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetShiftState done [16:48:15]FM_GetShiftState done [16:48:15]req_shift_opened done [16:48:15]requested_item shift.open_date is exist - process it [16:48:15]req_shift_open_date [16:48:15]req_shift_open_date done [16:48:15]produce_requested_data done [16:48:15]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75161,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:48:15]process_action_free close_receipt [16:48:15]json_value_free [16:48:15]json_value_free done [16:48:15]process_json_proto returns [16:48:15]Send response to host [16:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75161,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:48:15]free response buf [16:48:15]execute_script done [16:48:15]execute_script returns [16:48:15]free content buf [16:48:15]Sock 9.Close socket [16:48:15]Sock 9.Thread stoped [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:01]accept exits with 8 [16:50:01]New connection [16:50:01]New thread 3066924388 created [16:50:01]Thread 3066781028 joined [16:50:01]Waiting for new connection... [16:50:01] Sock 8.Parse request [16:50:01]Sock 8.Check first char [16:50:01]Sock 8.First char is OK [16:50:01]request: POST /json_proto HTTP/1.0 [16:50:01]Method: POST [16:50:01]URL: /json_proto [16:50:01]Method is POST - this is cgi request [16:50:01]url: /json_proto [16:50:01]query_string will be loaded in cgi processing [16:50:01]execute_cgi json_proto POST (null) [16:50:01]execute_cgi path=json_proto method=POST [16:50:01]POST find Content-Length [16:50:01]Host: 172.17.39.131:8080 [16:50:01]Content-Length: 682 [16:50:01]Content-Type: application/json [16:50:01] [16:50:01]POST finish read [16:50:01]Found Content-Length = 682 [16:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:50:01]execute_script... [16:50: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)191138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [16:50:01]POST & json_proto [16:50:01]process_json_proto [16:50:01]json parsed OK: [16:50:01]protocol is kg_v1.0 [16:50:01]action value=close_receipt [16:50:01]process_action close_receipt [16:50:01]cmd_close_receipt [16:50:01]MH_GetDate [16:50:01]Write to MH i2c: F0 00 00 82 3E AF [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 82 3E 00 BF 1D 1D 67 86 57 24 65 7E [16:50:01]GetLastDocTimeStamp 1729961296 [16:50:01]current date 1729961407 [16:50:01]FM_GetShiftState [16:50:01]SAM_PROTO_GetShiftState [16:50:01]wFMCommunicate request_size=4 [16:50:01]MH_SAM_APDU [16:50:01]CAPDU: 80 13 01 00 [16:50:01]Write to MH i2c: E2 08 00 83 3E 80 13 01 00 00 00 00 00 3E [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:01]Read from MH i2c: E2 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 83 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 59 [16:50:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:50:01]wFMCommunicate OK [16:50:01]SAM_PROTO_GetShiftState done [16:50:01]FM_GetShiftState done [16:50:01]opened in 1729902166 [16:50:01]opened+sec_in_day 1729988566 [16:50:01]quantity*price = 150056 [16:50:01]sum+1 = 150058 [16:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 154 26.10.2024 16:50 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75162 ФПД: 134371632873738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165007&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75162&fm=134371632873738&tin=02508201610067®Number=0000000000091691&sum=150000 [16:50:03]StoreToDocumentArchive [16:50:03]shift 512 fd 75162 [16:50:03]save to /storage/0512/doc_00075162 [16:50:03]save last doc name /storage/0512/doc_00075162 to /storage/kkm_last_doc_name [16:50:03]save OK [16:50:03]Clear old archive folders... [16:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:03]tlvbuf is 007FD930 [16:50:03]SAM_PROTO_ClearQueue [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 09 00 00 [16:50:03]Write to MH i2c: E2 08 00 90 3E 80 09 00 00 00 00 00 00 40 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 90 3E 00 90 00 42 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_ClearQueue done [16:50:03]KKMCreateOFDPacket [16:50:03]OFDProtocolAddRootSTLVToBuf [16:50:03]FM_MakeSignedData [16:50:03]FM_MakeSignedData [16:50:03]SAM_PROTO_SignData [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 01 02 [16:50:03]Write to MH i2c: E2 08 00 91 3E 80 0D 01 02 00 00 00 00 48 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 91 3E 00 90 00 43 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=255 [16:50:03]MH_SAM_APDU [16:50: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 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 9A 00 00 00 F4 03 04 00 BF 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9A 25 01 00 35 04 06 00 7A [16:50:03]Write to MH i2c: E2 02 01 92 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 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 9A 00 00 00 F4 03 04 00 BF 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9A 25 01 00 35 04 06 00 7A 00 00 5C [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 92 3E 00 90 00 44 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=10 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 02 02 05 35 D5 72 01 0A [16:50:03]Write to MH i2c: E2 0D 00 93 3E 80 0D 02 02 05 00 35 D5 72 01 0A 00 00 DC [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 93 3E 00 90 00 45 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 03 02 [16:50:03]Write to MH i2c: E2 08 00 94 3E 80 0D 03 02 00 00 00 00 4D [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0B 00 94 3E 00 2A A2 A1 65 AA 16 EB 82 90 00 4D [16:50:03]RAPDU: 2A A2 A1 65 AA 16 EB 82 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_SignData done [16:50:03]FM_MakeSignedData done [16:50:03]CreateOFDProtocolMessage [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 11 00 00 [16:50:03]Write to MH i2c: E2 08 00 95 3E 80 11 00 00 00 00 00 00 4D [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 17 00 95 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A5 [16:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:50:03]wFMCommunicate OK [16:50:03]CreateOFDProtocolMessage done [16:50:03]OFDSenderStorePacket 75162 [16:50:03]StoreOFDPacket docnum=75162 [16:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 63 FF 07 01 9A 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 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 9A 00 00 00 F4 03 04 00 BF 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9A 25 01 00 35 04 06 00 7A 35 D5 72 01 0A 2A A2 A1 65 AA 16 EB 82 [16:50:03]CheckFolder [16:50:03]dirname=/storage/ofd_packets [16:50:03]CheckFolder done [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00075162 [16:50:03]NVStorageSaveData ofd_packets/00075162 [16:50:03]File name is /storage/ofd_packets/00075162 [16:50:03]Write 301 bytes [16:50:03]NVStorageSaveData done [16:50:03]OFDSenderStorePacket done [16:50:03]KKMCreateOFDPacket done [16:50:03]NVStorageSaveData kkm_last_timestamp [16:50:03]File name is /storage/kkm_last_timestamp [16:50:03]Write 4 bytes [16:50:03]NVStorageSaveData done [16:50:03]ExternCall_PrintAddStr [16:50:03]wPrintStart [16:50:03]Write to MH i2c: 01 00 00 96 3E D4 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 96 3E 00 00 00 00 00 FF 0F E9 [16:50:03]RasterBufferAndPrint [16:50:03]line Счет N : (1)191138 [16:50:03]line ИНН: 02508201610067 [16:50:03]line Контрольно-Кассовый Чек [16:50:03]line ПРОДАЖА [16:50:03]line ТРК (МРК, ГНК) : 21 [16:50:03]line Товар: 2710124130 [16:50:03]line Аи-92-К-5 [16:50:03]line 22.430 * 66.90 [16:50:03]line = 1500.57 [16:50:03]line НДС 12% НСП 1% [16:50:03]line > о реализуемом товаре [16:50:03]line ОКРУГЛЕНИЕ: -0.57 [16:50:03]line ИТОГО: 1500.00 [16:50:03]line Внесено: 1500.00 [16:50:03]line СДАЧА: 0.00 [16:50:03]line НСП 1% : 13.28 [16:50:03]line НДС 12% : 159.35 [16:50:03]line Наличными: 1500.00 [16:50:03]line Безнал.: 0.00 [16:50:03]line Место: АЗС № 142 "Партнер Нефть" [16:50:03]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [16:50:03]line СНО: Общий режим [16:50:03]line Чек 154 26.10.2024 16:50 [16:50:03]line Смена: 512 ФФД: 1.0 [16:50:03]line ЗНМ: 0300000089 [16:50:03]line РНМ: 0000000000091691 [16:50:03]line Версия ККМ: 001 [16:50:03]line ФМ: 0000000000871795 [16:50:03]line ФД: 75162 [16:50:03]line ФПД: 134371632873738 [16:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165007&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75162&fm=134371632873738&tin=02508201610067®Number=0000000000091691&sum=150000 [16:50:03]OFD Sender: Processing packet 75162 [packets to send 13, broken 12] [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00075162 [16:50:03]OFD Sender: To server: pG, [16:50:03]CommunicateWithHost lk.salyk.kg:30040 [16:50:03]ConnectInit lk.salyk.kg [16:50:03]written 0, free lines is 4095 [16:50:04]Connected sock=10 [16:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 63 FF 07 01 9A 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 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 9A 00 00 00 F4 03 04 00 BF 1D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9A 25 01 00 35 04 06 00 7A 35 D5 72 01 0A 2A A2 A1 65 AA 16 EB 82 [16:50:04]Write to MH i2c: 01 00 00 C1 3E FF [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 C1 3E 00 00 00 00 00 AE 0C C0 [16:50:04]RasterBufferAndPrint [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]line [16:50:04]written 0, free lines is 3252 [16:50:04]MH_Cut [16:50:04]Write to MH i2c: D1 01 00 C8 3E 01 D8 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: D1 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: D1 01 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: D1 01 00 C8 3E 00 D7 [16:50:04]Write to MH i2c: 01 00 00 C9 3E 07 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F0 A9 47 00 42 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9A 25 01 00 F4 03 04 00 3B C5 1C 67 B6 04 01 00 00 0D CC 77 21 2C 6C 55 C5 [16:50:04]CommunicateWithHost err = 0 [16:50:04]CheckOFDResponse [16:50:04]1017 (14) - 77093643461234 [16:50:04]1041 (16) - 0000000000871795 [16:50:04]1040 (4) - 75162 [16:50:04]1012 (4) - 26.10.2024 10:32 [16:50:04]1206 (1) - 0 [16:50:04]OFD Sender: Remove packet 75162 [16:50:04]ProducePacketName [16:50:04]name=ofd_packets/00075162 [16:50:04]NVStorageDeleteData [16:50:04]OFD Sender: No OFD packet to send [16:50:05]*** Cut start [16:50:05]*** Partial cut [16:50:05]*** CUTSNS_PIN = 1 [16:50:05]*** CUTSNS_PIN = 0 [16:50:05]*** Brake cut motor [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]*** Stop cut motor [16:50:05]*** Cut end [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 C9 3E 00 00 00 00 00 FF 0F 1C [16:50:05]process_action close_receipt done [16:50:05]requested_data is exist [16:50:05]produce_requested_data [16:50:05]requested_item fm.sn is exist - process it [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 11 00 00 [16:50:05]Write to MH i2c: E2 08 00 CA 3E 80 11 00 00 00 00 00 00 82 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 CA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DA [16:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [16:50:05]wFMCommunicate OK [16:50:05]requested_item fd.num is exist - process it [16:50:05]SAM_PROTO_GetFieldsCounters [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 00 00 [16:50:05]Write to MH i2c: E2 08 00 CB 3E 80 13 00 00 00 00 00 00 85 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:06]Read from MH i2c: E2 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 62 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 62 00 CB 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9A 25 01 00 0E 04 04 00 00 02 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 3C [16:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9A 25 01 00 0E 04 04 00 00 02 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 [16:50:06]wFMCommunicate OK [16:50:06]SAM_PROTO_GetFieldsCounters done [16:50:06]requested_item shift.num is exist - process it [16:50:06]requested_item shift.opened is exist - process it [16:50:06]req_shift_opened [16:50:06]FM_GetShiftState [16:50:06]SAM_PROTO_GetShiftState [16:50:06]wFMCommunicate request_size=4 [16:50:06]MH_SAM_APDU [16:50:06]CAPDU: 80 13 01 00 [16:50:06]Write to MH i2c: E2 08 00 CC 3E 80 13 01 00 00 00 00 00 87 [16:50:06]Write i2c OK [16:50:06]MH_I2C_Read... [16:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:06]Read from MH i2c: E2 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 [16:50:06]MH_I2C_Read... [16:50:06]Read from MH i2c: E2 0E 00 CC 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A2 [16:50:06]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [16:50:06]wFMCommunicate OK [16:50:06]SAM_PROTO_GetShiftState done [16:50:06]FM_GetShiftState done [16:50:06]req_shift_opened done [16:50:06]requested_item shift.open_date is exist - process it [16:50:06]req_shift_open_date [16:50:06]req_shift_open_date done [16:50:06]produce_requested_data done [16:50:06]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75162,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [16:50:06]process_action_free close_receipt [16:50:06]json_value_free [16:50:06]json_value_free done [16:50:06]process_json_proto returns [16:50:06]Send response to host [16:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75162,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [16:50:06]free response buf [16:50:06]execute_script done [16:50:06]execute_script returns [16:50:06]free content buf [16:50:06]Sock 8.Close socket [16:50:06]Sock 8.Thread stoped [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:07]accept exits with 9 [17:04:07]New connection [17:04:07]New thread 3066781028 created [17:04:07]Thread 3066924388 joined [17:04:07]Waiting for new connection... [17:04:07] Sock 9.Parse request [17:04:07]Sock 9.Check first char [17:04:07]Sock 9.First char is OK [17:04:07]request: POST /json_proto HTTP/1.0 [17:04:07]Method: POST [17:04:07]URL: /json_proto [17:04:07]Method is POST - this is cgi request [17:04:07]url: /json_proto [17:04:07]query_string will be loaded in cgi processing [17:04:07]execute_cgi json_proto POST (null) [17:04:07]execute_cgi path=json_proto method=POST [17:04:07]POST find Content-Length [17:04:07]Host: 172.17.39.131:8080 [17:04:07]Content-Length: 677 [17:04:07]Content-Type: application/json [17:04:07] [17:04:07]POST finish read [17:04:07]Found Content-Length = 677 [17:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:04:07]execute_script... [17:04: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)191139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:04:07]POST & json_proto [17:04:07]process_json_proto [17:04:07]json parsed OK: [17:04:07]protocol is kg_v1.0 [17:04:07]action value=close_receipt [17:04:07]process_action close_receipt [17:04:07]cmd_close_receipt [17:04:07]MH_GetDate [17:04:07]Write to MH i2c: F0 00 00 CD 3E FA [17:04:07]Write i2c OK [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: F0 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: F0 09 00 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: F0 09 00 CD 3E 00 0C 21 1D 67 86 57 24 65 1A [17:04:07]GetLastDocTimeStamp 1729961407 [17:04:07]current date 1729962252 [17:04:07]FM_GetShiftState [17:04:07]SAM_PROTO_GetShiftState [17:04:07]wFMCommunicate request_size=4 [17:04:07]MH_SAM_APDU [17:04:07]CAPDU: 80 13 01 00 [17:04:07]Write to MH i2c: E2 08 00 CE 3E 80 13 01 00 00 00 00 00 89 [17:04:07]Write i2c OK [17:04:07]MH_I2C_Read... [17:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:07]Read from MH i2c: E2 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: E2 0E 00 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: E2 0E 00 CE 3E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A4 [17:04:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:04:07]wFMCommunicate OK [17:04:07]SAM_PROTO_GetShiftState done [17:04:07]FM_GetShiftState done [17:04:07]opened in 1729902166 [17:04:07]opened+sec_in_day 1729988566 [17:04:07]quantity*price = 60009 [17:04:07]sum+1 = 60010 [17:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 155 26.10.2024 17:04 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75163 ФПД: 266179640256825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170412&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75163&fm=266179640256825&tin=02508201610067®Number=0000000000091691&sum=60000 [17:04:08]StoreToDocumentArchive [17:04:08]shift 512 fd 75163 [17:04:08]save to /storage/0512/doc_00075163 [17:04:08]save last doc name /storage/0512/doc_00075163 to /storage/kkm_last_doc_name [17:04:08]save OK [17:04:08]Clear old archive folders... [17:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:08]tlvbuf is 009495B0 [17:04:08]SAM_PROTO_ClearQueue [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 09 00 00 [17:04:08]Write to MH i2c: E2 08 00 DB 3E 80 09 00 00 00 00 00 00 8B [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 DB 3E 00 90 00 8D [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]SAM_PROTO_ClearQueue done [17:04:08]KKMCreateOFDPacket [17:04:08]OFDProtocolAddRootSTLVToBuf [17:04:08]FM_MakeSignedData [17:04:08]FM_MakeSignedData [17:04:08]SAM_PROTO_SignData [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 01 02 [17:04:08]Write to MH i2c: E2 08 00 DC 3E 80 0D 01 02 00 00 00 00 93 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 DC 3E 00 90 00 8E [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=255 [17:04:08]MH_SAM_APDU [17:04: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 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 9B 00 00 00 F4 03 04 00 0C 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9B 25 01 00 35 04 06 00 F2 [17:04:08]Write to MH i2c: E2 02 01 DD 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 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 9B 00 00 00 F4 03 04 00 0C 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9B 25 01 00 35 04 06 00 F2 00 00 06 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 DD 3E 00 90 00 8F [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=10 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 02 02 05 16 C6 E7 69 39 [17:04:08]Write to MH i2c: E2 0D 00 DE 3E 80 0D 02 02 05 00 16 C6 E7 69 39 00 00 05 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 DE 3E 00 90 00 90 [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 03 02 [17:04:08]Write to MH i2c: E2 08 00 DF 3E 80 0D 03 02 00 00 00 00 98 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 0B 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 0B 00 DF 3E 00 F3 C1 5E 4E E1 B4 93 4A 90 00 6B [17:04:08]RAPDU: F3 C1 5E 4E E1 B4 93 4A 90 00 [17:04:08]wFMCommunicate OK [17:04:08]SAM_PROTO_SignData done [17:04:08]FM_MakeSignedData done [17:04:08]CreateOFDProtocolMessage [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 11 00 00 [17:04:08]Write to MH i2c: E2 08 00 E0 3E 80 11 00 00 00 00 00 00 98 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 17 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 17 00 E0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F0 [17:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:04:08]wFMCommunicate OK [17:04:08]CreateOFDProtocolMessage done [17:04:08]OFDSenderStorePacket 75163 [17:04:08]StoreOFDPacket docnum=75163 [17:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 18 C3 07 01 9C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 0C 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9B 25 01 00 35 04 06 00 F2 16 C6 E7 69 39 F3 C1 5E 4E E1 B4 93 4A [17:04:08]CheckFolder [17:04:08]dirname=/storage/ofd_packets [17:04:08]CheckFolder done [17:04:08]ProducePacketName [17:04:08]name=ofd_packets/00075163 [17:04:08]NVStorageSaveData ofd_packets/00075163 [17:04:08]File name is /storage/ofd_packets/00075163 [17:04:08]Write 301 bytes [17:04:08]NVStorageSaveData done [17:04:08]OFDSenderStorePacket done [17:04:08]KKMCreateOFDPacket done [17:04:08]NVStorageSaveData kkm_last_timestamp [17:04:08]File name is /storage/kkm_last_timestamp [17:04:08]Write 4 bytes [17:04:08]NVStorageSaveData done [17:04:08]ExternCall_PrintAddStr [17:04:08]wPrintStart [17:04:08]Write to MH i2c: 01 00 00 E1 3E 1F [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 07 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 07 00 E1 3E 00 00 00 00 00 FF 0F 34 [17:04:08]RasterBufferAndPrint [17:04:08]line Счет N : (1)191139 [17:04:08]line ИНН: 02508201610067 [17:04:08]line Контрольно-Кассовый Чек [17:04:08]line ПРОДАЖА [17:04:08]line ТРК (МРК, ГНК) : 21 [17:04:08]line Товар: 2710124130 [17:04:08]line Аи-92-К-5 [17:04:08]line 8.970 * 66.90 [17:04:08]line = 600.09 [17:04:08]line НДС 12% НСП 1% [17:04:08]line > о реализуемом товаре [17:04:08]line ОКРУГЛЕНИЕ: -0.09 [17:04:08]line ИТОГО: 600.00 [17:04:08]line Внесено: 600.00 [17:04:08]line СДАЧА: 0.00 [17:04:08]line НСП 1% : 5.31 [17:04:08]line НДС 12% : 63.73 [17:04:08]line Наличными: 600.00 [17:04:08]line Безнал.: 0.00 [17:04:08]line Место: АЗС № 142 "Партнер Нефть" [17:04:08]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:04:08]line СНО: Общий режим [17:04:08]line Чек 155 26.10.2024 17:04 [17:04:08]line Смена: 512 ФФД: 1.0 [17:04:08]line ЗНМ: 0300000089 [17:04:08]line РНМ: 0000000000091691 [17:04:08]line Версия ККМ: 001 [17:04:08]line ФМ: 0000000000871795 [17:04:08]line ФД: 75163 [17:04:08]line ФПД: 266179640256825 [17:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170412&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75163&fm=266179640256825&tin=02508201610067®Number=0000000000091691&sum=60000 [17:04:08]written 0, free lines is 4095 [17:04:08]OFD Sender: Processing packet 75163 [packets to send 13, broken 12] [17:04:08]ProducePacketName [17:04:08]name=ofd_packets/00075163 [17:04:08]OFD Sender: To server: pG, [17:04:08]CommunicateWithHost lk.salyk.kg:30040 [17:04:08]ConnectInit lk.salyk.kg [17:04:09]Connected sock=11 [17:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 18 C3 07 01 9C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 0C 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9B 25 01 00 35 04 06 00 F2 16 C6 E7 69 39 F3 C1 5E 4E E1 B4 93 4A [17:04:09]Write to MH i2c: 01 00 00 0C 3F 4B [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 07 00 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 07 00 0C 3F 00 00 00 00 00 A7 0C 05 [17:04:09]RasterBufferAndPrint [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]written 0, free lines is 3243 [17:04:09]MH_Cut [17:04:09]Write to MH i2c: D1 01 00 13 3F 01 24 [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 01 00 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 01 00 13 3F 00 23 [17:04:09]Write to MH i2c: 01 00 00 14 3F 53 [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7A 29 47 00 92 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9B 25 01 00 F4 03 04 00 88 C8 1C 67 B6 04 01 00 00 50 4A DD 93 75 B3 52 24 [17:04:09]CommunicateWithHost err = 0 [17:04:09]CheckOFDResponse [17:04:09]1017 (14) - 77093643461234 [17:04:09]1041 (16) - 0000000000871795 [17:04:09]1040 (4) - 75163 [17:04:09]1012 (4) - 26.10.2024 10:46 [17:04:09]1206 (1) - 0 [17:04:09]OFD Sender: Remove packet 75163 [17:04:09]ProducePacketName [17:04:09]name=ofd_packets/00075163 [17:04:09]NVStorageDeleteData [17:04:09]OFD Sender: No OFD packet to send [17:04:10]*** Cut start [17:04:10]*** Partial cut [17:04:10]*** CUTSNS_PIN = 1 [17:04:10]*** CUTSNS_PIN = 0 [17:04:10]*** Brake cut motor [17:04:10]Read from MH i2c: 01 [17:04:10]MH_I2C_Read... [17:04:10]*** Stop cut motor [17:04:10]*** Cut end [17:04:10]Read from MH i2c: 01 07 00 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [17:04:10]process_action close_receipt done [17:04:10]requested_data is exist [17:04:10]produce_requested_data [17:04:10]requested_item fm.sn is exist - process it [17:04:10]wFMCommunicate request_size=4 [17:04:10]MH_SAM_APDU [17:04:10]CAPDU: 80 11 00 00 [17:04:10]Write to MH i2c: E2 08 00 15 3F 80 11 00 00 00 00 00 00 CE [17:04:10]Write i2c OK [17:04:10]MH_I2C_Read... [17:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:10]Read from MH i2c: E2 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 17 00 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 17 00 15 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 26 [17:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:04:10]wFMCommunicate OK [17:04:10]requested_item fd.num is exist - process it [17:04:10]SAM_PROTO_GetFieldsCounters [17:04:10]wFMCommunicate request_size=4 [17:04:10]MH_SAM_APDU [17:04:10]CAPDU: 80 13 00 00 [17:04:10]Write to MH i2c: E2 08 00 16 3F 80 13 00 00 00 00 00 00 D1 [17:04:10]Write i2c OK [17:04:10]MH_I2C_Read... [17:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:10]Read from MH i2c: E2 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 62 00 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 62 00 16 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9B 25 01 00 0E 04 04 00 00 02 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 8C [17:04:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9B 25 01 00 0E 04 04 00 00 02 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 [17:04:10]wFMCommunicate OK [17:04:10]SAM_PROTO_GetFieldsCounters done [17:04:10]requested_item shift.num is exist - process it [17:04:10]requested_item shift.opened is exist - process it [17:04:10]req_shift_opened [17:04:10]FM_GetShiftState [17:04:10]SAM_PROTO_GetShiftState [17:04:10]wFMCommunicate request_size=4 [17:04:10]MH_SAM_APDU [17:04:10]CAPDU: 80 13 01 00 [17:04:10]Write to MH i2c: E2 08 00 17 3F 80 13 01 00 00 00 00 00 D3 [17:04:10]Write i2c OK [17:04:10]MH_I2C_Read... [17:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:10]Read from MH i2c: E2 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 0E 00 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: E2 0E 00 17 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 EE [17:04:10]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:04:10]wFMCommunicate OK [17:04:10]SAM_PROTO_GetShiftState done [17:04:10]FM_GetShiftState done [17:04:10]req_shift_opened done [17:04:10]requested_item shift.open_date is exist - process it [17:04:10]req_shift_open_date [17:04:10]req_shift_open_date done [17:04:11]produce_requested_data done [17:04:11]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75163,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:04:11]process_action_free close_receipt [17:04:11]json_value_free [17:04:11]json_value_free done [17:04:11]process_json_proto returns [17:04:11]Send response to host [17:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75163,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:04:11]free response buf [17:04:11]execute_script done [17:04:11]execute_script returns [17:04:11]free content buf [17:04:11]Sock 9.Close socket [17:04:11]Sock 9.Thread stoped [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:27]accept exits with 8 [17:06:27]New connection [17:06:27]New thread 3066924388 created [17:06:27]Thread 3066781028 joined [17:06:27]Waiting for new connection... [17:06:27] Sock 8.Parse request [17:06:27]Sock 8.Check first char [17:06:27]Sock 8.First char is OK [17:06:27]request: POST /json_proto HTTP/1.0 [17:06:27]Method: POST [17:06:27]URL: /json_proto [17:06:27]Method is POST - this is cgi request [17:06:27]url: /json_proto [17:06:27]query_string will be loaded in cgi processing [17:06:27]execute_cgi json_proto POST (null) [17:06:27]execute_cgi path=json_proto method=POST [17:06:27]POST find Content-Length [17:06:27]Host: 172.17.39.131:8080 [17:06:27]Content-Length: 677 [17:06:27]Content-Type: application/json [17:06:27] [17:06:27]POST finish read [17:06:27]Found Content-Length = 677 [17:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 1.010, "sum" : 39.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 39.00, "payments": [ { "type": 0, "sum" : 39.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:27]execute_script... [17:06: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)191140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 1.010, "sum" : 39.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 39.00, "payments": [ { "type": 0, "sum" : 39.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:27]POST & json_proto [17:06:27]process_json_proto [17:06:27]json parsed OK: [17:06:27]protocol is kg_v1.0 [17:06:27]action value=close_receipt [17:06:27]process_action close_receipt [17:06:27]cmd_close_receipt [17:06:27]MH_GetDate [17:06:27]Write to MH i2c: F0 00 00 18 3F 46 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: F0 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: F0 09 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: F0 09 00 18 3F 00 99 21 1D 67 86 57 24 65 F3 [17:06:27]GetLastDocTimeStamp 1729962252 [17:06:27]current date 1729962393 [17:06:27]FM_GetShiftState [17:06:27]SAM_PROTO_GetShiftState [17:06:27]wFMCommunicate request_size=4 [17:06:27]MH_SAM_APDU [17:06:27]CAPDU: 80 13 01 00 [17:06:27]Write to MH i2c: E2 08 00 19 3F 80 13 01 00 00 00 00 00 D5 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:27]Read from MH i2c: E2 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 0E 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 0E 00 19 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F0 [17:06:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:06:27]wFMCommunicate OK [17:06:27]SAM_PROTO_GetShiftState done [17:06:27]FM_GetShiftState done [17:06:27]opened in 1729902166 [17:06:27]opened+sec_in_day 1729988566 [17:06:27]quantity*price = 3928 [17:06:27]sum+1 = 3930 [17:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 39.00 Внесено: 400.00 СДАЧА: 361.00 НСП 1% : 0.35 НДС 12% : 4.17 Наличными: 39.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 156 26.10.2024 17:06 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75164 ФПД: 102330237194211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170633&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75164&fm=102330237194211&tin=02508201610067®Number=0000000000091691&sum=3900 [17:06:28]StoreToDocumentArchive [17:06:28]shift 512 fd 75164 [17:06:28]save to /storage/0512/doc_00075164 [17:06:28]save last doc name /storage/0512/doc_00075164 to /storage/kkm_last_doc_name [17:06:28]save OK [17:06:28]Clear old archive folders... [17:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:06:28]tlvbuf is B6ED3AC0 [17:06:28]SAM_PROTO_ClearQueue [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 09 00 00 [17:06:28]Write to MH i2c: E2 08 00 26 3F 80 09 00 00 00 00 00 00 D7 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 26 3F 00 90 00 D9 [17:06:28]RAPDU: 90 00 [17:06:28]wFMCommunicate OK [17:06:28]SAM_PROTO_ClearQueue done [17:06:28]KKMCreateOFDPacket [17:06:28]OFDProtocolAddRootSTLVToBuf [17:06:28]FM_MakeSignedData [17:06:28]FM_MakeSignedData [17:06:28]SAM_PROTO_SignData [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 0D 01 02 [17:06:28]Write to MH i2c: E2 08 00 27 3F 80 0D 01 02 00 00 00 00 DF [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 03 00 27 3F 00 90 00 DA [17:06:28]RAPDU: 90 00 [17:06:28]wFMCommunicate OK [17:06:28]wFMCommunicate request_size=255 [17:06:28]MH_SAM_APDU [17:06:28]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 99 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 25 01 00 35 04 06 00 5D 11 [17:06:28]Write to MH i2c: E2 02 01 28 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 99 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 25 01 00 35 04 06 00 5D 11 00 00 99 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 28 3F 00 90 00 DB [17:06:29]RAPDU: 90 00 [17:06:29]wFMCommunicate OK [17:06:29]wFMCommunicate request_size=9 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 0D 02 02 04 9D 70 0F E3 [17:06:29]Write to MH i2c: E2 0C 00 29 3F 80 0D 02 02 04 00 9D 70 0F E3 00 00 E9 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 03 00 29 3F 00 90 00 DC [17:06:29]RAPDU: 90 00 [17:06:29]wFMCommunicate OK [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 0D 03 02 [17:06:29]Write to MH i2c: E2 08 00 2A 3F 80 0D 03 02 00 00 00 00 E4 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0B 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0B 00 2A 3F 00 BE DD 53 B1 A8 01 82 C3 90 00 72 [17:06:29]RAPDU: BE DD 53 B1 A8 01 82 C3 90 00 [17:06:29]wFMCommunicate OK [17:06:29]SAM_PROTO_SignData done [17:06:29]FM_MakeSignedData done [17:06:29]CreateOFDProtocolMessage [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 11 00 00 [17:06:29]Write to MH i2c: E2 08 00 2B 3F 80 11 00 00 00 00 00 00 E4 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 17 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 17 00 2B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3C [17:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:06:29]wFMCommunicate OK [17:06:29]CreateOFDProtocolMessage done [17:06:29]OFDSenderStorePacket 75164 [17:06:29]StoreOFDPacket docnum=75164 [17:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 9E 6A 06 01 6C 82 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 99 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 25 01 00 35 04 06 00 5D 11 9D 70 0F E3 BE DD 53 B1 A8 01 82 C3 [17:06:29]CheckFolder [17:06:29]dirname=/storage/ofd_packets [17:06:29]CheckFolder done [17:06:29]ProducePacketName [17:06:29]name=ofd_packets/00075164 [17:06:29]NVStorageSaveData ofd_packets/00075164 [17:06:29]File name is /storage/ofd_packets/00075164 [17:06:29]Write 300 bytes [17:06:29]NVStorageSaveData done [17:06:29]OFDSenderStorePacket done [17:06:29]KKMCreateOFDPacket done [17:06:29]NVStorageSaveData kkm_last_timestamp [17:06:29]File name is /storage/kkm_last_timestamp [17:06:29]Write 4 bytes [17:06:29]NVStorageSaveData done [17:06:29]ExternCall_PrintAddStr [17:06:29]wPrintStart [17:06:29]Write to MH i2c: 01 00 00 2C 3F 6B [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 07 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 07 00 2C 3F 00 00 00 00 00 FF 0F 80 [17:06:29]RasterBufferAndPrint [17:06:29]line Счет N : (1)191140 [17:06:29]line ИНН: 02508201610067 [17:06:29]line Контрольно-Кассовый Чек [17:06:29]line ПРОДАЖА [17:06:29]line ТРК (МРК, ГНК) : 51 [17:06:29]line Товар: 2711190000 [17:06:29]line ГАЗ-К-3 [17:06:29]line 1.010 * 38.90 [17:06:29]line = 39.29 [17:06:29]line НДС 12% НСП 1% [17:06:29]line > о реализуемом товаре [17:06:29]line ОКРУГЛЕНИЕ: -0.29 [17:06:29]line ИТОГО: 39.00 [17:06:29]line Внесено: 400.00 [17:06:29]line СДАЧА: 361.00 [17:06:29]line НСП 1% : 0.35 [17:06:29]line НДС 12% : 4.17 [17:06:29]line Наличными: 39.00 [17:06:29]line Безнал.: 0.00 [17:06:29]line Место: АЗС № 142 "Партнер Нефть" [17:06:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:06:29]line СНО: Общий режим [17:06:29]line Чек 156 26.10.2024 17:06 [17:06:29]line Смена: 512 ФФД: 1.0 [17:06:29]line ЗНМ: 0300000089 [17:06:29]line РНМ: 0000000000091691 [17:06:29]line Версия ККМ: 001 [17:06:29]line ФМ: 0000000000871795 [17:06:29]line ФД: 75164 [17:06:29]line ФПД: 102330237194211 [17:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170633&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75164&fm=102330237194211&tin=02508201610067®Number=0000000000091691&sum=3900 [17:06:29]written 0, free lines is 4095 [17:06:29]OFD Sender: Processing packet 75164 [packets to send 13, broken 12] [17:06:29]ProducePacketName [17:06:29]name=ofd_packets/00075164 [17:06:29]OFD Sender: To server: pG, [17:06:29]CommunicateWithHost lk.salyk.kg:30040 [17:06:29]ConnectInit lk.salyk.kg [17:06:29]Connected sock=10 [17:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 9E 6A 06 01 6C 82 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 99 21 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 25 01 00 35 04 06 00 5D 11 9D 70 0F E3 BE DD 53 B1 A8 01 82 C3 [17:06:29]Write to MH i2c: 01 00 00 57 3F 96 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: 01 [17:06:29]MH_I2C_Read... [17:06:30]Read from MH i2c: 01 07 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: 01 07 00 57 3F 00 00 00 00 00 9C 0C 45 [17:06:30]RasterBufferAndPrint [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]line [17:06:30]written 0, free lines is 3236 [17:06:30]MH_Cut [17:06:30]Write to MH i2c: D1 01 00 5E 3F 01 6F [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 01 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: D1 01 00 5E 3F 00 6E [17:06:30]Write to MH i2c: 01 00 00 5F 3F 9E [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C0 D8 47 00 B3 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9C 25 01 00 F4 03 04 00 15 C9 1C 67 B6 04 01 00 00 89 2F B8 FC 6C 57 93 15 [17:06:30]CommunicateWithHost err = 0 [17:06:30]CheckOFDResponse [17:06:30]1017 (14) - 77093643461234 [17:06:30]1041 (16) - 0000000000871795 [17:06:30]1040 (4) - 75164 [17:06:30]1012 (4) - 26.10.2024 10:48 [17:06:30]1206 (1) - 0 [17:06:30]OFD Sender: Remove packet 75164 [17:06:30]ProducePacketName [17:06:30]name=ofd_packets/00075164 [17:06:30]NVStorageDeleteData [17:06:30]OFD Sender: No OFD packet to send [17:06:30]*** Cut start [17:06:30]*** Partial cut [17:06:30]*** CUTSNS_PIN = 1 [17:06:30]*** CUTSNS_PIN = 0 [17:06:31]*** Brake cut motor [17:06:31]Read from MH i2c: 01 [17:06:31]MH_I2C_Read... [17:06:31]*** Stop cut motor [17:06:31]*** Cut end [17:06:31]Read from MH i2c: 01 07 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 07 00 5F 3F 00 00 00 00 00 FF 0F B3 [17:06:31]process_action close_receipt done [17:06:31]requested_data is exist [17:06:31]produce_requested_data [17:06:31]requested_item fm.sn is exist - process it [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 11 00 00 [17:06:31]Write to MH i2c: E2 08 00 60 3F 80 11 00 00 00 00 00 00 19 [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 60 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 71 [17:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:06:31]wFMCommunicate OK [17:06:31]requested_item fd.num is exist - process it [17:06:31]SAM_PROTO_GetFieldsCounters [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 13 00 00 [17:06:31]Write to MH i2c: E2 08 00 61 3F 80 13 00 00 00 00 00 00 1C [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 62 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 62 00 61 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9C 25 01 00 0E 04 04 00 00 02 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 DB [17:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9C 25 01 00 0E 04 04 00 00 02 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 [17:06:31]wFMCommunicate OK [17:06:31]SAM_PROTO_GetFieldsCounters done [17:06:31]requested_item shift.num is exist - process it [17:06:31]requested_item shift.opened is exist - process it [17:06:31]req_shift_opened [17:06:31]FM_GetShiftState [17:06:31]SAM_PROTO_GetShiftState [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 13 01 00 [17:06:31]Write to MH i2c: E2 08 00 62 3F 80 13 01 00 00 00 00 00 1E [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 0E 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 0E 00 62 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 39 [17:06:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:06:31]wFMCommunicate OK [17:06:31]SAM_PROTO_GetShiftState done [17:06:31]FM_GetShiftState done [17:06:31]req_shift_opened done [17:06:31]requested_item shift.open_date is exist - process it [17:06:31]req_shift_open_date [17:06:31]req_shift_open_date done [17:06:31]produce_requested_data done [17:06:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75164,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:06:31]process_action_free close_receipt [17:06:31]json_value_free [17:06:31]json_value_free done [17:06:31]process_json_proto returns [17:06:31]Send response to host [17:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75164,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:06:31]free response buf [17:06:31]execute_script done [17:06:31]execute_script returns [17:06:31]free content buf [17:06:31]Sock 8.Close socket [17:06:31]Sock 8.Thread stoped [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]accept exits with 9 [17:09:05]New connection [17:09:05]New thread 3066781028 created [17:09:05]Thread 3066924388 joined [17:09:05]Waiting for new connection... [17:09:05] Sock 9.Parse request [17:09:05]Sock 9.Check first char [17:09:05]Sock 9.First char is OK [17:09:05]request: POST /json_proto HTTP/1.0 [17:09:05]Method: POST [17:09:05]URL: /json_proto [17:09:05]Method is POST - this is cgi request [17:09:05]url: /json_proto [17:09:05]query_string will be loaded in cgi processing [17:09:05]execute_cgi json_proto POST (null) [17:09:05]execute_cgi path=json_proto method=POST [17:09:05]POST find Content-Length [17:09:05]Host: 172.17.39.131:8080 [17:09:05]Content-Length: 680 [17:09:05]Content-Type: application/json [17:09:05] [17:09:05]POST finish read [17:09:05]Found Content-Length = 680 [17:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.260, "sum" : 360.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:05]execute_script... [17:09: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)191141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.260, "sum" : 360.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:05]POST & json_proto [17:09:05]process_json_proto [17:09:05]json parsed OK: [17:09:05]protocol is kg_v1.0 [17:09:05]action value=close_receipt [17:09:05]process_action close_receipt [17:09:05]cmd_close_receipt [17:09:05]MH_GetDate [17:09:05]Write to MH i2c: F0 00 00 63 3F 91 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 09 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 09 00 63 3F 00 37 22 1D 67 86 57 24 65 DD [17:09:05]GetLastDocTimeStamp 1729962393 [17:09:05]current date 1729962551 [17:09:05]FM_GetShiftState [17:09:05]SAM_PROTO_GetShiftState [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 01 00 [17:09:05]Write to MH i2c: E2 08 00 64 3F 80 13 01 00 00 00 00 00 20 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 64 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 3B [17:09:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]opened in 1729902166 [17:09:05]opened+sec_in_day 1729988566 [17:09:05]quantity*price = 36021 [17:09:05]sum+1 = 36022 [17:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.25 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 157 26.10.2024 17:09 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75165 ФПД: 267004045322711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170911&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75165&fm=267004045322711&tin=02508201610067®Number=0000000000091691&sum=36000 [17:09:06]StoreToDocumentArchive [17:09:06]shift 512 fd 75165 [17:09:06]save to /storage/0512/doc_00075165 [17:09:06]save last doc name /storage/0512/doc_00075165 to /storage/kkm_last_doc_name [17:09:06]save OK [17:09:06]Clear old archive folders... [17:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:09:06]tlvbuf is B6F4E800 [17:09:06]SAM_PROTO_ClearQueue [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 09 00 00 [17:09:06]Write to MH i2c: E2 08 00 71 3F 80 09 00 00 00 00 00 00 22 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 71 3F 00 90 00 24 [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]SAM_PROTO_ClearQueue done [17:09:06]KKMCreateOFDPacket [17:09:06]OFDProtocolAddRootSTLVToBuf [17:09:06]FM_MakeSignedData [17:09:06]FM_MakeSignedData [17:09:06]SAM_PROTO_SignData [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 01 02 [17:09:06]Write to MH i2c: E2 08 00 72 3F 80 0D 01 02 00 00 00 00 2A [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 72 3F 00 90 00 25 [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]wFMCommunicate request_size=255 [17:09:06]MH_SAM_APDU [17:09:06]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 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 37 22 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 25 01 00 35 04 06 00 F2 D6 [17:09:06]Write to MH i2c: E2 02 01 73 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 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 37 22 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 25 01 00 35 04 06 00 F2 D6 00 00 4F [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 73 3F 00 90 00 26 [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]wFMCommunicate request_size=9 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 02 02 04 B9 46 69 D7 [17:09:06]Write to MH i2c: E2 0C 00 74 3F 80 0D 02 02 04 00 B9 46 69 D7 00 00 74 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 74 3F 00 90 00 27 [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 0D 03 02 [17:09:07]Write to MH i2c: E2 08 00 75 3F 80 0D 03 02 00 00 00 00 2F [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0B 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0B 00 75 3F 00 38 AA 3E 99 43 06 11 A8 90 00 EB [17:09:07]RAPDU: 38 AA 3E 99 43 06 11 A8 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_SignData done [17:09:07]FM_MakeSignedData done [17:09:07]CreateOFDProtocolMessage [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 11 00 00 [17:09:07]Write to MH i2c: E2 08 00 76 3F 80 11 00 00 00 00 00 00 2F [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 76 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 87 [17:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:09:07]wFMCommunicate OK [17:09:07]CreateOFDProtocolMessage done [17:09:07]OFDSenderStorePacket 75165 [17:09:07]StoreOFDPacket docnum=75165 [17:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B8 9E 06 01 AE 22 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 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 37 22 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 25 01 00 35 04 06 00 F2 D6 B9 46 69 D7 38 AA 3E 99 43 06 11 A8 [17:09:07]CheckFolder [17:09:07]dirname=/storage/ofd_packets [17:09:07]CheckFolder done [17:09:07]ProducePacketName [17:09:07]name=ofd_packets/00075165 [17:09:07]NVStorageSaveData ofd_packets/00075165 [17:09:07]File name is /storage/ofd_packets/00075165 [17:09:07]Write 300 bytes [17:09:07]NVStorageSaveData done [17:09:07]OFDSenderStorePacket done [17:09:07]KKMCreateOFDPacket done [17:09:07]NVStorageSaveData kkm_last_timestamp [17:09:07]File name is /storage/kkm_last_timestamp [17:09:07]Write 4 bytes [17:09:07]NVStorageSaveData done [17:09:07]ExternCall_PrintAddStr [17:09:07]wPrintStart [17:09:07]Write to MH i2c: 01 00 00 77 3F B6 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 77 3F 00 00 00 00 00 FF 0F CB [17:09:07]RasterBufferAndPrint [17:09:07]line Счет N : (1)191141 [17:09:07]line ИНН: 02508201610067 [17:09:07]line Контрольно-Кассовый Чек [17:09:07]line ПРОДАЖА [17:09:07]line ТРК (МРК, ГНК) : 51 [17:09:07]line Товар: 2711190000 [17:09:07]line ГАЗ-К-3 [17:09:07]line 9.260 * 38.90 [17:09:07]line = 360.21 [17:09:07]line НДС 12% НСП 1% [17:09:07]line > о реализуемом товаре [17:09:07]line ОКРУГЛЕНИЕ: -0.21 [17:09:07]line ИТОГО: 360.00 [17:09:07]line Внесено: 360.00 [17:09:07]line СДАЧА: 0.00 [17:09:07]line НСП 1% : 3.19 [17:09:07]line НДС 12% : 38.25 [17:09:07]line Наличными: 360.00 [17:09:07]line Безнал.: 0.00 [17:09:07]line Место: АЗС № 142 "Партнер Нефть" [17:09:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:09:07]line СНО: Общий режим [17:09:07]line Чек 157 26.10.2024 17:09 [17:09:07]line Смена: 512 ФФД: 1.0 [17:09:07]line ЗНМ: 0300000089 [17:09:07]line РНМ: 0000000000091691 [17:09:07]line Версия ККМ: 001 [17:09:07]line ФМ: 0000000000871795 [17:09:07]line ФД: 75165 [17:09:07]line ФПД: 267004045322711 [17:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170911&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75165&fm=267004045322711&tin=02508201610067®Number=0000000000091691&sum=36000 [17:09:07]written 0, free lines is 4095 [17:09:07]OFD Sender: Processing packet 75165 [packets to send 13, broken 12] [17:09:07]ProducePacketName [17:09:07]name=ofd_packets/00075165 [17:09:07]OFD Sender: To server: pG, [17:09:07]CommunicateWithHost lk.salyk.kg:30040 [17:09:07]ConnectInit lk.salyk.kg [17:09:07]Connected sock=10 [17:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 B8 9E 06 01 AE 22 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 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 37 22 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 25 01 00 35 04 06 00 F2 D6 B9 46 69 D7 38 AA 3E 99 43 06 11 A8 [17:09:07]Write to MH i2c: 01 00 00 A2 3F E1 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 A2 3F 00 00 00 00 00 A3 0C 97 [17:09:07]RasterBufferAndPrint [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]written 0, free lines is 3242 [17:09:07]MH_Cut [17:09:07]Write to MH i2c: D1 01 00 A9 3F 01 BA [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 01 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 01 00 A9 3F 00 B9 [17:09:07]Write to MH i2c: 01 00 00 AA 3F E9 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 18 3A 47 00 7E 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9D 25 01 00 F4 03 04 00 B2 C9 1C 67 B6 04 01 00 00 D0 91 6A 53 0B 3B ED 57 [17:09:07]CommunicateWithHost err = 0 [17:09:07]CheckOFDResponse [17:09:07]1017 (14) - 77093643461234 [17:09:07]1041 (16) - 0000000000871795 [17:09:07]1040 (4) - 75165 [17:09:07]1012 (4) - 26.10.2024 10:51 [17:09:07]1206 (1) - 0 [17:09:07]OFD Sender: Remove packet 75165 [17:09:07]ProducePacketName [17:09:07]name=ofd_packets/00075165 [17:09:07]NVStorageDeleteData [17:09:08]OFD Sender: No OFD packet to send [17:09:08]*** Cut start [17:09:08]*** Partial cut [17:09:08]*** CUTSNS_PIN = 1 [17:09:08]*** CUTSNS_PIN = 0 [17:09:09]*** Brake cut motor [17:09:09]Read from MH i2c: 01 [17:09:09]MH_I2C_Read... [17:09:09]*** Stop cut motor [17:09:09]*** Cut end [17:09:09]Read from MH i2c: 01 07 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 AA 3F 00 00 00 00 00 FF 0F FE [17:09:09]process_action close_receipt done [17:09:09]requested_data is exist [17:09:09]produce_requested_data [17:09:09]requested_item fm.sn is exist - process it [17:09:09]wFMCommunicate request_size=4 [17:09:09]MH_SAM_APDU [17:09:09]CAPDU: 80 11 00 00 [17:09:09]Write to MH i2c: E2 08 00 AB 3F 80 11 00 00 00 00 00 00 64 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:09]Read from MH i2c: E2 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 17 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 17 00 AB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BC [17:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:09:09]wFMCommunicate OK [17:09:09]requested_item fd.num is exist - process it [17:09:09]SAM_PROTO_GetFieldsCounters [17:09:09]wFMCommunicate request_size=4 [17:09:09]MH_SAM_APDU [17:09:09]CAPDU: 80 13 00 00 [17:09:09]Write to MH i2c: E2 08 00 AC 3F 80 13 00 00 00 00 00 00 67 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:09]Read from MH i2c: E2 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 62 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 62 00 AC 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9D 25 01 00 0E 04 04 00 00 02 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 2A [17:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9D 25 01 00 0E 04 04 00 00 02 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 [17:09:09]wFMCommunicate OK [17:09:09]SAM_PROTO_GetFieldsCounters done [17:09:09]requested_item shift.num is exist - process it [17:09:09]requested_item shift.opened is exist - process it [17:09:09]req_shift_opened [17:09:09]FM_GetShiftState [17:09:09]SAM_PROTO_GetShiftState [17:09:09]wFMCommunicate request_size=4 [17:09:09]MH_SAM_APDU [17:09:09]CAPDU: 80 13 01 00 [17:09:09]Write to MH i2c: E2 08 00 AD 3F 80 13 01 00 00 00 00 00 69 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:09]Read from MH i2c: E2 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 AD 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 84 [17:09:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:09:09]wFMCommunicate OK [17:09:09]SAM_PROTO_GetShiftState done [17:09:09]FM_GetShiftState done [17:09:09]req_shift_opened done [17:09:09]requested_item shift.open_date is exist - process it [17:09:09]req_shift_open_date [17:09:09]req_shift_open_date done [17:09:09]produce_requested_data done [17:09:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75165,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:09:09]process_action_free close_receipt [17:09:09]json_value_free [17:09:09]json_value_free done [17:09:09]process_json_proto returns [17:09:09]Send response to host [17:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75165,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:09:09]free response buf [17:09:09]execute_script done [17:09:09]execute_script returns [17:09:09]free content buf [17:09:09]Sock 9.Close socket [17:09:09]Sock 9.Thread stoped [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [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:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:16]accept exits with 8 [17:27:16]New connection [17:27:16]New thread 3066924388 created [17:27:16]Thread 3066781028 joined [17:27:16]Waiting for new connection... [17:27:16] Sock 8.Parse request [17:27:16]Sock 8.Check first char [17:27:16]Sock 8.First char is OK [17:27:16]request: POST /json_proto HTTP/1.0 [17:27:16]Method: POST [17:27:16]URL: /json_proto [17:27:16]Method is POST - this is cgi request [17:27:16]url: /json_proto [17:27:16]query_string will be loaded in cgi processing [17:27:16]execute_cgi json_proto POST (null) [17:27:16]execute_cgi path=json_proto method=POST [17:27:16]POST find Content-Length [17:27:16]Host: 172.17.39.131:8080 [17:27:16]Content-Length: 677 [17:27:16]Content-Type: application/json [17:27:16] [17:27:16]POST finish read [17:27:16]Found Content-Length = 677 [17:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:27:16]execute_script... [17: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)191142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:27:16]POST & json_proto [17:27:16]process_json_proto [17:27:16]json parsed OK: [17:27:16]protocol is kg_v1.0 [17:27:16]action value=close_receipt [17:27:16]process_action close_receipt [17:27:16]cmd_close_receipt [17:27:16]MH_GetDate [17:27:16]Write to MH i2c: F0 00 00 AE 3F DC [17:27:16]Write i2c OK [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: F0 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: F0 09 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: F0 09 00 AE 3F 00 7A 26 1D 67 86 57 24 65 6F [17:27:16]GetLastDocTimeStamp 1729962551 [17:27:16]current date 1729963642 [17:27:16]FM_GetShiftState [17:27:16]SAM_PROTO_GetShiftState [17:27:16]wFMCommunicate request_size=4 [17:27:16]MH_SAM_APDU [17:27:16]CAPDU: 80 13 01 00 [17:27:16]Write to MH i2c: E2 08 00 AF 3F 80 13 01 00 00 00 00 00 6B [17:27:16]Write i2c OK [17:27:16]MH_I2C_Read... [17:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:16]Read from MH i2c: E2 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 0E 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 0E 00 AF 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 86 [17:27:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:27:16]wFMCommunicate OK [17:27:16]SAM_PROTO_GetShiftState done [17:27:16]FM_GetShiftState done [17:27:16]opened in 1729902166 [17:27:16]opened+sec_in_day 1729988566 [17:27:16]quantity*price = 40006 [17:27:16]sum+1 = 40007 [17:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 158 26.10.2024 17:27 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75166 ФПД: 168621074525905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172722&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75166&fm=168621074525905&tin=02508201610067®Number=0000000000091691&sum=40000 [17:27:17]StoreToDocumentArchive [17:27:17]shift 512 fd 75166 [17:27:17]save to /storage/0512/doc_00075166 [17:27:17]save last doc name /storage/0512/doc_00075166 to /storage/kkm_last_doc_name [17:27:17]save OK [17:27:17]Clear old archive folders... [17:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:17]tlvbuf is B6DA17C0 [17:27:17]SAM_PROTO_ClearQueue [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 09 00 00 [17:27:17]Write to MH i2c: E2 08 00 BC 3F 80 09 00 00 00 00 00 00 6D [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 BC 3F 00 90 00 6F [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]SAM_PROTO_ClearQueue done [17:27:17]KKMCreateOFDPacket [17:27:17]OFDProtocolAddRootSTLVToBuf [17:27:17]FM_MakeSignedData [17:27:17]FM_MakeSignedData [17:27:17]SAM_PROTO_SignData [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 0D 01 02 [17:27:17]Write to MH i2c: E2 08 00 BD 3F 80 0D 01 02 00 00 00 00 75 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 BD 3F 00 90 00 70 [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]wFMCommunicate request_size=255 [17:27:17]MH_SAM_APDU [17: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 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 9E 00 00 00 F4 03 04 00 7A 26 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 25 01 00 35 04 06 00 99 [17:27:17]Write to MH i2c: E2 02 01 BE 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 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 9E 00 00 00 F4 03 04 00 7A 26 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 25 01 00 35 04 06 00 99 00 00 FA [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:18]Read from MH i2c: E2 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 03 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 03 00 BE 3F 00 90 00 71 [17:27:18]RAPDU: 90 00 [17:27:18]wFMCommunicate OK [17:27:18]wFMCommunicate request_size=10 [17:27:18]MH_SAM_APDU [17:27:18]CAPDU: 80 0D 02 02 05 5C 27 3F AE D1 [17:27:18]Write to MH i2c: E2 0D 00 BF 3F 80 0D 02 02 05 00 5C 27 3F AE D1 00 00 C3 [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:18]Read from MH i2c: E2 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 03 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 03 00 BF 3F 00 90 00 72 [17:27:18]RAPDU: 90 00 [17:27:18]wFMCommunicate OK [17:27:18]wFMCommunicate request_size=4 [17:27:18]MH_SAM_APDU [17:27:18]CAPDU: 80 0D 03 02 [17:27:18]Write to MH i2c: E2 08 00 C0 3F 80 0D 03 02 00 00 00 00 7A [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:18]Read from MH i2c: E2 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 0B 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 0B 00 C0 3F 00 82 6C DC 04 0F 06 8E 9F 90 00 8B [17:27:18]RAPDU: 82 6C DC 04 0F 06 8E 9F 90 00 [17:27:18]wFMCommunicate OK [17:27:18]SAM_PROTO_SignData done [17:27:18]FM_MakeSignedData done [17:27:18]CreateOFDProtocolMessage [17:27:18]wFMCommunicate request_size=4 [17:27:18]MH_SAM_APDU [17:27:18]CAPDU: 80 11 00 00 [17:27:18]Write to MH i2c: E2 08 00 C1 3F 80 11 00 00 00 00 00 00 7A [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:18]Read from MH i2c: E2 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 17 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: E2 17 00 C1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D2 [17:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:27:18]wFMCommunicate OK [17:27:18]CreateOFDProtocolMessage done [17:27:18]OFDSenderStorePacket 75166 [17:27:18]StoreOFDPacket docnum=75166 [17:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0A 59 07 01 8F 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 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 9E 00 00 00 F4 03 04 00 7A 26 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 25 01 00 35 04 06 00 99 5C 27 3F AE D1 82 6C DC 04 0F 06 8E 9F [17:27:18]CheckFolder [17:27:18]dirname=/storage/ofd_packets [17:27:18]CheckFolder done [17:27:18]ProducePacketName [17:27:18]name=ofd_packets/00075166 [17:27:18]NVStorageSaveData ofd_packets/00075166 [17:27:18]File name is /storage/ofd_packets/00075166 [17:27:18]Write 301 bytes [17:27:18]NVStorageSaveData done [17:27:18]OFDSenderStorePacket done [17:27:18]KKMCreateOFDPacket done [17:27:18]NVStorageSaveData kkm_last_timestamp [17:27:18]File name is /storage/kkm_last_timestamp [17:27:18]Write 4 bytes [17:27:18]NVStorageSaveData done [17:27:18]ExternCall_PrintAddStr [17:27:18]wPrintStart [17:27:18]Write to MH i2c: 01 00 00 C2 3F 01 [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 07 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 07 00 C2 3F 00 00 00 00 00 FF 0F 16 [17:27:18]RasterBufferAndPrint [17:27:18]line Счет N : (1)191142 [17:27:18]line ИНН: 02508201610067 [17:27:18]line Контрольно-Кассовый Чек [17:27:18]line ПРОДАЖА [17:27:18]line ТРК (МРК, ГНК) : 21 [17:27:18]line Товар: 2710124130 [17:27:18]line Аи-92-К-5 [17:27:18]line 5.980 * 66.90 [17:27:18]line = 400.06 [17:27:18]line НДС 12% НСП 1% [17:27:18]line > о реализуемом товаре [17:27:18]line ОКРУГЛЕНИЕ: -0.06 [17:27:18]line ИТОГО: 400.00 [17:27:18]line Внесено: 400.00 [17:27:18]line СДАЧА: 0.00 [17:27:18]line НСП 1% : 3.54 [17:27:18]line НДС 12% : 42.48 [17:27:18]line Наличными: 400.00 [17:27:18]line Безнал.: 0.00 [17:27:18]line Место: АЗС № 142 "Партнер Нефть" [17:27:18]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:27:18]line СНО: Общий режим [17:27:18]line Чек 158 26.10.2024 17:27 [17:27:18]line Смена: 512 ФФД: 1.0 [17:27:18]line ЗНМ: 0300000089 [17:27:18]line РНМ: 0000000000091691 [17:27:18]line Версия ККМ: 001 [17:27:18]line ФМ: 0000000000871795 [17:27:18]line ФД: 75166 [17:27:18]line ФПД: 168621074525905 [17:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172722&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75166&fm=168621074525905&tin=02508201610067®Number=0000000000091691&sum=40000 [17:27:18]written 0, free lines is 4095 [17:27:18]OFD Sender: Processing packet 75166 [packets to send 13, broken 12] [17:27:18]ProducePacketName [17:27:18]name=ofd_packets/00075166 [17:27:18]OFD Sender: To server: pG, [17:27:18]CommunicateWithHost lk.salyk.kg:30040 [17:27:18]ConnectInit lk.salyk.kg [17:27:18]Connected sock=10 [17:27:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 0A 59 07 01 8F 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 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 9E 00 00 00 F4 03 04 00 7A 26 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9E 25 01 00 35 04 06 00 99 5C 27 3F AE D1 82 6C DC 04 0F 06 8E 9F [17:27:19]Write to MH i2c: 01 00 00 ED 3F 2C [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: 01 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: 01 07 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: 01 07 00 ED 3F 00 00 00 00 00 AF 0C EE [17:27:19]RasterBufferAndPrint [17:27:19]line [17:27:19]line [17:27:19]line [17:27:19]line [17:27:19]line [17:27:19]written 0, free lines is 3253 [17:27:19]MH_Cut [17:27:19]Write to MH i2c: D1 01 00 F4 3F 01 05 [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: D1 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: D1 01 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: D1 01 00 F4 3F 00 04 [17:27:19]Write to MH i2c: 01 00 00 F5 3F 34 [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8C DC 47 00 5A 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 38 37 31 37 39 35 10 04 04 00 9E 25 01 00 F4 03 04 00 F6 CD 1C 67 B6 04 01 00 00 28 8F 3D 15 4C BD FC 01 [17:27:19]CommunicateWithHost err = 0 [17:27:19]CheckOFDResponse [17:27:19]1017 (14) - 77093643461234 [17:27:19]1041 (16) - 0000000000871795 [17:27:19]1040 (4) - 75166 [17:27:19]1012 (4) - 26.10.2024 11:09 [17:27:19]1206 (1) - 0 [17:27:19]OFD Sender: Remove packet 75166 [17:27:19]ProducePacketName [17:27:19]name=ofd_packets/00075166 [17:27:19]NVStorageDeleteData [17:27:19]OFD Sender: No OFD packet to send [17:27:20]*** Cut start [17:27:20]*** Partial cut [17:27:20]*** CUTSNS_PIN = 1 [17:27:20]*** CUTSNS_PIN = 0 [17:27:20]*** Brake cut motor [17:27:20]Read from MH i2c: 01 [17:27:20]MH_I2C_Read... [17:27:20]*** Stop cut motor [17:27:20]*** Cut end [17:27:20]Read from MH i2c: 01 07 00 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: 01 07 00 F5 3F 00 00 00 00 00 FF 0F 49 [17:27:20]process_action close_receipt done [17:27:20]requested_data is exist [17:27:20]produce_requested_data [17:27:20]requested_item fm.sn is exist - process it [17:27:20]wFMCommunicate request_size=4 [17:27:20]MH_SAM_APDU [17:27:20]CAPDU: 80 11 00 00 [17:27:20]Write to MH i2c: E2 08 00 F6 3F 80 11 00 00 00 00 00 00 AF [17:27:20]Write i2c OK [17:27:20]MH_I2C_Read... [17:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:20]Read from MH i2c: E2 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 17 00 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 17 00 F6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 07 [17:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:27:20]wFMCommunicate OK [17:27:20]requested_item fd.num is exist - process it [17:27:20]SAM_PROTO_GetFieldsCounters [17:27:20]wFMCommunicate request_size=4 [17:27:20]MH_SAM_APDU [17:27:20]CAPDU: 80 13 00 00 [17:27:20]Write to MH i2c: E2 08 00 F7 3F 80 13 00 00 00 00 00 00 B2 [17:27:20]Write i2c OK [17:27:20]MH_I2C_Read... [17:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:20]Read from MH i2c: E2 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 62 00 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 62 00 F7 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9E 25 01 00 0E 04 04 00 00 02 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 79 [17:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9E 25 01 00 0E 04 04 00 00 02 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 [17:27:20]wFMCommunicate OK [17:27:20]SAM_PROTO_GetFieldsCounters done [17:27:20]requested_item shift.num is exist - process it [17:27:20]requested_item shift.opened is exist - process it [17:27:20]req_shift_opened [17:27:20]FM_GetShiftState [17:27:20]SAM_PROTO_GetShiftState [17:27:20]wFMCommunicate request_size=4 [17:27:20]MH_SAM_APDU [17:27:20]CAPDU: 80 13 01 00 [17:27:20]Write to MH i2c: E2 08 00 F8 3F 80 13 01 00 00 00 00 00 B4 [17:27:20]Write i2c OK [17:27:20]MH_I2C_Read... [17:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:20]Read from MH i2c: E2 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 0E 00 [17:27:20]MH_I2C_Read... [17:27:20]Read from MH i2c: E2 0E 00 F8 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CF [17:27:20]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:27:20]wFMCommunicate OK [17:27:20]SAM_PROTO_GetShiftState done [17:27:20]FM_GetShiftState done [17:27:20]req_shift_opened done [17:27:20]requested_item shift.open_date is exist - process it [17:27:20]req_shift_open_date [17:27:20]req_shift_open_date done [17:27:20]produce_requested_data done [17:27:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75166,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:27:20]process_action_free close_receipt [17:27:20]json_value_free [17:27:20]json_value_free done [17:27:20]process_json_proto returns [17:27:20]Send response to host [17:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75166,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:27:20]free response buf [17:27:20]execute_script done [17:27:20]execute_script returns [17:27:20]free content buf [17:27:20]Sock 8.Close socket [17:27:20]Sock 8.Thread stoped [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:40]accept exits with 9 [17:29:40]New connection [17:29:40]New thread 3066781028 created [17:29:40]Thread 3066924388 joined [17:29:40]Waiting for new connection... [17:29:40] Sock 9.Parse request [17:29:40]Sock 9.Check first char [17:29:40]Sock 9.First char is OK [17:29:40]request: POST /json_proto HTTP/1.0 [17:29:40]Method: POST [17:29:40]URL: /json_proto [17:29:40]Method is POST - this is cgi request [17:29:40]url: /json_proto [17:29:40]query_string will be loaded in cgi processing [17:29:40]execute_cgi json_proto POST (null) [17:29:40]execute_cgi path=json_proto method=POST [17:29:40]POST find Content-Length [17:29:40]Host: 172.17.39.131:8080 [17:29:40]Content-Length: 766 [17:29:40]Content-Type: application/json [17:29:40] [17:29:40]POST finish read [17:29:40]Found Content-Length = 766 [17:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [17:29:40]execute_script... [17:29:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [17:29:40]POST & json_proto [17:29:40]process_json_proto [17:29:40]json parsed OK: [17:29:40]protocol is kg_v1.0 [17:29:40]action value=close_receipt [17:29:40]process_action close_receipt [17:29:40]cmd_close_receipt [17:29:40]MH_GetDate [17:29:40]Write to MH i2c: F0 00 00 F9 3F 27 [17:29:40]Write i2c OK [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: F0 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: F0 09 00 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: F0 09 00 F9 3F 00 09 27 1D 67 86 57 24 65 4A [17:29:40]GetLastDocTimeStamp 1729963642 [17:29:40]current date 1729963785 [17:29:40]FM_GetShiftState [17:29:40]SAM_PROTO_GetShiftState [17:29:40]wFMCommunicate request_size=4 [17:29:40]MH_SAM_APDU [17:29:40]CAPDU: 80 13 01 00 [17:29:40]Write to MH i2c: E2 08 00 FA 3F 80 13 01 00 00 00 00 00 B6 [17:29:40]Write i2c OK [17:29:40]MH_I2C_Read... [17:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:40]Read from MH i2c: E2 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: E2 0E 00 [17:29:40]MH_I2C_Read... [17:29:40]Read from MH i2c: E2 0E 00 FA 3F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D1 [17:29:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:29:40]wFMCommunicate OK [17:29:40]SAM_PROTO_GetShiftState done [17:29:40]FM_GetShiftState done [17:29:40]opened in 1729902166 [17:29:40]opened+sec_in_day 1729988566 [17:29:40]quantity*price = 200025 [17:29:40]sum+1 = 200026 [17:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 159 26.10.2024 17:29 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75167 ФПД: 277419082425686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172945&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75167&fm=277419082425686&tin=02508201610067®Number=0000000000091691&sum=200025 [17:29:41]StoreToDocumentArchive [17:29:41]shift 512 fd 75167 [17:29:41]save to /storage/0512/doc_00075167 [17:29:41]save last doc name /storage/0512/doc_00075167 to /storage/kkm_last_doc_name [17:29:41]save OK [17:29:41]Clear old archive folders... [17:29:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:29:41]tlvbuf is 0080C7F0 [17:29:41]SAM_PROTO_ClearQueue [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 09 00 00 [17:29:41]Write to MH i2c: E2 08 00 07 40 80 09 00 00 00 00 00 00 B9 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 07 40 00 90 00 BB [17:29:41]RAPDU: 90 00 [17:29:41]wFMCommunicate OK [17:29:41]SAM_PROTO_ClearQueue done [17:29:41]KKMCreateOFDPacket [17:29:41]OFDProtocolAddRootSTLVToBuf [17:29:41]FM_MakeSignedData [17:29:41]FM_MakeSignedData [17:29:41]SAM_PROTO_SignData [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 0D 01 02 [17:29:41]Write to MH i2c: E2 08 00 08 40 80 0D 01 02 00 00 00 00 C1 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 08 40 00 90 00 BC [17:29:41]RAPDU: 90 00 [17:29:41]wFMCommunicate OK [17:29:41]wFMCommunicate request_size=255 [17:29:41]MH_SAM_APDU [17:29:41]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 34 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 9F 00 00 00 F4 03 04 00 09 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 25 01 00 35 04 06 00 FC 4F A9 DC [17:29:41]Write to MH i2c: E2 02 01 09 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 9F 00 00 00 F4 03 04 00 09 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 25 01 00 35 04 06 00 FC 4F A9 DC 00 00 55 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 09 40 00 90 00 BD [17:29:41]RAPDU: 90 00 [17:29:41]wFMCommunicate OK [17:29:41]wFMCommunicate request_size=7 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 0D 02 02 02 A5 56 [17:29:41]Write to MH i2c: E2 0A 00 0A 40 80 0D 02 02 02 00 A5 56 00 00 C3 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 03 00 0A 40 00 90 00 BE [17:29:41]RAPDU: 90 00 [17:29:41]wFMCommunicate OK [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 0D 03 02 [17:29:41]Write to MH i2c: E2 08 00 0B 40 80 0D 03 02 00 00 00 00 C6 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 0B 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 0B 00 0B 40 00 76 C2 61 32 6E DB 4E 1E 90 00 47 [17:29:41]RAPDU: 76 C2 61 32 6E DB 4E 1E 90 00 [17:29:41]wFMCommunicate OK [17:29:41]SAM_PROTO_SignData done [17:29:41]FM_MakeSignedData done [17:29:41]CreateOFDProtocolMessage [17:29:41]wFMCommunicate request_size=4 [17:29:41]MH_SAM_APDU [17:29:41]CAPDU: 80 11 00 00 [17:29:41]Write to MH i2c: E2 08 00 0C 40 80 11 00 00 00 00 00 00 C6 [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:41]Read from MH i2c: E2 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 17 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: E2 17 00 0C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1E [17:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:29:41]wFMCommunicate OK [17:29:41]CreateOFDProtocolMessage done [17:29:41]OFDSenderStorePacket 75167 [17:29:41]StoreOFDPacket docnum=75167 [17:29:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 F3 A3 04 01 B2 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 34 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 9F 00 00 00 F4 03 04 00 09 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 25 01 00 35 04 06 00 FC 4F A9 DC A5 56 76 C2 61 32 6E DB 4E 1E [17:29:41]CheckFolder [17:29:41]dirname=/storage/ofd_packets [17:29:41]CheckFolder done [17:29:41]ProducePacketName [17:29:41]name=ofd_packets/00075167 [17:29:41]NVStorageSaveData ofd_packets/00075167 [17:29:41]File name is /storage/ofd_packets/00075167 [17:29:41]Write 298 bytes [17:29:41]NVStorageSaveData done [17:29:41]OFDSenderStorePacket done [17:29:41]KKMCreateOFDPacket done [17:29:41]NVStorageSaveData kkm_last_timestamp [17:29:41]File name is /storage/kkm_last_timestamp [17:29:41]Write 4 bytes [17:29:41]NVStorageSaveData done [17:29:41]ExternCall_PrintAddStr [17:29:41]wPrintStart [17:29:41]Write to MH i2c: 01 00 00 0D 40 4D [17:29:41]Write i2c OK [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: 01 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: 01 07 00 [17:29:41]MH_I2C_Read... [17:29:41]Read from MH i2c: 01 07 00 0D 40 00 00 00 00 00 FF 0F 62 [17:29:41]RasterBufferAndPrint [17:29:41]line Счет N : (1)191144 [17:29:41]line ИНН: 02508201610067 [17:29:41]line Контрольно-Кассовый Чек [17:29:41]line ПРОДАЖА [17:29:41]line ТРК (МРК, ГНК) : 31 [17:29:41]line Товар: 2710194210 [17:29:41]line ДТ-К-4 [17:29:41]line 26.250 * 76.20 [17:29:41]line = 2000.25 [17:29:41]line НДС 12% НСП 1% [17:29:41]line > о реализуемом товаре [17:29:41]line ИТОГО: 2000.25 [17:29:41]line НСП 1% : 17.70 [17:29:41]line НДС 12% : 212.42 [17:29:41]line Наличными: 0.00 [17:29:41]line Безнал.: 2000.25 [17:29:41]line Место: АЗС № 142 "Партнер Нефть" [17:29:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:29:41]line СНО: Общий режим [17:29:41]line Чек 159 26.10.2024 17:29 [17:29:41]line Смена: 512 ФФД: 1.0 [17:29:41]line ЗНМ: 0300000089 [17:29:41]line РНМ: 0000000000091691 [17:29:41]line Версия ККМ: 001 [17:29:41]line Платежная система: Mbank [17:29:41]line ФМ: 0000000000871795 [17:29:41]line ФД: 75167 [17:29:41]line ФПД: 277419082425686 [17:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172945&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75167&fm=277419082425686&tin=02508201610067®Number=0000000000091691&sum=200025 [17:29:42]OFD Sender: Processing packet 75167 [packets to send 13, broken 12] [17:29:42]ProducePacketName [17:29:42]name=ofd_packets/00075167 [17:29:42]OFD Sender: To server: pG, [17:29:42]CommunicateWithHost lk.salyk.kg:30040 [17:29:42]ConnectInit lk.salyk.kg [17:29:42]written 0, free lines is 4095 [17:29:42]Write to MH i2c: 01 00 00 36 40 76 [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: 01 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: 01 07 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: 01 07 00 36 40 00 00 00 00 00 C4 0C 4D [17:29:42]RasterBufferAndPrint [17:29:42]line [17:29:42]line [17:29:42]line [17:29:42]line [17:29:42]line [17:29:42]written 0, free lines is 3272 [17:29:42]MH_Cut [17:29:42]Write to MH i2c: D1 01 00 3D 40 01 4F [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: D1 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: D1 01 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: D1 01 00 3D 40 00 4E [17:29:42]Write to MH i2c: 01 00 00 3E 40 7E [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]Connected sock=10 [17:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 F3 A3 04 01 B2 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 34 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 9F 00 00 00 F4 03 04 00 09 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 25 01 00 35 04 06 00 FC 4F A9 DC A5 56 76 C2 61 32 6E DB 4E 1E [17:29:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 50 65 47 00 0C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 9F 25 01 00 F4 03 04 00 86 CE 1C 67 B6 04 01 00 00 D9 78 17 12 BE 00 B2 3E [17:29:43]CommunicateWithHost err = 0 [17:29:43]CheckOFDResponse [17:29:43]1017 (14) - 77093643461234 [17:29:43]1041 (16) - 0000000000871795 [17:29:43]1040 (4) - 75167 [17:29:43]1012 (4) - 26.10.2024 11:12 [17:29:43]1206 (1) - 0 [17:29:43]OFD Sender: Remove packet 75167 [17:29:43]ProducePacketName [17:29:43]name=ofd_packets/00075167 [17:29:43]NVStorageDeleteData [17:29:43]*** Cut start [17:29:43]*** Partial cut [17:29:43]*** CUTSNS_PIN = 1 [17:29:43]*** CUTSNS_PIN = 0 [17:29:43]OFD Sender: No OFD packet to send [17:29:43]*** Brake cut motor [17:29:43]Read from MH i2c: 01 [17:29:44]MH_I2C_Read... [17:29:44]*** Stop cut motor [17:29:44]*** Cut end [17:29:44]Read from MH i2c: 01 07 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 3E 40 00 00 00 00 00 FF 0F 93 [17:29:44]process_action close_receipt done [17:29:44]requested_data is exist [17:29:44]produce_requested_data [17:29:44]requested_item fm.sn is exist - process it [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 11 00 00 [17:29:44]Write to MH i2c: E2 08 00 3F 40 80 11 00 00 00 00 00 00 F9 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 17 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 17 00 3F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 51 [17:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:29:44]wFMCommunicate OK [17:29:44]requested_item fd.num is exist - process it [17:29:44]SAM_PROTO_GetFieldsCounters [17:29:44]wFMCommunicate request_size=4 [17:29:44]MH_SAM_APDU [17:29:44]CAPDU: 80 13 00 00 [17:29:44]Write to MH i2c: E2 08 00 40 40 80 13 00 00 00 00 00 00 FC [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 62 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 62 00 40 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9F 25 01 00 0E 04 04 00 00 02 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 C7 [17:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 9F 25 01 00 0E 04 04 00 00 02 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 [17:29:44]wFMCommunicate OK [17:29:44]SAM_PROTO_GetFieldsCounters done [17:29:44]requested_item shift.num is exist - process it [17:29:44]requested_item shift.opened is exist - process it [17:29:44]req_shift_opened [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 41 40 80 13 01 00 00 00 00 00 FE [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:44]Read from MH i2c: E2 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 0E 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: E2 0E 00 41 40 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [17:29:44]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:29:44]wFMCommunicate OK [17:29:44]SAM_PROTO_GetShiftState done [17:29:44]FM_GetShiftState done [17:29:44]req_shift_opened done [17:29:44]requested_item shift.open_date is exist - process it [17:29:44]req_shift_open_date [17:29:44]req_shift_open_date done [17:29:44]produce_requested_data done [17:29:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75167,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:29:44]process_action_free close_receipt [17:29:44]json_value_free [17:29:44]json_value_free done [17:29:44]process_json_proto returns [17:29:44]Send response to host [17:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75167,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:29:44]free response buf [17:29:44]execute_script done [17:29:44]execute_script returns [17:29:44]free content buf [17:29:44]Sock 9.Close socket [17:29:44]Sock 9.Thread stoped [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:19]recv_with_timeout no data received [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:44]recv_with_timeout no data received [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:54]recv_with_timeout no data received [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send 4B 40 00 90 00 FF [17:33:28]RAPDU: 90 00 [17:33:28]wFMCommunicate OK [17:33:28]wFMCommunicate request_size=13 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 15 02 00 08 F4 03 04 00 ED 27 1D 67 [17:33:28]Write to MH i2c: E2 10 00 4C 40 80 15 02 00 08 00 F4 03 04 00 ED 27 1D 67 00 00 AF [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:33:28]Read from MH i2c: E2 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 03 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 03 00 4C 40 00 90 00 00 [17:33:28]RAPDU: 90 00 [17:33:28]wFMCommunicate OK [17:33:28]wFMCommunicate request_size=25 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [17:33:28]Write to MH i2c: E2 1C 00 4D 40 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 70 [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:33:28]Read from MH i2c: E2 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 03 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 03 00 4D 40 00 90 00 01 [17:33:28]RAPDU: 90 00 [17:33:28]wFMCommunicate OK [17:33:28]wFMCommunicate request_size=4 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 15 03 00 [17:33:28]Write to MH i2c: E2 08 00 4E 40 80 15 03 00 00 00 00 00 0F [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 40 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 40 00 4E 40 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 A0 00 00 00 35 04 06 00 F9 24 44 83 DD 25 90 00 58 [17:33:29]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 A0 00 00 00 35 04 06 00 F9 24 44 83 DD 25 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_ProcessDocument answer len = 59 [17:33:29]SAM_PROTO_ProcessDocument done [17:33:29]SetTLVBufToDocument [17:33:29]Processing tag 1209 (04B9) [17:33:29]Malloc new data [17:33:29]Processing tag 1041 (0411) [17:33:29]Processing tag 1040 (0410) [17:33:29]Malloc new data [17:33:29]Processing tag 1038 (040E) [17:33:29]Malloc new data [17:33:29]Processing tag 1042 (0412) [17:33:29]Malloc new data [17:33:29]Processing tag 1077 (0435) [17:33:29]Malloc new data [17:33:29]SetTLVBufToDocument err=0 [17:33:29]KKMLoadAndSignReceiptData store KKM data [17:33:29]KKMLoadAndSignReceiptData err=0 [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 11 00 00 [17:33:29]Write to MH i2c: E2 08 00 4F 40 80 11 00 00 00 00 00 00 09 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 4F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 61 [17:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:33:29]wFMCommunicate OK [17:33:29]Счет N : (1)191145 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 1.500 * 66.90 = 100.35 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 160 26.10.2024 17:33 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75168 ФПД: 273934163631397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173333&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75168&fm=273934163631397&tin=02508201610067®Number=0000000000091691&sum=10000 [17:33:29]StoreToDocumentArchive [17:33:29]shift 512 fd 75168 [17:33:29]save to /storage/0512/doc_00075168 [17:33:29]save last doc name /storage/0512/doc_00075168 to /storage/kkm_last_doc_name [17:33:29]save OK [17:33:29]Clear old archive folders... [17:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:29]tlvbuf is 008F2E60 [17:33:29]SAM_PROTO_ClearQueue [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 09 00 00 [17:33:29]Write to MH i2c: E2 08 00 50 40 80 09 00 00 00 00 00 00 02 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 50 40 00 90 00 04 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_ClearQueue done [17:33:29]KKMCreateOFDPacket [17:33:29]OFDProtocolAddRootSTLVToBuf [17:33:29]FM_MakeSignedData [17:33:29]FM_MakeSignedData [17:33:29]SAM_PROTO_SignData [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 01 02 [17:33:29]Write to MH i2c: E2 08 00 51 40 80 0D 01 02 00 00 00 00 0A [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 51 40 00 90 00 05 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=255 [17:33:29]MH_SAM_APDU [17:33: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 ED 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 35 04 06 00 F9 [17:33:29]Write to MH i2c: E2 02 01 52 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 ED 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 35 04 06 00 F9 00 00 7F [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 52 40 00 90 00 06 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=10 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 02 02 05 24 44 83 DD 25 [17:33:29]Write to MH i2c: E2 0D 00 53 40 80 0D 02 02 05 00 24 44 83 DD 25 00 00 04 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 53 40 00 90 00 07 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 03 02 [17:33:29]Write to MH i2c: E2 08 00 54 40 80 0D 03 02 00 00 00 00 0F [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0B 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0B 00 54 40 00 71 D9 FB D9 8E 15 85 45 90 00 9B [17:33:29]RAPDU: 71 D9 FB D9 8E 15 85 45 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_SignData done [17:33:29]FM_MakeSignedData done [17:33:29]CreateOFDProtocolMessage [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 11 00 00 [17:33:29]Write to MH i2c: E2 08 00 55 40 80 11 00 00 00 00 00 00 0F [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 55 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 67 [17:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:33:29]wFMCommunicate OK [17:33:29]CreateOFDProtocolMessage done [17:33:29]OFDSenderStorePacket 75168 [17:33:29]StoreOFDPacket docnum=75168 [17:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 96 30 07 01 72 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 ED 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 35 04 06 00 F9 24 44 83 DD 25 71 D9 FB D9 8E 15 85 45 [17:33:29]CheckFolder [17:33:29]dirname=/storage/ofd_packets [17:33:29]CheckFolder done [17:33:29]ProducePacketName [17:33:29]name=ofd_packets/00075168 [17:33:29]NVStorageSaveData ofd_packets/00075168 [17:33:29]File name is /storage/ofd_packets/00075168 [17:33:29]Write 301 bytes [17:33:29]NVStorageSaveData done [17:33:29]OFDSenderStorePacket done [17:33:29]KKMCreateOFDPacket done [17:33:29]NVStorageSaveData kkm_last_timestamp [17:33:29]File name is /storage/kkm_last_timestamp [17:33:29]Write 4 bytes [17:33:29]NVStorageSaveData done [17:33:29]ExternCall_PrintAddStr [17:33:29]wPrintStart [17:33:29]Write to MH i2c: 01 00 00 56 40 96 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 07 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 07 00 56 40 00 00 00 00 00 FF 0F AB [17:33:29]RasterBufferAndPrint [17:33:29]line Счет N : (1)191145 [17:33:29]line ИНН: 02508201610067 [17:33:29]line Контрольно-Кассовый Чек [17:33:29]line ПРОДАЖА [17:33:29]line ТРК (МРК, ГНК) : 21 [17:33:29]line Товар: 2710124130 [17:33:29]line Аи-92-К-5 [17:33:29]line 1.500 * 66.90 [17:33:29]line = 100.35 [17:33:29]line НДС 12% НСП 1% [17:33:29]line > о реализуемом товаре [17:33:29]line ОКРУГЛЕНИЕ: -0.35 [17:33:29]line ИТОГО: 100.00 [17:33:29]line Внесено: 100.00 [17:33:29]line СДАЧА: 0.00 [17:33:29]line НСП 1% : 0.89 [17:33:29]line НДС 12% : 10.66 [17:33:29]line Наличными: 100.00 [17:33:29]line Безнал.: 0.00 [17:33:29]line Место: АЗС № 142 "Партнер Нефть" [17:33:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:33:29]line СНО: Общий режим [17:33:29]line Чек 160 26.10.2024 17:33 [17:33:29]line Смена: 512 ФФД: 1.0 [17:33:29]line ЗНМ: 0300000089 [17:33:29]line РНМ: 0000000000091691 [17:33:29]line Версия ККМ: 001 [17:33:29]line ФМ: 0000000000871795 [17:33:29]line ФД: 75168 [17:33:29]line ФПД: 273934163631397 [17:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173333&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75168&fm=273934163631397&tin=02508201610067®Number=0000000000091691&sum=10000 [17:33:30]written 0, free lines is 4095 [17:33:30]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:33:30]ProducePacketName [17:33:30]name=ofd_packets/00075168 [17:33:30]OFD Sender: To server: pG, [17:33:30]CommunicateWithHost lk.salyk.kg:30040 [17:33:30]ConnectInit lk.salyk.kg [17:33:30]Write to MH i2c: 01 00 00 81 40 C1 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 07 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 07 00 81 40 00 00 00 00 00 92 0C 66 [17:33:30]RasterBufferAndPrint [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]written 0, free lines is 3224 [17:33:30]MH_Cut [17:33:30]Write to MH i2c: D1 01 00 88 40 01 9A [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 01 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 01 00 88 40 00 99 [17:33:30]Write to MH i2c: 01 00 00 89 40 C9 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:31]*** Cut start [17:33:31]*** Partial cut [17:33:31]*** CUTSNS_PIN = 1 [17:33:31]*** CUTSNS_PIN = 0 [17:33:31]*** Brake cut motor [17:33:32]Read from MH i2c: 01 [17:33:32]MH_I2C_Read... [17:33:32]*** Stop cut motor [17:33:32]*** Cut end [17:33:32]Read from MH i2c: 01 07 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 89 40 00 00 00 00 00 FF 0F DE [17:33:32]process_action close_receipt done [17:33:32]requested_data is exist [17:33:32]produce_requested_data [17:33:32]requested_item fm.sn is exist - process it [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 11 00 00 [17:33:32]Write to MH i2c: E2 08 00 8A 40 80 11 00 00 00 00 00 00 44 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 17 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 17 00 8A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9C [17:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:33:32]wFMCommunicate OK [17:33:32]requested_item fd.num is exist - process it [17:33:32]SAM_PROTO_GetFieldsCounters [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 13 00 00 [17:33:32]Write to MH i2c: E2 08 00 8B 40 80 13 00 00 00 00 00 00 47 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 62 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 62 00 8B 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A0 25 01 00 0E 04 04 00 00 02 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 16 [17:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A0 25 01 00 0E 04 04 00 00 02 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 [17:33:32]wFMCommunicate OK [17:33:32]SAM_PROTO_GetFieldsCounters done [17:33:32]requested_item shift.num is exist - process it [17:33:32]requested_item shift.opened is exist - process it [17:33:32]req_shift_opened [17:33:32]FM_GetShiftState [17:33:32]SAM_PROTO_GetShiftState [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 13 01 00 [17:33:32]Write to MH i2c: E2 08 00 8C 40 80 13 01 00 00 00 00 00 49 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0E 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0E 00 8C 40 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 64 [17:33:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:33:32]wFMCommunicate OK [17:33:32]SAM_PROTO_GetShiftState done [17:33:32]FM_GetShiftState done [17:33:32]req_shift_opened done [17:33:32]requested_item shift.open_date is exist - process it [17:33:32]req_shift_open_date [17:33:32]req_shift_open_date done [17:33:32]produce_requested_data done [17:33:32]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75168,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:33:32]process_action_free close_receipt [17:33:32]json_value_free [17:33:32]json_value_free done [17:33:32]process_json_proto returns [17:33:32]Send response to host [17:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75168,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:33:32]free response buf [17:33:32]execute_script done [17:33:32]execute_script returns [17:33:32]free content buf [17:33:32]Sock 8.Close socket [17:33:32]Sock 8.Thread stoped [17:33:35]ConnectInit Can't take IP for lk.salyk.kg [17:33:35]CommunicateWithHost connect error [17:33:35]CommunicateWithHost err = -1 [17:33:35]OFD Sender: Server communicate error [17:33:40]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:33:40]ProducePacketName [17:33:40]name=ofd_packets/00075168 [17:33:40]OFD Sender: To server: pG, [17:33:40]CommunicateWithHost lk.salyk.kg:30040 [17:33:40]ConnectInit lk.salyk.kg [17:33:45]ConnectInit Can't take IP for lk.salyk.kg [17:33:45]CommunicateWithHost connect error [17:33:45]CommunicateWithHost err = -1 [17:33:45]OFD Sender: Server communicate error [17:33:50]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:33:50]ProducePacketName [17:33:50]name=ofd_packets/00075168 [17:33:50]OFD Sender: To server: pG, [17:33:50]CommunicateWithHost lk.salyk.kg:30040 [17:33:50]ConnectInit lk.salyk.kg [17:33:55]ConnectInit Can't take IP for lk.salyk.kg [17:33:55]CommunicateWithHost connect error [17:33:55]CommunicateWithHost err = -1 [17:33:55]OFD Sender: Server communicate error [17:34:00]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:00]ProducePacketName [17:34:00]name=ofd_packets/00075168 [17:34:00]OFD Sender: To server: pG, [17:34:00]CommunicateWithHost lk.salyk.kg:30040 [17:34:00]ConnectInit lk.salyk.kg [17:34:05]ConnectInit Can't take IP for lk.salyk.kg [17:34:05]CommunicateWithHost connect error [17:34:05]CommunicateWithHost err = -1 [17:34:05]OFD Sender: Server communicate error [17:34:10]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:10]ProducePacketName [17:34:10]name=ofd_packets/00075168 [17:34:10]OFD Sender: To server: pG, [17:34:10]CommunicateWithHost lk.salyk.kg:30040 [17:34:10]ConnectInit lk.salyk.kg [17:34:15]ConnectInit Can't take IP for lk.salyk.kg [17:34:15]CommunicateWithHost connect error [17:34:15]CommunicateWithHost err = -1 [17:34:15]OFD Sender: Server communicate error [17:34:20]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:20]ProducePacketName [17:34:20]name=ofd_packets/00075168 [17:34:20]OFD Sender: To server: pG, [17:34:20]CommunicateWithHost lk.salyk.kg:30040 [17:34:20]ConnectInit lk.salyk.kg [17:34:25]ConnectInit Can't take IP for lk.salyk.kg [17:34:25]CommunicateWithHost connect error [17:34:25]CommunicateWithHost err = -1 [17:34:25]OFD Sender: Server communicate error [17:34:30]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:30]ProducePacketName [17:34:30]name=ofd_packets/00075168 [17:34:30]OFD Sender: To server: pG, [17:34:30]CommunicateWithHost lk.salyk.kg:30040 [17:34:30]ConnectInit lk.salyk.kg [17:34:35]ConnectInit Can't take IP for lk.salyk.kg [17:34:35]CommunicateWithHost connect error [17:34:35]CommunicateWithHost err = -1 [17:34:35]OFD Sender: Server communicate error [17:34:40]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:40]ProducePacketName [17:34:40]name=ofd_packets/00075168 [17:34:40]OFD Sender: To server: pG, [17:34:40]CommunicateWithHost lk.salyk.kg:30040 [17:34:40]ConnectInit lk.salyk.kg [17:34:45]ConnectInit Can't take IP for lk.salyk.kg [17:34:45]CommunicateWithHost connect error [17:34:45]CommunicateWithHost err = -1 [17:34:45]OFD Sender: Server communicate error [17:34:50]OFD Sender: Processing packet 75168 [packets to send 13, broken 12] [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00075168 [17:34:50]OFD Sender: To server: pG, [17:34:50]CommunicateWithHost lk.salyk.kg:30040 [17:34:50]ConnectInit lk.salyk.kg [17:34:50]Connected sock=8 [17:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 96 30 07 01 72 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 ED 27 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 35 04 06 00 F9 24 44 83 DD 25 71 D9 FB D9 8E 15 85 45 [17:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 24 A3 47 00 F4 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 38 37 31 37 39 35 10 04 04 00 A0 25 01 00 F4 03 04 00 B9 CF 1C 67 B6 04 01 00 00 AF 14 57 50 3F 45 A6 D9 [17:34:50]CommunicateWithHost err = 0 [17:34:50]CheckOFDResponse [17:34:50]1017 (14) - 77093643461234 [17:34:50]1041 (16) - 0000000000871795 [17:34:50]1040 (4) - 75168 [17:34:50]1012 (4) - 26.10.2024 11:17 [17:34:50]1206 (1) - 0 [17:34:50]OFD Sender: Remove packet 75168 [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00075168 [17:34:50]NVStorageDeleteData [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:43]ConnectInit Can't connect to host [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:09]accept exits with 9 [17:45:09]New connection [17:45:09]New thread 3066781028 created [17:45:09]Thread 3066924388 joined [17:45:09]Waiting for new connection... [17:45:09] Sock 9.Parse request [17:45:09]Sock 9.Check first char [17:45:09]Sock 9.First char is OK [17:45:09]request: POST /json_proto HTTP/1.0 [17:45:09]Method: POST [17:45:09]URL: /json_proto [17:45:09]Method is POST - this is cgi request [17:45:09]url: /json_proto [17:45:09]query_string will be loaded in cgi processing [17:45:09]execute_cgi json_proto POST (null) [17:45:09]execute_cgi path=json_proto method=POST [17:45:09]POST find Content-Length [17:45:09]Host: 172.17.39.131:8080 [17:45:09]Content-Length: 677 [17:45:09]Content-Type: application/json [17:45:09] [17:45:09]POST finish read [17:45:09]Found Content-Length = 677 [17:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:45:09]execute_script... [17:45: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)191146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [17:45:09]POST & json_proto [17:45:09]process_json_proto [17:45:09]json parsed OK: [17:45:09]protocol is kg_v1.0 [17:45:09]action value=close_receipt [17:45:09]process_action close_receipt [17:45:09]cmd_close_receipt [17:45:09]MH_GetDate [17:45:09]Write to MH i2c: F0 00 00 8D 40 BC [17:45:09]Write i2c OK [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: F0 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: F0 09 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: F0 09 00 8D 40 00 AB 2A 1D 67 86 57 24 65 84 [17:45:09]GetLastDocTimeStamp 1729964013 [17:45:09]current date 1729964715 [17:45:09]FM_GetShiftState [17:45:09]SAM_PROTO_GetShiftState [17:45:09]wFMCommunicate request_size=4 [17:45:09]MH_SAM_APDU [17:45:09]CAPDU: 80 13 01 00 [17:45:09]Write to MH i2c: E2 08 00 8E 40 80 13 01 00 00 00 00 00 4B [17:45:09]Write i2c OK [17:45:09]MH_I2C_Read... [17:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:09]Read from MH i2c: E2 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 0E 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 0E 00 8E 40 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 66 [17:45:09]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:45:09]wFMCommunicate OK [17:45:09]SAM_PROTO_GetShiftState done [17:45:09]FM_GetShiftState done [17:45:09]opened in 1729902166 [17:45:09]opened+sec_in_day 1729988566 [17:45:09]quantity*price = 20003 [17:45:09]sum+1 = 20004 [17:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 161 26.10.2024 17:45 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75169 ФПД: 257430805856353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174515&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75169&fm=257430805856353&tin=02508201610067®Number=0000000000091691&sum=20000 [17:45:10]StoreToDocumentArchive [17:45:10]shift 512 fd 75169 [17:45:10]save to /storage/0512/doc_00075169 [17:45:10]save last doc name /storage/0512/doc_00075169 to /storage/kkm_last_doc_name [17:45:10]save OK [17:45:10]Clear old archive folders... [17:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:10]tlvbuf is 008AFD40 [17:45:10]SAM_PROTO_ClearQueue [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 09 00 00 [17:45:10]Write to MH i2c: E2 08 00 9B 40 80 09 00 00 00 00 00 00 4D [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 03 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 03 00 9B 40 00 90 00 4F [17:45:10]RAPDU: 90 00 [17:45:10]wFMCommunicate OK [17:45:10]SAM_PROTO_ClearQueue done [17:45:10]KKMCreateOFDPacket [17:45:10]OFDProtocolAddRootSTLVToBuf [17:45:10]FM_MakeSignedData [17:45:10]FM_MakeSignedData [17:45:10]SAM_PROTO_SignData [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 0D 01 02 [17:45:10]Write to MH i2c: E2 08 00 9C 40 80 0D 01 02 00 00 00 00 55 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 03 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 03 00 9C 40 00 90 00 50 [17:45:10]RAPDU: 90 00 [17:45:10]wFMCommunicate OK [17:45:10]wFMCommunicate request_size=255 [17:45:10]MH_SAM_APDU [17:45: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 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 A1 00 00 00 F4 03 04 00 AB 2A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 25 01 00 35 04 06 00 EA [17:45:10]Write to MH i2c: E2 02 01 9D 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 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 A1 00 00 00 F4 03 04 00 AB 2A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 25 01 00 35 04 06 00 EA 00 00 59 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [17:45:11]RAPDU: 90 00 [17:45:11]wFMCommunicate OK [17:45:11]wFMCommunicate request_size=10 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 0D 02 02 05 21 C7 BC C0 61 [17:45:11]Write to MH i2c: E2 0D 00 9E 40 80 0D 02 02 05 00 21 C7 BC C0 61 00 00 27 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 9E 40 00 90 00 52 [17:45:11]RAPDU: 90 00 [17:45:11]wFMCommunicate OK [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 0D 03 02 [17:45:11]Write to MH i2c: E2 08 00 9F 40 80 0D 03 02 00 00 00 00 5A [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 0B 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 0B 00 9F 40 00 CB E1 20 7F DA 24 08 50 90 00 FC [17:45:11]RAPDU: CB E1 20 7F DA 24 08 50 90 00 [17:45:11]wFMCommunicate OK [17:45:11]SAM_PROTO_SignData done [17:45:11]FM_MakeSignedData done [17:45:11]CreateOFDProtocolMessage [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 11 00 00 [17:45:11]Write to MH i2c: E2 08 00 A0 40 80 11 00 00 00 00 00 00 5A [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 17 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 17 00 A0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B2 [17:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:45:11]wFMCommunicate OK [17:45:11]CreateOFDProtocolMessage done [17:45:11]OFDSenderStorePacket 75169 [17:45:11]StoreOFDPacket docnum=75169 [17:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 D1 07 01 34 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 AB 2A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 25 01 00 35 04 06 00 EA 21 C7 BC C0 61 CB E1 20 7F DA 24 08 50 [17:45:11]CheckFolder [17:45:11]dirname=/storage/ofd_packets [17:45:11]CheckFolder done [17:45:11]ProducePacketName [17:45:11]name=ofd_packets/00075169 [17:45:11]NVStorageSaveData ofd_packets/00075169 [17:45:11]File name is /storage/ofd_packets/00075169 [17:45:11]Write 301 bytes [17:45:11]NVStorageSaveData done [17:45:11]OFDSenderStorePacket done [17:45:11]KKMCreateOFDPacket done [17:45:11]NVStorageSaveData kkm_last_timestamp [17:45:11]File name is /storage/kkm_last_timestamp [17:45:11]Write 4 bytes [17:45:11]NVStorageSaveData done [17:45:11]ExternCall_PrintAddStr [17:45:11]wPrintStart [17:45:11]Write to MH i2c: 01 00 00 A1 40 E1 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 07 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 07 00 A1 40 00 00 00 00 00 FF 0F F6 [17:45:11]RasterBufferAndPrint [17:45:11]line Счет N : (1)191146 [17:45:11]line ИНН: 02508201610067 [17:45:11]line Контрольно-Кассовый Чек [17:45:11]line ПРОДАЖА [17:45:11]line ТРК (МРК, ГНК) : 21 [17:45:11]line Товар: 2710124130 [17:45:11]line Аи-92-К-5 [17:45:11]line 2.990 * 66.90 [17:45:11]line = 200.03 [17:45:11]line НДС 12% НСП 1% [17:45:11]line > о реализуемом товаре [17:45:11]line ОКРУГЛЕНИЕ: -0.03 [17:45:11]line ИТОГО: 200.00 [17:45:11]line Внесено: 200.00 [17:45:11]line СДАЧА: 0.00 [17:45:11]line НСП 1% : 1.77 [17:45:11]line НДС 12% : 21.24 [17:45:11]line Наличными: 200.00 [17:45:11]line Безнал.: 0.00 [17:45:11]line Место: АЗС № 142 "Партнер Нефть" [17:45:11]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:45:11]line СНО: Общий режим [17:45:11]line Чек 161 26.10.2024 17:45 [17:45:11]line Смена: 512 ФФД: 1.0 [17:45:11]line ЗНМ: 0300000089 [17:45:11]line РНМ: 0000000000091691 [17:45:11]line Версия ККМ: 001 [17:45:11]line ФМ: 0000000000871795 [17:45:11]line ФД: 75169 [17:45:11]line ФПД: 257430805856353 [17:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174515&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75169&fm=257430805856353&tin=02508201610067®Number=0000000000091691&sum=20000 [17:45:11]OFD Sender: Processing packet 75169 [packets to send 13, broken 12] [17:45:11]ProducePacketName [17:45:11]name=ofd_packets/00075169 [17:45:11]OFD Sender: To server: pG, [17:45:11]CommunicateWithHost lk.salyk.kg:30040 [17:45:11]ConnectInit lk.salyk.kg [17:45:11]written 0, free lines is 4095 [17:45:11]Connected sock=10 [17:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 48 D1 07 01 34 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 AB 2A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A1 25 01 00 35 04 06 00 EA 21 C7 BC C0 61 CB E1 20 7F DA 24 08 50 [17:45:11]Write to MH i2c: 01 00 00 CC 40 0C [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 07 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: 01 07 00 CC 40 00 00 00 00 00 A2 0C C1 [17:45:11]RasterBufferAndPrint [17:45:11]line [17:45:11]line [17:45:11]line [17:45:11]line [17:45:11]line [17:45:11]written 0, free lines is 3241 [17:45:11]MH_Cut [17:45:11]Write to MH i2c: D1 01 00 D3 40 01 E5 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: D1 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: D1 01 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: D1 01 00 D3 40 00 E4 [17:45:12]Write to MH i2c: 01 00 00 D4 40 14 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E9 DC 47 00 28 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 38 37 31 37 39 35 10 04 04 00 A1 25 01 00 F4 03 04 00 27 D2 1C 67 B6 04 01 00 00 2C 58 D1 B0 A0 59 4C 26 [17:45:12]CommunicateWithHost err = 0 [17:45:12]CheckOFDResponse [17:45:12]1017 (14) - 77093643461234 [17:45:12]1041 (16) - 0000000000871795 [17:45:12]1040 (4) - 75169 [17:45:12]1012 (4) - 26.10.2024 11:27 [17:45:12]1206 (1) - 0 [17:45:12]OFD Sender: Remove packet 75169 [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00075169 [17:45:12]NVStorageDeleteData [17:45:12]OFD Sender: No OFD packet to send [17:45:12]*** Cut start [17:45:12]*** Partial cut [17:45:12]*** CUTSNS_PIN = 1 [17:45:12]*** CUTSNS_PIN = 0 [17:45:13]*** Brake cut motor [17:45:13]Read from MH i2c: 01 [17:45:13]MH_I2C_Read... [17:45:13]*** Stop cut motor [17:45:13]*** Cut end [17:45:13]Read from MH i2c: 01 07 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: 01 07 00 D4 40 00 00 00 00 00 FF 0F 29 [17:45:13]process_action close_receipt done [17:45:13]requested_data is exist [17:45:13]produce_requested_data [17:45:13]requested_item fm.sn is exist - process it [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 11 00 00 [17:45:13]Write to MH i2c: E2 08 00 D5 40 80 11 00 00 00 00 00 00 8F [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 17 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 17 00 D5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E7 [17:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:45:13]wFMCommunicate OK [17:45:13]requested_item fd.num is exist - process it [17:45:13]SAM_PROTO_GetFieldsCounters [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 13 00 00 [17:45:13]Write to MH i2c: E2 08 00 D6 40 80 13 00 00 00 00 00 00 92 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 62 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 62 00 D6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A1 25 01 00 0E 04 04 00 00 02 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 65 [17:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A1 25 01 00 0E 04 04 00 00 02 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 [17:45:13]wFMCommunicate OK [17:45:13]SAM_PROTO_GetFieldsCounters done [17:45:13]requested_item shift.num is exist - process it [17:45:13]requested_item shift.opened is exist - process it [17:45:13]req_shift_opened [17:45:13]FM_GetShiftState [17:45:13]SAM_PROTO_GetShiftState [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 13 01 00 [17:45:13]Write to MH i2c: E2 08 00 D7 40 80 13 01 00 00 00 00 00 94 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 D7 40 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AF [17:45:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:45:13]wFMCommunicate OK [17:45:13]SAM_PROTO_GetShiftState done [17:45:13]FM_GetShiftState done [17:45:13]req_shift_opened done [17:45:13]requested_item shift.open_date is exist - process it [17:45:13]req_shift_open_date [17:45:13]req_shift_open_date done [17:45:13]produce_requested_data done [17:45:13]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75169,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:45:13]process_action_free close_receipt [17:45:13]json_value_free [17:45:13]json_value_free done [17:45:13]process_json_proto returns [17:45:13]Send response to host [17:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75169,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:45:13]free response buf [17:45:13]execute_script done [17:45:13]execute_script returns [17:45:13]free content buf [17:45:13]Sock 9.Close socket [17:45:13]Sock 9.Thread stoped [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:16]accept exits with 8 [17:49:16]New connection [17:49:16]New thread 3066924388 created [17:49:16]Thread 3066781028 joined [17:49:16]Waiting for new connection... [17:49:16] Sock 8.Parse request [17:49:16]Sock 8.Check first char [17:49:16]Sock 8.First char is OK [17:49:16]request: POST /json_proto HTTP/1.0 [17:49:16]Method: POST [17:49:16]URL: /json_proto [17:49:16]Method is POST - this is cgi request [17:49:16]url: /json_proto [17:49:16]query_string will be loaded in cgi processing [17:49:16]execute_cgi json_proto POST (null) [17:49:16]execute_cgi path=json_proto method=POST [17:49:16]POST find Content-Length [17:49:16]Host: 172.17.39.131:8080 [17:49:16]Content-Length: 800 [17:49:16]Content-Type: application/json [17:49:16] [17:49:16]POST finish read [17:49:16]Found Content-Length = 800 [17:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:16]execute_script... [17:49: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)191147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:16]POST & json_proto [17:49:16]process_json_proto [17:49:16]json parsed OK: [17:49:16]protocol is kg_v1.0 [17:49:16]action value=close_receipt [17:49:16]process_action close_receipt [17:49:16]cmd_close_receipt [17:49:16]MH_GetDate [17:49:16]Write to MH i2c: F0 00 00 D8 40 07 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: F0 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: F0 09 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: F0 09 00 D8 40 00 A2 2B 1D 67 86 57 24 65 C7 [17:49:16]GetLastDocTimeStamp 1729964715 [17:49:16]current date 1729964962 [17:49:16]FM_GetShiftState [17:49:16]SAM_PROTO_GetShiftState [17:49:16]wFMCommunicate request_size=4 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 13 01 00 [17:49:16]Write to MH i2c: E2 08 00 D9 40 80 13 01 00 00 00 00 00 96 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0E 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0E 00 D9 40 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B1 [17:49:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:49:16]wFMCommunicate OK [17:49:16]SAM_PROTO_GetShiftState done [17:49:16]FM_GetShiftState done [17:49:16]opened in 1729902166 [17:49:16]opened+sec_in_day 1729988566 [17:49:16]quantity*price = 150037 [17:49:16]sum+1 = 150039 [17:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 162 26.10.2024 17:49 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75170 ФПД: 123414493297007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174922&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75170&fm=123414493297007&tin=02508201610067®Number=0000000000091691&sum=150038 [17:49:17]StoreToDocumentArchive [17:49:17]shift 512 fd 75170 [17:49:17]save to /storage/0512/doc_00075170 [17:49:17]save last doc name /storage/0512/doc_00075170 to /storage/kkm_last_doc_name [17:49:17]save OK [17:49:17]Clear old archive folders... [17:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:49:17]tlvbuf is 0090C8B0 [17:49:17]SAM_PROTO_ClearQueue [17:49:17]wFMCommunicate request_size=4 [17:49:17]MH_SAM_APDU [17:49:17]CAPDU: 80 09 00 00 [17:49:17]Write to MH i2c: E2 08 00 E6 40 80 09 00 00 00 00 00 00 98 [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:17]Read from MH i2c: E2 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: E2 03 00 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: E2 03 00 E6 40 00 90 00 9A [17:49:17]RAPDU: 90 00 [17:49:17]wFMCommunicate OK [17:49:17]SAM_PROTO_ClearQueue done [17:49:17]KKMCreateOFDPacket [17:49:17]OFDProtocolAddRootSTLVToBuf [17:49:17]FM_MakeSignedData [17:49:17]FM_MakeSignedData [17:49:17]SAM_PROTO_SignData [17:49:17]wFMCommunicate request_size=4 [17:49:17]MH_SAM_APDU [17:49:17]CAPDU: 80 0D 01 02 [17:49:17]Write to MH i2c: E2 08 00 E7 40 80 0D 01 02 00 00 00 00 A0 [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:17]Read from MH i2c: E2 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: E2 03 00 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: E2 03 00 E7 40 00 90 00 9B [17:49:17]RAPDU: 90 00 [17:49:17]wFMCommunicate OK [17:49:17]wFMCommunicate request_size=255 [17:49:17]MH_SAM_APDU [17:49: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 34 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A2 2B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 25 01 00 35 04 06 00 70 3E AD 08 [17:49:17]Write to MH i2c: E2 02 01 E8 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A2 2B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 25 01 00 35 04 06 00 70 3E AD 08 00 00 0F [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 03 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 03 00 E8 40 00 90 00 9C [17:49:18]RAPDU: 90 00 [17:49:18]wFMCommunicate OK [17:49:18]wFMCommunicate request_size=7 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 0D 02 02 02 79 6F [17:49:18]Write to MH i2c: E2 0A 00 E9 40 80 0D 02 02 02 00 79 6F 00 00 8F [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 03 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 03 00 E9 40 00 90 00 9D [17:49:18]RAPDU: 90 00 [17:49:18]wFMCommunicate OK [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 0D 03 02 [17:49:18]Write to MH i2c: E2 08 00 EA 40 80 0D 03 02 00 00 00 00 A5 [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0B 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0B 00 EA 40 00 71 E1 F3 DF DE F6 39 4A 90 00 21 [17:49:18]RAPDU: 71 E1 F3 DF DE F6 39 4A 90 00 [17:49:18]wFMCommunicate OK [17:49:18]SAM_PROTO_SignData done [17:49:18]FM_MakeSignedData done [17:49:18]CreateOFDProtocolMessage [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 11 00 00 [17:49:18]Write to MH i2c: E2 08 00 EB 40 80 11 00 00 00 00 00 00 A5 [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 EB 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FD [17:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:49:18]wFMCommunicate OK [17:49:18]CreateOFDProtocolMessage done [17:49:18]OFDSenderStorePacket 75170 [17:49:18]StoreOFDPacket docnum=75170 [17:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0D 89 04 01 17 62 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 34 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A2 2B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 25 01 00 35 04 06 00 70 3E AD 08 79 6F 71 E1 F3 DF DE F6 39 4A [17:49:18]CheckFolder [17:49:18]dirname=/storage/ofd_packets [17:49:18]CheckFolder done [17:49:18]ProducePacketName [17:49:18]name=ofd_packets/00075170 [17:49:18]NVStorageSaveData ofd_packets/00075170 [17:49:18]File name is /storage/ofd_packets/00075170 [17:49:18]Write 298 bytes [17:49:18]NVStorageSaveData done [17:49:18]OFDSenderStorePacket done [17:49:18]KKMCreateOFDPacket done [17:49:18]NVStorageSaveData kkm_last_timestamp [17:49:18]File name is /storage/kkm_last_timestamp [17:49:18]Write 4 bytes [17:49:18]NVStorageSaveData done [17:49:18]ExternCall_PrintAddStr [17:49:18]wPrintStart [17:49:18]Write to MH i2c: 01 00 00 EC 40 2C [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: 01 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: 01 07 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: 01 07 00 EC 40 00 00 00 00 00 FF 0F 41 [17:49:18]RasterBufferAndPrint [17:49:18]line Счет N : (1)191147 [17:49:18]line ИНН: 02508201610067 [17:49:18]line Контрольно-Кассовый Чек [17:49:18]line ПРОДАЖА [17:49:18]line ТРК (МРК, ГНК) : 41 [17:49:18]line Товар: 2710194210 [17:49:18]line ДТ-К-4 [17:49:18]line 19.690 * 76.20 [17:49:18]line = 1500.38 [17:49:18]line НДС 12% НСП 1% [17:49:18]line > о реализуемом товаре [17:49:18]line ИТОГО: 1500.38 [17:49:18]line НСП 1% : 13.28 [17:49:18]line НДС 12% : 159.33 [17:49:18]line Наличными: 0.00 [17:49:18]line Безнал.: 1500.38 [17:49:18]line Место: АЗС № 142 "Партнер Нефть" [17:49:18]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:49:18]line СНО: Общий режим [17:49:18]line Чек 162 26.10.2024 17:49 [17:49:18]line Смена: 512 ФФД: 1.0 [17:49:18]line ЗНМ: 0300000089 [17:49:18]line РНМ: 0000000000091691 [17:49:18]line Версия ККМ: 001 [17:49:18]line Платежная система: O! деньги [17:49:18]line ФМ: 0000000000871795 [17:49:18]line ФД: 75170 [17:49:18]line ФПД: 123414493297007 [17:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174922&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75170&fm=123414493297007&tin=02508201610067®Number=0000000000091691&sum=150038 [17:49:18]OFD Sender: Processing packet 75170 [packets to send 13, broken 12] [17:49:18]ProducePacketName [17:49:18]name=ofd_packets/00075170 [17:49:18]OFD Sender: To server: pG, [17:49:18]CommunicateWithHost lk.salyk.kg:30040 [17:49:18]ConnectInit lk.salyk.kg [17:49:18]written 0, free lines is 4095 [17:49:18]Connected sock=10 [17:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0D 89 04 01 17 62 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 34 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A2 2B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A2 25 01 00 35 04 06 00 70 3E AD 08 79 6F 71 E1 F3 DF DE F6 39 4A [17:49:19]Write to MH i2c: 01 00 00 16 41 57 [17:49:19]Write i2c OK [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: 01 [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: 01 07 00 [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: 01 07 00 16 41 00 00 00 00 00 B7 0C 21 [17:49:19]RasterBufferAndPrint [17:49:19]line [17:49:19]line [17:49:19]line [17:49:19]line [17:49:19]line [17:49:19]written 0, free lines is 3262 [17:49:19]MH_Cut [17:49:19]Write to MH i2c: D1 01 00 1D 41 01 30 [17:49:19]Write i2c OK [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: D1 [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: D1 01 00 [17:49:19]MH_I2C_Read... [17:49:19]Read from MH i2c: D1 01 00 1D 41 00 2F [17:49:19]Write to MH i2c: 01 00 00 1E 41 5F [17:49:19]Write i2c OK [17:49:19]MH_I2C_Read... [17:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DD B2 47 00 DB 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 38 37 31 37 39 35 10 04 04 00 A2 25 01 00 F4 03 04 00 1E D3 1C 67 B6 04 01 00 00 D0 BC 92 14 B1 FF A8 C6 [17:49:19]CommunicateWithHost err = 0 [17:49:19]CheckOFDResponse [17:49:19]1017 (14) - 77093643461234 [17:49:19]1041 (16) - 0000000000871795 [17:49:19]1040 (4) - 75170 [17:49:19]1012 (4) - 26.10.2024 11:31 [17:49:19]1206 (1) - 0 [17:49:19]OFD Sender: Remove packet 75170 [17:49:19]ProducePacketName [17:49:19]name=ofd_packets/00075170 [17:49:19]NVStorageDeleteData [17:49:19]OFD Sender: No OFD packet to send [17:49:19]*** Cut start [17:49:19]*** Partial cut [17:49:19]*** CUTSNS_PIN = 1 [17:49:20]*** CUTSNS_PIN = 0 [17:49:20]*** Brake cut motor [17:49:20]Read from MH i2c: 01 [17:49:20]MH_I2C_Read... [17:49:20]*** Stop cut motor [17:49:20]*** Cut end [17:49:20]Read from MH i2c: 01 07 00 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: 01 07 00 1E 41 00 00 00 00 00 FF 0F 74 [17:49:20]process_action close_receipt done [17:49:20]requested_data is exist [17:49:20]produce_requested_data [17:49:20]requested_item fm.sn is exist - process it [17:49:20]wFMCommunicate request_size=4 [17:49:20]MH_SAM_APDU [17:49:20]CAPDU: 80 11 00 00 [17:49:20]Write to MH i2c: E2 08 00 1F 41 80 11 00 00 00 00 00 00 DA [17:49:20]Write i2c OK [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 [17:49:20]MH_I2C_Read... [17:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:20]Read from MH i2c: E2 17 00 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 17 00 1F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 32 [17:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:49:20]wFMCommunicate OK [17:49:20]requested_item fd.num is exist - process it [17:49:20]SAM_PROTO_GetFieldsCounters [17:49:20]wFMCommunicate request_size=4 [17:49:20]MH_SAM_APDU [17:49:20]CAPDU: 80 13 00 00 [17:49:20]Write to MH i2c: E2 08 00 20 41 80 13 00 00 00 00 00 00 DD [17:49:20]Write i2c OK [17:49:20]MH_I2C_Read... [17:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:20]Read from MH i2c: E2 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 62 00 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 62 00 20 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A2 25 01 00 0E 04 04 00 00 02 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 B4 [17:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A2 25 01 00 0E 04 04 00 00 02 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 [17:49:20]wFMCommunicate OK [17:49:20]SAM_PROTO_GetFieldsCounters done [17:49:20]requested_item shift.num is exist - process it [17:49:20]requested_item shift.opened is exist - process it [17:49:20]req_shift_opened [17:49:20]FM_GetShiftState [17:49:20]SAM_PROTO_GetShiftState [17:49:20]wFMCommunicate request_size=4 [17:49:20]MH_SAM_APDU [17:49:20]CAPDU: 80 13 01 00 [17:49:20]Write to MH i2c: E2 08 00 21 41 80 13 01 00 00 00 00 00 DF [17:49:20]Write i2c OK [17:49:20]MH_I2C_Read... [17:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:20]Read from MH i2c: E2 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 0E 00 [17:49:20]MH_I2C_Read... [17:49:20]Read from MH i2c: E2 0E 00 21 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FA [17:49:20]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:49:20]wFMCommunicate OK [17:49:20]SAM_PROTO_GetShiftState done [17:49:20]FM_GetShiftState done [17:49:20]req_shift_opened done [17:49:20]requested_item shift.open_date is exist - process it [17:49:20]req_shift_open_date [17:49:20]req_shift_open_date done [17:49:20]produce_requested_data done [17:49:20]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75170,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:49:20]process_action_free close_receipt [17:49:20]json_value_free [17:49:20]json_value_free done [17:49:20]process_json_proto returns [17:49:20]Send response to host [17:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75170,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:49:20]free response buf [17:49:20]execute_script done [17:49:20]execute_script returns [17:49:20]free content buf [17:49:20]Sock 8.Close socket [17:49:20]Sock 8.Thread stoped [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: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:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:17]ConnectInit Can't connect to host [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:49]accept exits with 9 [17:56:49]New connection [17:56:49]New thread 3066781028 created [17:56:49]Thread 3066924388 joined [17:56:49]Waiting for new connection... [17:56:49] Sock 9.Parse request [17:56:49]Sock 9.Check first char [17:56:49]Sock 9.First char is OK [17:56:49]request: POST /json_proto HTTP/1.0 [17:56:49]Method: POST [17:56:49]URL: /json_proto [17:56:49]Method is POST - this is cgi request [17:56:49]url: /json_proto [17:56:49]query_string will be loaded in cgi processing [17:56:49]execute_cgi json_proto POST (null) [17:56:49]execute_cgi path=json_proto method=POST [17:56:49]POST find Content-Length [17:56:49]Host: 172.17.39.131:8080 [17:56:49]Content-Length: 682 [17:56:49]Content-Type: application/json [17:56:49] [17:56:49]POST finish read [17:56:49]Found Content-Length = 682 [17:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [17:56:49]execute_script... [17: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)191148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [17:56:49]POST & json_proto [17:56:49]process_json_proto [17:56:49]json parsed OK: [17:56:49]protocol is kg_v1.0 [17:56:49]action value=close_receipt [17:56:49]process_action close_receipt [17:56:49]cmd_close_receipt [17:56:49]MH_GetDate [17:56:49]Write to MH i2c: F0 00 00 22 41 52 [17:56:49]Write i2c OK [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: F0 [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: F0 09 00 [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: F0 09 00 22 41 00 67 2D 1D 67 86 57 24 65 D9 [17:56:49]GetLastDocTimeStamp 1729964962 [17:56:49]current date 1729965415 [17:56:49]FM_GetShiftState [17:56:49]SAM_PROTO_GetShiftState [17:56:49]wFMCommunicate request_size=4 [17:56:49]MH_SAM_APDU [17:56:49]CAPDU: 80 13 01 00 [17:56:49]Write to MH i2c: E2 08 00 23 41 80 13 01 00 00 00 00 00 E1 [17:56:49]Write i2c OK [17:56:49]MH_I2C_Read... [17:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:49]Read from MH i2c: E2 [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: E2 0E 00 [17:56:49]MH_I2C_Read... [17:56:49]Read from MH i2c: E2 0E 00 23 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FC [17:56:49]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:56:49]wFMCommunicate OK [17:56:49]SAM_PROTO_GetShiftState done [17:56:49]FM_GetShiftState done [17:56:49]opened in 1729902166 [17:56:49]opened+sec_in_day 1729988566 [17:56:49]quantity*price = 120018 [17:56:49]sum+1 = 120020 [17:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 163 26.10.2024 17:56 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75171 ФПД: 281417405881133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175655&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75171&fm=281417405881133&tin=02508201610067®Number=0000000000091691&sum=120000 [17:56:50]StoreToDocumentArchive [17:56:50]shift 512 fd 75171 [17:56:50]save to /storage/0512/doc_00075171 [17:56:50]save last doc name /storage/0512/doc_00075171 to /storage/kkm_last_doc_name [17:56:50]save OK [17:56:50]Clear old archive folders... [17:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:50]tlvbuf is 008F25D0 [17:56:50]SAM_PROTO_ClearQueue [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 09 00 00 [17:56:50]Write to MH i2c: E2 08 00 30 41 80 09 00 00 00 00 00 00 E3 [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 30 41 00 90 00 E5 [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]SAM_PROTO_ClearQueue done [17:56:50]KKMCreateOFDPacket [17:56:50]OFDProtocolAddRootSTLVToBuf [17:56:50]FM_MakeSignedData [17:56:50]FM_MakeSignedData [17:56:50]SAM_PROTO_SignData [17:56:50]wFMCommunicate request_size=4 [17:56:50]MH_SAM_APDU [17:56:50]CAPDU: 80 0D 01 02 [17:56:50]Write to MH i2c: E2 08 00 31 41 80 0D 01 02 00 00 00 00 EB [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:50]Read from MH i2c: E2 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 [17:56:50]MH_I2C_Read... [17:56:50]Read from MH i2c: E2 03 00 31 41 00 90 00 E6 [17:56:50]RAPDU: 90 00 [17:56:50]wFMCommunicate OK [17:56:50]wFMCommunicate request_size=255 [17:56:50]MH_SAM_APDU [17:56: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 A3 00 00 00 F4 03 04 00 67 2D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 25 01 00 35 04 06 00 FF [17:56:50]Write to MH i2c: E2 02 01 32 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 A3 00 00 00 F4 03 04 00 67 2D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 25 01 00 35 04 06 00 FF 00 00 0C [17:56:50]Write i2c OK [17:56:50]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 32 41 00 90 00 E7 [17:56:51]RAPDU: 90 00 [17:56:51]wFMCommunicate OK [17:56:51]wFMCommunicate request_size=10 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 0D 02 02 05 F2 98 82 DB 2D [17:56:51]Write to MH i2c: E2 0D 00 33 41 80 0D 02 02 05 00 F2 98 82 DB 2D 00 00 0C [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 03 00 33 41 00 90 00 E8 [17:56:51]RAPDU: 90 00 [17:56:51]wFMCommunicate OK [17:56:51]wFMCommunicate request_size=4 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 0D 03 02 [17:56:51]Write to MH i2c: E2 08 00 34 41 80 0D 03 02 00 00 00 00 F0 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 0B 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 0B 00 34 41 00 93 B4 D3 DC 86 A8 5A A6 90 00 15 [17:56:51]RAPDU: 93 B4 D3 DC 86 A8 5A A6 90 00 [17:56:51]wFMCommunicate OK [17:56:51]SAM_PROTO_SignData done [17:56:51]FM_MakeSignedData done [17:56:51]CreateOFDProtocolMessage [17:56:51]wFMCommunicate request_size=4 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 11 00 00 [17:56:51]Write to MH i2c: E2 08 00 35 41 80 11 00 00 00 00 00 00 F0 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 17 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 17 00 35 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [17:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:56:51]wFMCommunicate OK [17:56:51]CreateOFDProtocolMessage done [17:56:51]OFDSenderStorePacket 75171 [17:56:51]StoreOFDPacket docnum=75171 [17:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 79 CE 07 01 DB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 A3 00 00 00 F4 03 04 00 67 2D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 25 01 00 35 04 06 00 FF F2 98 82 DB 2D 93 B4 D3 DC 86 A8 5A A6 [17:56:51]CheckFolder [17:56:51]dirname=/storage/ofd_packets [17:56:51]CheckFolder done [17:56:51]ProducePacketName [17:56:51]name=ofd_packets/00075171 [17:56:51]NVStorageSaveData ofd_packets/00075171 [17:56:51]File name is /storage/ofd_packets/00075171 [17:56:51]Write 301 bytes [17:56:51]NVStorageSaveData done [17:56:51]OFDSenderStorePacket done [17:56:51]KKMCreateOFDPacket done [17:56:51]NVStorageSaveData kkm_last_timestamp [17:56:51]File name is /storage/kkm_last_timestamp [17:56:51]Write 4 bytes [17:56:51]NVStorageSaveData done [17:56:51]ExternCall_PrintAddStr [17:56:51]wPrintStart [17:56:51]Write to MH i2c: 01 00 00 36 41 77 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 36 41 00 00 00 00 00 FF 0F 8C [17:56:51]RasterBufferAndPrint [17:56:51]line Счет N : (1)191148 [17:56:51]line ИНН: 02508201610067 [17:56:51]line Контрольно-Кассовый Чек [17:56:51]line ПРОДАЖА [17:56:51]line ТРК (МРК, ГНК) : 21 [17:56:51]line Товар: 2710124130 [17:56:51]line Аи-92-К-5 [17:56:51]line 17.940 * 66.90 [17:56:51]line = 1200.19 [17:56:51]line НДС 12% НСП 1% [17:56:51]line > о реализуемом товаре [17:56:51]line ОКРУГЛЕНИЕ: -0.19 [17:56:51]line ИТОГО: 1200.00 [17:56:51]line Внесено: 1200.00 [17:56:51]line СДАЧА: 0.00 [17:56:51]line НСП 1% : 10.62 [17:56:51]line НДС 12% : 127.45 [17:56:51]line Наличными: 1200.00 [17:56:51]line Безнал.: 0.00 [17:56:51]line Место: АЗС № 142 "Партнер Нефть" [17:56:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [17:56:51]line СНО: Общий режим [17:56:51]line Чек 163 26.10.2024 17:56 [17:56:51]line Смена: 512 ФФД: 1.0 [17:56:51]line ЗНМ: 0300000089 [17:56:51]line РНМ: 0000000000091691 [17:56:51]line Версия ККМ: 001 [17:56:51]line ФМ: 0000000000871795 [17:56:51]line ФД: 75171 [17:56:51]line ФПД: 281417405881133 [17:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175655&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75171&fm=281417405881133&tin=02508201610067®Number=0000000000091691&sum=120000 [17:56:51]written 0, free lines is 4095 [17:56:51]OFD Sender: Processing packet 75171 [packets to send 13, broken 12] [17:56:51]ProducePacketName [17:56:51]name=ofd_packets/00075171 [17:56:51]OFD Sender: To server: pG, [17:56:51]CommunicateWithHost lk.salyk.kg:30040 [17:56:51]ConnectInit lk.salyk.kg [17:56:51]Connected sock=11 [17:56:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 79 CE 07 01 DB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 A3 00 00 00 F4 03 04 00 67 2D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A3 25 01 00 35 04 06 00 FF F2 98 82 DB 2D 93 B4 D3 DC 86 A8 5A A6 [17:56:51]Write to MH i2c: 01 00 00 61 41 A2 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: 01 07 00 61 41 00 00 00 00 00 A4 0C 59 [17:56:51]RasterBufferAndPrint [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]line [17:56:51]written 0, free lines is 3241 [17:56:51]MH_Cut [17:56:51]Write to MH i2c: D1 01 00 68 41 01 7B [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 01 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: D1 01 00 68 41 00 7A [17:56:51]Write to MH i2c: 01 00 00 69 41 AA [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E1 C6 47 00 C2 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 38 37 31 37 39 35 10 04 04 00 A3 25 01 00 F4 03 04 00 E2 D4 1C 67 B6 04 01 00 00 E2 69 C9 AA 5C BE 13 7D [17:56:51]CommunicateWithHost err = 0 [17:56:51]CheckOFDResponse [17:56:51]1017 (14) - 77093643461234 [17:56:51]1041 (16) - 0000000000871795 [17:56:51]1040 (4) - 75171 [17:56:51]1012 (4) - 26.10.2024 11:39 [17:56:51]1206 (1) - 0 [17:56:51]OFD Sender: Remove packet 75171 [17:56:51]ProducePacketName [17:56:51]name=ofd_packets/00075171 [17:56:51]NVStorageDeleteData [17:56:52]OFD Sender: No OFD packet to send [17:56:52]*** Cut start [17:56:52]*** Partial cut [17:56:52]*** CUTSNS_PIN = 1 [17:56:52]*** CUTSNS_PIN = 0 [17:56:52]*** Brake cut motor [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]*** Stop cut motor [17:56:53]*** Cut end [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 69 41 00 00 00 00 00 FF 0F BF [17:56:53]process_action close_receipt done [17:56:53]requested_data is exist [17:56:53]produce_requested_data [17:56:53]requested_item fm.sn is exist - process it [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 11 00 00 [17:56:53]Write to MH i2c: E2 08 00 6A 41 80 11 00 00 00 00 00 00 25 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 6A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7D [17:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [17:56:53]wFMCommunicate OK [17:56:53]requested_item fd.num is exist - process it [17:56:53]SAM_PROTO_GetFieldsCounters [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 13 00 00 [17:56:53]Write to MH i2c: E2 08 00 6B 41 80 13 00 00 00 00 00 00 28 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 62 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 62 00 6B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A3 25 01 00 0E 04 04 00 00 02 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 03 [17:56:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A3 25 01 00 0E 04 04 00 00 02 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 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_GetFieldsCounters done [17:56:53]requested_item shift.num is exist - process it [17:56:53]requested_item shift.opened is exist - process it [17:56:53]req_shift_opened [17:56:53]FM_GetShiftState [17:56:53]SAM_PROTO_GetShiftState [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 13 01 00 [17:56:53]Write to MH i2c: E2 08 00 6C 41 80 13 01 00 00 00 00 00 2A [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0E 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0E 00 6C 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 45 [17:56:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_GetShiftState done [17:56:53]FM_GetShiftState done [17:56:53]req_shift_opened done [17:56:53]requested_item shift.open_date is exist - process it [17:56:53]req_shift_open_date [17:56:53]req_shift_open_date done [17:56:53]produce_requested_data done [17:56:53]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75171,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [17:56:53]process_action_free close_receipt [17:56:53]json_value_free [17:56:53]json_value_free done [17:56:53]process_json_proto returns [17:56:53]Send response to host [17:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75171,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [17:56:53]free response buf [17:56:53]execute_script done [17:56:53]execute_script returns [17:56:53]free content buf [17:56:53]Sock 9.Close socket [17:56:53]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:24]recv_with_timeout no data received [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:18]accept exits with 10 [18:02:18]New connection [18:02:18]New thread 3066924388 created [18:02:18]Thread 3066781028 joined [18:02:18]Waiting for new connection... [18:02:18] Sock 10.Parse request [18:02:18]Sock 10.Check first char [18:02:18]Sock 10.First char is OK [18:02:18]request: POST /json_proto HTTP/1.0 [18:02:18]Method: POST [18:02:18]URL: /json_proto [18:02:18]Method is POST - this is cgi request [18:02:18]url: /json_proto [18:02:18]query_string will be loaded in cgi processing [18:02:18]execute_cgi json_proto POST (null) [18:02:18]execute_cgi path=json_proto method=POST [18:02:18]POST find Content-Length [18:02:18]Host: 172.17.39.131:8080 [18:02:18]Content-Length: 674 [18:02:18]Content-Type: application/json [18:02:18] [18:02:18]POST finish read [18:02:18]Found Content-Length = 674 [18:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:18]execute_script... [18:02: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)191149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:18]POST & json_proto [18:02:18]process_json_proto [18:02:18]json parsed OK: [18:02:18]protocol is kg_v1.0 [18:02:18]action value=close_receipt [18:02:18]process_action close_receipt [18:02:18]cmd_close_receipt [18:02:18]MH_GetDate [18:02:18]Write to MH i2c: F0 00 00 6D 41 9D [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 09 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: F0 09 00 6D 41 00 B0 2E 1D 67 86 57 24 65 6E [18:02:18]GetLastDocTimeStamp 1729965415 [18:02:18]current date 1729965744 [18:02:18]FM_GetShiftState [18:02:18]SAM_PROTO_GetShiftState [18:02:18]wFMCommunicate request_size=4 [18:02:18]MH_SAM_APDU [18:02:18]CAPDU: 80 13 01 00 [18:02:18]Write to MH i2c: E2 08 00 6E 41 80 13 01 00 00 00 00 00 2C [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:18]Read from MH i2c: E2 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: E2 0E 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: E2 0E 00 6E 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 47 [18:02:18]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:02:18]wFMCommunicate OK [18:02:18]SAM_PROTO_GetShiftState done [18:02:18]FM_GetShiftState done [18:02:18]opened in 1729902166 [18:02:18]opened+sec_in_day 1729988566 [18:02:18]quantity*price = 50063 [18:02:18]sum+1 = 50064 [18:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 164 26.10.2024 18:02 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75172 ФПД: 242292865829690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180224&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75172&fm=242292865829690&tin=02508201610067®Number=0000000000091691&sum=50000 [18:02:19]StoreToDocumentArchive [18:02:19]shift 512 fd 75172 [18:02:19]save to /storage/0512/doc_00075172 [18:02:19]save last doc name /storage/0512/doc_00075172 to /storage/kkm_last_doc_name [18:02:19]save OK [18:02:19]Clear old archive folders... [18:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:02:19]tlvbuf is 007D9950 [18:02:19]SAM_PROTO_ClearQueue [18:02:19]wFMCommunicate request_size=4 [18:02:19]MH_SAM_APDU [18:02:19]CAPDU: 80 09 00 00 [18:02:19]Write to MH i2c: E2 08 00 7B 41 80 09 00 00 00 00 00 00 2E [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 7B 41 00 90 00 30 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_ClearQueue done [18:02:20]KKMCreateOFDPacket [18:02:20]OFDProtocolAddRootSTLVToBuf [18:02:20]FM_MakeSignedData [18:02:20]FM_MakeSignedData [18:02:20]SAM_PROTO_SignData [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 01 02 [18:02:20]Write to MH i2c: E2 08 00 7C 41 80 0D 01 02 00 00 00 00 36 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 7C 41 00 90 00 31 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=255 [18:02:20]MH_SAM_APDU [18:02: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 34 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 A4 00 00 00 F4 03 04 00 B0 2E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 25 01 00 35 04 06 00 DC 5D 34 33 [18:02:20]Write to MH i2c: E2 02 01 7D 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 34 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 A4 00 00 00 F4 03 04 00 B0 2E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 25 01 00 35 04 06 00 DC 5D 34 33 00 00 BA [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 7D 41 00 90 00 32 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=7 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 02 02 02 0B 3A [18:02:20]Write to MH i2c: E2 0A 00 7E 41 80 0D 02 02 02 00 0B 3A 00 00 82 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 7E 41 00 90 00 33 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 03 02 [18:02:20]Write to MH i2c: E2 08 00 7F 41 80 0D 03 02 00 00 00 00 3B [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 7F 41 00 BA F2 6D 65 21 5A 08 87 90 00 C4 [18:02:20]RAPDU: BA F2 6D 65 21 5A 08 87 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_SignData done [18:02:20]FM_MakeSignedData done [18:02:20]CreateOFDProtocolMessage [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 11 00 00 [18:02:20]Write to MH i2c: E2 08 00 80 41 80 11 00 00 00 00 00 00 3B [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 80 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 93 [18:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:02:20]wFMCommunicate OK [18:02:20]CreateOFDProtocolMessage done [18:02:20]OFDSenderStorePacket 75172 [18:02:20]StoreOFDPacket docnum=75172 [18:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 9B F2 04 01 4B 1A 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 34 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 A4 00 00 00 F4 03 04 00 B0 2E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 25 01 00 35 04 06 00 DC 5D 34 33 0B 3A BA F2 6D 65 21 5A 08 87 [18:02:20]CheckFolder [18:02:20]dirname=/storage/ofd_packets [18:02:20]CheckFolder done [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00075172 [18:02:20]NVStorageSaveData ofd_packets/00075172 [18:02:20]File name is /storage/ofd_packets/00075172 [18:02:20]Write 298 bytes [18:02:20]NVStorageSaveData done [18:02:20]OFDSenderStorePacket done [18:02:20]KKMCreateOFDPacket done [18:02:20]NVStorageSaveData kkm_last_timestamp [18:02:20]File name is /storage/kkm_last_timestamp [18:02:20]Write 4 bytes [18:02:20]NVStorageSaveData done [18:02:20]ExternCall_PrintAddStr [18:02:20]wPrintStart [18:02:20]Write to MH i2c: 01 00 00 81 41 C2 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 81 41 00 00 00 00 00 FF 0F D7 [18:02:20]RasterBufferAndPrint [18:02:20]line Счет N : (1)191149 [18:02:20]line ИНН: 02508201610067 [18:02:20]line Контрольно-Кассовый Чек [18:02:20]line ПРОДАЖА [18:02:20]line ТРК (МРК, ГНК) : 41 [18:02:20]line Товар: 2710194210 [18:02:20]line ДТ-К-4 [18:02:20]line 6.570 * 76.20 [18:02:20]line = 500.63 [18:02:20]line НДС 12% НСП 1% [18:02:20]line > о реализуемом товаре [18:02:20]line ОКРУГЛЕНИЕ: -0.63 [18:02:20]line ИТОГО: 500.00 [18:02:20]line Внесено: 500.00 [18:02:20]line СДАЧА: 0.00 [18:02:20]line НСП 1% : 4.43 [18:02:20]line НДС 12% : 53.16 [18:02:20]line Наличными: 500.00 [18:02:20]line Безнал.: 0.00 [18:02:20]line Место: АЗС № 142 "Партнер Нефть" [18:02:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:02:20]line СНО: Общий режим [18:02:20]line Чек 164 26.10.2024 18:02 [18:02:20]line Смена: 512 ФФД: 1.0 [18:02:20]line ЗНМ: 0300000089 [18:02:20]line РНМ: 0000000000091691 [18:02:20]line Версия ККМ: 001 [18:02:20]line ФМ: 0000000000871795 [18:02:20]line ФД: 75172 [18:02:20]line ФПД: 242292865829690 [18:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180224&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75172&fm=242292865829690&tin=02508201610067®Number=0000000000091691&sum=50000 [18:02:20]OFD Sender: Processing packet 75172 [packets to send 13, broken 12] [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00075172 [18:02:20]OFD Sender: To server: pG, [18:02:20]CommunicateWithHost lk.salyk.kg:30040 [18:02:20]ConnectInit lk.salyk.kg [18:02:20]written 0, free lines is 4095 [18:02:21]Connected sock=8 [18:02:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 9B F2 04 01 4B 1A 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 34 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 A4 00 00 00 F4 03 04 00 B0 2E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A4 25 01 00 35 04 06 00 DC 5D 34 33 0B 3A BA F2 6D 65 21 5A 08 87 [18:02:21]Write to MH i2c: 01 00 00 AC 41 ED [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 07 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 07 00 AC 41 00 00 00 00 00 B2 0C B2 [18:02:21]RasterBufferAndPrint [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]written 0, free lines is 3257 [18:02:21]MH_Cut [18:02:21]Write to MH i2c: D1 01 00 B3 41 01 C6 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 B3 41 00 C5 [18:02:21]Write to MH i2c: 01 00 00 B4 41 F5 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BF AD 47 00 2C 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 38 37 31 37 39 35 10 04 04 00 A4 25 01 00 F4 03 04 00 2C D6 1C 67 B6 04 01 00 00 B9 10 43 28 9B 69 E6 A4 [18:02:21]CommunicateWithHost err = 0 [18:02:21]CheckOFDResponse [18:02:21]1017 (14) - 77093643461234 [18:02:21]1041 (16) - 0000000000871795 [18:02:21]1040 (4) - 75172 [18:02:21]1012 (4) - 26.10.2024 11:44 [18:02:21]1206 (1) - 0 [18:02:21]OFD Sender: Remove packet 75172 [18:02:21]ProducePacketName [18:02:21]name=ofd_packets/00075172 [18:02:21]NVStorageDeleteData [18:02:21]OFD Sender: No OFD packet to send [18:02:22]*** Cut start [18:02:22]*** Partial cut [18:02:22]*** CUTSNS_PIN = 1 [18:02:22]*** CUTSNS_PIN = 0 [18:02:22]*** Brake cut motor [18:02:22]Read from MH i2c: 01 [18:02:22]MH_I2C_Read... [18:02:22]*** Stop cut motor [18:02:22]*** Cut end [18:02:22]Read from MH i2c: 01 07 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 07 00 B4 41 00 00 00 00 00 FF 0F 0A [18:02:22]process_action close_receipt done [18:02:22]requested_data is exist [18:02:22]produce_requested_data [18:02:22]requested_item fm.sn is exist - process it [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 11 00 00 [18:02:22]Write to MH i2c: E2 08 00 B5 41 80 11 00 00 00 00 00 00 70 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 B5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C8 [18:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:02:22]wFMCommunicate OK [18:02:22]requested_item fd.num is exist - process it [18:02:22]SAM_PROTO_GetFieldsCounters [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 13 00 00 [18:02:22]Write to MH i2c: E2 08 00 B6 41 80 13 00 00 00 00 00 00 73 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:23]Read from MH i2c: E2 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 62 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 62 00 B6 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A4 25 01 00 0E 04 04 00 00 02 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 52 [18:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A4 25 01 00 0E 04 04 00 00 02 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 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetFieldsCounters done [18:02:23]requested_item shift.num is exist - process it [18:02:23]requested_item shift.opened is exist - process it [18:02:23]req_shift_opened [18:02:23]FM_GetShiftState [18:02:23]SAM_PROTO_GetShiftState [18:02:23]wFMCommunicate request_size=4 [18:02:23]MH_SAM_APDU [18:02:23]CAPDU: 80 13 01 00 [18:02:23]Write to MH i2c: E2 08 00 B7 41 80 13 01 00 00 00 00 00 75 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:23]Read from MH i2c: E2 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 B7 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 90 [18:02:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetShiftState done [18:02:23]FM_GetShiftState done [18:02:23]req_shift_opened done [18:02:23]requested_item shift.open_date is exist - process it [18:02:23]req_shift_open_date [18:02:23]req_shift_open_date done [18:02:23]produce_requested_data done [18:02:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75172,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:02:23]process_action_free close_receipt [18:02:23]json_value_free [18:02:23]json_value_free done [18:02:23]process_json_proto returns [18:02:23]Send response to host [18:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75172,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:02:23]free response buf [18:02:23]execute_script done [18:02:23]execute_script returns [18:02:23]free content buf [18:02:23]Sock 10.Close socket [18:02:23]Sock 10.Thread stoped [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:32]accept exits with 9 [18:06:32]New connection [18:06:32]New thread 3066781028 created [18:06:32]Thread 3066924388 joined [18:06:32]Waiting for new connection... [18:06:32] Sock 9.Parse request [18:06:32]Sock 9.Check first char [18:06:32]Sock 9.First char is OK [18:06:32]request: POST /json_proto HTTP/1.0 [18:06:32]Method: POST [18:06:32]URL: /json_proto [18:06:32]Method is POST - this is cgi request [18:06:32]url: /json_proto [18:06:32]query_string will be loaded in cgi processing [18:06:32]execute_cgi json_proto POST (null) [18:06:32]execute_cgi path=json_proto method=POST [18:06:32]POST find Content-Length [18:06:32]Host: 172.17.39.131:8080 [18:06:32]Content-Length: 685 [18:06:32]Content-Type: application/json [18:06:32] [18:06:32]POST finish read [18:06:32]Found Content-Length = 685 [18:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.590, "sum" : 1501.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:32]execute_script... [18: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)191150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.590, "sum" : 1501.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:32]POST & json_proto [18:06:32]process_json_proto [18:06:32]json parsed OK: [18:06:32]protocol is kg_v1.0 [18:06:32]action value=close_receipt [18:06:32]process_action close_receipt [18:06:32]cmd_close_receipt [18:06:32]MH_GetDate [18:06:32]Write to MH i2c: F0 00 00 B8 41 E8 [18:06:32]Write i2c OK [18:06:32]MH_I2C_Read... [18:06:32]Read from MH i2c: F0 [18:06:32]MH_I2C_Read... [18:06:32]Read from MH i2c: F0 09 00 [18:06:32]MH_I2C_Read... [18:06:32]Read from MH i2c: F0 09 00 B8 41 00 AE 2F 1D 67 86 57 24 65 B8 [18:06:32]GetLastDocTimeStamp 1729965744 [18:06:32]current date 1729965998 [18:06:32]FM_GetShiftState [18:06:32]SAM_PROTO_GetShiftState [18:06:32]wFMCommunicate request_size=4 [18:06:32]MH_SAM_APDU [18:06:32]CAPDU: 80 13 01 00 [18:06:32]Write to MH i2c: E2 08 00 B9 41 80 13 01 00 00 00 00 00 77 [18:06:32]Write i2c OK [18:06:32]MH_I2C_Read... [18:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:32]Read from MH i2c: E2 [18:06:32]MH_I2C_Read... [18:06:32]Read from MH i2c: E2 0E 00 [18:06:32]MH_I2C_Read... [18:06:32]Read from MH i2c: E2 0E 00 B9 41 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 92 [18:06:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:06:32]wFMCommunicate OK [18:06:32]SAM_PROTO_GetShiftState done [18:06:32]FM_GetShiftState done [18:06:32]opened in 1729902166 [18:06:32]opened+sec_in_day 1729988566 [18:06:32]quantity*price = 150115 [18:06:32]sum+1 = 150116 [18:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1501.00 Внесено: 5000.00 СДАЧА: 3499.00 НСП 1% : 13.28 НДС 12% : 159.41 Наличными: 1501.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 165 26.10.2024 18:06 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75173 ФПД: 117019426599027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180638&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75173&fm=117019426599027&tin=02508201610067®Number=0000000000091691&sum=150100 [18:06:34]StoreToDocumentArchive [18:06:34]shift 512 fd 75173 [18:06:34]save to /storage/0512/doc_00075173 [18:06:34]save last doc name /storage/0512/doc_00075173 to /storage/kkm_last_doc_name [18:06:34]save OK [18:06:34]Clear old archive folders... [18:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:06:34]tlvbuf is 0080C4B0 [18:06:34]SAM_PROTO_ClearQueue [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 09 00 00 [18:06:34]Write to MH i2c: E2 08 00 C6 41 80 09 00 00 00 00 00 00 79 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 C6 41 00 90 00 7B [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]SAM_PROTO_ClearQueue done [18:06:34]KKMCreateOFDPacket [18:06:34]OFDProtocolAddRootSTLVToBuf [18:06:34]FM_MakeSignedData [18:06:34]FM_MakeSignedData [18:06:34]SAM_PROTO_SignData [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 01 02 [18:06:34]Write to MH i2c: E2 08 00 C7 41 80 0D 01 02 00 00 00 00 81 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 C7 41 00 90 00 7C [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=255 [18:06:34]MH_SAM_APDU [18:06: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 63 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 A5 00 00 00 F4 03 04 00 AE 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 25 01 00 35 04 06 00 6A 6D [18:06:34]Write to MH i2c: E2 02 01 C8 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 63 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 A5 00 00 00 F4 03 04 00 AE 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 25 01 00 35 04 06 00 6A 6D 00 00 1C [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 C8 41 00 90 00 7D [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=9 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 02 02 04 B5 5A B0 73 [18:06:34]Write to MH i2c: E2 0C 00 C9 41 80 0D 02 02 04 00 B5 5A B0 73 00 00 BE [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 C9 41 00 90 00 7E [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 03 02 [18:06:34]Write to MH i2c: E2 08 00 CA 41 80 0D 03 02 00 00 00 00 86 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 0B 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 0B 00 CA 41 00 57 B1 0B 1C D4 FA 54 C1 90 00 99 [18:06:34]RAPDU: 57 B1 0B 1C D4 FA 54 C1 90 00 [18:06:34]wFMCommunicate OK [18:06:34]SAM_PROTO_SignData done [18:06:34]FM_MakeSignedData done [18:06:34]CreateOFDProtocolMessage [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 11 00 00 [18:06:34]Write to MH i2c: E2 08 00 CB 41 80 11 00 00 00 00 00 00 86 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 17 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 17 00 CB 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DE [18:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:06:34]wFMCommunicate OK [18:06:34]CreateOFDProtocolMessage done [18:06:34]OFDSenderStorePacket 75173 [18:06:34]StoreOFDPacket docnum=75173 [18:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 54 8D 06 01 FD 5F 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 63 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 A5 00 00 00 F4 03 04 00 AE 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 25 01 00 35 04 06 00 6A 6D B5 5A B0 73 57 B1 0B 1C D4 FA 54 C1 [18:06:34]CheckFolder [18:06:34]dirname=/storage/ofd_packets [18:06:34]CheckFolder done [18:06:34]ProducePacketName [18:06:34]name=ofd_packets/00075173 [18:06:34]NVStorageSaveData ofd_packets/00075173 [18:06:34]File name is /storage/ofd_packets/00075173 [18:06:34]Write 300 bytes [18:06:34]NVStorageSaveData done [18:06:34]OFDSenderStorePacket done [18:06:34]KKMCreateOFDPacket done [18:06:34]NVStorageSaveData kkm_last_timestamp [18:06:34]File name is /storage/kkm_last_timestamp [18:06:34]Write 4 bytes [18:06:34]NVStorageSaveData done [18:06:34]ExternCall_PrintAddStr [18:06:34]wPrintStart [18:06:34]Write to MH i2c: 01 00 00 CC 41 0D [18:06:34]OFD Sender: Processing packet 75173 [packets to send 13, broken 12] [18:06:34]ProducePacketName [18:06:34]name=ofd_packets/00075173 [18:06:34]OFD Sender: To server: pG, [18:06:34]CommunicateWithHost lk.salyk.kg:30040 [18:06:34]ConnectInit lk.salyk.kg [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 07 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 07 00 CC 41 00 00 00 00 00 FF 0F 22 [18:06:34]RasterBufferAndPrint [18:06:34]line Счет N : (1)191150 [18:06:34]line ИНН: 02508201610067 [18:06:34]line Контрольно-Кассовый Чек [18:06:34]line ПРОДАЖА [18:06:34]line ТРК (МРК, ГНК) : 51 [18:06:34]line Товар: 2711190000 [18:06:34]line ГАЗ-К-3 [18:06:34]line 38.590 * 38.90 [18:06:34]line = 1501.15 [18:06:34]line НДС 12% НСП 1% [18:06:34]line > о реализуемом товаре [18:06:34]line ОКРУГЛЕНИЕ: -0.15 [18:06:34]line ИТОГО: 1501.00 [18:06:34]line Внесено: 5000.00 [18:06:34]line СДАЧА: 3499.00 [18:06:34]line НСП 1% : 13.28 [18:06:34]line НДС 12% : 159.41 [18:06:34]line Наличными: 1501.00 [18:06:34]line Безнал.: 0.00 [18:06:34]line Место: АЗС № 142 "Партнер Нефть" [18:06:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:06:34]line СНО: Общий режим [18:06:34]line Чек 165 26.10.2024 18:06 [18:06:34]line Смена: 512 ФФД: 1.0 [18:06:34]line ЗНМ: 0300000089 [18:06:34]line РНМ: 0000000000091691 [18:06:34]line Версия ККМ: 001 [18:06:34]line ФМ: 0000000000871795 [18:06:34]line ФД: 75173 [18:06:34]line ФПД: 117019426599027 [18:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180638&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75173&fm=117019426599027&tin=02508201610067®Number=0000000000091691&sum=150100 [18:06:34]Connected sock=10 [18:06:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 54 8D 06 01 FD 5F 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 63 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 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 A5 00 00 00 F4 03 04 00 AE 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 25 01 00 35 04 06 00 6A 6D B5 5A B0 73 57 B1 0B 1C D4 FA 54 C1 [18:06:34]written 0, free lines is 4095 [18:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1F 2A 47 00 37 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A5 25 01 00 F4 03 04 00 2A D7 1C 67 B6 04 01 00 00 80 86 57 8D BF BA E0 11 [18:06:35]CommunicateWithHost err = 0 [18:06:35]CheckOFDResponse [18:06:35]1017 (14) - 77093643461234 [18:06:35]1041 (16) - 0000000000871795 [18:06:35]1040 (4) - 75173 [18:06:35]1012 (4) - 26.10.2024 11:48 [18:06:35]1206 (1) - 0 [18:06:35]OFD Sender: Remove packet 75173 [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00075173 [18:06:35]NVStorageDeleteData [18:06:35]Write to MH i2c: 01 00 00 F7 41 38 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 F7 41 00 00 00 00 00 A5 0C F0 [18:06:35]RasterBufferAndPrint [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]written 0, free lines is 3242 [18:06:35]MH_Cut [18:06:35]Write to MH i2c: D1 01 00 FE 41 01 11 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 01 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 01 00 FE 41 00 10 [18:06:35]Write to MH i2c: 01 00 00 FF 41 40 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]OFD Sender: No OFD packet to send [18:06:36]*** Cut start [18:06:36]*** Partial cut [18:06:36]*** CUTSNS_PIN = 1 [18:06:36]*** CUTSNS_PIN = 0 [18:06:36]*** Brake cut motor [18:06:36]Read from MH i2c: 01 [18:06:36]MH_I2C_Read... [18:06:36]*** Stop cut motor [18:06:36]*** Cut end [18:06:36]Read from MH i2c: 01 07 00 [18:06:36]MH_I2C_Read... [18:06:36]Read from MH i2c: 01 07 00 FF 41 00 00 00 00 00 FF 0F 55 [18:06:36]process_action close_receipt done [18:06:36]requested_data is exist [18:06:36]produce_requested_data [18:06:36]requested_item fm.sn is exist - process it [18:06:36]wFMCommunicate request_size=4 [18:06:36]MH_SAM_APDU [18:06:36]CAPDU: 80 11 00 00 [18:06:36]Write to MH i2c: E2 08 00 00 42 80 11 00 00 00 00 00 00 BC [18:06:36]Write i2c OK [18:06:36]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 00 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 14 [18:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:06:37]wFMCommunicate OK [18:06:37]requested_item fd.num is exist - process it [18:06:37]SAM_PROTO_GetFieldsCounters [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 00 00 [18:06:37]Write to MH i2c: E2 08 00 01 42 80 13 00 00 00 00 00 00 BF [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 01 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A5 25 01 00 0E 04 04 00 00 02 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 A2 [18:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A5 25 01 00 0E 04 04 00 00 02 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 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetFieldsCounters done [18:06:37]requested_item shift.num is exist - process it [18:06:37]requested_item shift.opened is exist - process it [18:06:37]req_shift_opened [18:06:37]FM_GetShiftState [18:06:37]SAM_PROTO_GetShiftState [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 01 00 [18:06:37]Write to MH i2c: E2 08 00 02 42 80 13 01 00 00 00 00 00 C1 [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 02 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DC [18:06:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetShiftState done [18:06:37]FM_GetShiftState done [18:06:37]req_shift_opened done [18:06:37]requested_item shift.open_date is exist - process it [18:06:37]req_shift_open_date [18:06:37]req_shift_open_date done [18:06:37]produce_requested_data done [18:06:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75173,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:06:37]process_action_free close_receipt [18:06:37]json_value_free [18:06:37]json_value_free done [18:06:37]process_json_proto returns [18:06:37]Send response to host [18:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75173,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:06:37]free response buf [18:06:37]execute_script done [18:06:37]execute_script returns [18:06:37]free content buf [18:06:37]Sock 9.Close socket [18:06:37]Sock 9.Thread stoped [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:41]accept exits with 8 [18:07:41]New connection [18:07:41]New thread 3066924388 created [18:07:41]Thread 3066781028 joined [18:07:41]Waiting for new connection... [18:07:41] Sock 8.Parse request [18:07:41]Sock 8.Check first char [18:07:41]Sock 8.First char is OK [18:07:41]request: POST /json_proto HTTP/1.0 [18:07:41]Method: POST [18:07:41]URL: /json_proto [18:07:41]Method is POST - this is cgi request [18:07:41]url: /json_proto [18:07:41]query_string will be loaded in cgi processing [18:07:41]execute_cgi json_proto POST (null) [18:07:41]execute_cgi path=json_proto method=POST [18:07:41]POST find Content-Length [18:07:41]Host: 172.17.39.131:8080 [18:07:41]Content-Length: 677 [18:07:41]Content-Type: application/json [18:07:41] [18:07:41]POST finish read [18:07:41]Found Content-Length = 677 [18:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:07:41]execute_script... [18:07: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)191151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:07:41]POST & json_proto [18:07:41]process_json_proto [18:07:41]json parsed OK: [18:07:41]protocol is kg_v1.0 [18:07:41]action value=close_receipt [18:07:41]process_action close_receipt [18:07:41]cmd_close_receipt [18:07:41]MH_GetDate [18:07:41]Write to MH i2c: F0 00 00 03 42 34 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: F0 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: F0 09 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: F0 09 00 03 42 00 F3 2F 1D 67 86 57 24 65 49 [18:07:41]GetLastDocTimeStamp 1729965998 [18:07:41]current date 1729966067 [18:07:41]FM_GetShiftState [18:07:41]SAM_PROTO_GetShiftState [18:07:41]wFMCommunicate request_size=4 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 13 01 00 [18:07:41]Write to MH i2c: E2 08 00 04 42 80 13 01 00 00 00 00 00 C3 [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 0E 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 0E 00 04 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DE [18:07:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:07:41]wFMCommunicate OK [18:07:41]SAM_PROTO_GetShiftState done [18:07:41]FM_GetShiftState done [18:07:41]opened in 1729902166 [18:07:41]opened+sec_in_day 1729988566 [18:07:41]quantity*price = 50041 [18:07:41]sum+1 = 50042 [18:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 166 26.10.2024 18:07 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75174 ФПД: 87200260425108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180747&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75174&fm=87200260425108&tin=02508201610067®Number=0000000000091691&sum=50000 [18:07:42]StoreToDocumentArchive [18:07:42]shift 512 fd 75174 [18:07:42]save to /storage/0512/doc_00075174 [18:07:42]save last doc name /storage/0512/doc_00075174 to /storage/kkm_last_doc_name [18:07:42]save OK [18:07:42]Clear old archive folders... [18:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:42]tlvbuf is 00949A60 [18:07:42]SAM_PROTO_ClearQueue [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 09 00 00 [18:07:42]Write to MH i2c: E2 08 00 11 42 80 09 00 00 00 00 00 00 C5 [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 03 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 03 00 11 42 00 90 00 C7 [18:07:42]RAPDU: 90 00 [18:07:42]wFMCommunicate OK [18:07:42]SAM_PROTO_ClearQueue done [18:07:42]KKMCreateOFDPacket [18:07:42]OFDProtocolAddRootSTLVToBuf [18:07:42]FM_MakeSignedData [18:07:42]FM_MakeSignedData [18:07:42]SAM_PROTO_SignData [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 0D 01 02 [18:07:42]Write to MH i2c: E2 08 00 12 42 80 0D 01 02 00 00 00 00 CD [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 03 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 03 00 12 42 00 90 00 C8 [18:07:42]RAPDU: 90 00 [18:07:42]wFMCommunicate OK [18:07:42]wFMCommunicate request_size=255 [18:07:42]MH_SAM_APDU [18:07: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 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 A6 00 00 00 F4 03 04 00 F3 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 25 01 00 35 04 06 00 4F [18:07:42]Write to MH i2c: E2 02 01 13 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F3 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 25 01 00 35 04 06 00 4F 00 00 CB [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:43]Read from MH i2c: E2 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 03 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 03 00 13 42 00 90 00 C9 [18:07:43]RAPDU: 90 00 [18:07:43]wFMCommunicate OK [18:07:43]wFMCommunicate request_size=10 [18:07:43]MH_SAM_APDU [18:07:43]CAPDU: 80 0D 02 02 05 4E E4 8C 05 94 [18:07:43]Write to MH i2c: E2 0D 00 14 42 80 0D 02 02 05 00 4E E4 8C 05 94 00 00 31 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:43]Read from MH i2c: E2 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 03 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 03 00 14 42 00 90 00 CA [18:07:43]RAPDU: 90 00 [18:07:43]wFMCommunicate OK [18:07:43]wFMCommunicate request_size=4 [18:07:43]MH_SAM_APDU [18:07:43]CAPDU: 80 0D 03 02 [18:07:43]Write to MH i2c: E2 08 00 15 42 80 0D 03 02 00 00 00 00 D2 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:43]Read from MH i2c: E2 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 0B 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 0B 00 15 42 00 4B D2 89 E8 6D E1 C1 4D 90 00 BD [18:07:43]RAPDU: 4B D2 89 E8 6D E1 C1 4D 90 00 [18:07:43]wFMCommunicate OK [18:07:43]SAM_PROTO_SignData done [18:07:43]FM_MakeSignedData done [18:07:43]CreateOFDProtocolMessage [18:07:43]wFMCommunicate request_size=4 [18:07:43]MH_SAM_APDU [18:07:43]CAPDU: 80 11 00 00 [18:07:43]Write to MH i2c: E2 08 00 16 42 80 11 00 00 00 00 00 00 D2 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:43]Read from MH i2c: E2 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 17 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: E2 17 00 16 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2A [18:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:07:43]wFMCommunicate OK [18:07:43]CreateOFDProtocolMessage done [18:07:43]OFDSenderStorePacket 75174 [18:07:43]StoreOFDPacket docnum=75174 [18:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D0 FD 07 01 31 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A6 00 00 00 F4 03 04 00 F3 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 25 01 00 35 04 06 00 4F 4E E4 8C 05 94 4B D2 89 E8 6D E1 C1 4D [18:07:43]CheckFolder [18:07:43]dirname=/storage/ofd_packets [18:07:43]CheckFolder done [18:07:43]ProducePacketName [18:07:43]name=ofd_packets/00075174 [18:07:43]NVStorageSaveData ofd_packets/00075174 [18:07:43]File name is /storage/ofd_packets/00075174 [18:07:43]Write 301 bytes [18:07:43]NVStorageSaveData done [18:07:43]OFDSenderStorePacket done [18:07:43]KKMCreateOFDPacket done [18:07:43]NVStorageSaveData kkm_last_timestamp [18:07:43]File name is /storage/kkm_last_timestamp [18:07:43]Write 4 bytes [18:07:43]NVStorageSaveData done [18:07:43]ExternCall_PrintAddStr [18:07:43]wPrintStart [18:07:43]Write to MH i2c: 01 00 00 17 42 59 [18:07:43]Write i2c OK [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: 01 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: 01 07 00 [18:07:43]MH_I2C_Read... [18:07:43]Read from MH i2c: 01 07 00 17 42 00 00 00 00 00 FF 0F 6E [18:07:43]RasterBufferAndPrint [18:07:43]line Счет N : (1)191151 [18:07:43]line ИНН: 02508201610067 [18:07:43]line Контрольно-Кассовый Чек [18:07:43]line ПРОДАЖА [18:07:43]line ТРК (МРК, ГНК) : 21 [18:07:43]line Товар: 2710124130 [18:07:43]line Аи-92-К-5 [18:07:43]line 7.480 * 66.90 [18:07:43]line = 500.41 [18:07:43]line НДС 12% НСП 1% [18:07:43]line > о реализуемом товаре [18:07:43]line ОКРУГЛЕНИЕ: -0.41 [18:07:43]line ИТОГО: 500.00 [18:07:43]line Внесено: 500.00 [18:07:43]line СДАЧА: 0.00 [18:07:43]line НСП 1% : 4.43 [18:07:43]line НДС 12% : 53.14 [18:07:43]line Наличными: 500.00 [18:07:43]line Безнал.: 0.00 [18:07:43]line Место: АЗС № 142 "Партнер Нефть" [18:07:43]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:07:43]line СНО: Общий режим [18:07:43]line Чек 166 26.10.2024 18:07 [18:07:43]line Смена: 512 ФФД: 1.0 [18:07:43]line ЗНМ: 0300000089 [18:07:43]line РНМ: 0000000000091691 [18:07:43]line Версия ККМ: 001 [18:07:43]line ФМ: 0000000000871795 [18:07:43]line ФД: 75174 [18:07:43]line ФПД: 87200260425108 [18:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180747&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75174&fm=87200260425108&tin=02508201610067®Number=0000000000091691&sum=50000 [18:07:43]written 0, free lines is 4095 [18:07:43]OFD Sender: Processing packet 75174 [packets to send 13, broken 12] [18:07:43]ProducePacketName [18:07:43]name=ofd_packets/00075174 [18:07:43]OFD Sender: To server: pG, [18:07:43]CommunicateWithHost lk.salyk.kg:30040 [18:07:43]ConnectInit lk.salyk.kg [18:07:43]Connected sock=10 [18:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D0 FD 07 01 31 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A6 00 00 00 F4 03 04 00 F3 2F 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 25 01 00 35 04 06 00 4F 4E E4 8C 05 94 4B D2 89 E8 6D E1 C1 4D [18:07:44]Write to MH i2c: 01 00 00 42 42 84 [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: 01 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: 01 07 00 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: 01 07 00 42 42 00 00 00 00 00 9E 0C 35 [18:07:44]RasterBufferAndPrint [18:07:44]line [18:07:44]line [18:07:44]line [18:07:44]line [18:07:44]line [18:07:44]written 0, free lines is 3238 [18:07:44]MH_Cut [18:07:44]Write to MH i2c: D1 01 00 49 42 01 5D [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: D1 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: D1 01 00 [18:07:44]MH_I2C_Read... [18:07:44]Read from MH i2c: D1 01 00 49 42 00 5C [18:07:44]Write to MH i2c: 01 00 00 4A 42 8C [18:07:44]Write i2c OK [18:07:44]MH_I2C_Read... [18:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 B4 B7 47 00 24 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A6 25 01 00 F4 03 04 00 6F D7 1C 67 B6 04 01 00 00 30 97 E9 BB 19 AB 34 6B [18:07:44]CommunicateWithHost err = 0 [18:07:44]CheckOFDResponse [18:07:44]1017 (14) - 77093643461234 [18:07:44]1041 (16) - 0000000000871795 [18:07:44]1040 (4) - 75174 [18:07:44]1012 (4) - 26.10.2024 11:50 [18:07:44]1206 (1) - 0 [18:07:44]OFD Sender: Remove packet 75174 [18:07:44]ProducePacketName [18:07:44]name=ofd_packets/00075174 [18:07:44]NVStorageDeleteData [18:07:44]OFD Sender: No OFD packet to send [18:07:44]*** Cut start [18:07:44]*** Partial cut [18:07:44]*** CUTSNS_PIN = 1 [18:07:44]*** CUTSNS_PIN = 0 [18:07:45]*** Brake cut motor [18:07:45]Read from MH i2c: 01 [18:07:45]MH_I2C_Read... [18:07:45]*** Stop cut motor [18:07:45]*** Cut end [18:07:45]Read from MH i2c: 01 07 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: 01 07 00 4A 42 00 00 00 00 00 FF 0F A1 [18:07:45]process_action close_receipt done [18:07:45]requested_data is exist [18:07:45]produce_requested_data [18:07:45]requested_item fm.sn is exist - process it [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 11 00 00 [18:07:45]Write to MH i2c: E2 08 00 4B 42 80 11 00 00 00 00 00 00 07 [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 17 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 17 00 4B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5F [18:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:07:45]wFMCommunicate OK [18:07:45]requested_item fd.num is exist - process it [18:07:45]SAM_PROTO_GetFieldsCounters [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 13 00 00 [18:07:45]Write to MH i2c: E2 08 00 4C 42 80 13 00 00 00 00 00 00 0A [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 62 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 62 00 4C 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A6 25 01 00 0E 04 04 00 00 02 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 F1 [18:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A6 25 01 00 0E 04 04 00 00 02 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 [18:07:45]wFMCommunicate OK [18:07:45]SAM_PROTO_GetFieldsCounters done [18:07:45]requested_item shift.num is exist - process it [18:07:45]requested_item shift.opened is exist - process it [18:07:45]req_shift_opened [18:07:45]FM_GetShiftState [18:07:45]SAM_PROTO_GetShiftState [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 13 01 00 [18:07:45]Write to MH i2c: E2 08 00 4D 42 80 13 01 00 00 00 00 00 0C [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0E 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0E 00 4D 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 27 [18:07:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:07:45]wFMCommunicate OK [18:07:45]SAM_PROTO_GetShiftState done [18:07:45]FM_GetShiftState done [18:07:45]req_shift_opened done [18:07:45]requested_item shift.open_date is exist - process it [18:07:45]req_shift_open_date [18:07:45]req_shift_open_date done [18:07:45]produce_requested_data done [18:07:45]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75174,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:07:45]process_action_free close_receipt [18:07:45]json_value_free [18:07:45]json_value_free done [18:07:45]process_json_proto returns [18:07:45]Send response to host [18:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75174,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:07:45]free response buf [18:07:45]execute_script done [18:07:45]execute_script returns [18:07:45]free content buf [18:07:45]Sock 8.Close socket [18:07:45]Sock 8.Thread stoped [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:46]recv_with_timeout no data received [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [18:13:33]New connection [18:13:33]New thread 3066781028 created [18:13:33]Thread 3066924388 joined [18:13:33]Waiting for new connection... [18:13:33] Sock 9.Parse request [18:13:33]Sock 9.Check first char [18:13:33]Sock 9.First char is OK [18:13:33]request: POST /json_proto HTTP/1.0 [18:13:33]Method: POST [18:13:33]URL: /json_proto [18:13:33]Method is POST - this is cgi request [18:13:33]url: /json_proto [18:13:33]query_string will be loaded in cgi processing [18:13:33]execute_cgi json_proto POST (null) [18:13:33]execute_cgi path=json_proto method=POST [18:13:33]POST find Content-Length [18:13:33]Host: 172.17.39.131:8080 [18:13:33]Content-Length: 769 [18:13:33]Content-Type: application/json [18:13:33] [18:13:33]POST finish read [18:13:33]Found Content-Length = 769 [18:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.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" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:33]execute_script... [18:13: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)191152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.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" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:33]POST & json_proto [18:13:33]process_json_proto [18:13:33]json parsed OK: [18:13:33]protocol is kg_v1.0 [18:13:33]action value=close_receipt [18:13:33]process_action close_receipt [18:13:33]cmd_close_receipt [18:13:33]MH_GetDate [18:13:33]Write to MH i2c: F0 00 00 4E 42 7F [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: F0 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: F0 09 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: F0 09 00 4E 42 00 53 31 1D 67 86 57 24 65 F6 [18:13:33]GetLastDocTimeStamp 1729966067 [18:13:33]current date 1729966419 [18:13:33]FM_GetShiftState [18:13:33]SAM_PROTO_GetShiftState [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 13 01 00 [18:13:33]Write to MH i2c: E2 08 00 4F 42 80 13 01 00 00 00 00 00 0E [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0E 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0E 00 4F 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 29 [18:13:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_GetShiftState done [18:13:33]FM_GetShiftState done [18:13:33]opened in 1729902166 [18:13:33]opened+sec_in_day 1729988566 [18:13:33]quantity*price = 160024 [18:13:33]sum+1 = 160026 [18:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.25 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 0.00 Безнал.: 1600.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 167 26.10.2024 18:13 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75175 ФПД: 275207258015862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181339&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75175&fm=275207258015862&tin=02508201610067®Number=0000000000091691&sum=160025 [18:13:34]StoreToDocumentArchive [18:13:34]shift 512 fd 75175 [18:13:34]save to /storage/0512/doc_00075175 [18:13:34]save last doc name /storage/0512/doc_00075175 to /storage/kkm_last_doc_name [18:13:34]save OK [18:13:34]Clear old archive folders... [18:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:34]tlvbuf is 008A2AE0 [18:13:34]SAM_PROTO_ClearQueue [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 09 00 00 [18:13:34]Write to MH i2c: E2 08 00 5C 42 80 09 00 00 00 00 00 00 10 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 5C 42 00 90 00 12 [18:13:34]RAPDU: 90 00 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_ClearQueue done [18:13:34]KKMCreateOFDPacket [18:13:34]OFDProtocolAddRootSTLVToBuf [18:13:34]FM_MakeSignedData [18:13:34]FM_MakeSignedData [18:13:34]SAM_PROTO_SignData [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 0D 01 02 [18:13:34]Write to MH i2c: E2 08 00 5D 42 80 0D 01 02 00 00 00 00 18 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 5D 42 00 90 00 13 [18:13:34]RAPDU: 90 00 [18:13:34]wFMCommunicate OK [18:13:34]wFMCommunicate request_size=255 [18:13:34]MH_SAM_APDU [18:13: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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 53 31 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 25 01 00 35 04 06 00 FA [18:13:34]Write to MH i2c: E2 02 01 5E 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 53 31 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 25 01 00 35 04 06 00 FA 00 00 7E [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 5E 42 00 90 00 14 [18:13:34]RAPDU: 90 00 [18:13:34]wFMCommunicate OK [18:13:34]wFMCommunicate request_size=10 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 0D 02 02 05 4C AE DA 88 76 [18:13:34]Write to MH i2c: E2 0D 00 5F 42 80 0D 02 02 05 00 4C AE DA 88 76 00 00 F7 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 03 00 5F 42 00 90 00 15 [18:13:34]RAPDU: 90 00 [18:13:34]wFMCommunicate OK [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 0D 03 02 [18:13:34]Write to MH i2c: E2 08 00 60 42 80 0D 03 02 00 00 00 00 1D [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0B 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0B 00 60 42 00 34 FA BF 85 F5 2D AA 11 90 00 6D [18:13:34]RAPDU: 34 FA BF 85 F5 2D AA 11 90 00 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_SignData done [18:13:34]FM_MakeSignedData done [18:13:34]CreateOFDProtocolMessage [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 11 00 00 [18:13:34]Write to MH i2c: E2 08 00 61 42 80 11 00 00 00 00 00 00 1D [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 17 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 17 00 61 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [18:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:13:34]wFMCommunicate OK [18:13:34]CreateOFDProtocolMessage done [18:13:34]OFDSenderStorePacket 75175 [18:13:34]StoreOFDPacket docnum=75175 [18:13:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 09 C9 07 01 7C 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 53 31 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 25 01 00 35 04 06 00 FA 4C AE DA 88 76 34 FA BF 85 F5 2D AA 11 [18:13:34]CheckFolder [18:13:34]dirname=/storage/ofd_packets [18:13:34]CheckFolder done [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00075175 [18:13:34]NVStorageSaveData ofd_packets/00075175 [18:13:34]File name is /storage/ofd_packets/00075175 [18:13:34]Write 301 bytes [18:13:34]NVStorageSaveData done [18:13:34]OFDSenderStorePacket done [18:13:34]KKMCreateOFDPacket done [18:13:34]NVStorageSaveData kkm_last_timestamp [18:13:34]File name is /storage/kkm_last_timestamp [18:13:34]Write 4 bytes [18:13:34]NVStorageSaveData done [18:13:34]ExternCall_PrintAddStr [18:13:34]wPrintStart [18:13:34]Write to MH i2c: 01 00 00 62 42 A4 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 62 42 00 00 00 00 00 FF 0F B9 [18:13:34]RasterBufferAndPrint [18:13:34]line Счет N : (1)191152 [18:13:34]line ИНН: 02508201610067 [18:13:34]line Контрольно-Кассовый Чек [18:13:34]line ПРОДАЖА [18:13:34]line ТРК (МРК, ГНК) : 21 [18:13:34]line Товар: 2710124130 [18:13:34]line Аи-92-К-5 [18:13:34]line 23.920 * 66.90 [18:13:34]line = 1600.25 [18:13:34]line НДС 12% НСП 1% [18:13:34]line > о реализуемом товаре [18:13:34]line ИТОГО: 1600.25 [18:13:34]line НСП 1% : 14.16 [18:13:34]line НДС 12% : 169.94 [18:13:34]line Наличными: 0.00 [18:13:34]line Безнал.: 1600.25 [18:13:34]line Место: АЗС № 142 "Партнер Нефть" [18:13:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:13:34]line СНО: Общий режим [18:13:34]line Чек 167 26.10.2024 18:13 [18:13:34]line Смена: 512 ФФД: 1.0 [18:13:34]line ЗНМ: 0300000089 [18:13:34]line РНМ: 0000000000091691 [18:13:34]line Версия ККМ: 001 [18:13:34]line Платежная система: Mbank [18:13:34]line ФМ: 0000000000871795 [18:13:34]line ФД: 75175 [18:13:34]line ФПД: 275207258015862 [18:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181339&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75175&fm=275207258015862&tin=02508201610067®Number=0000000000091691&sum=160025 [18:13:34]written 0, free lines is 4095 [18:13:34]OFD Sender: Processing packet 75175 [packets to send 13, broken 12] [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00075175 [18:13:34]OFD Sender: To server: pG, [18:13:34]CommunicateWithHost lk.salyk.kg:30040 [18:13:34]ConnectInit lk.salyk.kg [18:13:35]Write to MH i2c: 01 00 00 8B 42 CD [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 8B 42 00 00 00 00 00 CE 0C AE [18:13:35]RasterBufferAndPrint [18:13:35]line [18:13:35]line [18:13:35]line [18:13:35]line [18:13:35]line [18:13:35]written 0, free lines is 3282 [18:13:35]MH_Cut [18:13:35]Write to MH i2c: D1 01 00 92 42 01 A6 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: D1 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: D1 01 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: D1 01 00 92 42 00 A5 [18:13:35]Write to MH i2c: 01 00 00 93 42 D5 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:36]*** Cut start [18:13:36]*** Partial cut [18:13:36]*** CUTSNS_PIN = 1 [18:13:36]*** CUTSNS_PIN = 0 [18:13:36]*** Brake cut motor [18:13:36]Read from MH i2c: 01 [18:13:36]MH_I2C_Read... [18:13:36]*** Stop cut motor [18:13:36]*** Cut end [18:13:36]Read from MH i2c: 01 07 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: 01 07 00 93 42 00 00 00 00 00 FF 0F EA [18:13:36]process_action close_receipt done [18:13:36]requested_data is exist [18:13:36]produce_requested_data [18:13:36]requested_item fm.sn is exist - process it [18:13:36]wFMCommunicate request_size=4 [18:13:36]MH_SAM_APDU [18:13:36]CAPDU: 80 11 00 00 [18:13:36]Write to MH i2c: E2 08 00 94 42 80 11 00 00 00 00 00 00 50 [18:13:36]Write i2c OK [18:13:36]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 17 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 17 00 94 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A8 [18:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:13:36]wFMCommunicate OK [18:13:36]requested_item fd.num is exist - process it [18:13:36]SAM_PROTO_GetFieldsCounters [18:13:36]wFMCommunicate request_size=4 [18:13:36]MH_SAM_APDU [18:13:36]CAPDU: 80 13 00 00 [18:13:36]Write to MH i2c: E2 08 00 95 42 80 13 00 00 00 00 00 00 53 [18:13:36]Write i2c OK [18:13:36]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 62 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 62 00 95 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A7 25 01 00 0E 04 04 00 00 02 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 3E [18:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A7 25 01 00 0E 04 04 00 00 02 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 [18:13:37]wFMCommunicate OK [18:13:37]SAM_PROTO_GetFieldsCounters done [18:13:37]requested_item shift.num is exist - process it [18:13:37]requested_item shift.opened is exist - process it [18:13:37]req_shift_opened [18:13:37]FM_GetShiftState [18:13:37]SAM_PROTO_GetShiftState [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 13 01 00 [18:13:37]Write to MH i2c: E2 08 00 96 42 80 13 01 00 00 00 00 00 55 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0E 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0E 00 96 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 70 [18:13:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:13:37]wFMCommunicate OK [18:13:37]SAM_PROTO_GetShiftState done [18:13:37]FM_GetShiftState done [18:13:37]req_shift_opened done [18:13:37]requested_item shift.open_date is exist - process it [18:13:37]req_shift_open_date [18:13:37]req_shift_open_date done [18:13:37]produce_requested_data done [18:13:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75175,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:13:37]process_action_free close_receipt [18:13:37]json_value_free [18:13:37]json_value_free done [18:13:37]process_json_proto returns [18:13:37]Send response to host [18:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75175,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:13:37]free response buf [18:13:37]execute_script done [18:13:37]execute_script returns [18:13:37]free content buf [18:13:37]Sock 9.Close socket [18:13:37]Sock 9.Thread stoped [18:13:39]ConnectInit Can't take IP for lk.salyk.kg [18:13:39]CommunicateWithHost connect error [18:13:39]CommunicateWithHost err = -1 [18:13:39]OFD Sender: Server communicate error [18:13:44]OFD Sender: Processing packet 75175 [packets to send 13, broken 12] [18:13:44]ProducePacketName [18:13:44]name=ofd_packets/00075175 [18:13:44]OFD Sender: To server: pG, [18:13:44]CommunicateWithHost lk.salyk.kg:30040 [18:13:44]ConnectInit lk.salyk.kg [18:13:49]ConnectInit Can't take IP for lk.salyk.kg [18:13:49]CommunicateWithHost connect error [18:13:49]CommunicateWithHost err = -1 [18:13:49]OFD Sender: Server communicate error [18:13:54]OFD Sender: Processing packet 75175 [packets to send 13, broken 12] [18:13:54]ProducePacketName [18:13:54]name=ofd_packets/00075175 [18:13:54]OFD Sender: To server: pG, [18:13:54]CommunicateWithHost lk.salyk.kg:30040 [18:13:54]ConnectInit lk.salyk.kg [18:13:59]ConnectInit Can't take IP for lk.salyk.kg [18:13:59]CommunicateWithHost connect error [18:13:59]CommunicateWithHost err = -1 [18:13:59]OFD Sender: Server communicate error [18:14:04]OFD Sender: Processing packet 75175 [packets to send 13, broken 12] [18:14:04]ProducePacketName [18:14:04]name=ofd_packets/00075175 [18:14:04]OFD Sender: To server: pG, [18:14:04]CommunicateWithHost lk.salyk.kg:30040 [18:14:04]ConnectInit lk.salyk.kg [18:14:09]ConnectInit Can't take IP for lk.salyk.kg [18:14:09]CommunicateWithHost connect error [18:14:09]CommunicateWithHost err = -1 [18:14:09]OFD Sender: Server communicate error [18:14:14]OFD Sender: Processing packet 75175 [packets to send 13, broken 12] [18:14:14]ProducePacketName [18:14:14]name=ofd_packets/00075175 [18:14:14]OFD Sender: To server: pG, [18:14:14]CommunicateWithHost lk.salyk.kg:30040 [18:14:14]ConnectInit lk.salyk.kg [18:14:17]Connected sock=9 [18:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 09 C9 07 01 7C 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 53 31 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 25 01 00 35 04 06 00 FA 4C AE DA 88 76 34 FA BF 85 F5 2D AA 11 [18:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 2C AD 47 00 56 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A7 25 01 00 F4 03 04 00 F9 D8 1C 67 B6 04 01 00 00 48 F6 FA 58 B5 E8 BA C1 [18:14:17]CommunicateWithHost err = 0 [18:14:17]CheckOFDResponse [18:14:17]1017 (14) - 77093643461234 [18:14:17]1041 (16) - 0000000000871795 [18:14:17]1040 (4) - 75175 [18:14:17]1012 (4) - 26.10.2024 11:56 [18:14:17]1206 (1) - 0 [18:14:17]OFD Sender: Remove packet 75175 [18:14:17]ProducePacketName [18:14:17]name=ofd_packets/00075175 [18:14:17]NVStorageDeleteData [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:27]ConnectInit Can't connect to host [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]accept exits with 10 [18:18:33]New connection [18:18:33]New thread 3066924388 created [18:18:33]Thread 3066781028 joined [18:18:33]Waiting for new connection... [18:18:33] Sock 10.Parse request [18:18:33]Sock 10.Check first char [18:18:33]Sock 10.First char is OK [18:18:33]request: POST /json_proto HTTP/1.0 [18:18:33]Method: POST [18:18:33]URL: /json_proto [18:18:33]Method is POST - this is cgi request [18:18:33]url: /json_proto [18:18:33]query_string will be loaded in cgi processing [18:18:33]execute_cgi json_proto POST (null) [18:18:33]execute_cgi path=json_proto method=POST [18:18:33]POST find Content-Length [18:18:33]Host: 172.17.39.131:8080 [18:18:33]Content-Length: 766 [18:18:33]Content-Type: application/json [18:18:33] [18:18:33]POST finish read [18:18:33]Found Content-Length = 766 [18:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:18:33]execute_script... [18:18: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)191153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:18:33]POST & json_proto [18:18:33]process_json_proto [18:18:33]json parsed OK: [18:18:33]protocol is kg_v1.0 [18:18:33]action value=close_receipt [18:18:33]process_action close_receipt [18:18:33]cmd_close_receipt [18:18:33]MH_GetDate [18:18:33]Write to MH i2c: F0 00 00 97 42 C8 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: F0 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: F0 09 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: F0 09 00 97 42 00 7F 32 1D 67 86 57 24 65 6C [18:18:33]GetLastDocTimeStamp 1729966419 [18:18:33]current date 1729966719 [18:18:33]FM_GetShiftState [18:18:33]SAM_PROTO_GetShiftState [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 13 01 00 [18:18:33]Write to MH i2c: E2 08 00 98 42 80 13 01 00 00 00 00 00 57 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 98 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 72 [18:18:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetShiftState done [18:18:33]FM_GetShiftState done [18:18:33]opened in 1729902166 [18:18:33]opened+sec_in_day 1729988566 [18:18:33]quantity*price = 50041 [18:18:33]sum+1 = 50042 [18:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 168 26.10.2024 18:18 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75176 ФПД: 257218248916617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181839&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75176&fm=257218248916617&tin=02508201610067®Number=0000000000091691&sum=50041 [18:18:34]StoreToDocumentArchive [18:18:34]shift 512 fd 75176 [18:18:34]save to /storage/0512/doc_00075176 [18:18:34]save last doc name /storage/0512/doc_00075176 to /storage/kkm_last_doc_name [18:18:34]save OK [18:18:34]Clear old archive folders... [18:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:34]tlvbuf is 007F4F40 [18:18:34]SAM_PROTO_ClearQueue [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 09 00 00 [18:18:34]Write to MH i2c: E2 08 00 A5 42 80 09 00 00 00 00 00 00 59 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 A5 42 00 90 00 5B [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]SAM_PROTO_ClearQueue done [18:18:34]KKMCreateOFDPacket [18:18:34]OFDProtocolAddRootSTLVToBuf [18:18:34]FM_MakeSignedData [18:18:34]FM_MakeSignedData [18:18:34]SAM_PROTO_SignData [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 0D 01 02 [18:18:34]Write to MH i2c: E2 08 00 A6 42 80 0D 01 02 00 00 00 00 61 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 A6 42 00 90 00 5C [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]wFMCommunicate request_size=255 [18:18:34]MH_SAM_APDU [18:18: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 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 A8 00 00 00 F4 03 04 00 7F 32 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 25 01 00 35 04 06 00 E9 [18:18:34]Write to MH i2c: E2 02 01 A7 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A8 00 00 00 F4 03 04 00 7F 32 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 25 01 00 35 04 06 00 E9 00 00 DE [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:35]Read from MH i2c: E2 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 03 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 03 00 A7 42 00 90 00 5D [18:18:35]RAPDU: 90 00 [18:18:35]wFMCommunicate OK [18:18:35]wFMCommunicate request_size=10 [18:18:35]MH_SAM_APDU [18:18:35]CAPDU: 80 0D 02 02 05 F0 4A 5B 3E 89 [18:18:35]Write to MH i2c: E2 0D 00 A8 42 80 0D 02 02 05 00 F0 4A 5B 3E 89 00 00 CA [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:35]Read from MH i2c: E2 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 03 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 03 00 A8 42 00 90 00 5E [18:18:35]RAPDU: 90 00 [18:18:35]wFMCommunicate OK [18:18:35]wFMCommunicate request_size=4 [18:18:35]MH_SAM_APDU [18:18:35]CAPDU: 80 0D 03 02 [18:18:35]Write to MH i2c: E2 08 00 A9 42 80 0D 03 02 00 00 00 00 66 [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:35]Read from MH i2c: E2 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 0B 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 0B 00 A9 42 00 F3 AF 49 8B C3 D2 5F 8D 90 00 5E [18:18:35]RAPDU: F3 AF 49 8B C3 D2 5F 8D 90 00 [18:18:35]wFMCommunicate OK [18:18:35]SAM_PROTO_SignData done [18:18:35]FM_MakeSignedData done [18:18:35]CreateOFDProtocolMessage [18:18:35]wFMCommunicate request_size=4 [18:18:35]MH_SAM_APDU [18:18:35]CAPDU: 80 11 00 00 [18:18:35]Write to MH i2c: E2 08 00 AA 42 80 11 00 00 00 00 00 00 66 [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:35]Read from MH i2c: E2 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 17 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: E2 17 00 AA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BE [18:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:18:35]wFMCommunicate OK [18:18:35]CreateOFDProtocolMessage done [18:18:35]OFDSenderStorePacket 75176 [18:18:35]StoreOFDPacket docnum=75176 [18:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AB 67 07 01 F6 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A8 00 00 00 F4 03 04 00 7F 32 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 25 01 00 35 04 06 00 E9 F0 4A 5B 3E 89 F3 AF 49 8B C3 D2 5F 8D [18:18:35]CheckFolder [18:18:35]dirname=/storage/ofd_packets [18:18:35]CheckFolder done [18:18:35]ProducePacketName [18:18:35]name=ofd_packets/00075176 [18:18:35]NVStorageSaveData ofd_packets/00075176 [18:18:35]File name is /storage/ofd_packets/00075176 [18:18:35]Write 301 bytes [18:18:35]NVStorageSaveData done [18:18:35]OFDSenderStorePacket done [18:18:35]KKMCreateOFDPacket done [18:18:35]NVStorageSaveData kkm_last_timestamp [18:18:35]File name is /storage/kkm_last_timestamp [18:18:35]Write 4 bytes [18:18:35]NVStorageSaveData done [18:18:35]ExternCall_PrintAddStr [18:18:35]wPrintStart [18:18:35]Write to MH i2c: 01 00 00 AB 42 ED [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 AB 42 00 00 00 00 00 FF 0F 02 [18:18:35]RasterBufferAndPrint [18:18:35]line Счет N : (1)191153 [18:18:35]line ИНН: 02508201610067 [18:18:35]line Контрольно-Кассовый Чек [18:18:35]line ПРОДАЖА [18:18:35]line ТРК (МРК, ГНК) : 21 [18:18:35]line Товар: 2710124130 [18:18:35]line Аи-92-К-5 [18:18:35]line 7.480 * 66.90 [18:18:35]line = 500.41 [18:18:35]line НДС 12% НСП 1% [18:18:35]line > о реализуемом товаре [18:18:35]line ИТОГО: 500.41 [18:18:35]line НСП 1% : 4.43 [18:18:35]line НДС 12% : 53.14 [18:18:35]line Наличными: 0.00 [18:18:35]line Безнал.: 500.41 [18:18:35]line Место: АЗС № 142 "Партнер Нефть" [18:18:35]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:18:35]line СНО: Общий режим [18:18:35]line Чек 168 26.10.2024 18:18 [18:18:35]line Смена: 512 ФФД: 1.0 [18:18:35]line ЗНМ: 0300000089 [18:18:35]line РНМ: 0000000000091691 [18:18:35]line Версия ККМ: 001 [18:18:35]line Платежная система: Mbank [18:18:35]line ФМ: 0000000000871795 [18:18:35]line ФД: 75176 [18:18:35]line ФПД: 257218248916617 [18:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181839&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75176&fm=257218248916617&tin=02508201610067®Number=0000000000091691&sum=50041 [18:18:35]written 0, free lines is 4095 [18:18:35]OFD Sender: Processing packet 75176 [packets to send 13, broken 12] [18:18:35]ProducePacketName [18:18:35]name=ofd_packets/00075176 [18:18:35]OFD Sender: To server: pG, [18:18:35]CommunicateWithHost lk.salyk.kg:30040 [18:18:35]ConnectInit lk.salyk.kg [18:18:35]Write to MH i2c: 01 00 00 D4 42 16 [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 D4 42 00 00 00 00 00 C8 0C F1 [18:18:35]RasterBufferAndPrint [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]written 0, free lines is 3278 [18:18:35]MH_Cut [18:18:35]Write to MH i2c: D1 01 00 DB 42 01 EF [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 01 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 01 00 DB 42 00 EE [18:18:35]Write to MH i2c: 01 00 00 DC 42 1E [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Connected sock=9 [18:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AB 67 07 01 F6 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A8 00 00 00 F4 03 04 00 7F 32 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 25 01 00 35 04 06 00 E9 F0 4A 5B 3E 89 F3 AF 49 8B C3 D2 5F 8D [18:18:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 83 08 47 00 D1 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A8 25 01 00 F4 03 04 00 FB D9 1C 67 B6 04 01 00 00 CC 86 4E 83 CB 64 2C 23 [18:18:36]CommunicateWithHost err = 0 [18:18:36]CheckOFDResponse [18:18:36]1017 (14) - 77093643461234 [18:18:36]1041 (16) - 0000000000871795 [18:18:36]1040 (4) - 75176 [18:18:36]1012 (4) - 26.10.2024 12:00 [18:18:36]1206 (1) - 0 [18:18:36]OFD Sender: Remove packet 75176 [18:18:36]ProducePacketName [18:18:36]name=ofd_packets/00075176 [18:18:36]NVStorageDeleteData [18:18:36]*** Cut start [18:18:36]*** Partial cut [18:18:36]*** CUTSNS_PIN = 1 [18:18:36]*** CUTSNS_PIN = 0 [18:18:36]OFD Sender: No OFD packet to send [18:18:36]*** Brake cut motor [18:18:37]Read from MH i2c: 01 [18:18:37]MH_I2C_Read... [18:18:37]*** Stop cut motor [18:18:37]*** Cut end [18:18:37]Read from MH i2c: 01 07 00 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: 01 07 00 DC 42 00 00 00 00 00 FF 0F 33 [18:18:37]process_action close_receipt done [18:18:37]requested_data is exist [18:18:37]produce_requested_data [18:18:37]requested_item fm.sn is exist - process it [18:18:37]wFMCommunicate request_size=4 [18:18:37]MH_SAM_APDU [18:18:37]CAPDU: 80 11 00 00 [18:18:37]Write to MH i2c: E2 08 00 DD 42 80 11 00 00 00 00 00 00 99 [18:18:37]Write i2c OK [18:18:37]MH_I2C_Read... [18:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:37]Read from MH i2c: E2 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 17 00 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 17 00 DD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F1 [18:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:18:37]wFMCommunicate OK [18:18:37]requested_item fd.num is exist - process it [18:18:37]SAM_PROTO_GetFieldsCounters [18:18:37]wFMCommunicate request_size=4 [18:18:37]MH_SAM_APDU [18:18:37]CAPDU: 80 13 00 00 [18:18:37]Write to MH i2c: E2 08 00 DE 42 80 13 00 00 00 00 00 00 9C [18:18:37]Write i2c OK [18:18:37]MH_I2C_Read... [18:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:37]Read from MH i2c: E2 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 62 00 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 62 00 DE 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A8 25 01 00 0E 04 04 00 00 02 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 8B [18:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A8 25 01 00 0E 04 04 00 00 02 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 [18:18:37]wFMCommunicate OK [18:18:37]SAM_PROTO_GetFieldsCounters done [18:18:37]requested_item shift.num is exist - process it [18:18:37]requested_item shift.opened is exist - process it [18:18:37]req_shift_opened [18:18:37]FM_GetShiftState [18:18:37]SAM_PROTO_GetShiftState [18:18:37]wFMCommunicate request_size=4 [18:18:37]MH_SAM_APDU [18:18:37]CAPDU: 80 13 01 00 [18:18:37]Write to MH i2c: E2 08 00 DF 42 80 13 01 00 00 00 00 00 9E [18:18:37]Write i2c OK [18:18:37]MH_I2C_Read... [18:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:37]Read from MH i2c: E2 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 0E 00 [18:18:37]MH_I2C_Read... [18:18:37]Read from MH i2c: E2 0E 00 DF 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B9 [18:18:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:18:37]wFMCommunicate OK [18:18:37]SAM_PROTO_GetShiftState done [18:18:37]FM_GetShiftState done [18:18:37]req_shift_opened done [18:18:37]requested_item shift.open_date is exist - process it [18:18:37]req_shift_open_date [18:18:37]req_shift_open_date done [18:18:37]produce_requested_data done [18:18:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75176,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:18:37]process_action_free close_receipt [18:18:37]json_value_free [18:18:37]json_value_free done [18:18:37]process_json_proto returns [18:18:37]Send response to host [18:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75176,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:18:37]free response buf [18:18:37]execute_script done [18:18:37]execute_script returns [18:18:37]free content buf [18:18:37]Sock 10.Close socket [18:18:37]Sock 10.Thread stoped [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:00]recv_with_timeout no data received [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:20:57]accept exits with 8 [18:20:57]New connection [18:20:57]New thread 3066781028 created [18:20:57]Thread 3066924388 joined [18:20:57]Waiting for new connection... [18:20:57] Sock 8.Parse request [18:20:57]Sock 8.Check first char [18:20:57]Sock 8.First char is OK [18:20:57]request: POST /json_proto HTTP/1.0 [18:20:57]Method: POST [18:20:57]URL: /json_proto [18:20:57]Method is POST - this is cgi request [18:20:57]url: /json_proto [18:20:57]query_string will be loaded in cgi processing [18:20:57]execute_cgi json_proto POST (null) [18:20:57]execute_cgi path=json_proto method=POST [18:20:57]POST find Content-Length [18:20:57]Host: 172.17.39.131:8080 [18:20:57]Content-Length: 677 [18:20:57]Content-Type: application/json [18:20:57] [18:20:57]POST finish read [18:20:57]Found Content-Length = 677 [18:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:20:57]execute_script... [18:20: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)191154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:20:57]POST & json_proto [18:20:57]process_json_proto [18:20:57]json parsed OK: [18:20:57]protocol is kg_v1.0 [18:20:57]action value=close_receipt [18:20:57]process_action close_receipt [18:20:57]cmd_close_receipt [18:20:57]MH_GetDate [18:20:57]Write to MH i2c: F0 00 00 E0 42 11 [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: F0 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: F0 09 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: F0 09 00 E0 42 00 0F 33 1D 67 86 57 24 65 46 [18:20:57]GetLastDocTimeStamp 1729966719 [18:20:57]current date 1729966863 [18:20:57]FM_GetShiftState [18:20:57]SAM_PROTO_GetShiftState [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 13 01 00 [18:20:57]Write to MH i2c: E2 08 00 E1 42 80 13 01 00 00 00 00 00 A0 [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0E 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0E 00 E1 42 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BB [18:20:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:20:57]wFMCommunicate OK [18:20:57]SAM_PROTO_GetShiftState done [18:20:57]FM_GetShiftState done [18:20:57]opened in 1729902166 [18:20:57]opened+sec_in_day 1729988566 [18:20:57]quantity*price = 40006 [18:20:57]sum+1 = 40007 [18:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 169 26.10.2024 18:21 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75177 ФПД: 53046807810935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182103&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75177&fm=53046807810935&tin=02508201610067®Number=0000000000091691&sum=40000 [18:20:58]StoreToDocumentArchive [18:20:58]shift 512 fd 75177 [18:20:58]save to /storage/0512/doc_00075177 [18:20:58]save last doc name /storage/0512/doc_00075177 to /storage/kkm_last_doc_name [18:20:58]save OK [18:20:58]Clear old archive folders... [18:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:58]tlvbuf is 007FB380 [18:20:58]SAM_PROTO_ClearQueue [18:20:58]wFMCommunicate request_size=4 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 09 00 00 [18:20:58]Write to MH i2c: E2 08 00 EE 42 80 09 00 00 00 00 00 00 A2 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 EE 42 00 90 00 A4 [18:20:58]RAPDU: 90 00 [18:20:58]wFMCommunicate OK [18:20:58]SAM_PROTO_ClearQueue done [18:20:58]KKMCreateOFDPacket [18:20:58]OFDProtocolAddRootSTLVToBuf [18:20:58]FM_MakeSignedData [18:20:58]FM_MakeSignedData [18:20:58]SAM_PROTO_SignData [18:20:58]wFMCommunicate request_size=4 [18:20:58]MH_SAM_APDU [18:20:58]CAPDU: 80 0D 01 02 [18:20:58]Write to MH i2c: E2 08 00 EF 42 80 0D 01 02 00 00 00 00 AA [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:58]Read from MH i2c: E2 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: E2 03 00 EF 42 00 90 00 A5 [18:20:58]RAPDU: 90 00 [18:20:58]wFMCommunicate OK [18:20:58]wFMCommunicate request_size=255 [18:20:58]MH_SAM_APDU [18:20: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 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 A9 00 00 00 F4 03 04 00 0F 33 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 25 01 00 35 04 06 00 30 [18:20:58]Write to MH i2c: E2 02 01 F0 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 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 A9 00 00 00 F4 03 04 00 0F 33 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 25 01 00 35 04 06 00 30 00 00 7E [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 03 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 03 00 F0 42 00 90 00 A6 [18:20:59]RAPDU: 90 00 [18:20:59]wFMCommunicate OK [18:20:59]wFMCommunicate request_size=10 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 0D 02 02 05 3E EC 22 D3 77 [18:20:59]Write to MH i2c: E2 0D 00 F1 42 80 0D 02 02 05 00 3E EC 22 D3 77 00 00 4D [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 03 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 03 00 F1 42 00 90 00 A7 [18:20:59]RAPDU: 90 00 [18:20:59]wFMCommunicate OK [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 0D 03 02 [18:20:59]Write to MH i2c: E2 08 00 F2 42 80 0D 03 02 00 00 00 00 AF [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0B 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0B 00 F2 42 00 BA FC C4 01 05 E2 84 F9 90 00 8F [18:20:59]RAPDU: BA FC C4 01 05 E2 84 F9 90 00 [18:20:59]wFMCommunicate OK [18:20:59]SAM_PROTO_SignData done [18:20:59]FM_MakeSignedData done [18:20:59]CreateOFDProtocolMessage [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 11 00 00 [18:20:59]Write to MH i2c: E2 08 00 F3 42 80 11 00 00 00 00 00 00 AF [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 17 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 17 00 F3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 07 [18:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:20:59]wFMCommunicate OK [18:20:59]CreateOFDProtocolMessage done [18:20:59]OFDSenderStorePacket 75177 [18:20:59]StoreOFDPacket docnum=75177 [18:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7A E3 07 01 5F 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 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 A9 00 00 00 F4 03 04 00 0F 33 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 25 01 00 35 04 06 00 30 3E EC 22 D3 77 BA FC C4 01 05 E2 84 F9 [18:20:59]CheckFolder [18:20:59]dirname=/storage/ofd_packets [18:20:59]CheckFolder done [18:20:59]ProducePacketName [18:20:59]name=ofd_packets/00075177 [18:20:59]NVStorageSaveData ofd_packets/00075177 [18:20:59]File name is /storage/ofd_packets/00075177 [18:20:59]Write 301 bytes [18:20:59]NVStorageSaveData done [18:20:59]OFDSenderStorePacket done [18:20:59]KKMCreateOFDPacket done [18:20:59]NVStorageSaveData kkm_last_timestamp [18:20:59]File name is /storage/kkm_last_timestamp [18:20:59]Write 4 bytes [18:20:59]NVStorageSaveData done [18:20:59]ExternCall_PrintAddStr [18:20:59]wPrintStart [18:20:59]Write to MH i2c: 01 00 00 F4 42 36 [18:20:59]OFD Sender: Processing packet 75177 [packets to send 13, broken 12] [18:20:59]ProducePacketName [18:20:59]name=ofd_packets/00075177 [18:20:59]OFD Sender: To server: pG, [18:20:59]CommunicateWithHost lk.salyk.kg:30040 [18:20:59]ConnectInit lk.salyk.kg [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 F4 42 00 00 00 00 00 FF 0F 4B [18:20:59]RasterBufferAndPrint [18:20:59]line Счет N : (1)191154 [18:20:59]line ИНН: 02508201610067 [18:20:59]line Контрольно-Кассовый Чек [18:20:59]line ПРОДАЖА [18:20:59]line ТРК (МРК, ГНК) : 21 [18:20:59]line Товар: 2710124130 [18:20:59]line Аи-92-К-5 [18:20:59]line 5.980 * 66.90 [18:20:59]line = 400.06 [18:20:59]line НДС 12% НСП 1% [18:20:59]line > о реализуемом товаре [18:20:59]line ОКРУГЛЕНИЕ: -0.06 [18:20:59]line ИТОГО: 400.00 [18:20:59]line Внесено: 400.00 [18:20:59]line СДАЧА: 0.00 [18:20:59]line НСП 1% : 3.54 [18:20:59]line НДС 12% : 42.48 [18:20:59]line Наличными: 400.00 [18:20:59]line Безнал.: 0.00 [18:20:59]line Место: АЗС № 142 "Партнер Нефть" [18:20:59]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:20:59]line СНО: Общий режим [18:20:59]line Чек 169 26.10.2024 18:21 [18:20:59]line Смена: 512 ФФД: 1.0 [18:20:59]line ЗНМ: 0300000089 [18:20:59]line РНМ: 0000000000091691 [18:20:59]line Версия ККМ: 001 [18:20:59]line ФМ: 0000000000871795 [18:20:59]line ФД: 75177 [18:20:59]line ФПД: 53046807810935 [18:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182103&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75177&fm=53046807810935&tin=02508201610067®Number=0000000000091691&sum=40000 [18:20:59]written 0, free lines is 4095 [18:20:59]Connected sock=10 [18:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7A E3 07 01 5F 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 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 A9 00 00 00 F4 03 04 00 0F 33 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 A9 25 01 00 35 04 06 00 30 3E EC 22 D3 77 BA FC C4 01 05 E2 84 F9 [18:20:59]Write to MH i2c: 01 00 00 1F 43 62 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 1F 43 00 00 00 00 00 9E 0C 13 [18:20:59]RasterBufferAndPrint [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]line [18:20:59]written 0, free lines is 3238 [18:20:59]MH_Cut [18:20:59]Write to MH i2c: D1 01 00 26 43 01 3B [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 01 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: D1 01 00 26 43 00 3A [18:20:59]Write to MH i2c: 01 00 00 27 43 6A [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C2 67 47 00 B2 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 38 37 31 37 39 35 10 04 04 00 A9 25 01 00 F4 03 04 00 8A DA 1C 67 B6 04 01 00 00 B5 4A 80 FB 46 C5 0A 87 [18:20:59]CommunicateWithHost err = 0 [18:20:59]CheckOFDResponse [18:20:59]1017 (14) - 77093643461234 [18:20:59]1041 (16) - 0000000000871795 [18:20:59]1040 (4) - 75177 [18:20:59]1012 (4) - 26.10.2024 12:03 [18:20:59]1206 (1) - 0 [18:20:59]OFD Sender: Remove packet 75177 [18:20:59]ProducePacketName [18:20:59]name=ofd_packets/00075177 [18:20:59]NVStorageDeleteData [18:21:00]OFD Sender: No OFD packet to send [18:21:00]*** Cut start [18:21:00]*** Partial cut [18:21:00]*** CUTSNS_PIN = 1 [18:21:00]*** CUTSNS_PIN = 0 [18:21:00]*** Brake cut motor [18:21:01]Read from MH i2c: 01 [18:21:01]MH_I2C_Read... [18:21:01]*** Stop cut motor [18:21:01]*** Cut end [18:21:01]Read from MH i2c: 01 07 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: 01 07 00 27 43 00 00 00 00 00 FF 0F 7F [18:21:01]process_action close_receipt done [18:21:01]requested_data is exist [18:21:01]produce_requested_data [18:21:01]requested_item fm.sn is exist - process it [18:21:01]wFMCommunicate request_size=4 [18:21:01]MH_SAM_APDU [18:21:01]CAPDU: 80 11 00 00 [18:21:01]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:01]Read from MH i2c: E2 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 17 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3D [18:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:21:01]wFMCommunicate OK [18:21:01]requested_item fd.num is exist - process it [18:21:01]SAM_PROTO_GetFieldsCounters [18:21:01]wFMCommunicate request_size=4 [18:21:01]MH_SAM_APDU [18:21:01]CAPDU: 80 13 00 00 [18:21:01]Write to MH i2c: E2 08 00 29 43 80 13 00 00 00 00 00 00 E8 [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:01]Read from MH i2c: E2 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 62 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 62 00 29 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A9 25 01 00 0E 04 04 00 00 02 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 DB [18:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 A9 25 01 00 0E 04 04 00 00 02 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 [18:21:01]wFMCommunicate OK [18:21:01]SAM_PROTO_GetFieldsCounters done [18:21:01]requested_item shift.num is exist - process it [18:21:01]requested_item shift.opened is exist - process it [18:21:01]req_shift_opened [18:21:01]FM_GetShiftState [18:21:01]SAM_PROTO_GetShiftState [18:21:01]wFMCommunicate request_size=4 [18:21:01]MH_SAM_APDU [18:21:01]CAPDU: 80 13 01 00 [18:21:01]Write to MH i2c: E2 08 00 2A 43 80 13 01 00 00 00 00 00 EA [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:01]Read from MH i2c: E2 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 0E 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: E2 0E 00 2A 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 05 [18:21:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:21:01]wFMCommunicate OK [18:21:01]SAM_PROTO_GetShiftState done [18:21:01]FM_GetShiftState done [18:21:01]req_shift_opened done [18:21:01]requested_item shift.open_date is exist - process it [18:21:01]req_shift_open_date [18:21:01]req_shift_open_date done [18:21:01]produce_requested_data done [18:21:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75177,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:21:01]process_action_free close_receipt [18:21:01]json_value_free [18:21:01]json_value_free done [18:21:01]process_json_proto returns [18:21:01]Send response to host [18:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75177,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:21:01]free response buf [18:21:01]execute_script done [18:21:01]execute_script returns [18:21:01]free content buf [18:21:01]Sock 8.Close socket [18:21:01]Sock 8.Thread stoped [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:03]accept exits with 9 [18:27:03]New connection [18:27:03]New thread 3066924388 created [18:27:03]Thread 3066781028 joined [18:27:03]Waiting for new connection... [18:27:03] Sock 9.Parse request [18:27:03]Sock 9.Check first char [18:27:03]Sock 9.First char is OK [18:27:03]request: POST /json_proto HTTP/1.0 [18:27:03]Method: POST [18:27:03]URL: /json_proto [18:27:03]Method is POST - this is cgi request [18:27:03]url: /json_proto [18:27:03]query_string will be loaded in cgi processing [18:27:03]execute_cgi json_proto POST (null) [18:27:03]execute_cgi path=json_proto method=POST [18:27:03]POST find Content-Length [18:27:03]Host: 172.17.39.131:8080 [18:27:03]Content-Length: 679 [18:27:03]Content-Type: application/json [18:27:03] [18:27:03]POST finish read [18:27:03]Found Content-Length = 679 [18:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [18:27:03]execute_script... [18:27: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)191155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [18:27:03]POST & json_proto [18:27:03]process_json_proto [18:27:03]json parsed OK: [18:27:03]protocol is kg_v1.0 [18:27:03]action value=close_receipt [18:27:03]process_action close_receipt [18:27:03]cmd_close_receipt [18:27:03]MH_GetDate [18:27:03]Write to MH i2c: F0 00 00 2B 43 5D [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 2B 43 00 7D 34 1D 67 86 57 24 65 01 [18:27:03]GetLastDocTimeStamp 1729966863 [18:27:03]current date 1729967229 [18:27:03]FM_GetShiftState [18:27:03]SAM_PROTO_GetShiftState [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 13 01 00 [18:27:03]Write to MH i2c: E2 08 00 2C 43 80 13 01 00 00 00 00 00 EC [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 2C 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 07 [18:27:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:27:03]wFMCommunicate OK [18:27:03]SAM_PROTO_GetShiftState done [18:27:03]FM_GetShiftState done [18:27:03]opened in 1729902166 [18:27:03]opened+sec_in_day 1729988566 [18:27:03]quantity*price = 150037 [18:27:03]sum+1 = 150039 [18:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 170 26.10.2024 18:27 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75178 ФПД: 266509487598469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182709&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75178&fm=266509487598469&tin=02508201610067®Number=0000000000091691&sum=150000 [18:27:04]StoreToDocumentArchive [18:27:04]shift 512 fd 75178 [18:27:04]save to /storage/0512/doc_00075178 [18:27:04]save last doc name /storage/0512/doc_00075178 to /storage/kkm_last_doc_name [18:27:04]save OK [18:27:04]Clear old archive folders... [18:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:27:04]tlvbuf is 00836800 [18:27:04]SAM_PROTO_ClearQueue [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 09 00 00 [18:27:04]Write to MH i2c: E2 08 00 39 43 80 09 00 00 00 00 00 00 EE [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 39 43 00 90 00 F0 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_ClearQueue done [18:27:05]KKMCreateOFDPacket [18:27:05]OFDProtocolAddRootSTLVToBuf [18:27:05]FM_MakeSignedData [18:27:05]FM_MakeSignedData [18:27:05]SAM_PROTO_SignData [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 01 02 [18:27:05]Write to MH i2c: E2 08 00 3A 43 80 0D 01 02 00 00 00 00 F6 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 3A 43 00 90 00 F1 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=255 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 AA 00 00 00 F4 03 04 00 7D 34 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 25 01 00 35 04 06 00 F2 63 93 56 [18:27:05]Write to MH i2c: E2 02 01 3B 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 AA 00 00 00 F4 03 04 00 7D 34 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 25 01 00 35 04 06 00 F2 63 93 56 00 00 E6 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 3B 43 00 90 00 F2 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=7 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 02 02 02 6B 85 [18:27:05]Write to MH i2c: E2 0A 00 3C 43 80 0D 02 02 02 00 6B 85 00 00 ED [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 3C 43 00 90 00 F3 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 03 02 [18:27:05]Write to MH i2c: E2 08 00 3D 43 80 0D 03 02 00 00 00 00 FB [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 3D 43 00 FF FE 34 C8 F1 00 90 7A 90 00 F0 [18:27:05]RAPDU: FF FE 34 C8 F1 00 90 7A 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_SignData done [18:27:05]FM_MakeSignedData done [18:27:05]CreateOFDProtocolMessage [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 11 00 00 [18:27:05]Write to MH i2c: E2 08 00 3E 43 80 11 00 00 00 00 00 00 FB [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 3E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 53 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:27:05]wFMCommunicate OK [18:27:05]CreateOFDProtocolMessage done [18:27:05]OFDSenderStorePacket 75178 [18:27:05]StoreOFDPacket docnum=75178 [18:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5E FE 04 01 DB 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 AA 00 00 00 F4 03 04 00 7D 34 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 25 01 00 35 04 06 00 F2 63 93 56 6B 85 FF FE 34 C8 F1 00 90 7A [18:27:05]CheckFolder [18:27:05]dirname=/storage/ofd_packets [18:27:05]CheckFolder done [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00075178 [18:27:05]NVStorageSaveData ofd_packets/00075178 [18:27:05]File name is /storage/ofd_packets/00075178 [18:27:05]Write 298 bytes [18:27:05]NVStorageSaveData done [18:27:05]OFDSenderStorePacket done [18:27:05]KKMCreateOFDPacket done [18:27:05]NVStorageSaveData kkm_last_timestamp [18:27:05]File name is /storage/kkm_last_timestamp [18:27:05]Write 4 bytes [18:27:05]NVStorageSaveData done [18:27:05]ExternCall_PrintAddStr [18:27:05]wPrintStart [18:27:05]Write to MH i2c: 01 00 00 3F 43 82 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 3F 43 00 00 00 00 00 FF 0F 97 [18:27:05]RasterBufferAndPrint [18:27:05]line Счет N : (1)191155 [18:27:05]line ИНН: 02508201610067 [18:27:05]line Контрольно-Кассовый Чек [18:27:05]line ПРОДАЖА [18:27:05]line ТРК (МРК, ГНК) : 41 [18:27:05]line Товар: 2710194210 [18:27:05]line ДТ-К-4 [18:27:05]line 19.690 * 76.20 [18:27:05]line = 1500.38 [18:27:05]line НДС 12% НСП 1% [18:27:05]line > о реализуемом товаре [18:27:05]line ОКРУГЛЕНИЕ: -0.38 [18:27:05]line ИТОГО: 1500.00 [18:27:05]line Внесено: 1500.00 [18:27:05]line СДАЧА: 0.00 [18:27:05]line НСП 1% : 13.28 [18:27:05]line НДС 12% : 159.33 [18:27:05]line Наличными: 1500.00 [18:27:05]line Безнал.: 0.00 [18:27:05]line Место: АЗС № 142 "Партнер Нефть" [18:27:05]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:27:05]line СНО: Общий режим [18:27:05]line Чек 170 26.10.2024 18:27 [18:27:05]line Смена: 512 ФФД: 1.0 [18:27:05]line ЗНМ: 0300000089 [18:27:05]line РНМ: 0000000000091691 [18:27:05]line Версия ККМ: 001 [18:27:05]line ФМ: 0000000000871795 [18:27:05]line ФД: 75178 [18:27:05]line ФПД: 266509487598469 [18:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182709&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75178&fm=266509487598469&tin=02508201610067®Number=0000000000091691&sum=150000 [18:27:05]OFD Sender: Processing packet 75178 [packets to send 13, broken 12] [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00075178 [18:27:05]OFD Sender: To server: pG, [18:27:05]CommunicateWithHost lk.salyk.kg:30040 [18:27:05]ConnectInit lk.salyk.kg [18:27:05]written 0, free lines is 4095 [18:27:06]Connected sock=10 [18:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 5E FE 04 01 DB 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 AA 00 00 00 F4 03 04 00 7D 34 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 25 01 00 35 04 06 00 F2 63 93 56 6B 85 FF FE 34 C8 F1 00 90 7A [18:27:06]Write to MH i2c: 01 00 00 6A 43 AD [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 6A 43 00 00 00 00 00 B5 0C 75 [18:27:06]RasterBufferAndPrint [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]written 0, free lines is 3262 [18:27:06]MH_Cut [18:27:06]Write to MH i2c: D1 01 00 71 43 01 86 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 71 43 00 85 [18:27:06]Write to MH i2c: 01 00 00 72 43 B5 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 82 7D 47 00 14 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AA 25 01 00 F4 03 04 00 F9 DB 1C 67 B6 04 01 00 00 1D 90 11 6D 8C B9 A0 B0 [18:27:06]CommunicateWithHost err = 0 [18:27:06]CheckOFDResponse [18:27:06]1017 (14) - 77093643461234 [18:27:06]1041 (16) - 0000000000871795 [18:27:06]1040 (4) - 75178 [18:27:06]1012 (4) - 26.10.2024 12:09 [18:27:06]1206 (1) - 0 [18:27:06]OFD Sender: Remove packet 75178 [18:27:06]ProducePacketName [18:27:06]name=ofd_packets/00075178 [18:27:06]NVStorageDeleteData [18:27:06]OFD Sender: No OFD packet to send [18:27:07]*** Cut start [18:27:07]*** Partial cut [18:27:07]*** CUTSNS_PIN = 1 [18:27:07]*** CUTSNS_PIN = 0 [18:27:07]*** Brake cut motor [18:27:07]Read from MH i2c: 01 [18:27:07]MH_I2C_Read... [18:27:07]*** Stop cut motor [18:27:07]*** Cut end [18:27:07]Read from MH i2c: 01 07 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: 01 07 00 72 43 00 00 00 00 00 FF 0F CA [18:27:07]process_action close_receipt done [18:27:07]requested_data is exist [18:27:07]produce_requested_data [18:27:07]requested_item fm.sn is exist - process it [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 11 00 00 [18:27:07]Write to MH i2c: E2 08 00 73 43 80 11 00 00 00 00 00 00 30 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 17 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 17 00 73 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 88 [18:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:27:07]wFMCommunicate OK [18:27:07]requested_item fd.num is exist - process it [18:27:07]SAM_PROTO_GetFieldsCounters [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 13 00 00 [18:27:07]Write to MH i2c: E2 08 00 74 43 80 13 00 00 00 00 00 00 33 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 62 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 62 00 74 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AA 25 01 00 0E 04 04 00 00 02 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 2A [18:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AA 25 01 00 0E 04 04 00 00 02 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 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_GetFieldsCounters done [18:27:08]requested_item shift.num is exist - process it [18:27:08]requested_item shift.opened is exist - process it [18:27:08]req_shift_opened [18:27:08]FM_GetShiftState [18:27:08]SAM_PROTO_GetShiftState [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 13 01 00 [18:27:08]Write to MH i2c: E2 08 00 75 43 80 13 01 00 00 00 00 00 35 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 75 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 50 [18:27:08]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_GetShiftState done [18:27:08]FM_GetShiftState done [18:27:08]req_shift_opened done [18:27:08]requested_item shift.open_date is exist - process it [18:27:08]req_shift_open_date [18:27:08]req_shift_open_date done [18:27:08]produce_requested_data done [18:27:08]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75178,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:27:08]process_action_free close_receipt [18:27:08]json_value_free [18:27:08]json_value_free done [18:27:08]process_json_proto returns [18:27:08]Send response to host [18:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75178,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:27:08]free response buf [18:27:08]execute_script done [18:27:08]execute_script returns [18:27:08]free content buf [18:27:08]Sock 9.Close socket [18:27:08]Sock 9.Thread stoped [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:15]accept exits with 8 [18:30:15]New connection [18:30:15]New thread 3066781028 created [18:30:15]Thread 3066924388 joined [18:30:15]Waiting for new connection... [18:30:15] Sock 8.Parse request [18:30:15]Sock 8.Check first char [18:30:15]Sock 8.First char is OK [18:30:15]request: POST /json_proto HTTP/1.0 [18:30:15]Method: POST [18:30:15]URL: /json_proto [18:30:15]Method is POST - this is cgi request [18:30:15]url: /json_proto [18:30:15]query_string will be loaded in cgi processing [18:30:15]execute_cgi json_proto POST (null) [18:30:15]execute_cgi path=json_proto method=POST [18:30:15]POST find Content-Length [18:30:15]Host: 172.17.39.131:8080 [18:30:15]Content-Length: 677 [18:30:15]Content-Type: application/json [18:30:15] [18:30:15]POST finish read [18:30:15]Found Content-Length = 677 [18:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:30:15]execute_script... [18:30: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)191156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:30:15]POST & json_proto [18:30:15]process_json_proto [18:30:15]json parsed OK: [18:30:15]protocol is kg_v1.0 [18:30:15]action value=close_receipt [18:30:15]process_action close_receipt [18:30:15]cmd_close_receipt [18:30:15]MH_GetDate [18:30:15]Write to MH i2c: F0 00 00 76 43 A8 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 09 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 09 00 76 43 00 3D 35 1D 67 86 57 24 65 0D [18:30:15]GetLastDocTimeStamp 1729967229 [18:30:15]current date 1729967421 [18:30:15]FM_GetShiftState [18:30:15]SAM_PROTO_GetShiftState [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 13 01 00 [18:30:15]Write to MH i2c: E2 08 00 77 43 80 13 01 00 00 00 00 00 37 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 0E 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 0E 00 77 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 52 [18:30:15]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:30:15]wFMCommunicate OK [18:30:15]SAM_PROTO_GetShiftState done [18:30:15]FM_GetShiftState done [18:30:15]opened in 1729902166 [18:30:15]opened+sec_in_day 1729988566 [18:30:15]quantity*price = 50041 [18:30:15]sum+1 = 50042 [18:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 171 26.10.2024 18:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75179 ФПД: 8502058807260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183021&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75179&fm=8502058807260&tin=02508201610067®Number=0000000000091691&sum=50000 [18:30:16]StoreToDocumentArchive [18:30:16]shift 512 fd 75179 [18:30:16]save to /storage/0512/doc_00075179 [18:30:16]save last doc name /storage/0512/doc_00075179 to /storage/kkm_last_doc_name [18:30:16]save OK [18:30:16]Clear old archive folders... [18:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:16]tlvbuf is B6DA12D0 [18:30:16]SAM_PROTO_ClearQueue [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 09 00 00 [18:30:16]Write to MH i2c: E2 08 00 84 43 80 09 00 00 00 00 00 00 39 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 84 43 00 90 00 3B [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]SAM_PROTO_ClearQueue done [18:30:16]KKMCreateOFDPacket [18:30:16]OFDProtocolAddRootSTLVToBuf [18:30:16]FM_MakeSignedData [18:30:16]FM_MakeSignedData [18:30:16]SAM_PROTO_SignData [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 01 02 [18:30:16]Write to MH i2c: E2 08 00 85 43 80 0D 01 02 00 00 00 00 41 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 85 43 00 90 00 3C [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]wFMCommunicate request_size=255 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 3D 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 25 01 00 35 04 06 00 07 [18:30:16]Write to MH i2c: E2 02 01 86 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 AB 00 00 00 F4 03 04 00 3D 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 25 01 00 35 04 06 00 07 00 00 51 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 86 43 00 90 00 3D [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]wFMCommunicate request_size=10 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 02 02 05 BB 8A 31 EF DC [18:30:16]Write to MH i2c: E2 0D 00 87 43 80 0D 02 02 05 00 BB 8A 31 EF DC 00 00 8F [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 03 00 87 43 00 90 00 3E [18:30:16]RAPDU: 90 00 [18:30:16]wFMCommunicate OK [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 0D 03 02 [18:30:16]Write to MH i2c: E2 08 00 88 43 80 0D 03 02 00 00 00 00 46 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:16]Read from MH i2c: E2 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 0B 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: E2 0B 00 88 43 00 FD FA F3 70 95 A1 42 96 90 00 AF [18:30:16]RAPDU: FD FA F3 70 95 A1 42 96 90 00 [18:30:16]wFMCommunicate OK [18:30:16]SAM_PROTO_SignData done [18:30:16]FM_MakeSignedData done [18:30:16]CreateOFDProtocolMessage [18:30:16]wFMCommunicate request_size=4 [18:30:16]MH_SAM_APDU [18:30:16]CAPDU: 80 11 00 00 [18:30:16]Write to MH i2c: E2 08 00 89 43 80 11 00 00 00 00 00 00 46 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:17]Read from MH i2c: E2 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 17 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 17 00 89 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9E [18:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:30:17]wFMCommunicate OK [18:30:17]CreateOFDProtocolMessage done [18:30:17]OFDSenderStorePacket 75179 [18:30:17]StoreOFDPacket docnum=75179 [18:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 63 F5 07 01 75 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 3D 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 25 01 00 35 04 06 00 07 BB 8A 31 EF DC FD FA F3 70 95 A1 42 96 [18:30:17]CheckFolder [18:30:17]dirname=/storage/ofd_packets [18:30:17]CheckFolder done [18:30:17]ProducePacketName [18:30:17]name=ofd_packets/00075179 [18:30:17]NVStorageSaveData ofd_packets/00075179 [18:30:17]File name is /storage/ofd_packets/00075179 [18:30:17]Write 301 bytes [18:30:17]NVStorageSaveData done [18:30:17]OFDSenderStorePacket done [18:30:17]KKMCreateOFDPacket done [18:30:17]NVStorageSaveData kkm_last_timestamp [18:30:17]File name is /storage/kkm_last_timestamp [18:30:17]Write 4 bytes [18:30:17]NVStorageSaveData done [18:30:17]ExternCall_PrintAddStr [18:30:17]wPrintStart [18:30:17]Write to MH i2c: 01 00 00 8A 43 CD [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 8A 43 00 00 00 00 00 FF 0F E2 [18:30:17]RasterBufferAndPrint [18:30:17]line Счет N : (1)191156 [18:30:17]line ИНН: 02508201610067 [18:30:17]line Контрольно-Кассовый Чек [18:30:17]line ПРОДАЖА [18:30:17]line ТРК (МРК, ГНК) : 21 [18:30:17]line Товар: 2710124130 [18:30:17]line Аи-92-К-5 [18:30:17]line 7.480 * 66.90 [18:30:17]line = 500.41 [18:30:17]line НДС 12% НСП 1% [18:30:17]line > о реализуемом товаре [18:30:17]line ОКРУГЛЕНИЕ: -0.41 [18:30:17]line ИТОГО: 500.00 [18:30:17]line Внесено: 500.00 [18:30:17]line СДАЧА: 0.00 [18:30:17]line НСП 1% : 4.43 [18:30:17]line НДС 12% : 53.14 [18:30:17]line Наличными: 500.00 [18:30:17]line Безнал.: 0.00 [18:30:17]line Место: АЗС № 142 "Партнер Нефть" [18:30:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:30:17]line СНО: Общий режим [18:30:17]line Чек 171 26.10.2024 18:30 [18:30:17]line Смена: 512 ФФД: 1.0 [18:30:17]line ЗНМ: 0300000089 [18:30:17]line РНМ: 0000000000091691 [18:30:17]line Версия ККМ: 001 [18:30:17]line ФМ: 0000000000871795 [18:30:17]line ФД: 75179 [18:30:17]line ФПД: 8502058807260 [18:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183021&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75179&fm=8502058807260&tin=02508201610067®Number=0000000000091691&sum=50000 [18:30:17]OFD Sender: Processing packet 75179 [packets to send 13, broken 12] [18:30:17]ProducePacketName [18:30:17]name=ofd_packets/00075179 [18:30:17]OFD Sender: To server: pG, [18:30:17]CommunicateWithHost lk.salyk.kg:30040 [18:30:17]ConnectInit lk.salyk.kg [18:30:17]written 0, free lines is 4095 [18:30:17]Connected sock=10 [18:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 63 F5 07 01 75 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 3D 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 25 01 00 35 04 06 00 07 BB 8A 31 EF DC FD FA F3 70 95 A1 42 96 [18:30:17]Write to MH i2c: 01 00 00 B5 43 F8 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 B5 43 00 00 00 00 00 A0 0C AB [18:30:17]RasterBufferAndPrint [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]line [18:30:17]written 0, free lines is 3239 [18:30:17]MH_Cut [18:30:17]Write to MH i2c: D1 01 00 BC 43 01 D1 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 01 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: D1 01 00 BC 43 00 D0 [18:30:17]Write to MH i2c: 01 00 00 BD 43 00 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7D 06 47 00 7B 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AB 25 01 00 F4 03 04 00 B9 DC 1C 67 B6 04 01 00 00 22 99 5B FB F6 DF BF 84 [18:30:18]CommunicateWithHost err = 0 [18:30:18]CheckOFDResponse [18:30:18]1017 (14) - 77093643461234 [18:30:18]1041 (16) - 0000000000871795 [18:30:18]1040 (4) - 75179 [18:30:18]1012 (4) - 26.10.2024 12:12 [18:30:18]1206 (1) - 0 [18:30:18]OFD Sender: Remove packet 75179 [18:30:18]ProducePacketName [18:30:18]name=ofd_packets/00075179 [18:30:18]NVStorageDeleteData [18:30:18]*** Cut start [18:30:18]*** Partial cut [18:30:18]*** CUTSNS_PIN = 1 [18:30:18]*** CUTSNS_PIN = 0 [18:30:18]OFD Sender: No OFD packet to send [18:30:19]*** Brake cut motor [18:30:19]Read from MH i2c: 01 [18:30:19]MH_I2C_Read... [18:30:19]*** Stop cut motor [18:30:19]*** Cut end [18:30:19]Read from MH i2c: 01 07 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: 01 07 00 BD 43 00 00 00 00 00 FF 0F 15 [18:30:19]process_action close_receipt done [18:30:19]requested_data is exist [18:30:19]produce_requested_data [18:30:19]requested_item fm.sn is exist - process it [18:30:19]wFMCommunicate request_size=4 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 11 00 00 [18:30:19]Write to MH i2c: E2 08 00 BE 43 80 11 00 00 00 00 00 00 7B [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 17 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 17 00 BE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D3 [18:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:30:19]wFMCommunicate OK [18:30:19]requested_item fd.num is exist - process it [18:30:19]SAM_PROTO_GetFieldsCounters [18:30:19]wFMCommunicate request_size=4 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 13 00 00 [18:30:19]Write to MH i2c: E2 08 00 BF 43 80 13 00 00 00 00 00 00 7E [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 62 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 62 00 BF 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AB 25 01 00 0E 04 04 00 00 02 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 79 [18:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AB 25 01 00 0E 04 04 00 00 02 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 [18:30:19]wFMCommunicate OK [18:30:19]SAM_PROTO_GetFieldsCounters done [18:30:19]requested_item shift.num is exist - process it [18:30:19]requested_item shift.opened is exist - process it [18:30:19]req_shift_opened [18:30:19]FM_GetShiftState [18:30:19]SAM_PROTO_GetShiftState [18:30:19]wFMCommunicate request_size=4 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 13 01 00 [18:30:19]Write to MH i2c: E2 08 00 C0 43 80 13 01 00 00 00 00 00 80 [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 0E 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 0E 00 C0 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9B [18:30:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:30:19]wFMCommunicate OK [18:30:19]SAM_PROTO_GetShiftState done [18:30:19]FM_GetShiftState done [18:30:19]req_shift_opened done [18:30:19]requested_item shift.open_date is exist - process it [18:30:19]req_shift_open_date [18:30:19]req_shift_open_date done [18:30:19]produce_requested_data done [18:30:19]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75179,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:30:19]process_action_free close_receipt [18:30:19]json_value_free [18:30:19]json_value_free done [18:30:19]process_json_proto returns [18:30:19]Send response to host [18:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75179,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:30:19]free response buf [18:30:19]execute_script done [18:30:19]execute_script returns [18:30:19]free content buf [18:30:19]Sock 8.Close socket [18:30:19]Sock 8.Thread stoped [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:44]accept exits with 9 [18:30:44]New connection [18:30:44]New thread 3066924388 created [18:30:44]Thread 3066781028 joined [18:30:44]Waiting for new connection... [18:30:44] Sock 9.Parse request [18:30:44]Sock 9.Check first char [18:30:44]Sock 9.First char is OK [18:30:44]request: POST /json_proto HTTP/1.0 [18:30:44]Method: POST [18:30:44]URL: /json_proto [18:30:44]Method is POST - this is cgi request [18:30:44]url: /json_proto [18:30:44]query_string will be loaded in cgi processing [18:30:44]execute_cgi json_proto POST (null) [18:30:44]execute_cgi path=json_proto method=POST [18:30:44]POST find Content-Length [18:30:44]Host: 172.17.39.131:8080 [18:30:44]Content-Length: 800 [18:30:44]Content-Type: application/json [18:30:44] [18:30:44]POST finish read [18:30:44]Found Content-Length = 800 [18:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:44]execute_script... [18:30:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:44]POST & json_proto [18:30:44]process_json_proto [18:30:44]json parsed OK: [18:30:44]protocol is kg_v1.0 [18:30:44]action value=close_receipt [18:30:44]process_action close_receipt [18:30:44]cmd_close_receipt [18:30:44]MH_GetDate [18:30:44]Write to MH i2c: F0 00 00 C1 43 F3 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: F0 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: F0 09 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: F0 09 00 C1 43 00 5A 35 1D 67 86 57 24 65 75 [18:30:44]GetLastDocTimeStamp 1729967421 [18:30:44]current date 1729967450 [18:30:44]FM_GetShiftState [18:30:44]SAM_PROTO_GetShiftState [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 13 01 00 [18:30:44]Write to MH i2c: E2 08 00 C2 43 80 13 01 00 00 00 00 00 82 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0E 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0E 00 C2 43 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9D [18:30:44]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_GetShiftState done [18:30:44]FM_GetShiftState done [18:30:44]opened in 1729902166 [18:30:44]opened+sec_in_day 1729988566 [18:30:44]quantity*price = 200025 [18:30:44]sum+1 = 200026 [18:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 172 26.10.2024 18:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871795 ФД: 75180 ФПД: 184174860711864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183050&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75180&fm=184174860711864&tin=02508201610067®Number=0000000000091691&sum=200025 [18:30:45]StoreToDocumentArchive [18:30:45]shift 512 fd 75180 [18:30:45]save to /storage/0512/doc_00075180 [18:30:45]save last doc name /storage/0512/doc_00075180 to /storage/kkm_last_doc_name [18:30:45]save OK [18:30:45]Clear old archive folders... [18:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:30:45]tlvbuf is 009035B0 [18:30:45]SAM_PROTO_ClearQueue [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 09 00 00 [18:30:45]Write to MH i2c: E2 08 00 CF 43 80 09 00 00 00 00 00 00 84 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 CF 43 00 90 00 86 [18:30:45]RAPDU: 90 00 [18:30:45]wFMCommunicate OK [18:30:45]SAM_PROTO_ClearQueue done [18:30:45]KKMCreateOFDPacket [18:30:45]OFDProtocolAddRootSTLVToBuf [18:30:45]FM_MakeSignedData [18:30:45]FM_MakeSignedData [18:30:45]SAM_PROTO_SignData [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 0D 01 02 [18:30:45]Write to MH i2c: E2 08 00 D0 43 80 0D 01 02 00 00 00 00 8C [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 D0 43 00 90 00 87 [18:30:45]RAPDU: 90 00 [18:30:45]wFMCommunicate OK [18:30:45]wFMCommunicate request_size=255 [18:30:45]MH_SAM_APDU [18:30: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 34 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 AC 00 00 00 F4 03 04 00 5A 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 25 01 00 35 04 06 00 A7 81 8D 26 [18:30:45]Write to MH i2c: E2 02 01 D1 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 AC 00 00 00 F4 03 04 00 5A 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 25 01 00 35 04 06 00 A7 81 8D 26 00 00 A4 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [18:30:45]RAPDU: 90 00 [18:30:45]wFMCommunicate OK [18:30:45]wFMCommunicate request_size=7 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 0D 02 02 02 37 B8 [18:30:45]Write to MH i2c: E2 0A 00 D2 43 80 0D 02 02 02 00 37 B8 00 00 82 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 D2 43 00 90 00 89 [18:30:45]RAPDU: 90 00 [18:30:45]wFMCommunicate OK [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 0D 03 02 [18:30:45]Write to MH i2c: E2 08 00 D3 43 80 0D 03 02 00 00 00 00 91 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 0B 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 0B 00 D3 43 00 B9 C1 2D C0 A1 7B 1B 41 90 00 71 [18:30:45]RAPDU: B9 C1 2D C0 A1 7B 1B 41 90 00 [18:30:45]wFMCommunicate OK [18:30:45]SAM_PROTO_SignData done [18:30:45]FM_MakeSignedData done [18:30:45]CreateOFDProtocolMessage [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 11 00 00 [18:30:45]Write to MH i2c: E2 08 00 D4 43 80 11 00 00 00 00 00 00 91 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:46]Read from MH i2c: E2 17 00 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: E2 17 00 D4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E9 [18:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:30:46]wFMCommunicate OK [18:30:46]CreateOFDProtocolMessage done [18:30:46]OFDSenderStorePacket 75180 [18:30:46]StoreOFDPacket docnum=75180 [18:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0B 34 04 01 EE 47 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 34 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 AC 00 00 00 F4 03 04 00 5A 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 25 01 00 35 04 06 00 A7 81 8D 26 37 B8 B9 C1 2D C0 A1 7B 1B 41 [18:30:46]CheckFolder [18:30:46]dirname=/storage/ofd_packets [18:30:46]CheckFolder done [18:30:46]ProducePacketName [18:30:46]name=ofd_packets/00075180 [18:30:46]NVStorageSaveData ofd_packets/00075180 [18:30:46]File name is /storage/ofd_packets/00075180 [18:30:46]Write 298 bytes [18:30:46]NVStorageSaveData done [18:30:46]OFDSenderStorePacket done [18:30:46]KKMCreateOFDPacket done [18:30:46]NVStorageSaveData kkm_last_timestamp [18:30:46]File name is /storage/kkm_last_timestamp [18:30:46]Write 4 bytes [18:30:46]NVStorageSaveData done [18:30:46]ExternCall_PrintAddStr [18:30:46]wPrintStart [18:30:46]Write to MH i2c: 01 00 00 D5 43 18 [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 07 00 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 07 00 D5 43 00 00 00 00 00 FF 0F 2D [18:30:46]RasterBufferAndPrint [18:30:46]line Счет N : (1)191157 [18:30:46]line ИНН: 02508201610067 [18:30:46]line Контрольно-Кассовый Чек [18:30:46]line ПРОДАЖА [18:30:46]line ТРК (МРК, ГНК) : 41 [18:30:46]line Товар: 2710194210 [18:30:46]line ДТ-К-4 [18:30:46]line 26.250 * 76.20 [18:30:46]line = 2000.25 [18:30:46]line НДС 12% НСП 1% [18:30:46]line > о реализуемом товаре [18:30:46]line ИТОГО: 2000.25 [18:30:46]line НСП 1% : 17.70 [18:30:46]line НДС 12% : 212.42 [18:30:46]line Наличными: 0.00 [18:30:46]line Безнал.: 2000.25 [18:30:46]line Место: АЗС № 142 "Партнер Нефть" [18:30:46]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:30:46]line СНО: Общий режим [18:30:46]line Чек 172 26.10.2024 18:30 [18:30:46]line Смена: 512 ФФД: 1.0 [18:30:46]line ЗНМ: 0300000089 [18:30:46]line РНМ: 0000000000091691 [18:30:46]line Версия ККМ: 001 [18:30:46]line Платежная система: O! деньги [18:30:46]line ФМ: 0000000000871795 [18:30:46]line ФД: 75180 [18:30:46]line ФПД: 184174860711864 [18:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183050&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75180&fm=184174860711864&tin=02508201610067®Number=0000000000091691&sum=200025 [18:30:46]OFD Sender: Processing packet 75180 [packets to send 13, broken 12] [18:30:46]ProducePacketName [18:30:46]name=ofd_packets/00075180 [18:30:46]OFD Sender: To server: pG, [18:30:46]CommunicateWithHost lk.salyk.kg:30040 [18:30:46]ConnectInit lk.salyk.kg [18:30:46]written 0, free lines is 4095 [18:30:46]Connected sock=10 [18:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0B 34 04 01 EE 47 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 34 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 AC 00 00 00 F4 03 04 00 5A 35 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 25 01 00 35 04 06 00 A7 81 8D 26 37 B8 B9 C1 2D C0 A1 7B 1B 41 [18:30:46]Write to MH i2c: 01 00 00 FF 43 42 [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 07 00 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 07 00 FF 43 00 00 00 00 00 CB 0C 20 [18:30:46]RasterBufferAndPrint [18:30:46]line [18:30:46]line [18:30:46]line [18:30:46]line [18:30:46]line [18:30:46]written 0, free lines is 3284 [18:30:46]MH_Cut [18:30:46]Write to MH i2c: D1 01 00 06 44 01 1C [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: D1 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: D1 01 00 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: D1 01 00 06 44 00 1B [18:30:46]Write to MH i2c: 01 00 00 07 44 4B [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D6 F4 47 00 5F 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AC 25 01 00 F4 03 04 00 D5 DC 1C 67 B6 04 01 00 00 42 77 19 CD F5 C3 FD 65 [18:30:46]CommunicateWithHost err = 0 [18:30:46]CheckOFDResponse [18:30:46]1017 (14) - 77093643461234 [18:30:46]1041 (16) - 0000000000871795 [18:30:46]1040 (4) - 75180 [18:30:46]1012 (4) - 26.10.2024 12:13 [18:30:46]1206 (1) - 0 [18:30:46]OFD Sender: Remove packet 75180 [18:30:46]ProducePacketName [18:30:46]name=ofd_packets/00075180 [18:30:46]NVStorageDeleteData [18:30:47]OFD Sender: No OFD packet to send [18:30:47]*** Cut start [18:30:47]*** Partial cut [18:30:47]*** CUTSNS_PIN = 1 [18:30:47]*** CUTSNS_PIN = 0 [18:30:47]*** Brake cut motor [18:30:48]Read from MH i2c: 01 [18:30:48]MH_I2C_Read... [18:30:48]*** Stop cut motor [18:30:48]*** Cut end [18:30:48]Read from MH i2c: 01 07 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: 01 07 00 07 44 00 00 00 00 00 FF 0F 60 [18:30:48]process_action close_receipt done [18:30:48]requested_data is exist [18:30:48]produce_requested_data [18:30:48]requested_item fm.sn is exist - process it [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 11 00 00 [18:30:48]Write to MH i2c: E2 08 00 08 44 80 11 00 00 00 00 00 00 C6 [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 17 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 17 00 08 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1E [18:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:30:48]wFMCommunicate OK [18:30:48]requested_item fd.num is exist - process it [18:30:48]SAM_PROTO_GetFieldsCounters [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 13 00 00 [18:30:48]Write to MH i2c: E2 08 00 09 44 80 13 00 00 00 00 00 00 C9 [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 62 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 62 00 09 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AC 25 01 00 0E 04 04 00 00 02 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 C8 [18:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AC 25 01 00 0E 04 04 00 00 02 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 [18:30:48]wFMCommunicate OK [18:30:48]SAM_PROTO_GetFieldsCounters done [18:30:48]requested_item shift.num is exist - process it [18:30:48]requested_item shift.opened is exist - process it [18:30:48]req_shift_opened [18:30:48]FM_GetShiftState [18:30:48]SAM_PROTO_GetShiftState [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 13 01 00 [18:30:48]Write to MH i2c: E2 08 00 0A 44 80 13 01 00 00 00 00 00 CB [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 0E 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 0E 00 0A 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E6 [18:30:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:30:48]wFMCommunicate OK [18:30:48]SAM_PROTO_GetShiftState done [18:30:48]FM_GetShiftState done [18:30:48]req_shift_opened done [18:30:48]requested_item shift.open_date is exist - process it [18:30:48]req_shift_open_date [18:30:48]req_shift_open_date done [18:30:48]produce_requested_data done [18:30:48]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75180,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:30:48]process_action_free close_receipt [18:30:48]json_value_free [18:30:48]json_value_free done [18:30:48]process_json_proto returns [18:30:48]Send response to host [18:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75180,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:30:48]free response buf [18:30:48]execute_script done [18:30:48]execute_script returns [18:30:48]free content buf [18:30:48]Sock 9.Close socket [18:30:48]Sock 9.Thread stoped [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:29]accept exits with 8 [18:34:29]New connection [18:34:29]New thread 3066781028 created [18:34:29]Thread 3066924388 joined [18:34:29]Waiting for new connection... [18:34:29] Sock 8.Parse request [18:34:29]Sock 8.Check first char [18:34:29]Sock 8.First char is OK [18:34:29]request: POST /json_proto HTTP/1.0 [18:34:29]Method: POST [18:34:29]URL: /json_proto [18:34:29]Method is POST - this is cgi request [18:34:29]url: /json_proto [18:34:29]query_string will be loaded in cgi processing [18:34:29]execute_cgi json_proto POST (null) [18:34:29]execute_cgi path=json_proto method=POST [18:34:29]POST find Content-Length [18:34:29]Host: 172.17.39.131:8080 [18:34:29]Content-Length: 678 [18:34:29]Content-Type: application/json [18:34:29] [18:34:29]POST finish read [18:34:29]Found Content-Length = 678 [18:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:34:29]execute_script... [18:34: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)191158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:34:29]POST & json_proto [18:34:29]process_json_proto [18:34:29]json parsed OK: [18:34:29]protocol is kg_v1.0 [18:34:29]action value=close_receipt [18:34:29]process_action close_receipt [18:34:29]cmd_close_receipt [18:34:29]MH_GetDate [18:34:29]Write to MH i2c: F0 00 00 0B 44 3E [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 09 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 09 00 0B 44 00 3B 36 1D 67 86 57 24 65 A2 [18:34:29]GetLastDocTimeStamp 1729967450 [18:34:29]current date 1729967675 [18:34:29]FM_GetShiftState [18:34:29]SAM_PROTO_GetShiftState [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 13 01 00 [18:34:29]Write to MH i2c: E2 08 00 0C 44 80 13 01 00 00 00 00 00 CD [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 0C 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E8 [18:34:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_GetShiftState done [18:34:29]FM_GetShiftState done [18:34:29]opened in 1729902166 [18:34:29]opened+sec_in_day 1729988566 [18:34:29]quantity*price = 70044 [18:34:29]sum+1 = 70045 [18:34: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 173 26.10.2024 18:34 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75181 ФПД: 162006776483921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75181&fm=162006776483921&tin=02508201610067®Number=0000000000091691&sum=70000 [18:34:31]StoreToDocumentArchive [18:34:31]shift 512 fd 75181 [18:34:31]save to /storage/0512/doc_00075181 [18:34:31]save last doc name /storage/0512/doc_00075181 to /storage/kkm_last_doc_name [18:34:31]save OK [18:34:31]Clear old archive folders... [18:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:31]tlvbuf is 008F2B90 [18:34:31]SAM_PROTO_ClearQueue [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 09 00 00 [18:34:31]Write to MH i2c: E2 08 00 19 44 80 09 00 00 00 00 00 00 CF [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 19 44 00 90 00 D1 [18:34:31]RAPDU: 90 00 [18:34:31]wFMCommunicate OK [18:34:31]SAM_PROTO_ClearQueue done [18:34:31]KKMCreateOFDPacket [18:34:31]OFDProtocolAddRootSTLVToBuf [18:34:31]FM_MakeSignedData [18:34:31]FM_MakeSignedData [18:34:31]SAM_PROTO_SignData [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 0D 01 02 [18:34:31]Write to MH i2c: E2 08 00 1A 44 80 0D 01 02 00 00 00 00 D7 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [18:34:31]RAPDU: 90 00 [18:34:31]wFMCommunicate OK [18:34:31]wFMCommunicate request_size=255 [18:34:31]MH_SAM_APDU [18:34: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 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 AD 00 00 00 F4 03 04 00 3B 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 25 01 00 35 04 06 00 93 [18:34:31]Write to MH i2c: E2 02 01 1B 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 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 AD 00 00 00 F4 03 04 00 3B 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 25 01 00 35 04 06 00 93 00 00 86 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [18:34:31]RAPDU: 90 00 [18:34:31]wFMCommunicate OK [18:34:31]wFMCommunicate request_size=10 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 0D 02 02 05 58 24 5D 10 51 [18:34:31]Write to MH i2c: E2 0D 00 1C 44 80 0D 02 02 05 00 58 24 5D 10 51 00 00 1E [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [18:34:31]RAPDU: 90 00 [18:34:31]wFMCommunicate OK [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 0D 03 02 [18:34:31]Write to MH i2c: E2 08 00 1D 44 80 0D 03 02 00 00 00 00 DC [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 0B 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 0B 00 1D 44 00 7C 1E CD 30 4C 9B 7E 07 90 00 E0 [18:34:31]RAPDU: 7C 1E CD 30 4C 9B 7E 07 90 00 [18:34:31]wFMCommunicate OK [18:34:31]SAM_PROTO_SignData done [18:34:31]FM_MakeSignedData done [18:34:31]CreateOFDProtocolMessage [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 11 00 00 [18:34:31]Write to MH i2c: E2 08 00 1E 44 80 11 00 00 00 00 00 00 DC [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 1E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 34 [18:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:34:31]wFMCommunicate OK [18:34:31]CreateOFDProtocolMessage done [18:34:31]OFDSenderStorePacket 75181 [18:34:31]StoreOFDPacket docnum=75181 [18:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 37 3D 07 01 67 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 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 AD 00 00 00 F4 03 04 00 3B 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 25 01 00 35 04 06 00 93 58 24 5D 10 51 7C 1E CD 30 4C 9B 7E 07 [18:34:31]CheckFolder [18:34:31]dirname=/storage/ofd_packets [18:34:31]CheckFolder done [18:34:31]ProducePacketName [18:34:31]name=ofd_packets/00075181 [18:34:31]NVStorageSaveData ofd_packets/00075181 [18:34:31]File name is /storage/ofd_packets/00075181 [18:34:31]Write 301 bytes [18:34:31]NVStorageSaveData done [18:34:31]OFDSenderStorePacket done [18:34:31]KKMCreateOFDPacket done [18:34:31]NVStorageSaveData kkm_last_timestamp [18:34:31]File name is /storage/kkm_last_timestamp [18:34:31]Write 4 bytes [18:34:31]NVStorageSaveData done [18:34:31]ExternCall_PrintAddStr [18:34:31]wPrintStart [18:34:31]Write to MH i2c: 01 00 00 1F 44 63 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 1F 44 00 00 00 00 00 FF 0F 78 [18:34:31]RasterBufferAndPrint [18:34:31]line Счет N : (1)191158 [18:34:31]line ИНН: 02508201610067 [18:34:31]line Контрольно-Кассовый Чек [18:34:31]line ПРОДАЖА [18:34:31]line ТРК (МРК, ГНК) : 21 [18:34:31]line Товар: 2710124130 [18:34:31]line Аи-92-К-5 [18:34:31]line 10.470 * 66.90 [18:34:31]line = 700.44 [18:34:31]line НДС 12% НСП 1% [18:34:31]line > о реализуемом товаре [18:34:31]line ОКРУГЛЕНИЕ: -0.44 [18:34:31]line ИТОГО: 700.00 [18:34:31]line Внесено: 700.00 [18:34:31]line СДАЧА: 0.00 [18:34:31]line НСП 1% : 6.20 [18:34:31]line НДС 12% : 74.38 [18:34:31]line Наличными: 700.00 [18:34:31]line Безнал.: 0.00 [18:34:31]line Место: АЗС № 142 "Партнер Нефть" [18:34:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:34:31]line СНО: Общий режим [18:34:31]line Чек 173 26.10.2024 18:34 [18:34:31]line Смена: 512 ФФД: 1.0 [18:34:31]line ЗНМ: 0300000089 [18:34:31]line РНМ: 0000000000091691 [18:34:31]line Версия ККМ: 001 [18:34:31]line ФМ: 0000000000871795 [18:34:31]line ФД: 75181 [18:34:31]line ФПД: 162006776483921 [18:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183435&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75181&fm=162006776483921&tin=02508201610067®Number=0000000000091691&sum=70000 [18:34:31]written 0, free lines is 4095 [18:34:31]OFD Sender: Processing packet 75181 [packets to send 13, broken 12] [18:34:31]ProducePacketName [18:34:31]name=ofd_packets/00075181 [18:34:31]OFD Sender: To server: pG, [18:34:31]CommunicateWithHost lk.salyk.kg:30040 [18:34:31]ConnectInit lk.salyk.kg [18:34:31]Connected sock=11 [18:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 37 3D 07 01 67 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 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 AD 00 00 00 F4 03 04 00 3B 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 25 01 00 35 04 06 00 93 58 24 5D 10 51 7C 1E CD 30 4C 9B 7E 07 [18:34:32]Write to MH i2c: 01 00 00 4A 44 8E [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: 01 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: 01 07 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: 01 07 00 4A 44 00 00 00 00 00 AB 0C 4C [18:34:32]RasterBufferAndPrint [18:34:32]line [18:34:32]line [18:34:32]line [18:34:32]line [18:34:32]line [18:34:32]written 0, free lines is 3253 [18:34:32]MH_Cut [18:34:32]Write to MH i2c: D1 01 00 51 44 01 67 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: D1 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: D1 01 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: D1 01 00 51 44 00 66 [18:34:32]Write to MH i2c: 01 00 00 52 44 96 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D3 89 47 00 24 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AD 25 01 00 F4 03 04 00 B7 DD 1C 67 B6 04 01 00 00 E1 46 E4 6A 07 F7 9D 96 [18:34:32]CommunicateWithHost err = 0 [18:34:32]CheckOFDResponse [18:34:32]1017 (14) - 77093643461234 [18:34:32]1041 (16) - 0000000000871795 [18:34:32]1040 (4) - 75181 [18:34:32]1012 (4) - 26.10.2024 12:16 [18:34:32]1206 (1) - 0 [18:34:32]OFD Sender: Remove packet 75181 [18:34:32]ProducePacketName [18:34:32]name=ofd_packets/00075181 [18:34:32]NVStorageDeleteData [18:34:32]OFD Sender: No OFD packet to send [18:34:32]*** Cut start [18:34:32]*** Partial cut [18:34:32]*** CUTSNS_PIN = 1 [18:34:32]*** CUTSNS_PIN = 0 [18:34:33]*** Brake cut motor [18:34:33]Read from MH i2c: 01 [18:34:33]MH_I2C_Read... [18:34:33]*** Stop cut motor [18:34:33]*** Cut end [18:34:33]Read from MH i2c: 01 07 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: 01 07 00 52 44 00 00 00 00 00 FF 0F AB [18:34:33]process_action close_receipt done [18:34:33]requested_data is exist [18:34:33]produce_requested_data [18:34:33]requested_item fm.sn is exist - process it [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 11 00 00 [18:34:33]Write to MH i2c: E2 08 00 53 44 80 11 00 00 00 00 00 00 11 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 17 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 17 00 53 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 69 [18:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:34:33]wFMCommunicate OK [18:34:33]requested_item fd.num is exist - process it [18:34:33]SAM_PROTO_GetFieldsCounters [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 13 00 00 [18:34:33]Write to MH i2c: E2 08 00 54 44 80 13 00 00 00 00 00 00 14 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 62 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 62 00 54 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AD 25 01 00 0E 04 04 00 00 02 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 17 [18:34:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AD 25 01 00 0E 04 04 00 00 02 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 [18:34:33]wFMCommunicate OK [18:34:33]SAM_PROTO_GetFieldsCounters done [18:34:33]requested_item shift.num is exist - process it [18:34:33]requested_item shift.opened is exist - process it [18:34:33]req_shift_opened [18:34:33]FM_GetShiftState [18:34:33]SAM_PROTO_GetShiftState [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 13 01 00 [18:34:33]Write to MH i2c: E2 08 00 55 44 80 13 01 00 00 00 00 00 16 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 55 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 31 [18:34:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:34:33]wFMCommunicate OK [18:34:33]SAM_PROTO_GetShiftState done [18:34:33]FM_GetShiftState done [18:34:33]req_shift_opened done [18:34:33]requested_item shift.open_date is exist - process it [18:34:33]req_shift_open_date [18:34:33]req_shift_open_date done [18:34:33]produce_requested_data done [18:34:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75181,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:34:33]process_action_free close_receipt [18:34:33]json_value_free [18:34:33]json_value_free done [18:34:33]process_json_proto returns [18:34:33]Send response to host [18:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75181,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:34:33]free response buf [18:34:33]execute_script done [18:34:33]execute_script returns [18:34:33]free content buf [18:34:33]Sock 8.Close socket [18:34:33]Sock 8.Thread stoped [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:50]accept exits with 10 [18:35:50]New connection [18:35:50]New thread 3066924388 created [18:35:50]Thread 3066781028 joined [18:35:50]Waiting for new connection... [18:35:50] Sock 10.Parse request [18:35:50]Sock 10.Check first char [18:35:50]Sock 10.First char is OK [18:35:50]request: POST /json_proto HTTP/1.0 [18:35:50]Method: POST [18:35:50]URL: /json_proto [18:35:50]Method is POST - this is cgi request [18:35:50]url: /json_proto [18:35:50]query_string will be loaded in cgi processing [18:35:50]execute_cgi json_proto POST (null) [18:35:50]execute_cgi path=json_proto method=POST [18:35:50]POST find Content-Length [18:35:50]Host: 172.17.39.131:8080 [18:35:50]Content-Length: 677 [18:35:50]Content-Type: application/json [18:35:50] [18:35:50]POST finish read [18:35:50]Found Content-Length = 677 [18:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:35:50]execute_script... [18:35: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)191159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:35:50]POST & json_proto [18:35:50]process_json_proto [18:35:50]json parsed OK: [18:35:50]protocol is kg_v1.0 [18:35:50]action value=close_receipt [18:35:50]process_action close_receipt [18:35:50]cmd_close_receipt [18:35:50]MH_GetDate [18:35:50]Write to MH i2c: F0 00 00 56 44 89 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: F0 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: F0 09 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: F0 09 00 56 44 00 8C 36 1D 67 86 57 24 65 3E [18:35:50]GetLastDocTimeStamp 1729967675 [18:35:50]current date 1729967756 [18:35:50]FM_GetShiftState [18:35:50]SAM_PROTO_GetShiftState [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 13 01 00 [18:35:50]Write to MH i2c: E2 08 00 57 44 80 13 01 00 00 00 00 00 18 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 0E 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 0E 00 57 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 33 [18:35:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:35:50]wFMCommunicate OK [18:35:50]SAM_PROTO_GetShiftState done [18:35:50]FM_GetShiftState done [18:35:50]opened in 1729902166 [18:35:50]opened+sec_in_day 1729988566 [18:35:50]quantity*price = 30038 [18:35:50]sum+1 = 30039 [18:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 174 26.10.2024 18:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75182 ФПД: 53661956683706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183556&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75182&fm=53661956683706&tin=02508201610067®Number=0000000000091691&sum=30000 [18:35:51]StoreToDocumentArchive [18:35:51]shift 512 fd 75182 [18:35:51]save to /storage/0512/doc_00075182 [18:35:51]save last doc name /storage/0512/doc_00075182 to /storage/kkm_last_doc_name [18:35:51]save OK [18:35:51]Clear old archive folders... [18:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:51]tlvbuf is 009772A0 [18:35:51]SAM_PROTO_ClearQueue [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 09 00 00 [18:35:51]Write to MH i2c: E2 08 00 64 44 80 09 00 00 00 00 00 00 1A [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 64 44 00 90 00 1C [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]SAM_PROTO_ClearQueue done [18:35:51]KKMCreateOFDPacket [18:35:51]OFDProtocolAddRootSTLVToBuf [18:35:51]FM_MakeSignedData [18:35:51]FM_MakeSignedData [18:35:51]SAM_PROTO_SignData [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 0D 01 02 [18:35:51]Write to MH i2c: E2 08 00 65 44 80 0D 01 02 00 00 00 00 22 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 65 44 00 90 00 1D [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=255 [18:35:51]MH_SAM_APDU [18:35: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 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 AE 00 00 00 F4 03 04 00 8C 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 25 01 00 35 04 06 00 30 [18:35:51]Write to MH i2c: E2 02 01 66 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 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 AE 00 00 00 F4 03 04 00 8C 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 25 01 00 35 04 06 00 30 00 00 A5 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=10 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 0D 02 02 05 CE 25 DD B7 BA [18:35:51]Write to MH i2c: E2 0D 00 67 44 80 0D 02 02 05 00 CE 25 DD B7 BA 00 00 70 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 0D 03 02 [18:35:51]Write to MH i2c: E2 08 00 68 44 80 0D 03 02 00 00 00 00 27 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0B 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0B 00 68 44 00 30 28 C8 B9 A5 D1 FD E8 90 00 5C [18:35:51]RAPDU: 30 28 C8 B9 A5 D1 FD E8 90 00 [18:35:51]wFMCommunicate OK [18:35:51]SAM_PROTO_SignData done [18:35:51]FM_MakeSignedData done [18:35:51]CreateOFDProtocolMessage [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 69 44 80 11 00 00 00 00 00 00 27 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 69 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7F [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:35:51]wFMCommunicate OK [18:35:51]CreateOFDProtocolMessage done [18:35:51]OFDSenderStorePacket 75182 [18:35:51]StoreOFDPacket docnum=75182 [18:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 72 FA 07 01 30 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 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 AE 00 00 00 F4 03 04 00 8C 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 25 01 00 35 04 06 00 30 CE 25 DD B7 BA 30 28 C8 B9 A5 D1 FD E8 [18:35:51]CheckFolder [18:35:51]dirname=/storage/ofd_packets [18:35:51]CheckFolder done [18:35:51]ProducePacketName [18:35:51]name=ofd_packets/00075182 [18:35:51]NVStorageSaveData ofd_packets/00075182 [18:35:51]File name is /storage/ofd_packets/00075182 [18:35:51]Write 301 bytes [18:35:51]NVStorageSaveData done [18:35:51]OFDSenderStorePacket done [18:35:51]KKMCreateOFDPacket done [18:35:51]NVStorageSaveData kkm_last_timestamp [18:35:51]File name is /storage/kkm_last_timestamp [18:35:51]Write 4 bytes [18:35:51]NVStorageSaveData done [18:35:51]ExternCall_PrintAddStr [18:35:51]wPrintStart [18:35:51]Write to MH i2c: 01 00 00 6A 44 AE [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 6A 44 00 00 00 00 00 FF 0F C3 [18:35:51]RasterBufferAndPrint [18:35:51]line Счет N : (1)191159 [18:35:51]line ИНН: 02508201610067 [18:35:51]line Контрольно-Кассовый Чек [18:35:51]line ПРОДАЖА [18:35:51]line ТРК (МРК, ГНК) : 21 [18:35:51]line Товар: 2710124130 [18:35:51]line Аи-92-К-5 [18:35:51]line 4.490 * 66.90 [18:35:51]line = 300.38 [18:35:51]line НДС 12% НСП 1% [18:35:51]line > о реализуемом товаре [18:35:51]line ОКРУГЛЕНИЕ: -0.38 [18:35:51]line ИТОГО: 300.00 [18:35:51]line Внесено: 300.00 [18:35:51]line СДАЧА: 0.00 [18:35:51]line НСП 1% : 2.66 [18:35:51]line НДС 12% : 31.90 [18:35:51]line Наличными: 300.00 [18:35:51]line Безнал.: 0.00 [18:35:51]line Место: АЗС № 142 "Партнер Нефть" [18:35:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:35:51]line СНО: Общий режим [18:35:51]line Чек 174 26.10.2024 18:35 [18:35:51]line Смена: 512 ФФД: 1.0 [18:35:51]line ЗНМ: 0300000089 [18:35:51]line РНМ: 0000000000091691 [18:35:51]line Версия ККМ: 001 [18:35:52]line ФМ: 0000000000871795 [18:35:52]line ФД: 75182 [18:35:52]line ФПД: 53661956683706 [18:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183556&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75182&fm=53661956683706&tin=02508201610067®Number=0000000000091691&sum=30000 [18:35:52]OFD Sender: Processing packet 75182 [packets to send 13, broken 12] [18:35:52]ProducePacketName [18:35:52]name=ofd_packets/00075182 [18:35:52]OFD Sender: To server: pG, [18:35:52]CommunicateWithHost lk.salyk.kg:30040 [18:35:52]ConnectInit lk.salyk.kg [18:35:52]written 0, free lines is 4095 [18:35:52]Connected sock=11 [18:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 72 FA 07 01 30 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 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 AE 00 00 00 F4 03 04 00 8C 36 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 25 01 00 35 04 06 00 30 CE 25 DD B7 BA 30 28 C8 B9 A5 D1 FD E8 [18:35:52]Write to MH i2c: 01 00 00 95 44 D9 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: 01 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: 01 07 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: 01 07 00 95 44 00 00 00 00 00 C5 0C B1 [18:35:52]RasterBufferAndPrint [18:35:52]line [18:35:52]line [18:35:52]line [18:35:52]line [18:35:52]line [18:35:52]written 0, free lines is 3287 [18:35:52]MH_Cut [18:35:52]Write to MH i2c: D1 01 00 9C 44 01 B2 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: D1 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: D1 01 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: D1 01 00 9C 44 00 B1 [18:35:52]Write to MH i2c: 01 00 00 9D 44 E1 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 50 55 47 00 05 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AE 25 01 00 F4 03 04 00 08 DE 1C 67 B6 04 01 00 00 75 34 40 6C AA C0 76 01 [18:35:52]CommunicateWithHost err = 0 [18:35:52]CheckOFDResponse [18:35:52]1017 (14) - 77093643461234 [18:35:52]1041 (16) - 0000000000871795 [18:35:52]1040 (4) - 75182 [18:35:52]1012 (4) - 26.10.2024 12:18 [18:35:52]1206 (1) - 0 [18:35:52]OFD Sender: Remove packet 75182 [18:35:52]ProducePacketName [18:35:52]name=ofd_packets/00075182 [18:35:53]NVStorageDeleteData [18:35:53]OFD Sender: No OFD packet to send [18:35:53]*** Cut start [18:35:53]*** Partial cut [18:35:53]*** CUTSNS_PIN = 1 [18:35:53]*** CUTSNS_PIN = 0 [18:35:53]*** Brake cut motor [18:35:54]Read from MH i2c: 01 [18:35:54]MH_I2C_Read... [18:35:54]*** Stop cut motor [18:35:54]*** Cut end [18:35:54]Read from MH i2c: 01 07 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 9D 44 00 00 00 00 00 FF 0F F6 [18:35:54]process_action close_receipt done [18:35:54]requested_data is exist [18:35:54]produce_requested_data [18:35:54]requested_item fm.sn is exist - process it [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 11 00 00 [18:35:54]Write to MH i2c: E2 08 00 9E 44 80 11 00 00 00 00 00 00 5C [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 9E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B4 [18:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:35:54]wFMCommunicate OK [18:35:54]requested_item fd.num is exist - process it [18:35:54]SAM_PROTO_GetFieldsCounters [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 13 00 00 [18:35:54]Write to MH i2c: E2 08 00 9F 44 80 13 00 00 00 00 00 00 5F [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 62 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 62 00 9F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AE 25 01 00 0E 04 04 00 00 02 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 66 [18:35:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AE 25 01 00 0E 04 04 00 00 02 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 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_GetFieldsCounters done [18:35:54]requested_item shift.num is exist - process it [18:35:54]requested_item shift.opened is exist - process it [18:35:54]req_shift_opened [18:35:54]FM_GetShiftState [18:35:54]SAM_PROTO_GetShiftState [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 13 01 00 [18:35:54]Write to MH i2c: E2 08 00 A0 44 80 13 01 00 00 00 00 00 61 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0E 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0E 00 A0 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7C [18:35:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_GetShiftState done [18:35:54]FM_GetShiftState done [18:35:54]req_shift_opened done [18:35:54]requested_item shift.open_date is exist - process it [18:35:54]req_shift_open_date [18:35:54]req_shift_open_date done [18:35:54]produce_requested_data done [18:35:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75182,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:35:54]process_action_free close_receipt [18:35:54]json_value_free [18:35:54]json_value_free done [18:35:54]process_json_proto returns [18:35:54]Send response to host [18:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75182,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:35:54]free response buf [18:35:54]execute_script done [18:35:54]execute_script returns [18:35:54]free content buf [18:35:54]Sock 10.Close socket [18:35:54]Sock 10.Thread stoped [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]ConnectInit Can't connect to host [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:29]accept exits with 8 [18:41:29]New connection [18:41:29]New thread 3066781028 created [18:41:29]Thread 3066924388 joined [18:41:29]Waiting for new connection... [18:41:29] Sock 8.Parse request [18:41:29]Sock 8.Check first char [18:41:29]Sock 8.First char is OK [18:41:29]request: POST /json_proto HTTP/1.0 [18:41:29]Method: POST [18:41:29]URL: /json_proto [18:41:29]Method is POST - this is cgi request [18:41:29]url: /json_proto [18:41:29]query_string will be loaded in cgi processing [18:41:29]execute_cgi json_proto POST (null) [18:41:29]execute_cgi path=json_proto method=POST [18:41:29]POST find Content-Length [18:41:29]Host: 172.17.39.131:8080 [18:41:29]Content-Length: 790 [18:41:29]Content-Type: application/json [18:41:29] [18:41:29]POST finish read [18:41:29]Found Content-Length = 790 [18:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 39.380, "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\u000A102410", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:29]execute_script... [18:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 0.00, "quantity" : 39.380, "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\u000A102410", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:29]POST & json_proto [18:41:29]process_json_proto [18:41:29]json parsed OK: [18:41:29]protocol is kg_v1.0 [18:41:29]action value=close_receipt [18:41:29]process_action close_receipt [18:41:29]cmd_close_receipt [18:41:29]MH_GetDate [18:41:29]Write to MH i2c: F0 00 00 A1 44 D4 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: F0 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: F0 09 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: F0 09 00 A1 44 00 DF 37 1D 67 86 57 24 65 DD [18:41:29]GetLastDocTimeStamp 1729967756 [18:41:29]current date 1729968095 [18:41:29]FM_GetShiftState [18:41:29]SAM_PROTO_GetShiftState [18:41:29]wFMCommunicate request_size=4 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 13 01 00 [18:41:29]Write to MH i2c: E2 08 00 A2 44 80 13 01 00 00 00 00 00 63 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 0E 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 0E 00 A2 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7E [18:41:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:41:29]wFMCommunicate OK [18:41:29]SAM_PROTO_GetShiftState done [18:41:29]FM_GetShiftState done [18:41:29]opened in 1729902166 [18:41:29]opened+sec_in_day 1729988566 [18:41:29]quantity*price = 0 [18:41:29]sum+1 = 1 [18:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 175 26.10.2024 18:41 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 102410 ФМ: 0000000000871795 ФД: 75183 ФПД: 207416230541704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75183&fm=207416230541704&tin=02508201610067®Number=0000000000091691&sum=0 [18:41:30]StoreToDocumentArchive [18:41:30]shift 512 fd 75183 [18:41:30]save to /storage/0512/doc_00075183 [18:41:30]save last doc name /storage/0512/doc_00075183 to /storage/kkm_last_doc_name [18:41:30]save OK [18:41:30]Clear old archive folders... [18:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:41:30]tlvbuf is 007FDD90 [18:41:30]SAM_PROTO_ClearQueue [18:41:30]wFMCommunicate request_size=4 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 09 00 00 [18:41:30]Write to MH i2c: E2 08 00 AF 44 80 09 00 00 00 00 00 00 65 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 AF 44 00 90 00 67 [18:41:30]RAPDU: 90 00 [18:41:30]wFMCommunicate OK [18:41:30]SAM_PROTO_ClearQueue done [18:41:30]KKMCreateOFDPacket [18:41:30]OFDProtocolAddRootSTLVToBuf [18:41:30]FM_MakeSignedData [18:41:30]FM_MakeSignedData [18:41:30]SAM_PROTO_SignData [18:41:30]wFMCommunicate request_size=4 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 0D 01 02 [18:41:30]Write to MH i2c: E2 08 00 B0 44 80 0D 01 02 00 00 00 00 6D [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 B0 44 00 90 00 68 [18:41:30]RAPDU: 90 00 [18:41:30]wFMCommunicate OK [18:41:30]wFMCommunicate request_size=255 [18:41:30]MH_SAM_APDU [18:41: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 34 FF 03 08 00 03 D4 99 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 AF 00 00 00 F4 03 04 00 DF 37 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 25 01 00 35 04 06 00 BC A4 DA BD [18:41:30]Write to MH i2c: E2 02 01 B1 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 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 AF 00 00 00 F4 03 04 00 DF 37 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 25 01 00 35 04 06 00 BC A4 DA BD 00 00 53 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 B1 44 00 90 00 69 [18:41:31]RAPDU: 90 00 [18:41:31]wFMCommunicate OK [18:41:31]wFMCommunicate request_size=7 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 0D 02 02 02 F9 88 [18:41:31]Write to MH i2c: E2 0A 00 B2 44 80 0D 02 02 02 00 F9 88 00 00 F5 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 03 00 B2 44 00 90 00 6A [18:41:31]RAPDU: 90 00 [18:41:31]wFMCommunicate OK [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 0D 03 02 [18:41:31]Write to MH i2c: E2 08 00 B3 44 80 0D 03 02 00 00 00 00 72 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 0B 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 0B 00 B3 44 00 2E CA E9 D3 BE CC A5 AD 90 00 03 [18:41:31]RAPDU: 2E CA E9 D3 BE CC A5 AD 90 00 [18:41:31]wFMCommunicate OK [18:41:31]SAM_PROTO_SignData done [18:41:31]FM_MakeSignedData done [18:41:31]CreateOFDProtocolMessage [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 11 00 00 [18:41:31]Write to MH i2c: E2 08 00 B4 44 80 11 00 00 00 00 00 00 72 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 17 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 17 00 B4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CA [18:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:41:31]wFMCommunicate OK [18:41:31]CreateOFDProtocolMessage done [18:41:31]OFDSenderStorePacket 75183 [18:41:31]StoreOFDPacket docnum=75183 [18:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 91 8A 04 01 45 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 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 AF 00 00 00 F4 03 04 00 DF 37 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 25 01 00 35 04 06 00 BC A4 DA BD F9 88 2E CA E9 D3 BE CC A5 AD [18:41:31]CheckFolder [18:41:31]dirname=/storage/ofd_packets [18:41:31]CheckFolder done [18:41:31]ProducePacketName [18:41:31]name=ofd_packets/00075183 [18:41:31]NVStorageSaveData ofd_packets/00075183 [18:41:31]File name is /storage/ofd_packets/00075183 [18:41:31]Write 298 bytes [18:41:31]NVStorageSaveData done [18:41:31]OFDSenderStorePacket done [18:41:31]KKMCreateOFDPacket done [18:41:31]NVStorageSaveData kkm_last_timestamp [18:41:31]File name is /storage/kkm_last_timestamp [18:41:31]Write 4 bytes [18:41:31]NVStorageSaveData done [18:41:31]ExternCall_PrintAddStr [18:41:31]wPrintStart [18:41:31]Write to MH i2c: 01 00 00 B5 44 F9 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: 01 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: 01 07 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: 01 07 00 B5 44 00 00 00 00 00 FF 0F 0E [18:41:31]RasterBufferAndPrint [18:41:31]line Счет N : (1)191160 [18:41:31]line ИНН: 02508201610067 [18:41:31]line Контрольно-Кассовый Чек [18:41:31]line ПРОДАЖА [18:41:31]line ТРК (МРК, ГНК) : 41 [18:41:31]line Товар: 2710194210 [18:41:31]line ДТ-К-4 [18:41:31]line 39.380 * 0.00 [18:41:31]line = 0.00 [18:41:31]line НДС 12% НСП 1% [18:41:31]line > о реализуемом товаре [18:41:31]line ИТОГО: 0.00 [18:41:31]line НСП 1% : 0.00 [18:41:31]line НДС 12% : 0.00 [18:41:31]line Наличными: 0.00 [18:41:31]line Безнал.: 0.00 [18:41:31]line Место: АЗС № 142 "Партнер Нефть" [18:41:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:41:31]line СНО: Общий режим [18:41:31]line Чек 175 26.10.2024 18:41 [18:41:31]line Смена: 512 ФФД: 1.0 [18:41:31]line ЗНМ: 0300000089 [18:41:31]line РНМ: 0000000000091691 [18:41:31]line Версия ККМ: 001 [18:41:31]line Талоны: Топливная Карта [18:41:31]line 102410 [18:41:31]line ФМ: 0000000000871795 [18:41:31]line ФД: 75183 [18:41:31]line ФПД: 207416230541704 [18:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184135&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75183&fm=207416230541704&tin=02508201610067®Number=0000000000091691&sum=0 [18:41:31]OFD Sender: Processing packet 75183 [packets to send 13, broken 12] [18:41:31]ProducePacketName [18:41:31]name=ofd_packets/00075183 [18:41:31]OFD Sender: To server: pG, [18:41:31]CommunicateWithHost lk.salyk.kg:30040 [18:41:31]ConnectInit lk.salyk.kg [18:41:31]written 0, free lines is 4095 [18:41:31]Connected sock=10 [18:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 91 8A 04 01 45 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 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 AF 00 00 00 F4 03 04 00 DF 37 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 25 01 00 35 04 06 00 BC A4 DA BD F9 88 2E CA E9 D3 BE CC A5 AD [18:41:32]Write to MH i2c: 01 00 00 DF 44 23 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 DF 44 00 00 00 00 00 BE 0C F4 [18:41:32]RasterBufferAndPrint [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]line [18:41:32]written 0, free lines is 3266 [18:41:32]MH_Cut [18:41:32]Write to MH i2c: D1 01 00 E6 44 01 FC [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 01 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: D1 01 00 E6 44 00 FB [18:41:32]Write to MH i2c: 01 00 00 E7 44 2B [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 FE 0B 47 00 9D EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 AF 25 01 00 F4 03 04 00 5B DF 1C 67 B6 04 01 00 00 68 CD F7 86 1B AF E7 AE [18:41:32]CommunicateWithHost err = 0 [18:41:32]CheckOFDResponse [18:41:32]1017 (14) - 77093643461234 [18:41:32]1041 (16) - 0000000000871795 [18:41:32]1040 (4) - 75183 [18:41:32]1012 (4) - 26.10.2024 12:23 [18:41:32]1206 (1) - 0 [18:41:32]OFD Sender: Remove packet 75183 [18:41:32]ProducePacketName [18:41:32]name=ofd_packets/00075183 [18:41:32]NVStorageDeleteData [18:41:32]OFD Sender: No OFD packet to send [18:41:32]*** Cut start [18:41:32]*** Partial cut [18:41:32]*** CUTSNS_PIN = 1 [18:41:32]*** CUTSNS_PIN = 0 [18:41:33]*** Brake cut motor [18:41:33]Read from MH i2c: 01 [18:41:33]MH_I2C_Read... [18:41:33]*** Stop cut motor [18:41:33]*** Cut end [18:41:33]Read from MH i2c: 01 07 00 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: 01 07 00 E7 44 00 00 00 00 00 FF 0F 40 [18:41:33]process_action close_receipt done [18:41:33]requested_data is exist [18:41:33]produce_requested_data [18:41:33]requested_item fm.sn is exist - process it [18:41:33]wFMCommunicate request_size=4 [18:41:33]MH_SAM_APDU [18:41:33]CAPDU: 80 11 00 00 [18:41:33]Write to MH i2c: E2 08 00 E8 44 80 11 00 00 00 00 00 00 A6 [18:41:33]Write i2c OK [18:41:33]MH_I2C_Read... [18:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:33]Read from MH i2c: E2 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 17 00 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 17 00 E8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FE [18:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:41:33]wFMCommunicate OK [18:41:33]requested_item fd.num is exist - process it [18:41:33]SAM_PROTO_GetFieldsCounters [18:41:33]wFMCommunicate request_size=4 [18:41:33]MH_SAM_APDU [18:41:33]CAPDU: 80 13 00 00 [18:41:33]Write to MH i2c: E2 08 00 E9 44 80 13 00 00 00 00 00 00 A9 [18:41:33]Write i2c OK [18:41:33]MH_I2C_Read... [18:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:33]Read from MH i2c: E2 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 62 00 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 62 00 E9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AF 25 01 00 0E 04 04 00 00 02 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 B4 [18:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 AF 25 01 00 0E 04 04 00 00 02 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 [18:41:33]wFMCommunicate OK [18:41:33]SAM_PROTO_GetFieldsCounters done [18:41:33]requested_item shift.num is exist - process it [18:41:33]requested_item shift.opened is exist - process it [18:41:33]req_shift_opened [18:41:33]FM_GetShiftState [18:41:33]SAM_PROTO_GetShiftState [18:41:33]wFMCommunicate request_size=4 [18:41:33]MH_SAM_APDU [18:41:33]CAPDU: 80 13 01 00 [18:41:33]Write to MH i2c: E2 08 00 EA 44 80 13 01 00 00 00 00 00 AB [18:41:33]Write i2c OK [18:41:33]MH_I2C_Read... [18:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:33]Read from MH i2c: E2 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 0E 00 [18:41:33]MH_I2C_Read... [18:41:33]Read from MH i2c: E2 0E 00 EA 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C6 [18:41:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:41:33]wFMCommunicate OK [18:41:33]SAM_PROTO_GetShiftState done [18:41:33]FM_GetShiftState done [18:41:33]req_shift_opened done [18:41:33]requested_item shift.open_date is exist - process it [18:41:33]req_shift_open_date [18:41:33]req_shift_open_date done [18:41:33]produce_requested_data done [18:41:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75183,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:41:33]process_action_free close_receipt [18:41:33]json_value_free [18:41:33]json_value_free done [18:41:33]process_json_proto returns [18:41:33]Send response to host [18:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75183,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:41:33]free response buf [18:41:33]execute_script done [18:41:33]execute_script returns [18:41:33]free content buf [18:41:33]Sock 8.Close socket [18:41:33]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [18:51:03]New connection [18:51:03]New thread 3066924388 created [18:51:03]Thread 3066781028 joined [18:51:03]Waiting for new connection... [18:51:03] Sock 9.Parse request [18:51:03]Sock 9.Check first char [18:51:03]Sock 9.First char is OK [18:51:03]request: POST /json_proto HTTP/1.0 [18:51:03]Method: POST [18:51:03]URL: /json_proto [18:51:03]Method is POST - this is cgi request [18:51:03]url: /json_proto [18:51:03]query_string will be loaded in cgi processing [18:51:03]execute_cgi json_proto POST (null) [18:51:03]execute_cgi path=json_proto method=POST [18:51:03]POST find Content-Length [18:51:03]Host: 172.17.39.131:8080 [18:51:03]Content-Length: 677 [18:51:03]Content-Type: application/json [18:51:03] [18:51:03]POST finish read [18:51:03]Found Content-Length = 677 [18:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:51:03]execute_script... [18:51: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)191161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:51:03]POST & json_proto [18:51:03]process_json_proto [18:51:03]json parsed OK: [18:51:03]protocol is kg_v1.0 [18:51:03]action value=close_receipt [18:51:03]process_action close_receipt [18:51:03]cmd_close_receipt [18:51:03]MH_GetDate [18:51:03]Write to MH i2c: F0 00 00 EB 44 1E [18:51:03]Write i2c OK [18:51:03]MH_I2C_Read... [18:51:03]Read from MH i2c: F0 [18:51:03]MH_I2C_Read... [18:51:03]Read from MH i2c: F0 09 00 [18:51:03]MH_I2C_Read... [18:51:03]Read from MH i2c: F0 09 00 EB 44 00 1D 3A 1D 67 86 57 24 65 68 [18:51:03]GetLastDocTimeStamp 1729968095 [18:51:03]current date 1729968669 [18:51:03]FM_GetShiftState [18:51:03]SAM_PROTO_GetShiftState [18:51:03]wFMCommunicate request_size=4 [18:51:03]MH_SAM_APDU [18:51:03]CAPDU: 80 13 01 00 [18:51:03]Write to MH i2c: E2 08 00 EC 44 80 13 01 00 00 00 00 00 AD [18:51:03]Write i2c OK [18:51:03]MH_I2C_Read... [18:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:03]Read from MH i2c: E2 [18:51:03]MH_I2C_Read... [18:51:03]Read from MH i2c: E2 0E 00 [18:51:03]MH_I2C_Read... [18:51:03]Read from MH i2c: E2 0E 00 EC 44 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C8 [18:51:03]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:51:03]wFMCommunicate OK [18:51:03]SAM_PROTO_GetShiftState done [18:51:03]FM_GetShiftState done [18:51:03]opened in 1729902166 [18:51:03]opened+sec_in_day 1729988566 [18:51:03]quantity*price = 50041 [18:51:03]sum+1 = 50042 [18:51: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 176 26.10.2024 18:51 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75184 ФПД: 5514940599717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185109&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75184&fm=5514940599717&tin=02508201610067®Number=0000000000091691&sum=50000 [18:51:04]StoreToDocumentArchive [18:51:04]shift 512 fd 75184 [18:51:04]save to /storage/0512/doc_00075184 [18:51:04]save last doc name /storage/0512/doc_00075184 to /storage/kkm_last_doc_name [18:51:04]save OK [18:51:04]Clear old archive folders... [18:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:04]tlvbuf is 00918600 [18:51:04]SAM_PROTO_ClearQueue [18:51:04]wFMCommunicate request_size=4 [18:51:04]MH_SAM_APDU [18:51:04]CAPDU: 80 09 00 00 [18:51:04]Write to MH i2c: E2 08 00 F9 44 80 09 00 00 00 00 00 00 AF [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:04]Read from MH i2c: E2 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 03 00 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 03 00 F9 44 00 90 00 B1 [18:51:04]RAPDU: 90 00 [18:51:04]wFMCommunicate OK [18:51:04]SAM_PROTO_ClearQueue done [18:51:04]KKMCreateOFDPacket [18:51:04]OFDProtocolAddRootSTLVToBuf [18:51:04]FM_MakeSignedData [18:51:04]FM_MakeSignedData [18:51:04]SAM_PROTO_SignData [18:51:04]wFMCommunicate request_size=4 [18:51:04]MH_SAM_APDU [18:51:04]CAPDU: 80 0D 01 02 [18:51:04]Write to MH i2c: E2 08 00 FA 44 80 0D 01 02 00 00 00 00 B7 [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:04]Read from MH i2c: E2 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 03 00 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [18:51:04]RAPDU: 90 00 [18:51:04]wFMCommunicate OK [18:51:04]wFMCommunicate request_size=255 [18:51:04]MH_SAM_APDU [18:51: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 B0 00 00 00 F4 03 04 00 1D 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 25 01 00 35 04 06 00 05 [18:51:04]Write to MH i2c: E2 02 01 FB 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 B0 00 00 00 F4 03 04 00 1D 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 25 01 00 35 04 06 00 05 00 00 B4 [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]wFMCommunicate request_size=10 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 02 02 05 04 0C 13 4D A5 [18:51:05]Write to MH i2c: E2 0D 00 FC 44 80 0D 02 02 05 00 04 0C 13 4D A5 00 00 D9 [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 03 02 [18:51:05]Write to MH i2c: E2 08 00 FD 44 80 0D 03 02 00 00 00 00 BC [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 0B 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 0B 00 FD 44 00 7A 24 E0 12 30 B3 0F 70 90 00 AF [18:51:05]RAPDU: 7A 24 E0 12 30 B3 0F 70 90 00 [18:51:05]wFMCommunicate OK [18:51:05]SAM_PROTO_SignData done [18:51:05]FM_MakeSignedData done [18:51:05]CreateOFDProtocolMessage [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 11 00 00 [18:51:05]Write to MH i2c: E2 08 00 FE 44 80 11 00 00 00 00 00 00 BC [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 17 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 17 00 FE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 14 [18:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:51:05]wFMCommunicate OK [18:51:05]CreateOFDProtocolMessage done [18:51:05]OFDSenderStorePacket 75184 [18:51:05]StoreOFDPacket docnum=75184 [18:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5B 0E 07 01 5B 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 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 B0 00 00 00 F4 03 04 00 1D 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 25 01 00 35 04 06 00 05 04 0C 13 4D A5 7A 24 E0 12 30 B3 0F 70 [18:51:05]CheckFolder [18:51:05]dirname=/storage/ofd_packets [18:51:05]CheckFolder done [18:51:05]ProducePacketName [18:51:05]name=ofd_packets/00075184 [18:51:05]NVStorageSaveData ofd_packets/00075184 [18:51:05]File name is /storage/ofd_packets/00075184 [18:51:05]Write 301 bytes [18:51:05]NVStorageSaveData done [18:51:05]OFDSenderStorePacket done [18:51:05]KKMCreateOFDPacket done [18:51:05]NVStorageSaveData kkm_last_timestamp [18:51:05]File name is /storage/kkm_last_timestamp [18:51:05]Write 4 bytes [18:51:05]NVStorageSaveData done [18:51:05]ExternCall_PrintAddStr [18:51:05]wPrintStart [18:51:05]Write to MH i2c: 01 00 00 FF 44 43 [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 07 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [18:51:05]RasterBufferAndPrint [18:51:05]line Счет N : (1)191161 [18:51:05]line ИНН: 02508201610067 [18:51:05]line Контрольно-Кассовый Чек [18:51:05]line ПРОДАЖА [18:51:05]line ТРК (МРК, ГНК) : 21 [18:51:05]line Товар: 2710124130 [18:51:05]line Аи-92-К-5 [18:51:05]line 7.480 * 66.90 [18:51:05]line = 500.41 [18:51:05]line НДС 12% НСП 1% [18:51:05]line > о реализуемом товаре [18:51:05]line ОКРУГЛЕНИЕ: -0.41 [18:51:05]line ИТОГО: 500.00 [18:51:05]line Внесено: 500.00 [18:51:05]line СДАЧА: 0.00 [18:51:05]line НСП 1% : 4.43 [18:51:05]line НДС 12% : 53.14 [18:51:05]line Наличными: 500.00 [18:51:05]line Безнал.: 0.00 [18:51:05]line Место: АЗС № 142 "Партнер Нефть" [18:51:05]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:51:05]line СНО: Общий режим [18:51:05]line Чек 176 26.10.2024 18:51 [18:51:05]line Смена: 512 ФФД: 1.0 [18:51:05]line ЗНМ: 0300000089 [18:51:05]line РНМ: 0000000000091691 [18:51:05]line Версия ККМ: 001 [18:51:05]line ФМ: 0000000000871795 [18:51:05]line ФД: 75184 [18:51:05]line ФПД: 5514940599717 [18:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185109&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75184&fm=5514940599717&tin=02508201610067®Number=0000000000091691&sum=50000 [18:51:05]OFD Sender: Processing packet 75184 [packets to send 13, broken 12] [18:51:05]ProducePacketName [18:51:05]name=ofd_packets/00075184 [18:51:05]OFD Sender: To server: pG, [18:51:05]CommunicateWithHost lk.salyk.kg:30040 [18:51:05]ConnectInit lk.salyk.kg [18:51:05]written 0, free lines is 4095 [18:51:05]Connected sock=8 [18:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5B 0E 07 01 5B 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 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 B0 00 00 00 F4 03 04 00 1D 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 25 01 00 35 04 06 00 05 04 0C 13 4D A5 7A 24 E0 12 30 B3 0F 70 [18:51:06]Write to MH i2c: 01 00 00 2A 45 6F [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 07 00 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 07 00 2A 45 00 00 00 00 00 A7 0C 29 [18:51:06]RasterBufferAndPrint [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]written 0, free lines is 3248 [18:51:06]MH_Cut [18:51:06]Write to MH i2c: D1 01 00 31 45 01 48 [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 01 00 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 01 00 31 45 00 47 [18:51:06]Write to MH i2c: 01 00 00 32 45 77 [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 66 0A 47 00 2D B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B0 25 01 00 F4 03 04 00 99 E1 1C 67 B6 04 01 00 00 EC FF 99 96 E7 8D B9 D0 [18:51:06]CommunicateWithHost err = 0 [18:51:06]CheckOFDResponse [18:51:06]1017 (14) - 77093643461234 [18:51:06]1041 (16) - 0000000000871795 [18:51:06]1040 (4) - 75184 [18:51:06]1012 (4) - 26.10.2024 12:33 [18:51:06]1206 (1) - 0 [18:51:06]OFD Sender: Remove packet 75184 [18:51:06]ProducePacketName [18:51:06]name=ofd_packets/00075184 [18:51:06]NVStorageDeleteData [18:51:06]OFD Sender: No OFD packet to send [18:51:07]*** Cut start [18:51:07]*** Partial cut [18:51:07]*** CUTSNS_PIN = 1 [18:51:07]*** CUTSNS_PIN = 0 [18:51:07]*** Brake cut motor [18:51:07]Read from MH i2c: 01 [18:51:07]MH_I2C_Read... [18:51:07]*** Stop cut motor [18:51:07]*** Cut end [18:51:07]Read from MH i2c: 01 07 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 07 00 32 45 00 00 00 00 00 FF 0F 8C [18:51:07]process_action close_receipt done [18:51:07]requested_data is exist [18:51:07]produce_requested_data [18:51:07]requested_item fm.sn is exist - process it [18:51:07]wFMCommunicate request_size=4 [18:51:07]MH_SAM_APDU [18:51:07]CAPDU: 80 11 00 00 [18:51:07]Write to MH i2c: E2 08 00 33 45 80 11 00 00 00 00 00 00 F2 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:07]Read from MH i2c: E2 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 17 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 17 00 33 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4A [18:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:51:07]wFMCommunicate OK [18:51:07]requested_item fd.num is exist - process it [18:51:07]SAM_PROTO_GetFieldsCounters [18:51:07]wFMCommunicate request_size=4 [18:51:07]MH_SAM_APDU [18:51:07]CAPDU: 80 13 00 00 [18:51:07]Write to MH i2c: E2 08 00 34 45 80 13 00 00 00 00 00 00 F5 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:07]Read from MH i2c: E2 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 62 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 62 00 34 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B0 25 01 00 0E 04 04 00 00 02 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 04 [18:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B0 25 01 00 0E 04 04 00 00 02 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 [18:51:07]wFMCommunicate OK [18:51:07]SAM_PROTO_GetFieldsCounters done [18:51:07]requested_item shift.num is exist - process it [18:51:07]requested_item shift.opened is exist - process it [18:51:07]req_shift_opened [18:51:07]FM_GetShiftState [18:51:07]SAM_PROTO_GetShiftState [18:51:07]wFMCommunicate request_size=4 [18:51:07]MH_SAM_APDU [18:51:07]CAPDU: 80 13 01 00 [18:51:07]Write to MH i2c: E2 08 00 35 45 80 13 01 00 00 00 00 00 F7 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:07]Read from MH i2c: E2 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 0E 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 0E 00 35 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 12 [18:51:07]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:51:07]wFMCommunicate OK [18:51:07]SAM_PROTO_GetShiftState done [18:51:07]FM_GetShiftState done [18:51:07]req_shift_opened done [18:51:07]requested_item shift.open_date is exist - process it [18:51:07]req_shift_open_date [18:51:07]req_shift_open_date done [18:51:07]produce_requested_data done [18:51:07]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75184,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:51:07]process_action_free close_receipt [18:51:07]json_value_free [18:51:07]json_value_free done [18:51:07]process_json_proto returns [18:51:07]Send response to host [18:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75184,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:51:07]free response buf [18:51:07]execute_script done [18:51:07]execute_script returns [18:51:07]free content buf [18:51:07]Sock 9.Close socket [18:51:07]Sock 9.Thread stoped [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:05]accept exits with 10 [18:54:05]New connection [18:54:05]New thread 3066781028 created [18:54:05]Thread 3066924388 joined [18:54:05]Waiting for new connection... [18:54:05] Sock 10.Parse request [18:54:05]Sock 10.Check first char [18:54:05]Sock 10.First char is OK [18:54:05]request: POST /json_proto HTTP/1.0 [18:54:05]Method: POST [18:54:05]URL: /json_proto [18:54:05]Method is POST - this is cgi request [18:54:05]url: /json_proto [18:54:05]query_string will be loaded in cgi processing [18:54:05]execute_cgi json_proto POST (null) [18:54:05]execute_cgi path=json_proto method=POST [18:54:05]POST find Content-Length [18:54:05]Host: 172.17.39.131:8080 [18:54:05]Content-Length: 685 [18:54:05]Content-Type: application/json [18:54:05] [18:54:05]POST finish read [18:54:05]Found Content-Length = 685 [18:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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:54:05]execute_script... [18:54: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)191162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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:54:05]POST & json_proto [18:54:05]process_json_proto [18:54:05]json parsed OK: [18:54:05]protocol is kg_v1.0 [18:54:05]action value=close_receipt [18:54:05]process_action close_receipt [18:54:05]cmd_close_receipt [18:54:05]MH_GetDate [18:54:05]Write to MH i2c: F0 00 00 36 45 6A [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 09 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: F0 09 00 36 45 00 D4 3A 1D 67 86 57 24 65 6B [18:54:05]GetLastDocTimeStamp 1729968669 [18:54:05]current date 1729968852 [18:54:05]FM_GetShiftState [18:54:05]SAM_PROTO_GetShiftState [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 01 00 [18:54:05]Write to MH i2c: E2 08 00 37 45 80 13 01 00 00 00 00 00 F9 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0E 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0E 00 37 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 14 [18:54:05]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_GetShiftState done [18:54:05]FM_GetShiftState done [18:54:05]opened in 1729902166 [18:54:05]opened+sec_in_day 1729988566 [18:54:05]quantity*price = 100011 [18:54:05]sum+1 = 100013 [18:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 177 26.10.2024 18:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75185 ФПД: 10412660623092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185412&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75185&fm=10412660623092&tin=02508201610067®Number=0000000000091691&sum=100000 [18:54:07]StoreToDocumentArchive [18:54:07]shift 512 fd 75185 [18:54:07]save to /storage/0512/doc_00075185 [18:54:07]save last doc name /storage/0512/doc_00075185 to /storage/kkm_last_doc_name [18:54:07]save OK [18:54:07]Clear old archive folders... [18:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:54:07]tlvbuf is 008367A0 [18:54:07]SAM_PROTO_ClearQueue [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 09 00 00 [18:54:07]Write to MH i2c: E2 08 00 44 45 80 09 00 00 00 00 00 00 FB [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 44 45 00 90 00 FD [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]SAM_PROTO_ClearQueue done [18:54:07]KKMCreateOFDPacket [18:54:07]OFDProtocolAddRootSTLVToBuf [18:54:07]FM_MakeSignedData [18:54:07]FM_MakeSignedData [18:54:07]SAM_PROTO_SignData [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 01 02 [18:54:07]Write to MH i2c: E2 08 00 45 45 80 0D 01 02 00 00 00 00 03 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 45 45 00 90 00 FE [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=255 [18:54:07]MH_SAM_APDU [18:54:07]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 39 30 30 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 B1 00 00 00 F4 03 04 00 D4 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 25 01 00 35 04 06 00 09 78 [18:54:07]Write to MH i2c: E2 02 01 46 45 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 39 30 30 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 B1 00 00 00 F4 03 04 00 D4 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 25 01 00 35 04 06 00 09 78 00 00 07 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 46 45 00 90 00 FF [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=9 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 02 02 04 62 F0 06 F4 [18:54:07]Write to MH i2c: E2 0C 00 47 45 80 0D 02 02 04 00 62 F0 06 F4 00 00 5A [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 03 00 47 45 00 90 00 00 [18:54:07]RAPDU: 90 00 [18:54:07]wFMCommunicate OK [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 0D 03 02 [18:54:07]Write to MH i2c: E2 08 00 48 45 80 0D 03 02 00 00 00 00 08 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0B 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0B 00 48 45 00 F4 E9 F3 BE C4 6E D5 E3 90 00 81 [18:54:07]RAPDU: F4 E9 F3 BE C4 6E D5 E3 90 00 [18:54:07]wFMCommunicate OK [18:54:07]SAM_PROTO_SignData done [18:54:07]FM_MakeSignedData done [18:54:07]CreateOFDProtocolMessage [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 11 00 00 [18:54:07]Write to MH i2c: E2 08 00 49 45 80 11 00 00 00 00 00 00 08 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 49 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 60 [18:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:54:07]wFMCommunicate OK [18:54:07]CreateOFDProtocolMessage done [18:54:07]OFDSenderStorePacket 75185 [18:54:07]StoreOFDPacket docnum=75185 [18:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 8A 7D 06 01 EC F4 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 39 30 30 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 B1 00 00 00 F4 03 04 00 D4 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 25 01 00 35 04 06 00 09 78 62 F0 06 F4 F4 E9 F3 BE C4 6E D5 E3 [18:54:07]CheckFolder [18:54:07]dirname=/storage/ofd_packets [18:54:07]CheckFolder done [18:54:07]ProducePacketName [18:54:07]name=ofd_packets/00075185 [18:54:07]NVStorageSaveData ofd_packets/00075185 [18:54:07]File name is /storage/ofd_packets/00075185 [18:54:07]Write 300 bytes [18:54:07]NVStorageSaveData done [18:54:07]OFDSenderStorePacket done [18:54:07]KKMCreateOFDPacket done [18:54:07]NVStorageSaveData kkm_last_timestamp [18:54:07]File name is /storage/kkm_last_timestamp [18:54:07]Write 4 bytes [18:54:07]NVStorageSaveData done [18:54:07]ExternCall_PrintAddStr [18:54:07]wPrintStart [18:54:07]Write to MH i2c: 01 00 00 4A 45 8F [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 4A 45 00 00 00 00 00 FF 0F A4 [18:54:07]RasterBufferAndPrint [18:54:07]line Счет N : (1)191162 [18:54:07]line ИНН: 02508201610067 [18:54:07]line Контрольно-Кассовый Чек [18:54:07]line ПРОДАЖА [18:54:07]line ТРК (МРК, ГНК) : 51 [18:54:07]line Товар: 2711190000 [18:54:07]line ГАЗ-К-3 [18:54:07]line 25.710 * 38.90 [18:54:07]line = 1000.12 [18:54:07]line НДС 12% НСП 1% [18:54:07]line > о реализуемом товаре [18:54:07]line ОКРУГЛЕНИЕ: -0.12 [18:54:07]line ИТОГО: 1000.00 [18:54:07]line Внесено: 1000.00 [18:54:07]line СДАЧА: 0.00 [18:54:07]line НСП 1% : 8.85 [18:54:07]line НДС 12% : 106.21 [18:54:07]line Наличными: 1000.00 [18:54:07]line Безнал.: 0.00 [18:54:07]line Место: АЗС № 142 "Партнер Нефть" [18:54:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:54:07]line СНО: Общий режим [18:54:07]line Чек 177 26.10.2024 18:54 [18:54:07]line Смена: 512 ФФД: 1.0 [18:54:07]line ЗНМ: 0300000089 [18:54:07]line РНМ: 0000000000091691 [18:54:07]line Версия ККМ: 001 [18:54:07]line ФМ: 0000000000871795 [18:54:07]line ФД: 75185 [18:54:07]line ФПД: 10412660623092 [18:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185412&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75185&fm=10412660623092&tin=02508201610067®Number=0000000000091691&sum=100000 [18:54:07]written 0, free lines is 4095 [18:54:07]OFD Sender: Processing packet 75185 [packets to send 13, broken 12] [18:54:07]ProducePacketName [18:54:07]name=ofd_packets/00075185 [18:54:07]OFD Sender: To server: pG, [18:54:07]CommunicateWithHost lk.salyk.kg:30040 [18:54:07]ConnectInit lk.salyk.kg [18:54:08]Connected sock=9 [18:54:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 8A 7D 06 01 EC F4 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 39 30 30 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 B1 00 00 00 F4 03 04 00 D4 3A 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B1 25 01 00 35 04 06 00 09 78 62 F0 06 F4 F4 E9 F3 BE C4 6E D5 E3 [18:54:08]Write to MH i2c: 01 00 00 75 45 BA [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 07 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 07 00 75 45 00 00 00 00 00 A5 0C 72 [18:54:08]RasterBufferAndPrint [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]line [18:54:08]written 0, free lines is 3242 [18:54:08]MH_Cut [18:54:08]Write to MH i2c: D1 01 00 7C 45 01 93 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 01 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: D1 01 00 7C 45 00 92 [18:54:08]Write to MH i2c: 01 00 00 7D 45 C2 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 54 B0 47 00 6E 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 38 37 31 37 39 35 10 04 04 00 B1 25 01 00 F4 03 04 00 4F E2 1C 67 B6 04 01 00 00 BC 5F A8 4C E4 D9 5D 09 [18:54:08]CommunicateWithHost err = 0 [18:54:08]CheckOFDResponse [18:54:08]1017 (14) - 77093643461234 [18:54:08]1041 (16) - 0000000000871795 [18:54:08]1040 (4) - 75185 [18:54:08]1012 (4) - 26.10.2024 12:36 [18:54:08]1206 (1) - 0 [18:54:08]OFD Sender: Remove packet 75185 [18:54:08]ProducePacketName [18:54:08]name=ofd_packets/00075185 [18:54:08]NVStorageDeleteData [18:54:09]OFD Sender: No OFD packet to send [18:54:09]*** Cut start [18:54:09]*** Partial cut [18:54:09]*** CUTSNS_PIN = 1 [18:54:09]*** CUTSNS_PIN = 0 [18:54:09]*** Brake cut motor [18:54:09]Read from MH i2c: 01 [18:54:09]MH_I2C_Read... [18:54:09]*** Stop cut motor [18:54:09]*** Cut end [18:54:09]Read from MH i2c: 01 07 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: 01 07 00 7D 45 00 00 00 00 00 FF 0F D7 [18:54:09]process_action close_receipt done [18:54:09]requested_data is exist [18:54:09]produce_requested_data [18:54:09]requested_item fm.sn is exist - process it [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 11 00 00 [18:54:09]Write to MH i2c: E2 08 00 7E 45 80 11 00 00 00 00 00 00 3D [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 7E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 95 [18:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:54:10]wFMCommunicate OK [18:54:10]requested_item fd.num is exist - process it [18:54:10]SAM_PROTO_GetFieldsCounters [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 13 00 00 [18:54:10]Write to MH i2c: E2 08 00 7F 45 80 13 00 00 00 00 00 00 40 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 62 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 62 00 7F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B1 25 01 00 0E 04 04 00 00 02 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 53 [18:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B1 25 01 00 0E 04 04 00 00 02 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 [18:54:10]wFMCommunicate OK [18:54:10]SAM_PROTO_GetFieldsCounters done [18:54:10]requested_item shift.num is exist - process it [18:54:10]requested_item shift.opened is exist - process it [18:54:10]req_shift_opened [18:54:10]FM_GetShiftState [18:54:10]SAM_PROTO_GetShiftState [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 13 01 00 [18:54:10]Write to MH i2c: E2 08 00 80 45 80 13 01 00 00 00 00 00 42 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0E 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0E 00 80 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5D [18:54:10]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:54:10]wFMCommunicate OK [18:54:10]SAM_PROTO_GetShiftState done [18:54:10]FM_GetShiftState done [18:54:10]req_shift_opened done [18:54:10]requested_item shift.open_date is exist - process it [18:54:10]req_shift_open_date [18:54:10]req_shift_open_date done [18:54:10]produce_requested_data done [18:54:10]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75185,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:54:10]process_action_free close_receipt [18:54:10]json_value_free [18:54:10]json_value_free done [18:54:10]process_json_proto returns [18:54:10]Send response to host [18:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75185,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:54:10]free response buf [18:54:10]execute_script done [18:54:10]execute_script returns [18:54:10]free content buf [18:54:10]Sock 10.Close socket [18:54:10]Sock 10.Thread stoped [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:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:34]accept exits with 8 [18:58:34]New connection [18:58:34]New thread 3066924388 created [18:58:34]Thread 3066781028 joined [18:58:34]Waiting for new connection... [18:58:34] Sock 8.Parse request [18:58:34]Sock 8.Check first char [18:58:34]Sock 8.First char is OK [18:58:34]request: POST /json_proto HTTP/1.0 [18:58:34]Method: POST [18:58:34]URL: /json_proto [18:58:34]Method is POST - this is cgi request [18:58:34]url: /json_proto [18:58:34]query_string will be loaded in cgi processing [18:58:34]execute_cgi json_proto POST (null) [18:58:34]execute_cgi path=json_proto method=POST [18:58:34]POST find Content-Length [18:58:34]Host: 172.17.39.131:8080 [18:58:34]Content-Length: 766 [18:58:34]Content-Type: application/json [18:58:34] [18:58:34]POST finish read [18:58:34]Found Content-Length = 766 [18:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:58:34]execute_script... [18:58: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)191164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [18:58:34]POST & json_proto [18:58:34]process_json_proto [18:58:34]json parsed OK: [18:58:34]protocol is kg_v1.0 [18:58:34]action value=close_receipt [18:58:34]process_action close_receipt [18:58:34]cmd_close_receipt [18:58:34]MH_GetDate [18:58:34]Write to MH i2c: F0 00 00 81 45 B5 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: F0 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: F0 09 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: F0 09 00 81 45 00 E1 3B 1D 67 86 57 24 65 C4 [18:58:34]GetLastDocTimeStamp 1729968852 [18:58:34]current date 1729969121 [18:58:34]FM_GetShiftState [18:58:34]SAM_PROTO_GetShiftState [18:58:34]wFMCommunicate request_size=4 [18:58:34]MH_SAM_APDU [18:58:34]CAPDU: 80 13 01 00 [18:58:34]Write to MH i2c: E2 08 00 82 45 80 13 01 00 00 00 00 00 44 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:34]Read from MH i2c: E2 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 0E 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 0E 00 82 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5F [18:58:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:58:34]wFMCommunicate OK [18:58:34]SAM_PROTO_GetShiftState done [18:58:34]FM_GetShiftState done [18:58:34]opened in 1729902166 [18:58:34]opened+sec_in_day 1729988566 [18:58:34]quantity*price = 30038 [18:58:34]sum+1 = 30039 [18:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 178 26.10.2024 18:58 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75186 ФПД: 135564008586310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185841&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75186&fm=135564008586310&tin=02508201610067®Number=0000000000091691&sum=30038 [18:58:36]StoreToDocumentArchive [18:58:36]shift 512 fd 75186 [18:58:36]save to /storage/0512/doc_00075186 [18:58:36]save last doc name /storage/0512/doc_00075186 to /storage/kkm_last_doc_name [18:58:36]save OK [18:58:36]Clear old archive folders... [18:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:36]tlvbuf is 007FFC30 [18:58:36]SAM_PROTO_ClearQueue [18:58:36]wFMCommunicate request_size=4 [18:58:36]MH_SAM_APDU [18:58:36]CAPDU: 80 09 00 00 [18:58:36]Write to MH i2c: E2 08 00 8F 45 80 09 00 00 00 00 00 00 46 [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 8F 45 00 90 00 48 [18:58:36]RAPDU: 90 00 [18:58:36]wFMCommunicate OK [18:58:36]SAM_PROTO_ClearQueue done [18:58:36]KKMCreateOFDPacket [18:58:36]OFDProtocolAddRootSTLVToBuf [18:58:36]FM_MakeSignedData [18:58:36]FM_MakeSignedData [18:58:36]SAM_PROTO_SignData [18:58:36]wFMCommunicate request_size=4 [18:58:36]MH_SAM_APDU [18:58:36]CAPDU: 80 0D 01 02 [18:58:36]Write to MH i2c: E2 08 00 90 45 80 0D 01 02 00 00 00 00 4E [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 90 45 00 90 00 49 [18:58:36]RAPDU: 90 00 [18:58:36]wFMCommunicate OK [18:58:36]wFMCommunicate request_size=255 [18:58:36]MH_SAM_APDU [18:58: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 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 B2 00 00 00 F4 03 04 00 E1 3B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 25 01 00 35 04 06 00 7B [18:58:36]Write to MH i2c: E2 02 01 91 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 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 B2 00 00 00 F4 03 04 00 E1 3B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 25 01 00 35 04 06 00 7B 00 00 CA [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 91 45 00 90 00 4A [18:58:36]RAPDU: 90 00 [18:58:36]wFMCommunicate OK [18:58:36]wFMCommunicate request_size=10 [18:58:36]MH_SAM_APDU [18:58:36]CAPDU: 80 0D 02 02 05 4B 74 93 7C 46 [18:58:36]Write to MH i2c: E2 0D 00 92 45 80 0D 02 02 05 00 4B 74 93 7C 46 00 00 6F [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 03 00 92 45 00 90 00 4B [18:58:36]RAPDU: 90 00 [18:58:36]wFMCommunicate OK [18:58:36]wFMCommunicate request_size=4 [18:58:36]MH_SAM_APDU [18:58:36]CAPDU: 80 0D 03 02 [18:58:36]Write to MH i2c: E2 08 00 93 45 80 0D 03 02 00 00 00 00 53 [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 0B 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 0B 00 93 45 00 8A 5D 22 22 34 BA A7 2C 90 00 40 [18:58:36]RAPDU: 8A 5D 22 22 34 BA A7 2C 90 00 [18:58:36]wFMCommunicate OK [18:58:36]SAM_PROTO_SignData done [18:58:36]FM_MakeSignedData done [18:58:36]CreateOFDProtocolMessage [18:58:36]wFMCommunicate request_size=4 [18:58:36]MH_SAM_APDU [18:58:36]CAPDU: 80 11 00 00 [18:58:36]Write to MH i2c: E2 08 00 94 45 80 11 00 00 00 00 00 00 53 [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 17 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 17 00 94 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AB [18:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:58:36]wFMCommunicate OK [18:58:36]CreateOFDProtocolMessage done [18:58:36]OFDSenderStorePacket 75186 [18:58:36]StoreOFDPacket docnum=75186 [18:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 2F 10 07 01 EA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 E1 3B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 25 01 00 35 04 06 00 7B 4B 74 93 7C 46 8A 5D 22 22 34 BA A7 2C [18:58:36]CheckFolder [18:58:36]dirname=/storage/ofd_packets [18:58:36]CheckFolder done [18:58:36]ProducePacketName [18:58:36]name=ofd_packets/00075186 [18:58:36]NVStorageSaveData ofd_packets/00075186 [18:58:36]File name is /storage/ofd_packets/00075186 [18:58:36]Write 301 bytes [18:58:36]NVStorageSaveData done [18:58:36]OFDSenderStorePacket done [18:58:36]KKMCreateOFDPacket done [18:58:36]NVStorageSaveData kkm_last_timestamp [18:58:36]File name is /storage/kkm_last_timestamp [18:58:36]Write 4 bytes [18:58:36]NVStorageSaveData done [18:58:36]ExternCall_PrintAddStr [18:58:36]wPrintStart [18:58:36]Write to MH i2c: 01 00 00 95 45 DA [18:58:36]Write i2c OK [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: 01 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: 01 07 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: 01 07 00 95 45 00 00 00 00 00 FF 0F EF [18:58:36]RasterBufferAndPrint [18:58:36]line Счет N : (1)191164 [18:58:36]line ИНН: 02508201610067 [18:58:36]line Контрольно-Кассовый Чек [18:58:36]line ПРОДАЖА [18:58:36]line ТРК (МРК, ГНК) : 21 [18:58:36]line Товар: 2710124130 [18:58:36]line Аи-92-К-5 [18:58:36]line 4.490 * 66.90 [18:58:36]line = 300.38 [18:58:36]line НДС 12% НСП 1% [18:58:36]line > о реализуемом товаре [18:58:36]line ИТОГО: 300.38 [18:58:36]line НСП 1% : 2.66 [18:58:36]line НДС 12% : 31.90 [18:58:36]line Наличными: 0.00 [18:58:36]line Безнал.: 300.38 [18:58:36]line Место: АЗС № 142 "Партнер Нефть" [18:58:36]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [18:58:36]line СНО: Общий режим [18:58:36]line Чек 178 26.10.2024 18:58 [18:58:36]line Смена: 512 ФФД: 1.0 [18:58:36]line ЗНМ: 0300000089 [18:58:36]line РНМ: 0000000000091691 [18:58:36]line Версия ККМ: 001 [18:58:36]line Платежная система: Mbank [18:58:36]line ФМ: 0000000000871795 [18:58:36]line ФД: 75186 [18:58:36]line ФПД: 135564008586310 [18:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185841&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75186&fm=135564008586310&tin=02508201610067®Number=0000000000091691&sum=30038 [18:58:36]written 0, free lines is 4095 [18:58:36]OFD Sender: Processing packet 75186 [packets to send 13, broken 12] [18:58:36]ProducePacketName [18:58:36]name=ofd_packets/00075186 [18:58:36]OFD Sender: To server: pG, [18:58:36]CommunicateWithHost lk.salyk.kg:30040 [18:58:36]ConnectInit lk.salyk.kg [18:58:36]Connected sock=10 [18:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 2F 10 07 01 EA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 E1 3B 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 25 01 00 35 04 06 00 7B 4B 74 93 7C 46 8A 5D 22 22 34 BA A7 2C [18:58:37]Write to MH i2c: 01 00 00 BE 45 03 [18:58:37]Write i2c OK [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: 01 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: 01 07 00 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: 01 07 00 BE 45 00 00 00 00 00 CE 0C E4 [18:58:37]RasterBufferAndPrint [18:58:37]line [18:58:37]line [18:58:37]line [18:58:37]line [18:58:37]line [18:58:37]written 0, free lines is 3285 [18:58:37]MH_Cut [18:58:37]Write to MH i2c: D1 01 00 C5 45 01 DC [18:58:37]Write i2c OK [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: D1 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: D1 01 00 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: D1 01 00 C5 45 00 DB [18:58:37]Write to MH i2c: 01 00 00 C6 45 0B [18:58:37]Write i2c OK [18:58:37]MH_I2C_Read... [18:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 8E BE 47 00 E2 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B2 25 01 00 F4 03 04 00 5C E3 1C 67 B6 04 01 00 00 0D B2 DE C3 5F 30 F4 EF [18:58:37]CommunicateWithHost err = 0 [18:58:37]CheckOFDResponse [18:58:37]1017 (14) - 77093643461234 [18:58:37]1041 (16) - 0000000000871795 [18:58:37]1040 (4) - 75186 [18:58:37]1012 (4) - 26.10.2024 12:41 [18:58:37]1206 (1) - 0 [18:58:37]OFD Sender: Remove packet 75186 [18:58:37]ProducePacketName [18:58:37]name=ofd_packets/00075186 [18:58:37]NVStorageDeleteData [18:58:37]OFD Sender: No OFD packet to send [18:58:37]*** Cut start [18:58:37]*** Partial cut [18:58:37]*** CUTSNS_PIN = 1 [18:58:37]*** CUTSNS_PIN = 0 [18:58:38]*** Brake cut motor [18:58:38]Read from MH i2c: 01 [18:58:38]MH_I2C_Read... [18:58:38]*** Stop cut motor [18:58:38]*** Cut end [18:58:38]Read from MH i2c: 01 07 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: 01 07 00 C6 45 00 00 00 00 00 FF 0F 20 [18:58:38]process_action close_receipt done [18:58:38]requested_data is exist [18:58:38]produce_requested_data [18:58:38]requested_item fm.sn is exist - process it [18:58:38]wFMCommunicate request_size=4 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 11 00 00 [18:58:38]Write to MH i2c: E2 08 00 C7 45 80 11 00 00 00 00 00 00 86 [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 17 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 17 00 C7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DE [18:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [18:58:38]wFMCommunicate OK [18:58:38]requested_item fd.num is exist - process it [18:58:38]SAM_PROTO_GetFieldsCounters [18:58:38]wFMCommunicate request_size=4 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 13 00 00 [18:58:38]Write to MH i2c: E2 08 00 C8 45 80 13 00 00 00 00 00 00 89 [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 62 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 62 00 C8 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B2 25 01 00 0E 04 04 00 00 02 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 A0 [18:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B2 25 01 00 0E 04 04 00 00 02 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 [18:58:38]wFMCommunicate OK [18:58:38]SAM_PROTO_GetFieldsCounters done [18:58:38]requested_item shift.num is exist - process it [18:58:38]requested_item shift.opened is exist - process it [18:58:38]req_shift_opened [18:58:38]FM_GetShiftState [18:58:38]SAM_PROTO_GetShiftState [18:58:38]wFMCommunicate request_size=4 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 13 01 00 [18:58:38]Write to MH i2c: E2 08 00 C9 45 80 13 01 00 00 00 00 00 8B [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 0E 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 0E 00 C9 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A6 [18:58:38]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [18:58:38]wFMCommunicate OK [18:58:38]SAM_PROTO_GetShiftState done [18:58:38]FM_GetShiftState done [18:58:38]req_shift_opened done [18:58:38]requested_item shift.open_date is exist - process it [18:58:38]req_shift_open_date [18:58:38]req_shift_open_date done [18:58:38]produce_requested_data done [18:58:38]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75186,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [18:58:38]process_action_free close_receipt [18:58:38]json_value_free [18:58:38]json_value_free done [18:58:38]process_json_proto returns [18:58:38]Send response to host [18:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75186,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [18:58:38]free response buf [18:58:38]execute_script done [18:58:38]execute_script returns [18:58:38]free content buf [18:58:38]Sock 8.Close socket [18:58:38]Sock 8.Thread stoped [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:29]accept exits with 9 [19:05:29]New connection [19:05:29]New thread 3066781028 created [19:05:29]Thread 3066924388 joined [19:05:29]Waiting for new connection... [19:05:29] Sock 9.Parse request [19:05:29]Sock 9.Check first char [19:05:29]Sock 9.First char is OK [19:05:29]request: POST /json_proto HTTP/1.0 [19:05:29]Method: POST [19:05:29]URL: /json_proto [19:05:29]Method is POST - this is cgi request [19:05:29]url: /json_proto [19:05:29]query_string will be loaded in cgi processing [19:05:29]execute_cgi json_proto POST (null) [19:05:29]execute_cgi path=json_proto method=POST [19:05:29]POST find Content-Length [19:05:29]Host: 172.17.39.131:8080 [19:05:29]Content-Length: 682 [19:05:29]Content-Type: application/json [19:05:29] [19:05:29]POST finish read [19:05:29]Found Content-Length = 682 [19:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 68.010, "sum" : 4549.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4549.00, "payments": [ { "type": 0, "sum" : 4549.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]execute_script... [19:05: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)191165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 68.010, "sum" : 4549.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4549.00, "payments": [ { "type": 0, "sum" : 4549.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]POST & json_proto [19:05:29]process_json_proto [19:05:29]json parsed OK: [19:05:29]protocol is kg_v1.0 [19:05:29]action value=close_receipt [19:05:29]process_action close_receipt [19:05:29]cmd_close_receipt [19:05:29]MH_GetDate [19:05:29]Write to MH i2c: F0 00 00 CA 45 FE [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 CA 45 00 7F 3D 1D 67 86 57 24 65 AD [19:05:29]GetLastDocTimeStamp 1729969121 [19:05:29]current date 1729969535 [19:05:29]FM_GetShiftState [19:05:29]SAM_PROTO_GetShiftState [19:05:29]wFMCommunicate request_size=4 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 13 01 00 [19:05:29]Write to MH i2c: E2 08 00 CB 45 80 13 01 00 00 00 00 00 8D [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 CB 45 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A8 [19:05:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:05:29]wFMCommunicate OK [19:05:29]SAM_PROTO_GetShiftState done [19:05:29]FM_GetShiftState done [19:05:29]opened in 1729902166 [19:05:29]opened+sec_in_day 1729988566 [19:05:29]quantity*price = 454986 [19:05:29]sum+1 = 454988 [19:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 4549.00 Внесено: 5000.00 СДАЧА: 451.00 НСП 1% : 40.26 НДС 12% : 483.17 Наличными: 4549.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 179 26.10.2024 19:05 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75187 ФПД: 22676408803098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190535&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75187&fm=22676408803098&tin=02508201610067®Number=0000000000091691&sum=454900 [19:05:30]StoreToDocumentArchive [19:05:30]shift 512 fd 75187 [19:05:30]save to /storage/0512/doc_00075187 [19:05:30]save last doc name /storage/0512/doc_00075187 to /storage/kkm_last_doc_name [19:05:30]save OK [19:05:30]Clear old archive folders... [19:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:30]tlvbuf is 008553E0 [19:05:30]SAM_PROTO_ClearQueue [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 09 00 00 [19:05:30]Write to MH i2c: E2 08 00 D8 45 80 09 00 00 00 00 00 00 8F [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 D8 45 00 90 00 91 [19:05:30]RAPDU: 90 00 [19:05:30]wFMCommunicate OK [19:05:30]SAM_PROTO_ClearQueue done [19:05:30]KKMCreateOFDPacket [19:05:30]OFDProtocolAddRootSTLVToBuf [19:05:30]FM_MakeSignedData [19:05:30]FM_MakeSignedData [19:05:30]SAM_PROTO_SignData [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 0D 01 02 [19:05:30]Write to MH i2c: E2 08 00 D9 45 80 0D 01 02 00 00 00 00 97 [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 D9 45 00 90 00 92 [19:05:30]RAPDU: 90 00 [19:05:30]wFMCommunicate OK [19:05:30]wFMCommunicate request_size=255 [19:05:30]MH_SAM_APDU [19:05: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 AA 09 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD BC 00 00 00 00 07 04 06 00 F4 F0 06 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 7F 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 25 01 00 35 04 06 00 14 [19:05:30]Write to MH i2c: E2 02 01 DA 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 AA 09 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD BC 00 00 00 00 07 04 06 00 F4 F0 06 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 7F 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 25 01 00 35 04 06 00 14 00 00 D1 [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 DA 45 00 90 00 93 [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=10 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 02 02 05 9F C3 4A 9F 1A [19:05:31]Write to MH i2c: E2 0D 00 DB 45 80 0D 02 02 05 00 9F C3 4A 9F 1A 00 00 09 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 DB 45 00 90 00 94 [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 03 02 [19:05:31]Write to MH i2c: E2 08 00 DC 45 80 0D 03 02 00 00 00 00 9C [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 DC 45 00 AD 53 7A 10 78 9A 76 1B 90 00 CA [19:05:31]RAPDU: AD 53 7A 10 78 9A 76 1B 90 00 [19:05:31]wFMCommunicate OK [19:05:31]SAM_PROTO_SignData done [19:05:31]FM_MakeSignedData done [19:05:31]CreateOFDProtocolMessage [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 11 00 00 [19:05:31]Write to MH i2c: E2 08 00 DD 45 80 11 00 00 00 00 00 00 9C [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 DD 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F4 [19:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:05:31]wFMCommunicate OK [19:05:31]CreateOFDProtocolMessage done [19:05:31]OFDSenderStorePacket 75187 [19:05:31]StoreOFDPacket docnum=75187 [19:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D4 0C 07 01 4F 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 AA 09 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD BC 00 00 00 00 07 04 06 00 F4 F0 06 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 7F 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 25 01 00 35 04 06 00 14 9F C3 4A 9F 1A AD 53 7A 10 78 9A 76 1B [19:05:31]CheckFolder [19:05:31]dirname=/storage/ofd_packets [19:05:31]CheckFolder done [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00075187 [19:05:31]NVStorageSaveData ofd_packets/00075187 [19:05:31]File name is /storage/ofd_packets/00075187 [19:05:31]Write 301 bytes [19:05:31]NVStorageSaveData done [19:05:31]OFDSenderStorePacket done [19:05:31]KKMCreateOFDPacket done [19:05:31]NVStorageSaveData kkm_last_timestamp [19:05:31]File name is /storage/kkm_last_timestamp [19:05:31]Write 4 bytes [19:05:31]NVStorageSaveData done [19:05:31]ExternCall_PrintAddStr [19:05:31]wPrintStart [19:05:31]Write to MH i2c: 01 00 00 DE 45 23 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 DE 45 00 00 00 00 00 FF 0F 38 [19:05:31]RasterBufferAndPrint [19:05:31]line Счет N : (1)191165 [19:05:31]line ИНН: 02508201610067 [19:05:31]line Контрольно-Кассовый Чек [19:05:31]line ПРОДАЖА [19:05:31]line ТРК (МРК, ГНК) : 21 [19:05:31]line Товар: 2710124130 [19:05:31]line Аи-92-К-5 [19:05:31]line 68.010 * 66.90 [19:05:31]line = 4549.87 [19:05:31]line НДС 12% НСП 1% [19:05:31]line > о реализуемом товаре [19:05:31]line ОКРУГЛЕНИЕ: -0.87 [19:05:31]line ИТОГО: 4549.00 [19:05:31]line Внесено: 5000.00 [19:05:31]line СДАЧА: 451.00 [19:05:31]line НСП 1% : 40.26 [19:05:31]line НДС 12% : 483.17 [19:05:31]line Наличными: 4549.00 [19:05:31]line Безнал.: 0.00 [19:05:31]line Место: АЗС № 142 "Партнер Нефть" [19:05:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:05:31]line СНО: Общий режим [19:05:31]line Чек 179 26.10.2024 19:05 [19:05:31]line Смена: 512 ФФД: 1.0 [19:05:31]line ЗНМ: 0300000089 [19:05:31]line РНМ: 0000000000091691 [19:05:31]line Версия ККМ: 001 [19:05:31]line ФМ: 0000000000871795 [19:05:31]line ФД: 75187 [19:05:31]line ФПД: 22676408803098 [19:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190535&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75187&fm=22676408803098&tin=02508201610067®Number=0000000000091691&sum=454900 [19:05:31]OFD Sender: Processing packet 75187 [packets to send 13, broken 12] [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00075187 [19:05:31]OFD Sender: To server: pG, [19:05:31]CommunicateWithHost lk.salyk.kg:30040 [19:05:31]ConnectInit lk.salyk.kg [19:05:31]written 0, free lines is 4095 [19:05:31]Connected sock=10 [19:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D4 0C 07 01 4F 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 AA 09 01 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD BC 00 00 00 00 07 04 06 00 F4 F0 06 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 7F 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B3 25 01 00 35 04 06 00 14 9F C3 4A 9F 1A AD 53 7A 10 78 9A 76 1B [19:05:32]Write to MH i2c: 01 00 00 09 46 4F [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 09 46 00 00 00 00 00 A6 0C 08 [19:05:32]RasterBufferAndPrint [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]written 0, free lines is 3243 [19:05:32]MH_Cut [19:05:32]Write to MH i2c: D1 01 00 10 46 01 28 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 01 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 01 00 10 46 00 27 [19:05:32]Write to MH i2c: 01 00 00 11 46 57 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 69 47 47 00 86 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 38 37 31 37 39 35 10 04 04 00 B3 25 01 00 F4 03 04 00 FB E4 1C 67 B6 04 01 00 00 E8 94 A1 C6 70 06 A9 FF [19:05:32]CommunicateWithHost err = 0 [19:05:32]CheckOFDResponse [19:05:32]1017 (14) - 77093643461234 [19:05:32]1041 (16) - 0000000000871795 [19:05:32]1040 (4) - 75187 [19:05:32]1012 (4) - 26.10.2024 12:47 [19:05:32]1206 (1) - 0 [19:05:32]OFD Sender: Remove packet 75187 [19:05:32]ProducePacketName [19:05:32]name=ofd_packets/00075187 [19:05:32]NVStorageDeleteData [19:05:32]OFD Sender: No OFD packet to send [19:05:33]*** Cut start [19:05:33]*** Partial cut [19:05:33]*** CUTSNS_PIN = 1 [19:05:33]*** CUTSNS_PIN = 0 [19:05:33]*** Brake cut motor [19:05:33]Read from MH i2c: 01 [19:05:33]MH_I2C_Read... [19:05:33]*** Stop cut motor [19:05:33]*** Cut end [19:05:33]Read from MH i2c: 01 07 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 11 46 00 00 00 00 00 FF 0F 6C [19:05:33]process_action close_receipt done [19:05:33]requested_data is exist [19:05:33]produce_requested_data [19:05:33]requested_item fm.sn is exist - process it [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 11 00 00 [19:05:33]Write to MH i2c: E2 08 00 12 46 80 11 00 00 00 00 00 00 D2 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 12 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2A [19:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:05:33]wFMCommunicate OK [19:05:33]requested_item fd.num is exist - process it [19:05:33]SAM_PROTO_GetFieldsCounters [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 13 00 00 [19:05:33]Write to MH i2c: E2 08 00 13 46 80 13 00 00 00 00 00 00 D5 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 62 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 62 00 13 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B3 25 01 00 0E 04 04 00 00 02 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 F0 [19:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B3 25 01 00 0E 04 04 00 00 02 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 [19:05:33]wFMCommunicate OK [19:05:33]SAM_PROTO_GetFieldsCounters done [19:05:33]requested_item shift.num is exist - process it [19:05:33]requested_item shift.opened is exist - process it [19:05:33]req_shift_opened [19:05:33]FM_GetShiftState [19:05:33]SAM_PROTO_GetShiftState [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 13 01 00 [19:05:33]Write to MH i2c: E2 08 00 14 46 80 13 01 00 00 00 00 00 D7 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0E 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0E 00 14 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F2 [19:05:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:05:33]wFMCommunicate OK [19:05:33]SAM_PROTO_GetShiftState done [19:05:33]FM_GetShiftState done [19:05:33]req_shift_opened done [19:05:33]requested_item shift.open_date is exist - process it [19:05:33]req_shift_open_date [19:05:33]req_shift_open_date done [19:05:33]produce_requested_data done [19:05:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75187,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:05:33]process_action_free close_receipt [19:05:33]json_value_free [19:05:33]json_value_free done [19:05:33]process_json_proto returns [19:05:33]Send response to host [19:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75187,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:05:33]free response buf [19:05:33]execute_script done [19:05:33]execute_script returns [19:05:33]free content buf [19:05:33]Sock 9.Close socket [19:05:33]Sock 9.Thread stoped [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:26]accept exits with 8 [19:06:26]New connection [19:06:26]New thread 3066924388 created [19:06:26]Thread 3066781028 joined [19:06:26]Waiting for new connection... [19:06:26] Sock 8.Parse request [19:06:26]Sock 8.Check first char [19:06:26]Sock 8.First char is OK [19:06:26]request: POST /json_proto HTTP/1.0 [19:06:26]Method: POST [19:06:26]URL: /json_proto [19:06:26]Method is POST - this is cgi request [19:06:26]url: /json_proto [19:06:26]query_string will be loaded in cgi processing [19:06:26]execute_cgi json_proto POST (null) [19:06:26]execute_cgi path=json_proto method=POST [19:06:26]POST find Content-Length [19:06:26]Host: 172.17.39.131:8080 [19:06:26]Content-Length: 677 [19:06:26]Content-Type: application/json [19:06:26] [19:06:26]POST finish read [19:06:26]Found Content-Length = 677 [19:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:26]execute_script... [19:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:26]POST & json_proto [19:06:26]process_json_proto [19:06:26]json parsed OK: [19:06:26]protocol is kg_v1.0 [19:06:26]action value=close_receipt [19:06:26]process_action close_receipt [19:06:26]cmd_close_receipt [19:06:26]MH_GetDate [19:06:26]Write to MH i2c: F0 00 00 15 46 4A [19:06:26]Write i2c OK [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 09 00 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: F0 09 00 15 46 00 B8 3D 1D 67 86 57 24 65 32 [19:06:26]GetLastDocTimeStamp 1729969535 [19:06:26]current date 1729969592 [19:06:26]FM_GetShiftState [19:06:26]SAM_PROTO_GetShiftState [19:06:26]wFMCommunicate request_size=4 [19:06:26]MH_SAM_APDU [19:06:26]CAPDU: 80 13 01 00 [19:06:26]Write to MH i2c: E2 08 00 16 46 80 13 01 00 00 00 00 00 D9 [19:06:26]Write i2c OK [19:06:26]MH_I2C_Read... [19:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:26]Read from MH i2c: E2 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: E2 0E 00 [19:06:26]MH_I2C_Read... [19:06:26]Read from MH i2c: E2 0E 00 16 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F4 [19:06:26]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:06:26]wFMCommunicate OK [19:06:26]SAM_PROTO_GetShiftState done [19:06:26]FM_GetShiftState done [19:06:26]opened in 1729902166 [19:06:26]opened+sec_in_day 1729988566 [19:06:26]quantity*price = 29034 [19:06:26]sum+1 = 29036 [19:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 180 26.10.2024 19:06 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75188 ФПД: 79952806645931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190632&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75188&fm=79952806645931&tin=02508201610067®Number=0000000000091691&sum=29000 [19:06:27]StoreToDocumentArchive [19:06:27]shift 512 fd 75188 [19:06:27]save to /storage/0512/doc_00075188 [19:06:27]save last doc name /storage/0512/doc_00075188 to /storage/kkm_last_doc_name [19:06:27]save OK [19:06:27]Clear old archive folders... [19:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:27]tlvbuf is 007FFC70 [19:06:27]SAM_PROTO_ClearQueue [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 09 00 00 [19:06:27]Write to MH i2c: E2 08 00 23 46 80 09 00 00 00 00 00 00 DB [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]OFD Sender: No OFD packet to send [19:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 23 46 00 90 00 DD [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]SAM_PROTO_ClearQueue done [19:06:27]KKMCreateOFDPacket [19:06:27]OFDProtocolAddRootSTLVToBuf [19:06:27]FM_MakeSignedData [19:06:27]FM_MakeSignedData [19:06:27]SAM_PROTO_SignData [19:06:27]wFMCommunicate request_size=4 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 01 02 [19:06:27]Write to MH i2c: E2 08 00 24 46 80 0D 01 02 00 00 00 00 E3 [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:27]Read from MH i2c: E2 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 [19:06:27]MH_I2C_Read... [19:06:27]Read from MH i2c: E2 03 00 24 46 00 90 00 DE [19:06:27]RAPDU: 90 00 [19:06:27]wFMCommunicate OK [19:06:27]wFMCommunicate request_size=255 [19:06:27]MH_SAM_APDU [19:06:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B8 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 25 01 00 35 04 06 00 48 [19:06:27]Write to MH i2c: E2 02 01 25 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B8 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 25 01 00 35 04 06 00 48 00 00 EB [19:06:27]Write i2c OK [19:06:27]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 25 46 00 90 00 DF [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=10 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 02 02 05 B7 76 A3 90 AB [19:06:28]Write to MH i2c: E2 0D 00 26 46 80 0D 02 02 05 00 B7 76 A3 90 AB 00 00 FB [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 03 00 26 46 00 90 00 E0 [19:06:28]RAPDU: 90 00 [19:06:28]wFMCommunicate OK [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 0D 03 02 [19:06:28]Write to MH i2c: E2 08 00 27 46 80 0D 03 02 00 00 00 00 E8 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0B 00 27 46 00 BB 16 CD C4 56 3C 93 F7 90 00 67 [19:06:28]RAPDU: BB 16 CD C4 56 3C 93 F7 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_SignData done [19:06:28]FM_MakeSignedData done [19:06:28]CreateOFDProtocolMessage [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 11 00 00 [19:06:28]Write to MH i2c: E2 08 00 28 46 80 11 00 00 00 00 00 00 E8 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 17 00 28 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [19:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:06:28]wFMCommunicate OK [19:06:28]CreateOFDProtocolMessage done [19:06:28]OFDSenderStorePacket 75188 [19:06:28]StoreOFDPacket docnum=75188 [19:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A0 00 07 01 B9 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B8 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 25 01 00 35 04 06 00 48 B7 76 A3 90 AB BB 16 CD C4 56 3C 93 F7 [19:06:28]CheckFolder [19:06:28]dirname=/storage/ofd_packets [19:06:28]CheckFolder done [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00075188 [19:06:28]NVStorageSaveData ofd_packets/00075188 [19:06:28]File name is /storage/ofd_packets/00075188 [19:06:28]Write 301 bytes [19:06:28]NVStorageSaveData done [19:06:28]OFDSenderStorePacket done [19:06:28]KKMCreateOFDPacket done [19:06:28]NVStorageSaveData kkm_last_timestamp [19:06:28]File name is /storage/kkm_last_timestamp [19:06:28]Write 4 bytes [19:06:28]NVStorageSaveData done [19:06:28]ExternCall_PrintAddStr [19:06:28]wPrintStart [19:06:28]Write to MH i2c: 01 00 00 29 46 6F [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: 01 07 00 29 46 00 00 00 00 00 FF 0F 84 [19:06:28]RasterBufferAndPrint [19:06:28]line Счет N : (1)191166 [19:06:28]line ИНН: 02508201610067 [19:06:28]line Контрольно-Кассовый Чек [19:06:28]line ПРОДАЖА [19:06:28]line ТРК (МРК, ГНК) : 21 [19:06:28]line Товар: 2710124130 [19:06:28]line Аи-92-К-5 [19:06:28]line 4.340 * 66.90 [19:06:28]line = 290.35 [19:06:28]line НДС 12% НСП 1% [19:06:28]line > о реализуемом товаре [19:06:28]line ОКРУГЛЕНИЕ: -0.35 [19:06:28]line ИТОГО: 290.00 [19:06:28]line Внесено: 290.00 [19:06:28]line СДАЧА: 0.00 [19:06:28]line НСП 1% : 2.57 [19:06:28]line НДС 12% : 30.83 [19:06:28]line Наличными: 290.00 [19:06:28]line Безнал.: 0.00 [19:06:28]line Место: АЗС № 142 "Партнер Нефть" [19:06:28]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:06:28]line СНО: Общий режим [19:06:28]line Чек 180 26.10.2024 19:06 [19:06:28]line Смена: 512 ФФД: 1.0 [19:06:28]line ЗНМ: 0300000089 [19:06:28]line РНМ: 0000000000091691 [19:06:28]line Версия ККМ: 001 [19:06:28]line ФМ: 0000000000871795 [19:06:28]line ФД: 75188 [19:06:28]line ФПД: 79952806645931 [19:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190632&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75188&fm=79952806645931&tin=02508201610067®Number=0000000000091691&sum=29000 [19:06:28]OFD Sender: Processing packet 75188 [packets to send 13, broken 12] [19:06:28]ProducePacketName [19:06:28]name=ofd_packets/00075188 [19:06:28]OFD Sender: To server: pG, [19:06:28]CommunicateWithHost lk.salyk.kg:30040 [19:06:28]ConnectInit lk.salyk.kg [19:06:28]written 0, free lines is 4095 [19:06:28]Connected sock=10 [19:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A0 00 07 01 B9 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B8 3D 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 25 01 00 35 04 06 00 48 B7 76 A3 90 AB BB 16 CD C4 56 3C 93 F7 [19:06:29]Write to MH i2c: 01 00 00 54 46 9A [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 54 46 00 00 00 00 00 BC 0C 69 [19:06:29]RasterBufferAndPrint [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]line [19:06:29]written 0, free lines is 3267 [19:06:29]MH_Cut [19:06:29]Write to MH i2c: D1 01 00 5B 46 01 73 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: D1 01 00 5B 46 00 72 [19:06:29]Write to MH i2c: 01 00 00 5C 46 A2 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 12 09 47 00 79 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B4 25 01 00 F4 03 04 00 34 E5 1C 67 B6 04 01 00 00 91 01 81 C0 22 79 AE 62 [19:06:29]CommunicateWithHost err = 0 [19:06:29]CheckOFDResponse [19:06:29]1017 (14) - 77093643461234 [19:06:29]1041 (16) - 0000000000871795 [19:06:29]1040 (4) - 75188 [19:06:29]1012 (4) - 26.10.2024 12:48 [19:06:29]1206 (1) - 0 [19:06:29]OFD Sender: Remove packet 75188 [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00075188 [19:06:29]NVStorageDeleteData [19:06:29]OFD Sender: No OFD packet to send [19:06:29]*** Cut start [19:06:29]*** Partial cut [19:06:29]*** CUTSNS_PIN = 1 [19:06:30]*** CUTSNS_PIN = 0 [19:06:30]*** Brake cut motor [19:06:30]Read from MH i2c: 01 [19:06:30]MH_I2C_Read... [19:06:30]*** Stop cut motor [19:06:30]*** Cut end [19:06:30]Read from MH i2c: 01 07 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: 01 07 00 5C 46 00 00 00 00 00 FF 0F B7 [19:06:30]process_action close_receipt done [19:06:30]requested_data is exist [19:06:30]produce_requested_data [19:06:30]requested_item fm.sn is exist - process it [19:06:30]wFMCommunicate request_size=4 [19:06:30]MH_SAM_APDU [19:06:30]CAPDU: 80 11 00 00 [19:06:30]Write to MH i2c: E2 08 00 5D 46 80 11 00 00 00 00 00 00 1D [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:30]Read from MH i2c: E2 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 17 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 17 00 5D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [19:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:06:30]wFMCommunicate OK [19:06:30]requested_item fd.num is exist - process it [19:06:30]SAM_PROTO_GetFieldsCounters [19:06:30]wFMCommunicate request_size=4 [19:06:30]MH_SAM_APDU [19:06:30]CAPDU: 80 13 00 00 [19:06:30]Write to MH i2c: E2 08 00 5E 46 80 13 00 00 00 00 00 00 20 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:30]Read from MH i2c: E2 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 62 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 62 00 5E 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B4 25 01 00 0E 04 04 00 00 02 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 3F [19:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B4 25 01 00 0E 04 04 00 00 02 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 [19:06:30]wFMCommunicate OK [19:06:30]SAM_PROTO_GetFieldsCounters done [19:06:30]requested_item shift.num is exist - process it [19:06:30]requested_item shift.opened is exist - process it [19:06:30]req_shift_opened [19:06:30]FM_GetShiftState [19:06:30]SAM_PROTO_GetShiftState [19:06:30]wFMCommunicate request_size=4 [19:06:30]MH_SAM_APDU [19:06:30]CAPDU: 80 13 01 00 [19:06:30]Write to MH i2c: E2 08 00 5F 46 80 13 01 00 00 00 00 00 22 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:30]Read from MH i2c: E2 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 0E 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: E2 0E 00 5F 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 3D [19:06:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:06:30]wFMCommunicate OK [19:06:30]SAM_PROTO_GetShiftState done [19:06:30]FM_GetShiftState done [19:06:30]req_shift_opened done [19:06:30]requested_item shift.open_date is exist - process it [19:06:30]req_shift_open_date [19:06:30]req_shift_open_date done [19:06:30]produce_requested_data done [19:06:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75188,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:06:30]process_action_free close_receipt [19:06:30]json_value_free [19:06:30]json_value_free done [19:06:30]process_json_proto returns [19:06:30]Send response to host [19:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75188,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:06:30]free response buf [19:06:30]execute_script done [19:06:30]execute_script returns [19:06:30]free content buf [19:06:30]Sock 8.Close socket [19:06:30]Sock 8.Thread stoped [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:48]int [19:06:48]Write to MH i2c: 01 00 00 60 46 A6 [19:06:48]*** FLAG_PRN_KEY set [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 60 46 00 08 00 00 00 FF 0F C3 [19:06:48]state=0 [19:06:48]Key pressed [19:06:48]Feed [19:06:48]Write to MH i2c: D8 00 00 61 46 7E [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D8 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D8 01 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D8 01 00 61 46 00 7F [19:06:48]int [19:06:48]Write to MH i2c: 01 00 00 62 46 A8 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 62 46 00 48 00 00 00 3C 00 33 [19:06:48]state=2 [19:06:48]Key pressed [19:06:48]int [19:06:48]Write to MH i2c: 01 00 00 63 46 A9 [19:06:48]*** FLAG_PRN_KEY reset [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 63 46 00 00 00 00 00 F5 0F B4 [19:06:48]state=2 [19:06:48]Stop feed [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:10]accept exits with 9 [19:08:10]New connection [19:08:10]New thread 3066781028 created [19:08:10]Thread 3066924388 joined [19:08:10]Waiting for new connection... [19:08:10] Sock 9.Parse request [19:08:10]Sock 9.Check first char [19:08:10]Sock 9.First char is OK [19:08:10]request: POST /json_proto HTTP/1.0 [19:08:10]Method: POST [19:08:10]URL: /json_proto [19:08:10]Method is POST - this is cgi request [19:08:10]url: /json_proto [19:08:10]query_string will be loaded in cgi processing [19:08:10]execute_cgi json_proto POST (null) [19:08:10]execute_cgi path=json_proto method=POST [19:08:10]POST find Content-Length [19:08:10]Host: 172.17.39.131:8080 [19:08:10]Content-Length: 682 [19:08:10]Content-Type: application/json [19:08:10] [19:08:10]POST finish read [19:08:10]Found Content-Length = 682 [19:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [19:08:10]execute_script... [19:08: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)191167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [19:08:10]POST & json_proto [19:08:10]process_json_proto [19:08:10]json parsed OK: [19:08:10]protocol is kg_v1.0 [19:08:10]action value=close_receipt [19:08:10]process_action close_receipt [19:08:10]cmd_close_receipt [19:08:10]MH_GetDate [19:08:10]Write to MH i2c: F0 00 00 64 46 99 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 09 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: F0 09 00 64 46 00 20 3E 1D 67 86 57 24 65 EA [19:08:10]GetLastDocTimeStamp 1729969592 [19:08:10]current date 1729969696 [19:08:10]FM_GetShiftState [19:08:10]SAM_PROTO_GetShiftState [19:08:10]wFMCommunicate request_size=4 [19:08:10]MH_SAM_APDU [19:08:10]CAPDU: 80 13 01 00 [19:08:10]Write to MH i2c: E2 08 00 65 46 80 13 01 00 00 00 00 00 28 [19:08:10]Write i2c OK [19:08:10]MH_I2C_Read... [19:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:10]Read from MH i2c: E2 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 0E 00 [19:08:10]MH_I2C_Read... [19:08:10]Read from MH i2c: E2 0E 00 65 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 43 [19:08:10]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:08:10]wFMCommunicate OK [19:08:10]SAM_PROTO_GetShiftState done [19:08:10]FM_GetShiftState done [19:08:10]opened in 1729902166 [19:08:10]opened+sec_in_day 1729988566 [19:08:10]quantity*price = 150056 [19:08:10]sum+1 = 150058 [19:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 181 26.10.2024 19:08 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75189 ФПД: 163036128281557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190816&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75189&fm=163036128281557&tin=02508201610067®Number=0000000000091691&sum=150000 [19:08:11]StoreToDocumentArchive [19:08:11]shift 512 fd 75189 [19:08:11]save to /storage/0512/doc_00075189 [19:08:11]save last doc name /storage/0512/doc_00075189 to /storage/kkm_last_doc_name [19:08:11]save OK [19:08:11]Clear old archive folders... [19:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:11]tlvbuf is 0090C080 [19:08:11]SAM_PROTO_ClearQueue [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 09 00 00 [19:08:11]Write to MH i2c: E2 08 00 72 46 80 09 00 00 00 00 00 00 2A [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 72 46 00 90 00 2C [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_ClearQueue done [19:08:11]KKMCreateOFDPacket [19:08:11]OFDProtocolAddRootSTLVToBuf [19:08:11]FM_MakeSignedData [19:08:11]FM_MakeSignedData [19:08:11]SAM_PROTO_SignData [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 01 02 [19:08:11]Write to MH i2c: E2 08 00 73 46 80 0D 01 02 00 00 00 00 32 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 73 46 00 90 00 2D [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=255 [19:08:11]MH_SAM_APDU [19:08: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 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 B5 00 00 00 F4 03 04 00 20 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 25 01 00 35 04 06 00 94 [19:08:11]Write to MH i2c: E2 02 01 74 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 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 B5 00 00 00 F4 03 04 00 20 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 25 01 00 35 04 06 00 94 00 00 18 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 74 46 00 90 00 2E [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=10 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 02 02 05 47 CE 83 03 D5 [19:08:11]Write to MH i2c: E2 0D 00 75 46 80 0D 02 02 05 00 47 CE 83 03 D5 00 00 AF [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 75 46 00 90 00 2F [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 03 02 [19:08:11]Write to MH i2c: E2 08 00 76 46 80 0D 03 02 00 00 00 00 37 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 76 46 00 B5 36 29 0F 59 09 5E 82 90 00 9D [19:08:11]RAPDU: B5 36 29 0F 59 09 5E 82 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_SignData done [19:08:11]FM_MakeSignedData done [19:08:11]CreateOFDProtocolMessage [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 77 46 80 11 00 00 00 00 00 00 37 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 77 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8F [19:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:08:11]wFMCommunicate OK [19:08:11]CreateOFDProtocolMessage done [19:08:11]OFDSenderStorePacket 75189 [19:08:11]StoreOFDPacket docnum=75189 [19:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E5 DF 07 01 46 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B5 00 00 00 F4 03 04 00 20 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 25 01 00 35 04 06 00 94 47 CE 83 03 D5 B5 36 29 0F 59 09 5E 82 [19:08:11]CheckFolder [19:08:11]dirname=/storage/ofd_packets [19:08:11]CheckFolder done [19:08:11]ProducePacketName [19:08:11]name=ofd_packets/00075189 [19:08:11]NVStorageSaveData ofd_packets/00075189 [19:08:11]File name is /storage/ofd_packets/00075189 [19:08:11]Write 301 bytes [19:08:11]NVStorageSaveData done [19:08:11]OFDSenderStorePacket done [19:08:11]KKMCreateOFDPacket done [19:08:11]NVStorageSaveData kkm_last_timestamp [19:08:11]File name is /storage/kkm_last_timestamp [19:08:11]Write 4 bytes [19:08:11]NVStorageSaveData done [19:08:11]ExternCall_PrintAddStr [19:08:11]wPrintStart [19:08:11]Write to MH i2c: 01 00 00 78 46 BE [19:08:11]OFD Sender: Processing packet 75189 [packets to send 13, broken 12] [19:08:11]ProducePacketName [19:08:11]name=ofd_packets/00075189 [19:08:11]OFD Sender: To server: pG, [19:08:11]CommunicateWithHost lk.salyk.kg:30040 [19:08:11]ConnectInit lk.salyk.kg [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 78 46 00 00 00 00 00 FF 0F D3 [19:08:11]RasterBufferAndPrint [19:08:11]line Счет N : (1)191167 [19:08:11]line ИНН: 02508201610067 [19:08:11]line Контрольно-Кассовый Чек [19:08:12]line ПРОДАЖА [19:08:12]line ТРК (МРК, ГНК) : 21 [19:08:12]line Товар: 2710124130 [19:08:12]line Аи-92-К-5 [19:08:12]line 22.430 * 66.90 [19:08:12]line = 1500.57 [19:08:12]line НДС 12% НСП 1% [19:08:12]line > о реализуемом товаре [19:08:12]line ОКРУГЛЕНИЕ: -0.57 [19:08:12]line ИТОГО: 1500.00 [19:08:12]line Внесено: 1500.00 [19:08:12]line СДАЧА: 0.00 [19:08:12]line НСП 1% : 13.28 [19:08:12]line НДС 12% : 159.35 [19:08:12]line Наличными: 1500.00 [19:08:12]line Безнал.: 0.00 [19:08:12]line Место: АЗС № 142 "Партнер Нефть" [19:08:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:08:12]line СНО: Общий режим [19:08:12]line Чек 181 26.10.2024 19:08 [19:08:12]line Смена: 512 ФФД: 1.0 [19:08:12]line ЗНМ: 0300000089 [19:08:12]line РНМ: 0000000000091691 [19:08:12]line Версия ККМ: 001 [19:08:12]line ФМ: 0000000000871795 [19:08:12]line ФД: 75189 [19:08:12]line ФПД: 163036128281557 [19:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190816&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75189&fm=163036128281557&tin=02508201610067®Number=0000000000091691&sum=150000 [19:08:12]Connected sock=10 [19:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E5 DF 07 01 46 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B5 00 00 00 F4 03 04 00 20 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 25 01 00 35 04 06 00 94 47 CE 83 03 D5 B5 36 29 0F 59 09 5E 82 [19:08:12]written 0, free lines is 4095 [19:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4A 37 47 00 54 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B5 25 01 00 F4 03 04 00 9B E5 1C 67 B6 04 01 00 00 D4 D3 84 EE 75 4C 43 D7 [19:08:12]CommunicateWithHost err = 0 [19:08:12]CheckOFDResponse [19:08:12]1017 (14) - 77093643461234 [19:08:12]1041 (16) - 0000000000871795 [19:08:12]1040 (4) - 75189 [19:08:12]1012 (4) - 26.10.2024 12:50 [19:08:12]1206 (1) - 0 [19:08:12]OFD Sender: Remove packet 75189 [19:08:12]ProducePacketName [19:08:12]name=ofd_packets/00075189 [19:08:12]NVStorageDeleteData [19:08:12]Write to MH i2c: 01 00 00 A3 46 E9 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 A3 46 00 00 00 00 00 A7 0C A3 [19:08:12]RasterBufferAndPrint [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]written 0, free lines is 3245 [19:08:12]MH_Cut [19:08:12]Write to MH i2c: D1 01 00 AA 46 01 C2 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 AA 46 00 C1 [19:08:12]Write to MH i2c: 01 00 00 AB 46 F1 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:13]OFD Sender: No OFD packet to send [19:08:13]*** Cut start [19:08:13]*** Partial cut [19:08:13]*** CUTSNS_PIN = 1 [19:08:13]*** CUTSNS_PIN = 0 [19:08:13]*** Brake cut motor [19:08:14]Read from MH i2c: 01 [19:08:14]MH_I2C_Read... [19:08:14]*** Stop cut motor [19:08:14]*** Cut end [19:08:14]Read from MH i2c: 01 07 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 07 00 AB 46 00 00 00 00 00 FF 0F 06 [19:08:14]process_action close_receipt done [19:08:14]requested_data is exist [19:08:14]produce_requested_data [19:08:14]requested_item fm.sn is exist - process it [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 11 00 00 [19:08:14]Write to MH i2c: E2 08 00 AC 46 80 11 00 00 00 00 00 00 6C [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 AC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C4 [19:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:08:14]wFMCommunicate OK [19:08:14]requested_item fd.num is exist - process it [19:08:14]SAM_PROTO_GetFieldsCounters [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 00 00 [19:08:14]Write to MH i2c: E2 08 00 AD 46 80 13 00 00 00 00 00 00 6F [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 AD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B5 25 01 00 0E 04 04 00 00 02 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 92 [19:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B5 25 01 00 0E 04 04 00 00 02 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 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetFieldsCounters done [19:08:14]requested_item shift.num is exist - process it [19:08:14]requested_item shift.opened is exist - process it [19:08:14]req_shift_opened [19:08:14]FM_GetShiftState [19:08:14]SAM_PROTO_GetShiftState [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 01 00 [19:08:14]Write to MH i2c: E2 08 00 AE 46 80 13 01 00 00 00 00 00 71 [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 AE 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8C [19:08:14]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetShiftState done [19:08:14]FM_GetShiftState done [19:08:14]req_shift_opened done [19:08:14]requested_item shift.open_date is exist - process it [19:08:14]req_shift_open_date [19:08:14]req_shift_open_date done [19:08:14]produce_requested_data done [19:08:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75189,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:08:14]process_action_free close_receipt [19:08:14]json_value_free [19:08:14]json_value_free done [19:08:14]process_json_proto returns [19:08:14]Send response to host [19:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75189,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:08:14]free response buf [19:08:14]execute_script done [19:08:14]execute_script returns [19:08:14]free content buf [19:08:14]Sock 9.Close socket [19:08:14]Sock 9.Thread stoped [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:37]accept exits with 8 [19:08:37]New connection [19:08:37]New thread 3066924388 created [19:08:37]Thread 3066781028 joined [19:08:37]Waiting for new connection... [19:08:37] Sock 8.Parse request [19:08:37]Sock 8.Check first char [19:08:37]Sock 8.First char is OK [19:08:37]request: POST /json_proto HTTP/1.0 [19:08:37]Method: POST [19:08:37]URL: /json_proto [19:08:37]Method is POST - this is cgi request [19:08:37]url: /json_proto [19:08:37]query_string will be loaded in cgi processing [19:08:37]execute_cgi json_proto POST (null) [19:08:37]execute_cgi path=json_proto method=POST [19:08:37]POST find Content-Length [19:08:37]Host: 172.17.39.131:8080 [19:08:37]Content-Length: 677 [19:08:37]Content-Type: application/json [19:08:37] [19:08:37]POST finish read [19:08:37]Found Content-Length = 677 [19:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:08:37]execute_script... [19:08: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)191168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:08:37]POST & json_proto [19:08:37]process_json_proto [19:08:37]json parsed OK: [19:08:37]protocol is kg_v1.0 [19:08:37]action value=close_receipt [19:08:37]process_action close_receipt [19:08:37]cmd_close_receipt [19:08:37]MH_GetDate [19:08:37]Write to MH i2c: F0 00 00 AF 46 E4 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 09 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 09 00 AF 46 00 3B 3E 1D 67 86 57 24 65 50 [19:08:37]GetLastDocTimeStamp 1729969696 [19:08:37]current date 1729969723 [19:08:37]FM_GetShiftState [19:08:37]SAM_PROTO_GetShiftState [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 13 01 00 [19:08:37]Write to MH i2c: E2 08 00 B0 46 80 13 01 00 00 00 00 00 73 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 B0 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8E [19:08:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_GetShiftState done [19:08:37]FM_GetShiftState done [19:08:37]opened in 1729902166 [19:08:37]opened+sec_in_day 1729988566 [19:08:37]quantity*price = 50041 [19:08:37]sum+1 = 50042 [19:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 182 26.10.2024 19:08 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75190 ФПД: 224708578781655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190844&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75190&fm=224708578781655&tin=02508201610067®Number=0000000000091691&sum=50000 [19:08:38]StoreToDocumentArchive [19:08:38]shift 512 fd 75190 [19:08:38]save to /storage/0512/doc_00075190 [19:08:38]save last doc name /storage/0512/doc_00075190 to /storage/kkm_last_doc_name [19:08:38]save OK [19:08:38]Clear old archive folders... [19:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:38]tlvbuf is 00800150 [19:08:38]SAM_PROTO_ClearQueue [19:08:38]wFMCommunicate request_size=4 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 09 00 00 [19:08:38]Write to MH i2c: E2 08 00 BD 46 80 09 00 00 00 00 00 00 75 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 BD 46 00 90 00 77 [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_ClearQueue done [19:08:39]KKMCreateOFDPacket [19:08:39]OFDProtocolAddRootSTLVToBuf [19:08:39]FM_MakeSignedData [19:08:39]FM_MakeSignedData [19:08:39]SAM_PROTO_SignData [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 0D 01 02 [19:08:39]Write to MH i2c: E2 08 00 BE 46 80 0D 01 02 00 00 00 00 7D [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 BE 46 00 90 00 78 [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]wFMCommunicate request_size=255 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3C 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 25 01 00 35 04 06 00 CC [19:08:39]Write to MH i2c: E2 02 01 BF 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3C 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 25 01 00 35 04 06 00 CC 00 00 70 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 BF 46 00 90 00 79 [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]wFMCommunicate request_size=10 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 0D 02 02 05 5F 0B 04 29 D7 [19:08:39]Write to MH i2c: E2 0D 00 C0 46 80 0D 02 02 05 00 5F 0B 04 29 D7 00 00 F8 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 C0 46 00 90 00 7A [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 0D 03 02 [19:08:39]Write to MH i2c: E2 08 00 C1 46 80 0D 03 02 00 00 00 00 82 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0B 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0B 00 C1 46 00 0B F5 D4 31 F9 F3 6E 85 90 00 67 [19:08:39]RAPDU: 0B F5 D4 31 F9 F3 6E 85 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_SignData done [19:08:39]FM_MakeSignedData done [19:08:39]CreateOFDProtocolMessage [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 11 00 00 [19:08:39]Write to MH i2c: E2 08 00 C2 46 80 11 00 00 00 00 00 00 82 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 C2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DA [19:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:08:39]wFMCommunicate OK [19:08:39]CreateOFDProtocolMessage done [19:08:39]OFDSenderStorePacket 75190 [19:08:39]StoreOFDPacket docnum=75190 [19:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 13 83 07 01 43 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3C 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 25 01 00 35 04 06 00 CC 5F 0B 04 29 D7 0B F5 D4 31 F9 F3 6E 85 [19:08:39]CheckFolder [19:08:39]dirname=/storage/ofd_packets [19:08:39]CheckFolder done [19:08:39]ProducePacketName [19:08:39]name=ofd_packets/00075190 [19:08:39]NVStorageSaveData ofd_packets/00075190 [19:08:39]File name is /storage/ofd_packets/00075190 [19:08:39]Write 301 bytes [19:08:39]NVStorageSaveData done [19:08:39]OFDSenderStorePacket done [19:08:39]KKMCreateOFDPacket done [19:08:39]NVStorageSaveData kkm_last_timestamp [19:08:39]File name is /storage/kkm_last_timestamp [19:08:39]Write 4 bytes [19:08:39]OFD Sender: Processing packet 75190 [packets to send 13, broken 12] [19:08:39]ProducePacketName [19:08:39]name=ofd_packets/00075190 [19:08:39]OFD Sender: To server: pG, [19:08:39]CommunicateWithHost lk.salyk.kg:30040 [19:08:39]ConnectInit lk.salyk.kg [19:08:39]NVStorageSaveData done [19:08:39]ExternCall_PrintAddStr [19:08:39]wPrintStart [19:08:39]Write to MH i2c: 01 00 00 C3 46 09 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 C3 46 00 00 00 00 00 FF 0F 1E [19:08:39]RasterBufferAndPrint [19:08:39]line Счет N : (1)191168 [19:08:39]line ИНН: 02508201610067 [19:08:39]line Контрольно-Кассовый Чек [19:08:39]line ПРОДАЖА [19:08:39]line ТРК (МРК, ГНК) : 21 [19:08:39]line Товар: 2710124130 [19:08:39]line Аи-92-К-5 [19:08:39]line 7.480 * 66.90 [19:08:39]line = 500.41 [19:08:39]line НДС 12% НСП 1% [19:08:39]line > о реализуемом товаре [19:08:39]line ОКРУГЛЕНИЕ: -0.41 [19:08:39]line ИТОГО: 500.00 [19:08:39]line Внесено: 500.00 [19:08:39]line СДАЧА: 0.00 [19:08:39]line НСП 1% : 4.43 [19:08:39]line НДС 12% : 53.14 [19:08:39]line Наличными: 500.00 [19:08:39]line Безнал.: 0.00 [19:08:39]line Место: АЗС № 142 "Партнер Нефть" [19:08:39]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:08:39]line СНО: Общий режим [19:08:39]line Чек 182 26.10.2024 19:08 [19:08:39]line Смена: 512 ФФД: 1.0 [19:08:39]line ЗНМ: 0300000089 [19:08:39]line РНМ: 0000000000091691 [19:08:39]line Версия ККМ: 001 [19:08:39]line ФМ: 0000000000871795 [19:08:39]line ФД: 75190 [19:08:39]line ФПД: 224708578781655 [19:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190844&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75190&fm=224708578781655&tin=02508201610067®Number=0000000000091691&sum=50000 [19:08:39]Connected sock=11 [19:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 13 83 07 01 43 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3C 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B6 25 01 00 35 04 06 00 CC 5F 0B 04 29 D7 0B F5 D4 31 F9 F3 6E 85 [19:08:39]written 0, free lines is 4095 [19:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 A8 A7 47 00 66 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 38 37 31 37 39 35 10 04 04 00 B6 25 01 00 F4 03 04 00 B7 E5 1C 67 B6 04 01 00 00 0D E0 A9 D0 74 DF 16 70 [19:08:40]CommunicateWithHost err = 0 [19:08:40]CheckOFDResponse [19:08:40]1017 (14) - 77093643461234 [19:08:40]1041 (16) - 0000000000871795 [19:08:40]1040 (4) - 75190 [19:08:40]1012 (4) - 26.10.2024 12:51 [19:08:40]1206 (1) - 0 [19:08:40]OFD Sender: Remove packet 75190 [19:08:40]ProducePacketName [19:08:40]name=ofd_packets/00075190 [19:08:40]NVStorageDeleteData [19:08:40]Write to MH i2c: 01 00 00 EE 46 34 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 07 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 07 00 EE 46 00 00 00 00 00 AA 0C F1 [19:08:40]RasterBufferAndPrint [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]written 0, free lines is 3248 [19:08:40]MH_Cut [19:08:40]Write to MH i2c: D1 01 00 F5 46 01 0D [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 01 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 01 00 F5 46 00 0C [19:08:40]Write to MH i2c: 01 00 00 F6 46 3C [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]OFD Sender: No OFD packet to send [19:08:41]*** Cut start [19:08:41]*** Partial cut [19:08:41]*** CUTSNS_PIN = 1 [19:08:41]*** CUTSNS_PIN = 0 [19:08:41]*** Brake cut motor [19:08:41]Read from MH i2c: 01 [19:08:41]MH_I2C_Read... [19:08:41]*** Stop cut motor [19:08:41]*** Cut end [19:08:41]Read from MH i2c: 01 07 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: 01 07 00 F6 46 00 00 00 00 00 FF 0F 51 [19:08:41]process_action close_receipt done [19:08:41]requested_data is exist [19:08:41]produce_requested_data [19:08:41]requested_item fm.sn is exist - process it [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 11 00 00 [19:08:41]Write to MH i2c: E2 08 00 F7 46 80 11 00 00 00 00 00 00 B7 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 F7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0F [19:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:08:41]wFMCommunicate OK [19:08:41]requested_item fd.num is exist - process it [19:08:41]SAM_PROTO_GetFieldsCounters [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 13 00 00 [19:08:41]Write to MH i2c: E2 08 00 F8 46 80 13 00 00 00 00 00 00 BA [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 62 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 62 00 F8 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B6 25 01 00 0E 04 04 00 00 02 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 E1 [19:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B6 25 01 00 0E 04 04 00 00 02 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 [19:08:42]wFMCommunicate OK [19:08:42]SAM_PROTO_GetFieldsCounters done [19:08:42]requested_item shift.num is exist - process it [19:08:42]requested_item shift.opened is exist - process it [19:08:42]req_shift_opened [19:08:42]FM_GetShiftState [19:08:42]SAM_PROTO_GetShiftState [19:08:42]wFMCommunicate request_size=4 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 13 01 00 [19:08:42]Write to MH i2c: E2 08 00 F9 46 80 13 01 00 00 00 00 00 BC [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 0E 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 0E 00 F9 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D7 [19:08:42]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:08:42]wFMCommunicate OK [19:08:42]SAM_PROTO_GetShiftState done [19:08:42]FM_GetShiftState done [19:08:42]req_shift_opened done [19:08:42]requested_item shift.open_date is exist - process it [19:08:42]req_shift_open_date [19:08:42]req_shift_open_date done [19:08:42]produce_requested_data done [19:08:42]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75190,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:08:42]process_action_free close_receipt [19:08:42]json_value_free [19:08:42]json_value_free done [19:08:42]process_json_proto returns [19:08:42]Send response to host [19:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75190,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:08:42]free response buf [19:08:42]execute_script done [19:08:42]execute_script returns [19:08:42]free content buf [19:08:42]Sock 8.Close socket [19:08:42]Sock 8.Thread stoped [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:41]accept exits with 9 [19:10:41]New connection [19:10:41]New thread 3066781028 created [19:10:41]Thread 3066924388 joined [19:10:41]Waiting for new connection... [19:10:41] Sock 9.Parse request [19:10:41]Sock 9.Check first char [19:10:41]Sock 9.First char is OK [19:10:41]request: POST /json_proto HTTP/1.0 [19:10:41]Method: POST [19:10:41]URL: /json_proto [19:10:41]Method is POST - this is cgi request [19:10:41]url: /json_proto [19:10:41]query_string will be loaded in cgi processing [19:10:41]execute_cgi json_proto POST (null) [19:10:41]execute_cgi path=json_proto method=POST [19:10:41]POST find Content-Length [19:10:41]Host: 172.17.39.131:8080 [19:10:41]Content-Length: 682 [19:10:41]Content-Type: application/json [19:10:41] [19:10:41]POST finish read [19:10:41]Found Content-Length = 682 [19:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:10:41]execute_script... [19:10: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)191169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:10:41]POST & json_proto [19:10:41]process_json_proto [19:10:41]json parsed OK: [19:10:41]protocol is kg_v1.0 [19:10:41]action value=close_receipt [19:10:41]process_action close_receipt [19:10:41]cmd_close_receipt [19:10:41]MH_GetDate [19:10:41]Write to MH i2c: F0 00 00 FA 46 2F [19:10:41]Write i2c OK [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 09 00 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 09 00 FA 46 00 B7 3E 1D 67 86 57 24 65 17 [19:10:41]GetLastDocTimeStamp 1729969724 [19:10:41]current date 1729969847 [19:10:41]FM_GetShiftState [19:10:41]SAM_PROTO_GetShiftState [19:10:41]wFMCommunicate request_size=4 [19:10:41]MH_SAM_APDU [19:10:41]CAPDU: 80 13 01 00 [19:10:41]Write to MH i2c: E2 08 00 FB 46 80 13 01 00 00 00 00 00 BE [19:10:41]Write i2c OK [19:10:41]MH_I2C_Read... [19:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:41]Read from MH i2c: E2 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: E2 0E 00 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: E2 0E 00 FB 46 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 D9 [19:10:41]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:10:41]wFMCommunicate OK [19:10:41]SAM_PROTO_GetShiftState done [19:10:41]FM_GetShiftState done [19:10:41]opened in 1729902166 [19:10:41]opened+sec_in_day 1729988566 [19:10:41]quantity*price = 100015 [19:10:41]sum+1 = 100017 [19:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 183 26.10.2024 19:10 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75191 ФПД: 161175219649855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191047&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75191&fm=161175219649855&tin=02508201610067®Number=0000000000091691&sum=100000 [19:10:42]StoreToDocumentArchive [19:10:42]shift 512 fd 75191 [19:10:42]save to /storage/0512/doc_00075191 [19:10:42]save last doc name /storage/0512/doc_00075191 to /storage/kkm_last_doc_name [19:10:42]save OK [19:10:42]Clear old archive folders... [19:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:42]tlvbuf is 00918E30 [19:10:42]SAM_PROTO_ClearQueue [19:10:42]wFMCommunicate request_size=4 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 09 00 00 [19:10:42]Write to MH i2c: E2 08 00 08 47 80 09 00 00 00 00 00 00 C1 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 08 47 00 90 00 C3 [19:10:42]RAPDU: 90 00 [19:10:42]wFMCommunicate OK [19:10:42]SAM_PROTO_ClearQueue done [19:10:42]KKMCreateOFDPacket [19:10:42]OFDProtocolAddRootSTLVToBuf [19:10:42]FM_MakeSignedData [19:10:42]FM_MakeSignedData [19:10:42]SAM_PROTO_SignData [19:10:42]wFMCommunicate request_size=4 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 0D 01 02 [19:10:42]Write to MH i2c: E2 08 00 09 47 80 0D 01 02 00 00 00 00 C9 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 09 47 00 90 00 C4 [19:10:42]RAPDU: 90 00 [19:10:42]wFMCommunicate OK [19:10:42]wFMCommunicate request_size=255 [19:10:42]MH_SAM_APDU [19:10: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 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 B7 00 00 00 F4 03 04 00 B7 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 25 01 00 35 04 06 00 92 [19:10:42]Write to MH i2c: E2 02 01 0A 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 B7 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 25 01 00 35 04 06 00 92 00 00 F9 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 0A 47 00 90 00 C5 [19:10:42]RAPDU: 90 00 [19:10:42]wFMCommunicate OK [19:10:42]wFMCommunicate request_size=10 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 0D 02 02 05 96 87 B6 BD 3F [19:10:42]Write to MH i2c: E2 0D 00 0B 47 80 0D 02 02 05 00 96 87 B6 BD 3F 00 00 A5 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 03 00 0B 47 00 90 00 C6 [19:10:42]RAPDU: 90 00 [19:10:42]wFMCommunicate OK [19:10:42]wFMCommunicate request_size=4 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 0D 03 02 [19:10:42]Write to MH i2c: E2 08 00 0C 47 80 0D 03 02 00 00 00 00 CE [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 0B 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 0B 00 0C 47 00 4C 37 60 65 BF E2 7B 3A 90 00 6D [19:10:42]RAPDU: 4C 37 60 65 BF E2 7B 3A 90 00 [19:10:42]wFMCommunicate OK [19:10:42]SAM_PROTO_SignData done [19:10:42]FM_MakeSignedData done [19:10:42]CreateOFDProtocolMessage [19:10:42]wFMCommunicate request_size=4 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 11 00 00 [19:10:42]Write to MH i2c: E2 08 00 0D 47 80 11 00 00 00 00 00 00 CE [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 17 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 17 00 0D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 26 [19:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:10:42]wFMCommunicate OK [19:10:42]CreateOFDProtocolMessage done [19:10:42]OFDSenderStorePacket 75191 [19:10:42]StoreOFDPacket docnum=75191 [19:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F6 14 07 01 D5 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 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 B7 00 00 00 F4 03 04 00 B7 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 25 01 00 35 04 06 00 92 96 87 B6 BD 3F 4C 37 60 65 BF E2 7B 3A [19:10:42]CheckFolder [19:10:42]dirname=/storage/ofd_packets [19:10:42]CheckFolder done [19:10:42]ProducePacketName [19:10:42]name=ofd_packets/00075191 [19:10:42]NVStorageSaveData ofd_packets/00075191 [19:10:42]File name is /storage/ofd_packets/00075191 [19:10:42]Write 301 bytes [19:10:42]NVStorageSaveData done [19:10:42]OFDSenderStorePacket done [19:10:42]KKMCreateOFDPacket done [19:10:42]NVStorageSaveData kkm_last_timestamp [19:10:42]File name is /storage/kkm_last_timestamp [19:10:42]Write 4 bytes [19:10:42]NVStorageSaveData done [19:10:42]ExternCall_PrintAddStr [19:10:42]wPrintStart [19:10:42]Write to MH i2c: 01 00 00 0E 47 55 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: 01 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: 01 07 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: 01 07 00 0E 47 00 00 00 00 00 FF 0F 6A [19:10:42]RasterBufferAndPrint [19:10:42]line Счет N : (1)191169 [19:10:42]line ИНН: 02508201610067 [19:10:42]line Контрольно-Кассовый Чек [19:10:42]line ПРОДАЖА [19:10:42]line ТРК (МРК, ГНК) : 21 [19:10:42]line Товар: 2710124130 [19:10:42]line Аи-92-К-5 [19:10:42]line 14.950 * 66.90 [19:10:42]line = 1000.16 [19:10:42]line НДС 12% НСП 1% [19:10:42]line > о реализуемом товаре [19:10:42]line ОКРУГЛЕНИЕ: -0.16 [19:10:42]line ИТОГО: 1000.00 [19:10:42]line Внесено: 1000.00 [19:10:42]line СДАЧА: 0.00 [19:10:42]line НСП 1% : 8.85 [19:10:42]line НДС 12% : 106.21 [19:10:42]line Наличными: 1000.00 [19:10:42]line Безнал.: 0.00 [19:10:42]line Место: АЗС № 142 "Партнер Нефть" [19:10:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:10:42]line СНО: Общий режим [19:10:42]line Чек 183 26.10.2024 19:10 [19:10:42]line Смена: 512 ФФД: 1.0 [19:10:42]line ЗНМ: 0300000089 [19:10:42]line РНМ: 0000000000091691 [19:10:42]line Версия ККМ: 001 [19:10:42]line ФМ: 0000000000871795 [19:10:42]line ФД: 75191 [19:10:42]line ФПД: 161175219649855 [19:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191047&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75191&fm=161175219649855&tin=02508201610067®Number=0000000000091691&sum=100000 [19:10:43]OFD Sender: Processing packet 75191 [packets to send 13, broken 12] [19:10:43]ProducePacketName [19:10:43]name=ofd_packets/00075191 [19:10:43]OFD Sender: To server: pG, [19:10:43]CommunicateWithHost lk.salyk.kg:30040 [19:10:43]ConnectInit lk.salyk.kg [19:10:43]written 0, free lines is 4095 [19:10:43]Connected sock=11 [19:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 F6 14 07 01 D5 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 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 B7 00 00 00 F4 03 04 00 B7 3E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 25 01 00 35 04 06 00 92 96 87 B6 BD 3F 4C 37 60 65 BF E2 7B 3A [19:10:43]Write to MH i2c: 01 00 00 39 47 80 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 07 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 07 00 39 47 00 00 00 00 00 B3 0C 46 [19:10:43]RasterBufferAndPrint [19:10:43]line [19:10:43]line [19:10:43]line [19:10:43]line [19:10:43]line [19:10:43]written 0, free lines is 3256 [19:10:43]MH_Cut [19:10:43]Write to MH i2c: D1 01 00 40 47 01 59 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: D1 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: D1 01 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: D1 01 00 40 47 00 58 [19:10:43]Write to MH i2c: 01 00 00 41 47 88 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 F5 69 47 00 7B BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B7 25 01 00 F4 03 04 00 32 E6 1C 67 B6 04 01 00 00 13 F5 4B 13 04 CF 5F 3B [19:10:43]CommunicateWithHost err = 0 [19:10:43]CheckOFDResponse [19:10:43]1017 (14) - 77093643461234 [19:10:43]1041 (16) - 0000000000871795 [19:10:43]1040 (4) - 75191 [19:10:43]1012 (4) - 26.10.2024 12:53 [19:10:43]1206 (1) - 0 [19:10:43]OFD Sender: Remove packet 75191 [19:10:43]ProducePacketName [19:10:43]name=ofd_packets/00075191 [19:10:43]NVStorageDeleteData [19:10:44]OFD Sender: No OFD packet to send [19:10:44]*** Cut start [19:10:44]*** Partial cut [19:10:44]*** CUTSNS_PIN = 1 [19:10:44]*** CUTSNS_PIN = 0 [19:10:44]*** Brake cut motor [19:10:45]Read from MH i2c: 01 [19:10:45]MH_I2C_Read... [19:10:45]*** Stop cut motor [19:10:45]*** Cut end [19:10:45]Read from MH i2c: 01 07 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: 01 07 00 41 47 00 00 00 00 00 FF 0F 9D [19:10:45]process_action close_receipt done [19:10:45]requested_data is exist [19:10:45]produce_requested_data [19:10:45]requested_item fm.sn is exist - process it [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 11 00 00 [19:10:45]Write to MH i2c: E2 08 00 42 47 80 11 00 00 00 00 00 00 03 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 17 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 17 00 42 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5B [19:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:10:45]wFMCommunicate OK [19:10:45]requested_item fd.num is exist - process it [19:10:45]SAM_PROTO_GetFieldsCounters [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 13 00 00 [19:10:45]Write to MH i2c: E2 08 00 43 47 80 13 00 00 00 00 00 00 06 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 62 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 62 00 43 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B7 25 01 00 0E 04 04 00 00 02 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 31 [19:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B7 25 01 00 0E 04 04 00 00 02 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 [19:10:45]wFMCommunicate OK [19:10:45]SAM_PROTO_GetFieldsCounters done [19:10:45]requested_item shift.num is exist - process it [19:10:45]requested_item shift.opened is exist - process it [19:10:45]req_shift_opened [19:10:45]FM_GetShiftState [19:10:45]SAM_PROTO_GetShiftState [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 13 01 00 [19:10:45]Write to MH i2c: E2 08 00 44 47 80 13 01 00 00 00 00 00 08 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 0E 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 0E 00 44 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 23 [19:10:45]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:10:45]wFMCommunicate OK [19:10:45]SAM_PROTO_GetShiftState done [19:10:45]FM_GetShiftState done [19:10:45]req_shift_opened done [19:10:45]requested_item shift.open_date is exist - process it [19:10:45]req_shift_open_date [19:10:45]req_shift_open_date done [19:10:45]produce_requested_data done [19:10:45]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75191,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:10:45]process_action_free close_receipt [19:10:45]json_value_free [19:10:45]json_value_free done [19:10:45]process_json_proto returns [19:10:45]Send response to host [19:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75191,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:10:45]free response buf [19:10:45]execute_script done [19:10:45]execute_script returns [19:10:45]free content buf [19:10:45]Sock 9.Close socket [19:10:45]Sock 9.Thread stoped [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:25]accept exits with 8 [19:30:25]New connection [19:30:25]New thread 3066924388 created [19:30:25]Thread 3066781028 joined [19:30:25]Waiting for new connection... [19:30:25] Sock 8.Parse request [19:30:25]Sock 8.Check first char [19:30:25]Sock 8.First char is OK [19:30:25]request: POST /json_proto HTTP/1.0 [19:30:25]Method: POST [19:30:25]URL: /json_proto [19:30:25]Method is POST - this is cgi request [19:30:25]url: /json_proto [19:30:25]query_string will be loaded in cgi processing [19:30:25]execute_cgi json_proto POST (null) [19:30:25]execute_cgi path=json_proto method=POST [19:30:25]POST find Content-Length [19:30:25]Host: 172.17.39.131:8080 [19:30:25]Content-Length: 792 [19:30:25]Content-Type: application/json [19:30:25] [19:30:25]POST finish read [19:30:25]Found Content-Length = 792 [19:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A02635", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:25]execute_script... [19:30: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)191170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A02635", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:25]POST & json_proto [19:30:25]process_json_proto [19:30:25]json parsed OK: [19:30:25]protocol is kg_v1.0 [19:30:25]action value=close_receipt [19:30:25]process_action close_receipt [19:30:25]cmd_close_receipt [19:30:25]MH_GetDate [19:30:25]Write to MH i2c: F0 00 00 45 47 7B [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: F0 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: F0 09 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: F0 09 00 45 47 00 57 43 1D 67 86 57 24 65 08 [19:30:25]GetLastDocTimeStamp 1729969847 [19:30:25]current date 1729971031 [19:30:25]FM_GetShiftState [19:30:25]SAM_PROTO_GetShiftState [19:30:25]wFMCommunicate request_size=4 [19:30:25]MH_SAM_APDU [19:30:25]CAPDU: 80 13 01 00 [19:30:25]Write to MH i2c: E2 08 00 46 47 80 13 01 00 00 00 00 00 0A [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:25]Read from MH i2c: E2 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 0E 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 0E 00 46 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 25 [19:30:25]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:30:25]wFMCommunicate OK [19:30:25]SAM_PROTO_GetShiftState done [19:30:25]FM_GetShiftState done [19:30:25]opened in 1729902166 [19:30:25]opened+sec_in_day 1729988566 [19:30:25]quantity*price = 0 [19:30:25]sum+1 = 1 [19:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 184 26.10.2024 19:30 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливная Карта 02635 ФМ: 0000000000871795 ФД: 75192 ФПД: 174873106595388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193031&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75192&fm=174873106595388&tin=02508201610067®Number=0000000000091691&sum=0 [19:30:26]StoreToDocumentArchive [19:30:26]shift 512 fd 75192 [19:30:26]save to /storage/0512/doc_00075192 [19:30:26]save last doc name /storage/0512/doc_00075192 to /storage/kkm_last_doc_name [19:30:26]save OK [19:30:26]Clear old archive folders... [19:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:26]tlvbuf is 00949210 [19:30:26]SAM_PROTO_ClearQueue [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 09 00 00 [19:30:26]Write to MH i2c: E2 08 00 53 47 80 09 00 00 00 00 00 00 0C [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 03 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 03 00 53 47 00 90 00 0E [19:30:26]RAPDU: 90 00 [19:30:26]wFMCommunicate OK [19:30:26]SAM_PROTO_ClearQueue done [19:30:26]KKMCreateOFDPacket [19:30:26]OFDProtocolAddRootSTLVToBuf [19:30:26]FM_MakeSignedData [19:30:26]FM_MakeSignedData [19:30:26]SAM_PROTO_SignData [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 0D 01 02 [19:30:26]Write to MH i2c: E2 08 00 54 47 80 0D 01 02 00 00 00 00 14 [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 03 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 03 00 54 47 00 90 00 0F [19:30:26]RAPDU: 90 00 [19:30:26]wFMCommunicate OK [19:30:26]wFMCommunicate request_size=255 [19:30:26]MH_SAM_APDU [19:30: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 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 B8 00 00 00 F4 03 04 00 57 43 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 25 01 00 35 04 06 00 9F [19:30:26]Write to MH i2c: E2 02 01 55 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B8 00 00 00 F4 03 04 00 57 43 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 25 01 00 35 04 06 00 9F 00 00 E7 [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 55 47 00 90 00 10 [19:30:27]RAPDU: 90 00 [19:30:27]wFMCommunicate OK [19:30:27]wFMCommunicate request_size=10 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 0D 02 02 05 0B D1 66 3E 3C [19:30:27]Write to MH i2c: E2 0D 00 56 47 80 0D 02 02 05 00 0B D1 66 3E 3C 00 00 DD [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 56 47 00 90 00 11 [19:30:27]RAPDU: 90 00 [19:30:27]wFMCommunicate OK [19:30:27]wFMCommunicate request_size=4 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 0D 03 02 [19:30:27]Write to MH i2c: E2 08 00 57 47 80 0D 03 02 00 00 00 00 19 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 0B 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 0B 00 57 47 00 8F 9A 32 48 60 C6 47 4C 90 00 76 [19:30:27]RAPDU: 8F 9A 32 48 60 C6 47 4C 90 00 [19:30:27]wFMCommunicate OK [19:30:27]SAM_PROTO_SignData done [19:30:27]FM_MakeSignedData done [19:30:27]CreateOFDProtocolMessage [19:30:27]wFMCommunicate request_size=4 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 11 00 00 [19:30:27]Write to MH i2c: E2 08 00 58 47 80 11 00 00 00 00 00 00 19 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 17 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 17 00 58 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 71 [19:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:30:27]wFMCommunicate OK [19:30:27]CreateOFDProtocolMessage done [19:30:27]OFDSenderStorePacket 75192 [19:30:27]StoreOFDPacket docnum=75192 [19:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 14 07 01 B1 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 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 B8 00 00 00 F4 03 04 00 57 43 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 25 01 00 35 04 06 00 9F 0B D1 66 3E 3C 8F 9A 32 48 60 C6 47 4C [19:30:27]CheckFolder [19:30:27]dirname=/storage/ofd_packets [19:30:27]CheckFolder done [19:30:27]ProducePacketName [19:30:27]name=ofd_packets/00075192 [19:30:27]NVStorageSaveData ofd_packets/00075192 [19:30:27]File name is /storage/ofd_packets/00075192 [19:30:27]Write 301 bytes [19:30:27]NVStorageSaveData done [19:30:27]OFDSenderStorePacket done [19:30:27]KKMCreateOFDPacket done [19:30:27]NVStorageSaveData kkm_last_timestamp [19:30:27]File name is /storage/kkm_last_timestamp [19:30:27]Write 4 bytes [19:30:27]NVStorageSaveData done [19:30:27]OFD Sender: Processing packet 75192 [packets to send 13, broken 12] [19:30:27]ProducePacketName [19:30:27]name=ofd_packets/00075192 [19:30:27]OFD Sender: To server: pG, [19:30:27]CommunicateWithHost lk.salyk.kg:30040 [19:30:27]ConnectInit lk.salyk.kg [19:30:27]ExternCall_PrintAddStr [19:30:27]wPrintStart [19:30:27]Write to MH i2c: 01 00 00 59 47 A0 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: 01 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: 01 07 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: 01 07 00 59 47 00 00 00 00 00 FF 0F B5 [19:30:27]RasterBufferAndPrint [19:30:27]line Счет N : (1)191170 [19:30:27]line ИНН: 02508201610067 [19:30:27]line Контрольно-Кассовый Чек [19:30:27]line ПРОДАЖА [19:30:27]line ТРК (МРК, ГНК) : 21 [19:30:27]line Товар: 2710124130 [19:30:27]line Аи-92-К-5 [19:30:27]line 20.000 * 0.00 [19:30:27]line = 0.00 [19:30:27]line НДС 12% НСП 1% [19:30:27]line > о реализуемом товаре [19:30:27]line ИТОГО: 0.00 [19:30:27]line НСП 1% : 0.00 [19:30:27]line НДС 12% : 0.00 [19:30:27]line Наличными: 0.00 [19:30:27]line Безнал.: 0.00 [19:30:27]line Место: АЗС № 142 "Партнер Нефть" [19:30:27]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:30:27]line СНО: Общий режим [19:30:27]line Чек 184 26.10.2024 19:30 [19:30:27]line Смена: 512 ФФД: 1.0 [19:30:27]line ЗНМ: 0300000089 [19:30:27]line РНМ: 0000000000091691 [19:30:27]line Версия ККМ: 001 [19:30:27]line Талоны: Топливная Карта [19:30:27]line 02635 [19:30:27]line ФМ: 0000000000871795 [19:30:27]line ФД: 75192 [19:30:27]line ФПД: 174873106595388 [19:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193031&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75192&fm=174873106595388&tin=02508201610067®Number=0000000000091691&sum=0 [19:30:27]Connected sock=11 [19:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B2 14 07 01 B1 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 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 B8 00 00 00 F4 03 04 00 57 43 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 25 01 00 35 04 06 00 9F 0B D1 66 3E 3C 8F 9A 32 48 60 C6 47 4C [19:30:27]written 0, free lines is 4095 [19:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 DA 08 47 00 2A D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B8 25 01 00 F4 03 04 00 D3 EA 1C 67 B6 04 01 00 00 B8 CA BE 0C 3E 68 0D FD [19:30:27]CommunicateWithHost err = 0 [19:30:27]CheckOFDResponse [19:30:27]1017 (14) - 77093643461234 [19:30:27]1041 (16) - 0000000000871795 [19:30:27]1040 (4) - 75192 [19:30:27]1012 (4) - 26.10.2024 13:12 [19:30:27]1206 (1) - 0 [19:30:27]OFD Sender: Remove packet 75192 [19:30:27]ProducePacketName [19:30:27]name=ofd_packets/00075192 [19:30:27]NVStorageDeleteData [19:30:28]Write to MH i2c: 01 00 00 83 47 CA [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: 01 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: 01 07 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: 01 07 00 83 47 00 00 00 00 00 B1 0C 8E [19:30:28]RasterBufferAndPrint [19:30:28]line [19:30:28]line [19:30:28]line [19:30:28]line [19:30:28]line [19:30:28]written 0, free lines is 3254 [19:30:28]MH_Cut [19:30:28]Write to MH i2c: D1 01 00 8A 47 01 A3 [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: D1 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: D1 01 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: D1 01 00 8A 47 00 A2 [19:30:28]Write to MH i2c: 01 00 00 8B 47 D2 [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]OFD Sender: No OFD packet to send [19:30:28]*** Cut start [19:30:28]*** Partial cut [19:30:28]*** CUTSNS_PIN = 1 [19:30:29]*** CUTSNS_PIN = 0 [19:30:29]*** Brake cut motor [19:30:29]Read from MH i2c: 01 [19:30:29]MH_I2C_Read... [19:30:29]*** Stop cut motor [19:30:29]*** Cut end [19:30:29]Read from MH i2c: 01 07 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: 01 07 00 8B 47 00 00 00 00 00 FF 0F E7 [19:30:29]process_action close_receipt done [19:30:29]requested_data is exist [19:30:29]produce_requested_data [19:30:29]requested_item fm.sn is exist - process it [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 11 00 00 [19:30:29]Write to MH i2c: E2 08 00 8C 47 80 11 00 00 00 00 00 00 4D [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 17 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 17 00 8C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A5 [19:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:30:29]wFMCommunicate OK [19:30:29]requested_item fd.num is exist - process it [19:30:29]SAM_PROTO_GetFieldsCounters [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 13 00 00 [19:30:29]Write to MH i2c: E2 08 00 8D 47 80 13 00 00 00 00 00 00 50 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 62 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 62 00 8D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B8 25 01 00 0E 04 04 00 00 02 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 7F [19:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B8 25 01 00 0E 04 04 00 00 02 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 [19:30:29]wFMCommunicate OK [19:30:29]SAM_PROTO_GetFieldsCounters done [19:30:29]requested_item shift.num is exist - process it [19:30:29]requested_item shift.opened is exist - process it [19:30:29]req_shift_opened [19:30:29]FM_GetShiftState [19:30:29]SAM_PROTO_GetShiftState [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 13 01 00 [19:30:29]Write to MH i2c: E2 08 00 8E 47 80 13 01 00 00 00 00 00 52 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 0E 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 0E 00 8E 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6D [19:30:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:30:29]wFMCommunicate OK [19:30:29]SAM_PROTO_GetShiftState done [19:30:29]FM_GetShiftState done [19:30:29]req_shift_opened done [19:30:29]requested_item shift.open_date is exist - process it [19:30:29]req_shift_open_date [19:30:29]req_shift_open_date done [19:30:29]produce_requested_data done [19:30:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75192,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:30:29]process_action_free close_receipt [19:30:29]json_value_free [19:30:29]json_value_free done [19:30:29]process_json_proto returns [19:30:29]Send response to host [19:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75192,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:30:29]free response buf [19:30:29]execute_script done [19:30:29]execute_script returns [19:30:29]free content buf [19:30:29]Sock 8.Close socket [19:30:29]Sock 8.Thread stoped [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:24]accept exits with 9 [19:34:24]New connection [19:34:24]New thread 3066781028 created [19:34:24]Thread 3066924388 joined [19:34:24]Waiting for new connection... [19:34:24] Sock 9.Parse request [19:34:24]Sock 9.Check first char [19:34:24]Sock 9.First char is OK [19:34:24]request: POST /json_proto HTTP/1.0 [19:34:24]Method: POST [19:34:24]URL: /json_proto [19:34:24]Method is POST - this is cgi request [19:34:24]url: /json_proto [19:34:24]query_string will be loaded in cgi processing [19:34:24]execute_cgi json_proto POST (null) [19:34:24]execute_cgi path=json_proto method=POST [19:34:24]POST find Content-Length [19:34:24]Host: 172.17.39.131:8080 [19:34:24]Content-Length: 677 [19:34:24]Content-Type: application/json [19:34:24] [19:34:24]POST finish read [19:34:24]Found Content-Length = 677 [19:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:34:24]execute_script... [19:34: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)191171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:34:24]POST & json_proto [19:34:24]process_json_proto [19:34:24]json parsed OK: [19:34:24]protocol is kg_v1.0 [19:34:24]action value=close_receipt [19:34:24]process_action close_receipt [19:34:24]cmd_close_receipt [19:34:24]MH_GetDate [19:34:24]Write to MH i2c: F0 00 00 8F 47 C5 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: F0 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: F0 09 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: F0 09 00 8F 47 00 47 44 1D 67 86 57 24 65 43 [19:34:24]GetLastDocTimeStamp 1729971031 [19:34:24]current date 1729971271 [19:34:24]FM_GetShiftState [19:34:24]SAM_PROTO_GetShiftState [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 13 01 00 [19:34:24]Write to MH i2c: E2 08 00 90 47 80 13 01 00 00 00 00 00 54 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:25]Read from MH i2c: E2 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 90 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 6F [19:34:25]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:34:25]wFMCommunicate OK [19:34:25]SAM_PROTO_GetShiftState done [19:34:25]FM_GetShiftState done [19:34:25]opened in 1729902166 [19:34:25]opened+sec_in_day 1729988566 [19:34:25]quantity*price = 50041 [19:34:25]sum+1 = 50042 [19:34: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 185 26.10.2024 19:34 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75193 ФПД: 246913147549096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193431&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75193&fm=246913147549096&tin=02508201610067®Number=0000000000091691&sum=50000 [19:34:26]StoreToDocumentArchive [19:34:26]shift 512 fd 75193 [19:34:26]save to /storage/0512/doc_00075193 [19:34:26]save last doc name /storage/0512/doc_00075193 to /storage/kkm_last_doc_name [19:34:26]save OK [19:34:26]Clear old archive folders... [19:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:26]tlvbuf is 00882C20 [19:34:26]SAM_PROTO_ClearQueue [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 09 00 00 [19:34:26]Write to MH i2c: E2 08 00 9D 47 80 09 00 00 00 00 00 00 56 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 9D 47 00 90 00 58 [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_ClearQueue done [19:34:26]KKMCreateOFDPacket [19:34:26]OFDProtocolAddRootSTLVToBuf [19:34:26]FM_MakeSignedData [19:34:26]FM_MakeSignedData [19:34:26]SAM_PROTO_SignData [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 0D 01 02 [19:34:26]Write to MH i2c: E2 08 00 9E 47 80 0D 01 02 00 00 00 00 5E [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 9E 47 00 90 00 59 [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]wFMCommunicate request_size=255 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 47 44 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 25 01 00 35 04 06 00 E0 [19:34:26]Write to MH i2c: E2 02 01 9F 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B9 00 00 00 F4 03 04 00 47 44 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 25 01 00 35 04 06 00 E0 00 00 7C [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 9F 47 00 90 00 5A [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]wFMCommunicate request_size=10 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 0D 02 02 05 90 F2 73 35 A8 [19:34:26]Write to MH i2c: E2 0D 00 A0 47 80 0D 02 02 05 00 90 F2 73 35 A8 00 00 3D [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 A0 47 00 90 00 5B [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 0D 03 02 [19:34:26]Write to MH i2c: E2 08 00 A1 47 80 0D 03 02 00 00 00 00 63 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0B 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0B 00 A1 47 00 B2 2C 1C 33 32 C0 09 82 90 00 0E [19:34:26]RAPDU: B2 2C 1C 33 32 C0 09 82 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_SignData done [19:34:26]FM_MakeSignedData done [19:34:26]CreateOFDProtocolMessage [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 A2 47 80 11 00 00 00 00 00 00 63 [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 A2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BB [19:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:34:26]wFMCommunicate OK [19:34:26]CreateOFDProtocolMessage done [19:34:26]OFDSenderStorePacket 75193 [19:34:26]StoreOFDPacket docnum=75193 [19:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AB B9 07 01 D0 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B9 00 00 00 F4 03 04 00 47 44 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 25 01 00 35 04 06 00 E0 90 F2 73 35 A8 B2 2C 1C 33 32 C0 09 82 [19:34:26]CheckFolder [19:34:26]dirname=/storage/ofd_packets [19:34:26]CheckFolder done [19:34:26]ProducePacketName [19:34:26]name=ofd_packets/00075193 [19:34:26]NVStorageSaveData ofd_packets/00075193 [19:34:26]File name is /storage/ofd_packets/00075193 [19:34:26]Write 301 bytes [19:34:26]NVStorageSaveData done [19:34:26]OFDSenderStorePacket done [19:34:26]KKMCreateOFDPacket done [19:34:26]NVStorageSaveData kkm_last_timestamp [19:34:26]File name is /storage/kkm_last_timestamp [19:34:26]Write 4 bytes [19:34:26]NVStorageSaveData done [19:34:26]ExternCall_PrintAddStr [19:34:26]wPrintStart [19:34:26]Write to MH i2c: 01 00 00 A3 47 EA [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 A3 47 00 00 00 00 00 FF 0F FF [19:34:26]RasterBufferAndPrint [19:34:26]line Счет N : (1)191171 [19:34:26]line ИНН: 02508201610067 [19:34:26]line Контрольно-Кассовый Чек [19:34:26]line ПРОДАЖА [19:34:26]line ТРК (МРК, ГНК) : 21 [19:34:26]line Товар: 2710124130 [19:34:26]line Аи-92-К-5 [19:34:26]line 7.480 * 66.90 [19:34:26]line = 500.41 [19:34:26]line НДС 12% НСП 1% [19:34:26]line > о реализуемом товаре [19:34:26]line ОКРУГЛЕНИЕ: -0.41 [19:34:26]line ИТОГО: 500.00 [19:34:26]line Внесено: 500.00 [19:34:26]line СДАЧА: 0.00 [19:34:26]line НСП 1% : 4.43 [19:34:26]line НДС 12% : 53.14 [19:34:26]line Наличными: 500.00 [19:34:26]line Безнал.: 0.00 [19:34:26]line Место: АЗС № 142 "Партнер Нефть" [19:34:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:34:26]line СНО: Общий режим [19:34:26]line Чек 185 26.10.2024 19:34 [19:34:26]line Смена: 512 ФФД: 1.0 [19:34:26]line ЗНМ: 0300000089 [19:34:26]line РНМ: 0000000000091691 [19:34:26]line Версия ККМ: 001 [19:34:26]line ФМ: 0000000000871795 [19:34:26]line ФД: 75193 [19:34:26]line ФПД: 246913147549096 [19:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193431&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75193&fm=246913147549096&tin=02508201610067®Number=0000000000091691&sum=50000 [19:34:26]OFD Sender: Processing packet 75193 [packets to send 13, broken 12] [19:34:26]ProducePacketName [19:34:26]name=ofd_packets/00075193 [19:34:26]OFD Sender: To server: pG, [19:34:26]CommunicateWithHost lk.salyk.kg:30040 [19:34:26]ConnectInit lk.salyk.kg [19:34:26]written 0, free lines is 4095 [19:34:27]Connected sock=10 [19:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 AB B9 07 01 D0 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B9 00 00 00 F4 03 04 00 47 44 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 B9 25 01 00 35 04 06 00 E0 90 F2 73 35 A8 B2 2C 1C 33 32 C0 09 82 [19:34:27]Write to MH i2c: 01 00 00 CE 47 15 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 CE 47 00 00 00 00 00 99 0C C1 [19:34:27]RasterBufferAndPrint [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]written 0, free lines is 3232 [19:34:27]MH_Cut [19:34:27]Write to MH i2c: D1 01 00 D5 47 01 EE [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 01 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 01 00 D5 47 00 ED [19:34:27]Write to MH i2c: 01 00 00 D6 47 1D [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 1F 45 47 00 65 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 38 37 31 37 39 35 10 04 04 00 B9 25 01 00 F4 03 04 00 C2 EB 1C 67 B6 04 01 00 00 6C 50 22 5D 39 57 8F 0D [19:34:27]CommunicateWithHost err = 0 [19:34:27]CheckOFDResponse [19:34:27]1017 (14) - 77093643461234 [19:34:27]1041 (16) - 0000000000871795 [19:34:27]1040 (4) - 75193 [19:34:27]1012 (4) - 26.10.2024 13:16 [19:34:27]1206 (1) - 0 [19:34:27]OFD Sender: Remove packet 75193 [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00075193 [19:34:27]NVStorageDeleteData [19:34:28]OFD Sender: No OFD packet to send [19:34:28]*** Cut start [19:34:28]*** Partial cut [19:34:28]*** CUTSNS_PIN = 1 [19:34:28]*** CUTSNS_PIN = 0 [19:34:28]*** Brake cut motor [19:34:28]Read from MH i2c: 01 [19:34:28]MH_I2C_Read... [19:34:28]*** Stop cut motor [19:34:28]*** Cut end [19:34:28]Read from MH i2c: 01 07 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 07 00 D6 47 00 00 00 00 00 FF 0F 32 [19:34:28]process_action close_receipt done [19:34:28]requested_data is exist [19:34:28]produce_requested_data [19:34:28]requested_item fm.sn is exist - process it [19:34:28]wFMCommunicate request_size=4 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 11 00 00 [19:34:28]Write to MH i2c: E2 08 00 D7 47 80 11 00 00 00 00 00 00 98 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:29]Read from MH i2c: E2 17 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 17 00 D7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F0 [19:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:34:29]wFMCommunicate OK [19:34:29]requested_item fd.num is exist - process it [19:34:29]SAM_PROTO_GetFieldsCounters [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 00 00 [19:34:29]Write to MH i2c: E2 08 00 D8 47 80 13 00 00 00 00 00 00 9B [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 D8 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B9 25 01 00 0E 04 04 00 00 02 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 CE [19:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 B9 25 01 00 0E 04 04 00 00 02 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 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetFieldsCounters done [19:34:29]requested_item shift.num is exist - process it [19:34:29]requested_item shift.opened is exist - process it [19:34:29]req_shift_opened [19:34:29]FM_GetShiftState [19:34:29]SAM_PROTO_GetShiftState [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 01 00 [19:34:29]Write to MH i2c: E2 08 00 D9 47 80 13 01 00 00 00 00 00 9D [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 D9 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 B8 [19:34:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetShiftState done [19:34:29]FM_GetShiftState done [19:34:29]req_shift_opened done [19:34:29]requested_item shift.open_date is exist - process it [19:34:29]req_shift_open_date [19:34:29]req_shift_open_date done [19:34:29]produce_requested_data done [19:34:29]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75193,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:34:29]process_action_free close_receipt [19:34:29]json_value_free [19:34:29]json_value_free done [19:34:29]process_json_proto returns [19:34:29]Send response to host [19:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75193,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:34:29]free response buf [19:34:29]execute_script done [19:34:29]execute_script returns [19:34:29]free content buf [19:34:29]Sock 9.Close socket [19:34:29]Sock 9.Thread stoped [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:27]accept exits with 8 [19:38:27]New connection [19:38:27]New thread 3066924388 created [19:38:27]Thread 3066781028 joined [19:38:27]Waiting for new connection... [19:38:27] Sock 8.Parse request [19:38:27]Sock 8.Check first char [19:38:27]Sock 8.First char is OK [19:38:27]request: POST /json_proto HTTP/1.0 [19:38:27]Method: POST [19:38:27]URL: /json_proto [19:38:27]Method is POST - this is cgi request [19:38:27]url: /json_proto [19:38:27]query_string will be loaded in cgi processing [19:38:27]execute_cgi json_proto POST (null) [19:38:27]execute_cgi path=json_proto method=POST [19:38:27]POST find Content-Length [19:38:27]Host: 172.17.39.131:8080 [19:38:27]Content-Length: 803 [19:38:27]Content-Type: application/json [19:38:27] [19:38:27]POST finish read [19:38:27]Found Content-Length = 803 [19:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4340212-13-14", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:27]execute_script... [19: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)191172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4340212-13-14", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:27]POST & json_proto [19:38:27]process_json_proto [19:38:27]json parsed OK: [19:38:27]protocol is kg_v1.0 [19:38:27]action value=close_receipt [19:38:27]process_action close_receipt [19:38:27]cmd_close_receipt [19:38:27]MH_GetDate [19:38:27]Write to MH i2c: F0 00 00 DA 47 10 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 09 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 09 00 DA 47 00 39 45 1D 67 86 57 24 65 81 [19:38:27]GetLastDocTimeStamp 1729971271 [19:38:27]current date 1729971513 [19:38:27]FM_GetShiftState [19:38:27]SAM_PROTO_GetShiftState [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 13 01 00 [19:38:27]Write to MH i2c: E2 08 00 DB 47 80 13 01 00 00 00 00 00 9F [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0E 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0E 00 DB 47 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 BA [19:38:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:38:27]wFMCommunicate OK [19:38:27]SAM_PROTO_GetShiftState done [19:38:27]FM_GetShiftState done [19:38:27]opened in 1729902166 [19:38:27]opened+sec_in_day 1729988566 [19:38:27]quantity*price = 0 [19:38:27]sum+1 = 1 [19:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 186 26.10.2024 19:38 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4340212-13-14 ФМ: 0000000000871795 ФД: 75194 ФПД: 260491612326436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193833&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75194&fm=260491612326436&tin=02508201610067®Number=0000000000091691&sum=0 [19:38:28]StoreToDocumentArchive [19:38:28]shift 512 fd 75194 [19:38:28]save to /storage/0512/doc_00075194 [19:38:28]save last doc name /storage/0512/doc_00075194 to /storage/kkm_last_doc_name [19:38:28]save OK [19:38:28]Clear old archive folders... [19:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:38:28]tlvbuf is 0090C190 [19:38:28]SAM_PROTO_ClearQueue [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 09 00 00 [19:38:28]Write to MH i2c: E2 08 00 E8 47 80 09 00 00 00 00 00 00 A1 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 E8 47 00 90 00 A3 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_ClearQueue done [19:38:28]KKMCreateOFDPacket [19:38:28]OFDProtocolAddRootSTLVToBuf [19:38:28]FM_MakeSignedData [19:38:28]FM_MakeSignedData [19:38:28]SAM_PROTO_SignData [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 01 02 [19:38:28]Write to MH i2c: E2 08 00 E9 47 80 0D 01 02 00 00 00 00 A9 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 E9 47 00 90 00 A4 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=255 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 BA 00 00 00 F4 03 04 00 39 45 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 25 01 00 35 04 06 00 EC EA 6E 05 [19:38:28]Write to MH i2c: E2 02 01 EA 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 34 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 BA 00 00 00 F4 03 04 00 39 45 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 25 01 00 35 04 06 00 EC EA 6E 05 00 00 3C [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 EA 47 00 90 00 A5 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=7 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 02 02 02 0A 24 [19:38:28]Write to MH i2c: E2 0A 00 EB 47 80 0D 02 02 02 00 0A 24 00 00 DE [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 EB 47 00 90 00 A6 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 03 02 [19:38:28]Write to MH i2c: E2 08 00 EC 47 80 0D 03 02 00 00 00 00 AE [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0B 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0B 00 EC 47 00 5D D1 C0 DE 16 AE DE 85 90 00 A2 [19:38:28]RAPDU: 5D D1 C0 DE 16 AE DE 85 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_SignData done [19:38:28]FM_MakeSignedData done [19:38:28]CreateOFDProtocolMessage [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 11 00 00 [19:38:28]Write to MH i2c: E2 08 00 ED 47 80 11 00 00 00 00 00 00 AE [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 17 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 17 00 ED 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 06 [19:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:38:29]wFMCommunicate OK [19:38:29]CreateOFDProtocolMessage done [19:38:29]OFDSenderStorePacket 75194 [19:38:29]StoreOFDPacket docnum=75194 [19:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 F3 4B 04 01 7B 1B 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 34 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 BA 00 00 00 F4 03 04 00 39 45 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 25 01 00 35 04 06 00 EC EA 6E 05 0A 24 5D D1 C0 DE 16 AE DE 85 [19:38:29]CheckFolder [19:38:29]dirname=/storage/ofd_packets [19:38:29]CheckFolder done [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00075194 [19:38:29]NVStorageSaveData ofd_packets/00075194 [19:38:29]File name is /storage/ofd_packets/00075194 [19:38:29]Write 298 bytes [19:38:29]NVStorageSaveData done [19:38:29]OFDSenderStorePacket done [19:38:29]KKMCreateOFDPacket done [19:38:29]NVStorageSaveData kkm_last_timestamp [19:38:29]File name is /storage/kkm_last_timestamp [19:38:29]Write 4 bytes [19:38:29]NVStorageSaveData done [19:38:29]ExternCall_PrintAddStr [19:38:29]wPrintStart [19:38:29]Write to MH i2c: 01 00 00 EE 47 35 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 EE 47 00 00 00 00 00 FF 0F 4A [19:38:29]RasterBufferAndPrint [19:38:29]line Счет N : (1)191172 [19:38:29]line ИНН: 02508201610067 [19:38:29]line Контрольно-Кассовый Чек [19:38:29]line ПРОДАЖА [19:38:29]line ТРК (МРК, ГНК) : 31 [19:38:29]line Товар: 2710194210 [19:38:29]line ДТ-К-4 [19:38:29]line 60.000 * 0.00 [19:38:29]line = 0.00 [19:38:29]line НДС 12% НСП 1% [19:38:29]line > о реализуемом товаре [19:38:29]line ИТОГО: 0.00 [19:38:29]line НСП 1% : 0.00 [19:38:29]line НДС 12% : 0.00 [19:38:29]line Наличными: 0.00 [19:38:29]line Безнал.: 0.00 [19:38:29]line Место: АЗС № 142 "Партнер Нефть" [19:38:29]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:38:29]line СНО: Общий режим [19:38:29]line Чек 186 26.10.2024 19:38 [19:38:29]line Смена: 512 ФФД: 1.0 [19:38:29]line ЗНМ: 0300000089 [19:38:29]line РНМ: 0000000000091691 [19:38:29]line Версия ККМ: 001 [19:38:29]line Талоны: Топливные Талоны [19:38:29]line 4340212-13-14 [19:38:29]line ФМ: 0000000000871795 [19:38:29]line ФД: 75194 [19:38:29]line ФПД: 260491612326436 [19:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193833&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75194&fm=260491612326436&tin=02508201610067®Number=0000000000091691&sum=0 [19:38:29]OFD Sender: Processing packet 75194 [packets to send 13, broken 12] [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00075194 [19:38:29]OFD Sender: To server: pG, [19:38:29]CommunicateWithHost lk.salyk.kg:30040 [19:38:29]ConnectInit lk.salyk.kg [19:38:29]written 0, free lines is 4095 [19:38:29]Connected sock=9 [19:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 F3 4B 04 01 7B 1B 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 34 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 BA 00 00 00 F4 03 04 00 39 45 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 25 01 00 35 04 06 00 EC EA 6E 05 0A 24 5D D1 C0 DE 16 AE DE 85 [19:38:29]Write to MH i2c: 01 00 00 18 48 60 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 18 48 00 00 00 00 00 B0 0C 23 [19:38:29]RasterBufferAndPrint [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]written 0, free lines is 3254 [19:38:29]MH_Cut [19:38:29]Write to MH i2c: D1 01 00 1F 48 01 39 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 01 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 01 00 1F 48 00 38 [19:38:29]Write to MH i2c: 01 00 00 20 48 68 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E4 1E 47 00 A8 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BA 25 01 00 F4 03 04 00 B5 EC 1C 67 B6 04 01 00 00 99 DC 8F 6D 2D 0E 43 5B [19:38:29]CommunicateWithHost err = 0 [19:38:29]CheckOFDResponse [19:38:29]1017 (14) - 77093643461234 [19:38:29]1041 (16) - 0000000000871795 [19:38:29]1040 (4) - 75194 [19:38:29]1012 (4) - 26.10.2024 13:20 [19:38:29]1206 (1) - 0 [19:38:29]OFD Sender: Remove packet 75194 [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00075194 [19:38:29]NVStorageDeleteData [19:38:30]OFD Sender: No OFD packet to send [19:38:30]*** Cut start [19:38:30]*** Partial cut [19:38:30]*** CUTSNS_PIN = 1 [19:38:30]*** CUTSNS_PIN = 0 [19:38:30]*** Brake cut motor [19:38:31]Read from MH i2c: 01 [19:38:31]MH_I2C_Read... [19:38:31]*** Stop cut motor [19:38:31]*** Cut end [19:38:31]Read from MH i2c: 01 07 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: 01 07 00 20 48 00 00 00 00 00 FF 0F 7D [19:38:31]process_action close_receipt done [19:38:31]requested_data is exist [19:38:31]produce_requested_data [19:38:31]requested_item fm.sn is exist - process it [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 11 00 00 [19:38:31]Write to MH i2c: E2 08 00 21 48 80 11 00 00 00 00 00 00 E3 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 21 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 3B [19:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:38:31]wFMCommunicate OK [19:38:31]requested_item fd.num is exist - process it [19:38:31]SAM_PROTO_GetFieldsCounters [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 13 00 00 [19:38:31]Write to MH i2c: E2 08 00 22 48 80 13 00 00 00 00 00 00 E6 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 62 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 62 00 22 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BA 25 01 00 0E 04 04 00 00 02 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 1D [19:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BA 25 01 00 0E 04 04 00 00 02 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 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_GetFieldsCounters done [19:38:31]requested_item shift.num is exist - process it [19:38:31]requested_item shift.opened is exist - process it [19:38:31]req_shift_opened [19:38:31]FM_GetShiftState [19:38:31]SAM_PROTO_GetShiftState [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 13 01 00 [19:38:31]Write to MH i2c: E2 08 00 23 48 80 13 01 00 00 00 00 00 E8 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 23 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 03 [19:38:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_GetShiftState done [19:38:31]FM_GetShiftState done [19:38:31]req_shift_opened done [19:38:31]requested_item shift.open_date is exist - process it [19:38:31]req_shift_open_date [19:38:31]req_shift_open_date done [19:38:31]produce_requested_data done [19:38:31]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75194,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:38:31]process_action_free close_receipt [19:38:31]json_value_free [19:38:31]json_value_free done [19:38:31]process_json_proto returns [19:38:31]Send response to host [19:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75194,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:38:31]free response buf [19:38:31]execute_script done [19:38:31]execute_script returns [19:38:31]free content buf [19:38:31]Sock 8.Close socket [19:38:31]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:52]accept exits with 10 [19:52:52]New connection [19:52:52]New thread 3066781028 created [19:52:52]Thread 3066924388 joined [19:52:52]Waiting for new connection... [19:52:52] Sock 10.Parse request [19:52:52]Sock 10.Check first char [19:52:52]Sock 10.First char is OK [19:52:52]request: POST /json_proto HTTP/1.0 [19:52:52]Method: POST [19:52:52]URL: /json_proto [19:52:52]Method is POST - this is cgi request [19:52:52]url: /json_proto [19:52:52]query_string will be loaded in cgi processing [19:52:52]execute_cgi json_proto POST (null) [19:52:52]execute_cgi path=json_proto method=POST [19:52:52]POST find Content-Length [19:52:52]Host: 172.17.39.131:8080 [19:52:52]Content-Length: 677 [19:52:52]Content-Type: application/json [19:52:52] [19:52:52]POST finish read [19:52:52]Found Content-Length = 677 [19:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:52]execute_script... [19:52: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)191173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:52]POST & json_proto [19:52:52]process_json_proto [19:52:52]json parsed OK: [19:52:52]protocol is kg_v1.0 [19:52:52]action value=close_receipt [19:52:52]process_action close_receipt [19:52:52]cmd_close_receipt [19:52:52]MH_GetDate [19:52:52]Write to MH i2c: F0 00 00 24 48 5B [19:52:52]Write i2c OK [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 09 00 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: F0 09 00 24 48 00 9A 48 1D 67 86 57 24 65 30 [19:52:52]GetLastDocTimeStamp 1729971513 [19:52:52]current date 1729972378 [19:52:52]FM_GetShiftState [19:52:52]SAM_PROTO_GetShiftState [19:52:52]wFMCommunicate request_size=4 [19:52:52]MH_SAM_APDU [19:52:52]CAPDU: 80 13 01 00 [19:52:52]Write to MH i2c: E2 08 00 25 48 80 13 01 00 00 00 00 00 EA [19:52:52]Write i2c OK [19:52:52]MH_I2C_Read... [19:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:52]Read from MH i2c: E2 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: E2 0E 00 [19:52:52]MH_I2C_Read... [19:52:52]Read from MH i2c: E2 0E 00 25 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 05 [19:52:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:52:52]wFMCommunicate OK [19:52:52]SAM_PROTO_GetShiftState done [19:52:52]FM_GetShiftState done [19:52:52]opened in 1729902166 [19:52:52]opened+sec_in_day 1729988566 [19:52:52]quantity*price = 30038 [19:52:52]sum+1 = 30039 [19:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 187 26.10.2024 19:52 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75195 ФПД: 175673854637905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75195&fm=175673854637905&tin=02508201610067®Number=0000000000091691&sum=30000 [19:52:53]StoreToDocumentArchive [19:52:53]shift 512 fd 75195 [19:52:53]save to /storage/0512/doc_00075195 [19:52:53]save last doc name /storage/0512/doc_00075195 to /storage/kkm_last_doc_name [19:52:53]save OK [19:52:53]Clear old archive folders... [19:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:53]tlvbuf is 00845A20 [19:52:53]SAM_PROTO_ClearQueue [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 09 00 00 [19:52:53]Write to MH i2c: E2 08 00 32 48 80 09 00 00 00 00 00 00 EC [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 32 48 00 90 00 EE [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]SAM_PROTO_ClearQueue done [19:52:53]KKMCreateOFDPacket [19:52:53]OFDProtocolAddRootSTLVToBuf [19:52:53]FM_MakeSignedData [19:52:53]FM_MakeSignedData [19:52:53]SAM_PROTO_SignData [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 01 02 [19:52:53]Write to MH i2c: E2 08 00 33 48 80 0D 01 02 00 00 00 00 F4 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 33 48 00 90 00 EF [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=255 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 9A 48 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 25 01 00 35 04 06 00 9F [19:52:53]Write to MH i2c: E2 02 01 34 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 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 BB 00 00 00 F4 03 04 00 9A 48 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 25 01 00 35 04 06 00 9F 00 00 20 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 34 48 00 90 00 F0 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=10 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 02 02 05 C6 41 B3 B7 51 [19:52:53]Write to MH i2c: E2 0D 00 35 48 80 0D 02 02 05 00 C6 41 B3 B7 51 00 00 C3 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 03 00 35 48 00 90 00 F1 [19:52:53]RAPDU: 90 00 [19:52:53]wFMCommunicate OK [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 0D 03 02 [19:52:53]Write to MH i2c: E2 08 00 36 48 80 0D 03 02 00 00 00 00 F9 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 0B 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 0B 00 36 48 00 31 2D 38 DB 5B 6E A7 49 90 00 24 [19:52:53]RAPDU: 31 2D 38 DB 5B 6E A7 49 90 00 [19:52:53]wFMCommunicate OK [19:52:53]SAM_PROTO_SignData done [19:52:53]FM_MakeSignedData done [19:52:53]CreateOFDProtocolMessage [19:52:53]wFMCommunicate request_size=4 [19:52:53]MH_SAM_APDU [19:52:53]CAPDU: 80 11 00 00 [19:52:53]Write to MH i2c: E2 08 00 37 48 80 11 00 00 00 00 00 00 F9 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:53]Read from MH i2c: E2 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 17 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: E2 17 00 37 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 51 [19:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:52:53]wFMCommunicate OK [19:52:53]CreateOFDProtocolMessage done [19:52:53]OFDSenderStorePacket 75195 [19:52:53]StoreOFDPacket docnum=75195 [19:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 92 07 01 4B 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 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 BB 00 00 00 F4 03 04 00 9A 48 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 25 01 00 35 04 06 00 9F C6 41 B3 B7 51 31 2D 38 DB 5B 6E A7 49 [19:52:53]CheckFolder [19:52:53]dirname=/storage/ofd_packets [19:52:53]CheckFolder done [19:52:53]ProducePacketName [19:52:53]name=ofd_packets/00075195 [19:52:53]NVStorageSaveData ofd_packets/00075195 [19:52:53]File name is /storage/ofd_packets/00075195 [19:52:53]Write 301 bytes [19:52:53]NVStorageSaveData done [19:52:53]OFDSenderStorePacket done [19:52:53]KKMCreateOFDPacket done [19:52:53]NVStorageSaveData kkm_last_timestamp [19:52:53]File name is /storage/kkm_last_timestamp [19:52:53]Write 4 bytes [19:52:53]NVStorageSaveData done [19:52:53]ExternCall_PrintAddStr [19:52:53]wPrintStart [19:52:53]Write to MH i2c: 01 00 00 38 48 80 [19:52:53]Write i2c OK [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 07 00 [19:52:53]MH_I2C_Read... [19:52:53]Read from MH i2c: 01 07 00 38 48 00 00 00 00 00 FF 0F 95 [19:52:53]RasterBufferAndPrint [19:52:53]line Счет N : (1)191173 [19:52:53]line ИНН: 02508201610067 [19:52:53]line Контрольно-Кассовый Чек [19:52:53]line ПРОДАЖА [19:52:53]line ТРК (МРК, ГНК) : 21 [19:52:53]line Товар: 2710124130 [19:52:53]line Аи-92-К-5 [19:52:53]line 4.490 * 66.90 [19:52:53]line = 300.38 [19:52:53]line НДС 12% НСП 1% [19:52:53]line > о реализуемом товаре [19:52:53]line ОКРУГЛЕНИЕ: -0.38 [19:52:53]line ИТОГО: 300.00 [19:52:53]line Внесено: 300.00 [19:52:53]line СДАЧА: 0.00 [19:52:53]line НСП 1% : 2.66 [19:52:53]line НДС 12% : 31.90 [19:52:53]line Наличными: 300.00 [19:52:53]line Безнал.: 0.00 [19:52:53]line Место: АЗС № 142 "Партнер Нефть" [19:52:53]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:52:53]line СНО: Общий режим [19:52:53]line Чек 187 26.10.2024 19:52 [19:52:53]line Смена: 512 ФФД: 1.0 [19:52:53]line ЗНМ: 0300000089 [19:52:53]line РНМ: 0000000000091691 [19:52:53]line Версия ККМ: 001 [19:52:53]line ФМ: 0000000000871795 [19:52:53]line ФД: 75195 [19:52:53]line ФПД: 175673854637905 [19:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195258&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75195&fm=175673854637905&tin=02508201610067®Number=0000000000091691&sum=30000 [19:52:53]written 0, free lines is 4095 [19:52:53]OFD Sender: Processing packet 75195 [packets to send 13, broken 12] [19:52:53]ProducePacketName [19:52:53]name=ofd_packets/00075195 [19:52:53]OFD Sender: To server: pG, [19:52:53]CommunicateWithHost lk.salyk.kg:30040 [19:52:53]ConnectInit lk.salyk.kg [19:52:54]Connected sock=9 [19:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D6 92 07 01 4B 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 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 BB 00 00 00 F4 03 04 00 9A 48 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BB 25 01 00 35 04 06 00 9F C6 41 B3 B7 51 31 2D 38 DB 5B 6E A7 49 [19:52:54]Write to MH i2c: 01 00 00 63 48 AB [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 07 00 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: 01 07 00 63 48 00 00 00 00 00 B7 0C 75 [19:52:54]RasterBufferAndPrint [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]line [19:52:54]written 0, free lines is 3262 [19:52:54]MH_Cut [19:52:54]Write to MH i2c: D1 01 00 6A 48 01 84 [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 01 00 [19:52:54]MH_I2C_Read... [19:52:54]Read from MH i2c: D1 01 00 6A 48 00 83 [19:52:54]Write to MH i2c: 01 00 00 6B 48 B3 [19:52:54]Write i2c OK [19:52:54]MH_I2C_Read... [19:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EE 90 47 00 ED 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 38 37 31 37 39 35 10 04 04 00 BB 25 01 00 F4 03 04 00 15 F0 1C 67 B6 04 01 00 00 A5 0C F9 7F 5D 50 80 AE [19:52:54]CommunicateWithHost err = 0 [19:52:54]CheckOFDResponse [19:52:54]1017 (14) - 77093643461234 [19:52:54]1041 (16) - 0000000000871795 [19:52:54]1040 (4) - 75195 [19:52:54]1012 (4) - 26.10.2024 13:35 [19:52:54]1206 (1) - 0 [19:52:54]OFD Sender: Remove packet 75195 [19:52:54]ProducePacketName [19:52:54]name=ofd_packets/00075195 [19:52:54]NVStorageDeleteData [19:52:54]OFD Sender: No OFD packet to send [19:52:55]*** Cut start [19:52:55]*** Partial cut [19:52:55]*** CUTSNS_PIN = 1 [19:52:55]*** CUTSNS_PIN = 0 [19:52:55]*** Brake cut motor [19:52:55]Read from MH i2c: 01 [19:52:55]MH_I2C_Read... [19:52:55]*** Stop cut motor [19:52:55]*** Cut end [19:52:55]Read from MH i2c: 01 07 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: 01 07 00 6B 48 00 00 00 00 00 FF 0F C8 [19:52:55]process_action close_receipt done [19:52:55]requested_data is exist [19:52:55]produce_requested_data [19:52:55]requested_item fm.sn is exist - process it [19:52:55]wFMCommunicate request_size=4 [19:52:55]MH_SAM_APDU [19:52:55]CAPDU: 80 11 00 00 [19:52:55]Write to MH i2c: E2 08 00 6C 48 80 11 00 00 00 00 00 00 2E [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:55]Read from MH i2c: E2 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 17 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 17 00 6C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 86 [19:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:52:55]wFMCommunicate OK [19:52:55]requested_item fd.num is exist - process it [19:52:55]SAM_PROTO_GetFieldsCounters [19:52:55]wFMCommunicate request_size=4 [19:52:55]MH_SAM_APDU [19:52:55]CAPDU: 80 13 00 00 [19:52:55]Write to MH i2c: E2 08 00 6D 48 80 13 00 00 00 00 00 00 31 [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 62 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 62 00 6D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BB 25 01 00 0E 04 04 00 00 02 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 6C [19:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BB 25 01 00 0E 04 04 00 00 02 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 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_GetFieldsCounters done [19:52:56]requested_item shift.num is exist - process it [19:52:56]requested_item shift.opened is exist - process it [19:52:56]req_shift_opened [19:52:56]FM_GetShiftState [19:52:56]SAM_PROTO_GetShiftState [19:52:56]wFMCommunicate request_size=4 [19:52:56]MH_SAM_APDU [19:52:56]CAPDU: 80 13 01 00 [19:52:56]Write to MH i2c: E2 08 00 6E 48 80 13 01 00 00 00 00 00 33 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:56]Read from MH i2c: E2 0E 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 0E 00 6E 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 4E [19:52:56]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_GetShiftState done [19:52:56]FM_GetShiftState done [19:52:56]req_shift_opened done [19:52:56]requested_item shift.open_date is exist - process it [19:52:56]req_shift_open_date [19:52:56]req_shift_open_date done [19:52:56]produce_requested_data done [19:52:56]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75195,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:52:56]process_action_free close_receipt [19:52:56]json_value_free [19:52:56]json_value_free done [19:52:56]process_json_proto returns [19:52:56]Send response to host [19:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75195,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:52:56]free response buf [19:52:56]execute_script done [19:52:56]execute_script returns [19:52:56]free content buf [19:52:56]Sock 10.Close socket [19:52:56]Sock 10.Thread stoped [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:51]accept exits with 8 [19:54:51]New connection [19:54:51]New thread 3066924388 created [19:54:51]Thread 3066781028 joined [19:54:51]Waiting for new connection... [19:54:51] Sock 8.Parse request [19:54:51]Sock 8.Check first char [19:54:51]Sock 8.First char is OK [19:54:51]request: POST /json_proto HTTP/1.0 [19:54:51]Method: POST [19:54:51]URL: /json_proto [19:54:51]Method is POST - this is cgi request [19:54:51]url: /json_proto [19:54:51]query_string will be loaded in cgi processing [19:54:51]execute_cgi json_proto POST (null) [19:54:51]execute_cgi path=json_proto method=POST [19:54:51]POST find Content-Length [19:54:51]Host: 172.17.39.131:8080 [19:54:51]Content-Length: 800 [19:54:51]Content-Type: application/json [19:54:51] [19:54:51]POST finish read [19:54:51]Found Content-Length = 800 [19:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A4234221", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:51]execute_script... [19:54: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)191174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A4234221", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:51]POST & json_proto [19:54:51]process_json_proto [19:54:51]json parsed OK: [19:54:51]protocol is kg_v1.0 [19:54:51]action value=close_receipt [19:54:51]process_action close_receipt [19:54:51]cmd_close_receipt [19:54:51]MH_GetDate [19:54:51]Write to MH i2c: F0 00 00 6F 48 A6 [19:54:51]Write i2c OK [19:54:51]MH_I2C_Read... [19:54:51]Read from MH i2c: F0 [19:54:51]MH_I2C_Read... [19:54:51]Read from MH i2c: F0 09 00 [19:54:51]MH_I2C_Read... [19:54:51]Read from MH i2c: F0 09 00 6F 48 00 11 49 1D 67 86 57 24 65 F3 [19:54:51]GetLastDocTimeStamp 1729972378 [19:54:51]current date 1729972497 [19:54:51]FM_GetShiftState [19:54:51]SAM_PROTO_GetShiftState [19:54:51]wFMCommunicate request_size=4 [19:54:51]MH_SAM_APDU [19:54:51]CAPDU: 80 13 01 00 [19:54:51]Write to MH i2c: E2 08 00 70 48 80 13 01 00 00 00 00 00 35 [19:54:51]Write i2c OK [19:54:51]MH_I2C_Read... [19:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:51]Read from MH i2c: E2 [19:54:51]MH_I2C_Read... [19:54:51]Read from MH i2c: E2 0E 00 [19:54:51]MH_I2C_Read... [19:54:51]Read from MH i2c: E2 0E 00 70 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 50 [19:54:51]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:54:51]wFMCommunicate OK [19:54:51]SAM_PROTO_GetShiftState done [19:54:51]FM_GetShiftState done [19:54:51]opened in 1729902166 [19:54:51]opened+sec_in_day 1729988566 [19:54:51]quantity*price = 0 [19:54:51]sum+1 = 1 [19:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 188 26.10.2024 19:54 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4234221 ФМ: 0000000000871795 ФД: 75196 ФПД: 148541853994135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195457&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75196&fm=148541853994135&tin=02508201610067®Number=0000000000091691&sum=0 [19:54:52]StoreToDocumentArchive [19:54:52]shift 512 fd 75196 [19:54:52]save to /storage/0512/doc_00075196 [19:54:52]save last doc name /storage/0512/doc_00075196 to /storage/kkm_last_doc_name [19:54:52]save OK [19:54:52]Clear old archive folders... [19:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:52]tlvbuf is 008F2810 [19:54:52]SAM_PROTO_ClearQueue [19:54:52]wFMCommunicate request_size=4 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 09 00 00 [19:54:52]Write to MH i2c: E2 08 00 7D 48 80 09 00 00 00 00 00 00 37 [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:52]Read from MH i2c: E2 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 7D 48 00 90 00 39 [19:54:52]RAPDU: 90 00 [19:54:52]wFMCommunicate OK [19:54:52]SAM_PROTO_ClearQueue done [19:54:52]KKMCreateOFDPacket [19:54:52]OFDProtocolAddRootSTLVToBuf [19:54:52]FM_MakeSignedData [19:54:52]FM_MakeSignedData [19:54:52]SAM_PROTO_SignData [19:54:52]wFMCommunicate request_size=4 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 0D 01 02 [19:54:52]Write to MH i2c: E2 08 00 7E 48 80 0D 01 02 00 00 00 00 3F [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:52]Read from MH i2c: E2 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 7E 48 00 90 00 3A [19:54:52]RAPDU: 90 00 [19:54:52]wFMCommunicate OK [19:54:52]wFMCommunicate request_size=255 [19:54:52]MH_SAM_APDU [19:54: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 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 BC 00 00 00 F4 03 04 00 11 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 25 01 00 35 04 06 00 87 [19:54:52]Write to MH i2c: E2 02 01 7F 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 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 BC 00 00 00 F4 03 04 00 11 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 25 01 00 35 04 06 00 87 00 00 8B [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:52]Read from MH i2c: E2 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 7F 48 00 90 00 3B [19:54:52]RAPDU: 90 00 [19:54:52]wFMCommunicate OK [19:54:52]wFMCommunicate request_size=10 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 0D 02 02 05 19 18 71 0C 97 [19:54:52]Write to MH i2c: E2 0D 00 80 48 80 0D 02 02 05 00 19 18 71 0C 97 00 00 91 [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:52]Read from MH i2c: E2 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 03 00 80 48 00 90 00 3C [19:54:52]RAPDU: 90 00 [19:54:52]wFMCommunicate OK [19:54:52]wFMCommunicate request_size=4 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 0D 03 02 [19:54:52]Write to MH i2c: E2 08 00 81 48 80 0D 03 02 00 00 00 00 44 [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0B 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0B 00 81 48 00 E8 1A E1 2F 18 9D 74 58 90 00 D8 [19:54:53]RAPDU: E8 1A E1 2F 18 9D 74 58 90 00 [19:54:53]wFMCommunicate OK [19:54:53]SAM_PROTO_SignData done [19:54:53]FM_MakeSignedData done [19:54:53]CreateOFDProtocolMessage [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 11 00 00 [19:54:53]Write to MH i2c: E2 08 00 82 48 80 11 00 00 00 00 00 00 44 [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 17 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 17 00 82 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 9C [19:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:54:53]wFMCommunicate OK [19:54:53]CreateOFDProtocolMessage done [19:54:53]OFDSenderStorePacket 75196 [19:54:53]StoreOFDPacket docnum=75196 [19:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 91 DF 07 01 E4 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 11 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 25 01 00 35 04 06 00 87 19 18 71 0C 97 E8 1A E1 2F 18 9D 74 58 [19:54:53]CheckFolder [19:54:53]dirname=/storage/ofd_packets [19:54:53]CheckFolder done [19:54:53]ProducePacketName [19:54:53]name=ofd_packets/00075196 [19:54:53]NVStorageSaveData ofd_packets/00075196 [19:54:53]File name is /storage/ofd_packets/00075196 [19:54:53]Write 301 bytes [19:54:53]NVStorageSaveData done [19:54:53]OFDSenderStorePacket done [19:54:53]KKMCreateOFDPacket done [19:54:53]NVStorageSaveData kkm_last_timestamp [19:54:53]File name is /storage/kkm_last_timestamp [19:54:53]Write 4 bytes [19:54:53]NVStorageSaveData done [19:54:53]ExternCall_PrintAddStr [19:54:53]wPrintStart [19:54:53]Write to MH i2c: 01 00 00 83 48 CB [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 83 48 00 00 00 00 00 FF 0F E0 [19:54:53]RasterBufferAndPrint [19:54:53]line Счет N : (1)191174 [19:54:53]line ИНН: 02508201610067 [19:54:53]line Контрольно-Кассовый Чек [19:54:53]line ПРОДАЖА [19:54:53]line ТРК (МРК, ГНК) : 21 [19:54:53]line Товар: 2710124130 [19:54:53]line Аи-92-К-5 [19:54:53]line 10.000 * 0.00 [19:54:53]line = 0.00 [19:54:53]line НДС 12% НСП 1% [19:54:53]line > о реализуемом товаре [19:54:53]line ИТОГО: 0.00 [19:54:53]line НСП 1% : 0.00 [19:54:53]line НДС 12% : 0.00 [19:54:53]line Наличными: 0.00 [19:54:53]line Безнал.: 0.00 [19:54:53]line Место: АЗС № 142 "Партнер Нефть" [19:54:53]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:54:53]line СНО: Общий режим [19:54:53]line Чек 188 26.10.2024 19:54 [19:54:53]line Смена: 512 ФФД: 1.0 [19:54:53]line ЗНМ: 0300000089 [19:54:53]line РНМ: 0000000000091691 [19:54:53]line Версия ККМ: 001 [19:54:53]line Талоны: Топливные Талоны [19:54:53]line 4234221 [19:54:53]line ФМ: 0000000000871795 [19:54:53]line ФД: 75196 [19:54:53]line ФПД: 148541853994135 [19:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195457&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75196&fm=148541853994135&tin=02508201610067®Number=0000000000091691&sum=0 [19:54:53]written 0, free lines is 4095 [19:54:53]OFD Sender: Processing packet 75196 [packets to send 13, broken 12] [19:54:53]ProducePacketName [19:54:53]name=ofd_packets/00075196 [19:54:53]OFD Sender: To server: pG, [19:54:53]CommunicateWithHost lk.salyk.kg:30040 [19:54:53]ConnectInit lk.salyk.kg [19:54:53]Write to MH i2c: 01 00 00 AD 48 F5 [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 AD 48 00 00 00 00 00 B2 0C BA [19:54:53]RasterBufferAndPrint [19:54:53]line [19:54:53]line [19:54:53]line [19:54:53]line [19:54:53]line [19:54:53]written 0, free lines is 3254 [19:54:53]MH_Cut [19:54:53]Write to MH i2c: D1 01 00 B4 48 01 CE [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: D1 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: D1 01 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: D1 01 00 B4 48 00 CD [19:54:53]Write to MH i2c: 01 00 00 B5 48 FD [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Connected sock=10 [19:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 91 DF 07 01 E4 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 11 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BC 25 01 00 35 04 06 00 87 19 18 71 0C 97 E8 1A E1 2F 18 9D 74 58 [19:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 BA 61 47 00 2D 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 38 37 31 37 39 35 10 04 04 00 BC 25 01 00 F4 03 04 00 8D F0 1C 67 B6 04 01 00 00 D8 85 D9 C6 A0 F2 88 7E [19:54:53]CommunicateWithHost err = 0 [19:54:53]CheckOFDResponse [19:54:54]1017 (14) - 77093643461234 [19:54:54]1041 (16) - 0000000000871795 [19:54:54]1040 (4) - 75196 [19:54:54]1012 (4) - 26.10.2024 13:37 [19:54:54]1206 (1) - 0 [19:54:54]OFD Sender: Remove packet 75196 [19:54:54]ProducePacketName [19:54:54]name=ofd_packets/00075196 [19:54:54]NVStorageDeleteData [19:54:54]*** Cut start [19:54:54]*** Partial cut [19:54:54]*** CUTSNS_PIN = 1 [19:54:54]*** CUTSNS_PIN = 0 [19:54:54]OFD Sender: No OFD packet to send [19:54:54]*** Brake cut motor [19:54:55]Read from MH i2c: 01 [19:54:55]MH_I2C_Read... [19:54:55]*** Stop cut motor [19:54:55]*** Cut end [19:54:55]Read from MH i2c: 01 07 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 07 00 B5 48 00 00 00 00 00 FF 0F 12 [19:54:55]process_action close_receipt done [19:54:55]requested_data is exist [19:54:55]produce_requested_data [19:54:55]requested_item fm.sn is exist - process it [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 11 00 00 [19:54:55]Write to MH i2c: E2 08 00 B6 48 80 11 00 00 00 00 00 00 78 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 17 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 17 00 B6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D0 [19:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:54:55]wFMCommunicate OK [19:54:55]requested_item fd.num is exist - process it [19:54:55]SAM_PROTO_GetFieldsCounters [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 13 00 00 [19:54:55]Write to MH i2c: E2 08 00 B7 48 80 13 00 00 00 00 00 00 7B [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 62 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 62 00 B7 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BC 25 01 00 0E 04 04 00 00 02 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 BA [19:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BC 25 01 00 0E 04 04 00 00 02 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 [19:54:55]wFMCommunicate OK [19:54:55]SAM_PROTO_GetFieldsCounters done [19:54:55]requested_item shift.num is exist - process it [19:54:55]requested_item shift.opened is exist - process it [19:54:55]req_shift_opened [19:54:55]FM_GetShiftState [19:54:55]SAM_PROTO_GetShiftState [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 13 01 00 [19:54:55]Write to MH i2c: E2 08 00 B8 48 80 13 01 00 00 00 00 00 7D [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 0E 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 0E 00 B8 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 98 [19:54:55]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:54:55]wFMCommunicate OK [19:54:55]SAM_PROTO_GetShiftState done [19:54:55]FM_GetShiftState done [19:54:55]req_shift_opened done [19:54:55]requested_item shift.open_date is exist - process it [19:54:55]req_shift_open_date [19:54:55]req_shift_open_date done [19:54:55]produce_requested_data done [19:54:55]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75196,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:54:55]process_action_free close_receipt [19:54:55]json_value_free [19:54:55]json_value_free done [19:54:55]process_json_proto returns [19:54:55]Send response to host [19:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75196,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:54:55]free response buf [19:54:55]execute_script done [19:54:55]execute_script returns [19:54:55]free content buf [19:54:55]Sock 8.Close socket [19:54:55]Sock 8.Thread stoped [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:30]accept exits with 9 [19:56:30]New connection [19:56:30]New thread 3066781028 created [19:56:30]Thread 3066924388 joined [19:56:30]Waiting for new connection... [19:56:30] Sock 9.Parse request [19:56:30]Sock 9.Check first char [19:56:30]Sock 9.First char is OK [19:56:30]request: POST /json_proto HTTP/1.0 [19:56:30]Method: POST [19:56:30]URL: /json_proto [19:56:30]Method is POST - this is cgi request [19:56:30]url: /json_proto [19:56:30]query_string will be loaded in cgi processing [19:56:30]execute_cgi json_proto POST (null) [19:56:30]execute_cgi path=json_proto method=POST [19:56:30]POST find Content-Length [19:56:30]Host: 172.17.39.131:8080 [19:56:30]Content-Length: 806 [19:56:30]Content-Type: application/json [19:56:30] [19:56:30]POST finish read [19:56:30]Found Content-Length = 806 [19:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234222-23-24", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:30]execute_script... [19:56: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)191175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234222-23-24", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:30]POST & json_proto [19:56:30]process_json_proto [19:56:30]json parsed OK: [19:56:30]protocol is kg_v1.0 [19:56:30]action value=close_receipt [19:56:30]process_action close_receipt [19:56:30]cmd_close_receipt [19:56:30]MH_GetDate [19:56:30]Write to MH i2c: F0 00 00 B9 48 F0 [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 09 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 09 00 B9 48 00 74 49 1D 67 86 57 24 65 A0 [19:56:30]GetLastDocTimeStamp 1729972497 [19:56:30]current date 1729972596 [19:56:30]FM_GetShiftState [19:56:30]SAM_PROTO_GetShiftState [19:56:30]wFMCommunicate request_size=4 [19:56:30]MH_SAM_APDU [19:56:30]CAPDU: 80 13 01 00 [19:56:30]Write to MH i2c: E2 08 00 BA 48 80 13 01 00 00 00 00 00 7F [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:30]Read from MH i2c: E2 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 BA 48 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 9A [19:56:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:56:30]wFMCommunicate OK [19:56:30]SAM_PROTO_GetShiftState done [19:56:30]FM_GetShiftState done [19:56:30]opened in 1729902166 [19:56:30]opened+sec_in_day 1729988566 [19:56:30]quantity*price = 0 [19:56:30]sum+1 = 1 [19:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 189 26.10.2024 19:56 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Талоны: Топливные Талоны 4234222-23-24 ФМ: 0000000000871795 ФД: 75197 ФПД: 62045321166304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195636&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75197&fm=62045321166304&tin=02508201610067®Number=0000000000091691&sum=0 [19:56:31]StoreToDocumentArchive [19:56:31]shift 512 fd 75197 [19:56:31]save to /storage/0512/doc_00075197 [19:56:31]save last doc name /storage/0512/doc_00075197 to /storage/kkm_last_doc_name [19:56:31]save OK [19:56:31]Clear old archive folders... [19:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:31]tlvbuf is 008A30B0 [19:56:31]SAM_PROTO_ClearQueue [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 09 00 00 [19:56:31]Write to MH i2c: E2 08 00 C7 48 80 09 00 00 00 00 00 00 81 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 C7 48 00 90 00 83 [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]SAM_PROTO_ClearQueue done [19:56:31]KKMCreateOFDPacket [19:56:31]OFDProtocolAddRootSTLVToBuf [19:56:31]FM_MakeSignedData [19:56:31]FM_MakeSignedData [19:56:31]SAM_PROTO_SignData [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 0D 01 02 [19:56:31]Write to MH i2c: E2 08 00 C8 48 80 0D 01 02 00 00 00 00 89 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 C8 48 00 90 00 84 [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]wFMCommunicate request_size=255 [19:56:31]MH_SAM_APDU [19:56: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 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 BD 00 00 00 F4 03 04 00 74 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 25 01 00 35 04 06 00 38 [19:56:31]Write to MH i2c: E2 02 01 C9 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 BD 00 00 00 F4 03 04 00 74 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 25 01 00 35 04 06 00 38 00 00 59 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:32]Read from MH i2c: E2 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 03 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 03 00 C9 48 00 90 00 85 [19:56:32]RAPDU: 90 00 [19:56:32]wFMCommunicate OK [19:56:32]wFMCommunicate request_size=10 [19:56:32]MH_SAM_APDU [19:56:32]CAPDU: 80 0D 02 02 05 6E 0D 53 FD E0 [19:56:32]Write to MH i2c: E2 0D 00 CA 48 80 0D 02 02 05 00 6E 0D 53 FD E0 00 00 41 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:32]Read from MH i2c: E2 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 03 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 03 00 CA 48 00 90 00 86 [19:56:32]RAPDU: 90 00 [19:56:32]wFMCommunicate OK [19:56:32]wFMCommunicate request_size=4 [19:56:32]MH_SAM_APDU [19:56:32]CAPDU: 80 0D 03 02 [19:56:32]Write to MH i2c: E2 08 00 CB 48 80 0D 03 02 00 00 00 00 8E [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:32]Read from MH i2c: E2 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 0B 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 0B 00 CB 48 00 5D 16 FC 01 11 AB C3 26 90 00 A4 [19:56:32]RAPDU: 5D 16 FC 01 11 AB C3 26 90 00 [19:56:32]wFMCommunicate OK [19:56:32]SAM_PROTO_SignData done [19:56:32]FM_MakeSignedData done [19:56:32]CreateOFDProtocolMessage [19:56:32]wFMCommunicate request_size=4 [19:56:32]MH_SAM_APDU [19:56:32]CAPDU: 80 11 00 00 [19:56:32]Write to MH i2c: E2 08 00 CC 48 80 11 00 00 00 00 00 00 8E [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:32]Read from MH i2c: E2 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 17 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 17 00 CC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E6 [19:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:56:32]wFMCommunicate OK [19:56:32]CreateOFDProtocolMessage done [19:56:32]OFDSenderStorePacket 75197 [19:56:32]StoreOFDPacket docnum=75197 [19:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 07 B3 07 01 3D 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 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 BD 00 00 00 F4 03 04 00 74 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 25 01 00 35 04 06 00 38 6E 0D 53 FD E0 5D 16 FC 01 11 AB C3 26 [19:56:32]CheckFolder [19:56:32]dirname=/storage/ofd_packets [19:56:32]CheckFolder done [19:56:32]ProducePacketName [19:56:32]name=ofd_packets/00075197 [19:56:32]NVStorageSaveData ofd_packets/00075197 [19:56:32]File name is /storage/ofd_packets/00075197 [19:56:32]Write 301 bytes [19:56:32]NVStorageSaveData done [19:56:32]OFDSenderStorePacket done [19:56:32]KKMCreateOFDPacket done [19:56:32]NVStorageSaveData kkm_last_timestamp [19:56:32]File name is /storage/kkm_last_timestamp [19:56:32]Write 4 bytes [19:56:32]NVStorageSaveData done [19:56:32]ExternCall_PrintAddStr [19:56:32]wPrintStart [19:56:32]Write to MH i2c: 01 00 00 CD 48 15 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 CD 48 00 00 00 00 00 FF 0F 2A [19:56:32]RasterBufferAndPrint [19:56:32]line Счет N : (1)191175 [19:56:32]line ИНН: 02508201610067 [19:56:32]line Контрольно-Кассовый Чек [19:56:32]line ПРОДАЖА [19:56:32]line ТРК (МРК, ГНК) : 21 [19:56:32]line Товар: 2710124130 [19:56:32]line Аи-92-К-5 [19:56:32]line 30.000 * 0.00 [19:56:32]line = 0.00 [19:56:32]line НДС 12% НСП 1% [19:56:32]line > о реализуемом товаре [19:56:32]line ИТОГО: 0.00 [19:56:32]line НСП 1% : 0.00 [19:56:32]line НДС 12% : 0.00 [19:56:32]line Наличными: 0.00 [19:56:32]line Безнал.: 0.00 [19:56:32]line Место: АЗС № 142 "Партнер Нефть" [19:56:32]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [19:56:32]line СНО: Общий режим [19:56:32]line Чек 189 26.10.2024 19:56 [19:56:32]line Смена: 512 ФФД: 1.0 [19:56:32]line ЗНМ: 0300000089 [19:56:32]line РНМ: 0000000000091691 [19:56:32]line Версия ККМ: 001 [19:56:32]line Талоны: Топливные Талоны [19:56:32]line 4234222-23-24 [19:56:32]line ФМ: 0000000000871795 [19:56:32]line ФД: 75197 [19:56:32]line ФПД: 62045321166304 [19:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195636&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75197&fm=62045321166304&tin=02508201610067®Number=0000000000091691&sum=0 [19:56:32]written 0, free lines is 4095 [19:56:32]OFD Sender: Processing packet 75197 [packets to send 13, broken 12] [19:56:32]ProducePacketName [19:56:32]name=ofd_packets/00075197 [19:56:32]OFD Sender: To server: pG, [19:56:32]CommunicateWithHost lk.salyk.kg:30040 [19:56:32]ConnectInit lk.salyk.kg [19:56:32]Write to MH i2c: 01 00 00 F7 48 3F [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 F7 48 00 00 00 00 00 B6 0C 08 [19:56:32]RasterBufferAndPrint [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]written 0, free lines is 3260 [19:56:32]MH_Cut [19:56:32]Write to MH i2c: D1 01 00 FE 48 01 18 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 01 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 01 00 FE 48 00 17 [19:56:32]Write to MH i2c: 01 00 00 FF 48 47 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Connected sock=8 [19:56:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 07 B3 07 01 3D 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 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 BD 00 00 00 F4 03 04 00 74 49 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 25 01 00 35 04 06 00 38 6E 0D 53 FD E0 5D 16 FC 01 11 AB C3 26 [19:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 C5 6F 47 00 A8 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BD 25 01 00 F4 03 04 00 F0 F0 1C 67 B6 04 01 00 00 04 B9 AF 33 AD C4 BD F1 [19:56:33]CommunicateWithHost err = 0 [19:56:33]CheckOFDResponse [19:56:33]1017 (14) - 77093643461234 [19:56:33]1041 (16) - 0000000000871795 [19:56:33]1040 (4) - 75197 [19:56:33]1012 (4) - 26.10.2024 13:38 [19:56:33]1206 (1) - 0 [19:56:33]OFD Sender: Remove packet 75197 [19:56:33]ProducePacketName [19:56:33]name=ofd_packets/00075197 [19:56:33]NVStorageDeleteData [19:56:33]*** Cut start [19:56:33]*** Partial cut [19:56:33]*** CUTSNS_PIN = 1 [19:56:33]*** CUTSNS_PIN = 0 [19:56:33]OFD Sender: No OFD packet to send [19:56:33]*** Brake cut motor [19:56:34]Read from MH i2c: 01 [19:56:34]MH_I2C_Read... [19:56:34]*** Stop cut motor [19:56:34]*** Cut end [19:56:34]Read from MH i2c: 01 07 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: 01 07 00 FF 48 00 00 00 00 00 FF 0F 5C [19:56:34]process_action close_receipt done [19:56:34]requested_data is exist [19:56:34]produce_requested_data [19:56:34]requested_item fm.sn is exist - process it [19:56:34]wFMCommunicate request_size=4 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 11 00 00 [19:56:34]Write to MH i2c: E2 08 00 00 49 80 11 00 00 00 00 00 00 C3 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 17 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 17 00 00 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1B [19:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [19:56:34]wFMCommunicate OK [19:56:34]requested_item fd.num is exist - process it [19:56:34]SAM_PROTO_GetFieldsCounters [19:56:34]wFMCommunicate request_size=4 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 13 00 00 [19:56:34]Write to MH i2c: E2 08 00 01 49 80 13 00 00 00 00 00 00 C6 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 62 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 62 00 01 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BD 25 01 00 0E 04 04 00 00 02 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 09 [19:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BD 25 01 00 0E 04 04 00 00 02 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 [19:56:34]wFMCommunicate OK [19:56:34]SAM_PROTO_GetFieldsCounters done [19:56:34]requested_item shift.num is exist - process it [19:56:34]requested_item shift.opened is exist - process it [19:56:34]req_shift_opened [19:56:34]FM_GetShiftState [19:56:34]SAM_PROTO_GetShiftState [19:56:34]wFMCommunicate request_size=4 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 13 01 00 [19:56:34]Write to MH i2c: E2 08 00 02 49 80 13 01 00 00 00 00 00 C8 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 0E 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 0E 00 02 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E3 [19:56:34]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [19:56:34]wFMCommunicate OK [19:56:34]SAM_PROTO_GetShiftState done [19:56:34]FM_GetShiftState done [19:56:34]req_shift_opened done [19:56:34]requested_item shift.open_date is exist - process it [19:56:34]req_shift_open_date [19:56:34]req_shift_open_date done [19:56:34]produce_requested_data done [19:56:34]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75197,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [19:56:34]process_action_free close_receipt [19:56:34]json_value_free [19:56:34]json_value_free done [19:56:34]process_json_proto returns [19:56:34]Send response to host [19:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75197,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [19:56:34]free response buf [19:56:34]execute_script done [19:56:34]execute_script returns [19:56:34]free content buf [19:56:34]Sock 9.Close socket [19:56:34]Sock 9.Thread stoped [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]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:40]OFD Sender: No OFD packet to send [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:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]accept exits with 10 [20:38:50]New connection [20:38:50]New thread 3066924388 created [20:38:50]Thread 3066781028 joined [20:38:50]Waiting for new connection... [20:38:50] Sock 10.Parse request [20:38:50]Sock 10.Check first char [20:38:50]Sock 10.First char is OK [20:38:50]request: POST /json_proto HTTP/1.0 [20:38:50]Method: POST [20:38:50]URL: /json_proto [20:38:50]Method is POST - this is cgi request [20:38:50]url: /json_proto [20:38:50]query_string will be loaded in cgi processing [20:38:50]execute_cgi json_proto POST (null) [20:38:50]execute_cgi path=json_proto method=POST [20:38:50]POST find Content-Length [20:38:50]Host: 172.17.39.131:8080 [20:38:50]Content-Length: 677 [20:38:50]Content-Type: application/json [20:38:50] [20:38:50]POST finish read [20:38:50]Found Content-Length = 677 [20:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [20:38:50]execute_script... [20:38: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)191176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [20:38:50]POST & json_proto [20:38:50]process_json_proto [20:38:50]json parsed OK: [20:38:50]protocol is kg_v1.0 [20:38:50]action value=close_receipt [20:38:50]process_action close_receipt [20:38:50]cmd_close_receipt [20:38:50]MH_GetDate [20:38:50]Write to MH i2c: F0 00 00 03 49 3B [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 09 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 09 00 03 49 00 60 53 1D 67 86 57 24 65 E1 [20:38:50]GetLastDocTimeStamp 1729972596 [20:38:50]current date 1729975136 [20:38:50]FM_GetShiftState [20:38:50]SAM_PROTO_GetShiftState [20:38:50]wFMCommunicate request_size=4 [20:38:50]MH_SAM_APDU [20:38:50]CAPDU: 80 13 01 00 [20:38:50]Write to MH i2c: E2 08 00 04 49 80 13 01 00 00 00 00 00 CA [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:50]Read from MH i2c: E2 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 04 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 E5 [20:38:50]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:38:50]wFMCommunicate OK [20:38:50]SAM_PROTO_GetShiftState done [20:38:50]FM_GetShiftState done [20:38:50]opened in 1729902166 [20:38:50]opened+sec_in_day 1729988566 [20:38:50]quantity*price = 60009 [20:38:50]sum+1 = 60010 [20:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 190 26.10.2024 20:38 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75198 ФПД: 185509516357386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203856&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75198&fm=185509516357386&tin=02508201610067®Number=0000000000091691&sum=60000 [20:38:51]StoreToDocumentArchive [20:38:51]shift 512 fd 75198 [20:38:51]save to /storage/0512/doc_00075198 [20:38:51]save last doc name /storage/0512/doc_00075198 to /storage/kkm_last_doc_name [20:38:51]save OK [20:38:51]Clear old archive folders... [20:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:51]tlvbuf is 008F2D80 [20:38:51]SAM_PROTO_ClearQueue [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 09 00 00 [20:38:51]Write to MH i2c: E2 08 00 11 49 80 09 00 00 00 00 00 00 CC [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 11 49 00 90 00 CE [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]SAM_PROTO_ClearQueue done [20:38:51]KKMCreateOFDPacket [20:38:51]OFDProtocolAddRootSTLVToBuf [20:38:51]FM_MakeSignedData [20:38:51]FM_MakeSignedData [20:38:51]SAM_PROTO_SignData [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 0D 01 02 [20:38:51]Write to MH i2c: E2 08 00 12 49 80 0D 01 02 00 00 00 00 D4 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 12 49 00 90 00 CF [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]wFMCommunicate request_size=255 [20:38:51]MH_SAM_APDU [20:38: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 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 BE 00 00 00 F4 03 04 00 60 53 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 25 01 00 35 04 06 00 A8 [20:38:51]Write to MH i2c: E2 02 01 13 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 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 BE 00 00 00 F4 03 04 00 60 53 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 25 01 00 35 04 06 00 A8 00 00 C9 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 13 49 00 90 00 D0 [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]wFMCommunicate request_size=10 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 0D 02 02 05 B8 4C D3 2F 0A [20:38:51]Write to MH i2c: E2 0D 00 14 49 80 0D 02 02 05 00 B8 4C D3 2F 0A 00 00 F1 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 14 49 00 90 00 D1 [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 0D 03 02 [20:38:51]Write to MH i2c: E2 08 00 15 49 80 0D 03 02 00 00 00 00 D9 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 0B 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 0B 00 15 49 00 BC 86 8D 6B C2 F3 23 F7 90 00 E3 [20:38:51]RAPDU: BC 86 8D 6B C2 F3 23 F7 90 00 [20:38:51]wFMCommunicate OK [20:38:51]SAM_PROTO_SignData done [20:38:51]FM_MakeSignedData done [20:38:51]CreateOFDProtocolMessage [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 11 00 00 [20:38:51]Write to MH i2c: E2 08 00 16 49 80 11 00 00 00 00 00 00 D9 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 17 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 17 00 16 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 31 [20:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:38:51]wFMCommunicate OK [20:38:51]CreateOFDProtocolMessage done [20:38:51]OFDSenderStorePacket 75198 [20:38:51]StoreOFDPacket docnum=75198 [20:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5F D4 07 01 E1 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 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 BE 00 00 00 F4 03 04 00 60 53 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 25 01 00 35 04 06 00 A8 B8 4C D3 2F 0A BC 86 8D 6B C2 F3 23 F7 [20:38:51]CheckFolder [20:38:51]dirname=/storage/ofd_packets [20:38:51]CheckFolder done [20:38:51]ProducePacketName [20:38:51]name=ofd_packets/00075198 [20:38:51]NVStorageSaveData ofd_packets/00075198 [20:38:51]File name is /storage/ofd_packets/00075198 [20:38:51]Write 301 bytes [20:38:51]NVStorageSaveData done [20:38:51]OFDSenderStorePacket done [20:38:51]KKMCreateOFDPacket done [20:38:51]NVStorageSaveData kkm_last_timestamp [20:38:51]File name is /storage/kkm_last_timestamp [20:38:51]Write 4 bytes [20:38:51]NVStorageSaveData done [20:38:51]ExternCall_PrintAddStr [20:38:51]wPrintStart [20:38:51]Write to MH i2c: 01 00 00 17 49 60 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: 01 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: 01 07 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: 01 07 00 17 49 00 00 00 00 00 FF 0F 75 [20:38:51]RasterBufferAndPrint [20:38:51]line Счет N : (1)191176 [20:38:51]line ИНН: 02508201610067 [20:38:51]line Контрольно-Кассовый Чек [20:38:51]line ПРОДАЖА [20:38:51]line ТРК (МРК, ГНК) : 21 [20:38:51]line Товар: 2710124130 [20:38:51]line Аи-92-К-5 [20:38:51]line 8.970 * 66.90 [20:38:51]line = 600.09 [20:38:51]line НДС 12% НСП 1% [20:38:51]line > о реализуемом товаре [20:38:51]line ОКРУГЛЕНИЕ: -0.09 [20:38:51]line ИТОГО: 600.00 [20:38:51]line Внесено: 600.00 [20:38:51]line СДАЧА: 0.00 [20:38:51]line НСП 1% : 5.31 [20:38:51]line НДС 12% : 63.73 [20:38:51]line Наличными: 600.00 [20:38:51]line Безнал.: 0.00 [20:38:51]line Место: АЗС № 142 "Партнер Нефть" [20:38:51]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:38:51]line СНО: Общий режим [20:38:51]line Чек 190 26.10.2024 20:38 [20:38:51]line Смена: 512 ФФД: 1.0 [20:38:51]line ЗНМ: 0300000089 [20:38:51]line РНМ: 0000000000091691 [20:38:51]line Версия ККМ: 001 [20:38:51]line ФМ: 0000000000871795 [20:38:51]line ФД: 75198 [20:38:51]line ФПД: 185509516357386 [20:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203856&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75198&fm=185509516357386&tin=02508201610067®Number=0000000000091691&sum=60000 [20:38:51]written 0, free lines is 4095 [20:38:51]OFD Sender: Processing packet 75198 [packets to send 13, broken 12] [20:38:51]ProducePacketName [20:38:51]name=ofd_packets/00075198 [20:38:51]OFD Sender: To server: pG, [20:38:51]CommunicateWithHost lk.salyk.kg:30040 [20:38:51]ConnectInit lk.salyk.kg [20:38:52]Connected sock=8 [20:38:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 5F D4 07 01 E1 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 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 BE 00 00 00 F4 03 04 00 60 53 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 25 01 00 35 04 06 00 A8 B8 4C D3 2F 0A BC 86 8D 6B C2 F3 23 F7 [20:38:52]Write to MH i2c: 01 00 00 42 49 8B [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 42 49 00 00 00 00 00 A5 0C 43 [20:38:52]RasterBufferAndPrint [20:38:52]line [20:38:52]line [20:38:52]line [20:38:52]line [20:38:52]line [20:38:52]written 0, free lines is 3242 [20:38:52]MH_Cut [20:38:52]Write to MH i2c: D1 01 00 49 49 01 64 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: D1 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: D1 01 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: D1 01 00 49 49 00 63 [20:38:52]Write to MH i2c: 01 00 00 4A 49 93 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D9 34 47 00 F9 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BE 25 01 00 F4 03 04 00 DB FA 1C 67 B6 04 01 00 00 B4 19 4D F3 59 8B 8F E0 [20:38:52]CommunicateWithHost err = 0 [20:38:52]CheckOFDResponse [20:38:52]1017 (14) - 77093643461234 [20:38:52]1041 (16) - 0000000000871795 [20:38:52]1040 (4) - 75198 [20:38:52]1012 (4) - 26.10.2024 14:21 [20:38:52]1206 (1) - 0 [20:38:52]OFD Sender: Remove packet 75198 [20:38:52]ProducePacketName [20:38:52]name=ofd_packets/00075198 [20:38:52]NVStorageDeleteData [20:38:52]OFD Sender: No OFD packet to send [20:38:53]*** Cut start [20:38:53]*** Partial cut [20:38:53]*** CUTSNS_PIN = 1 [20:38:53]*** CUTSNS_PIN = 0 [20:38:53]*** Brake cut motor [20:38:53]Read from MH i2c: 01 [20:38:53]MH_I2C_Read... [20:38:53]*** Stop cut motor [20:38:53]*** Cut end [20:38:53]Read from MH i2c: 01 07 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 4A 49 00 00 00 00 00 FF 0F A8 [20:38:53]process_action close_receipt done [20:38:53]requested_data is exist [20:38:53]produce_requested_data [20:38:53]requested_item fm.sn is exist - process it [20:38:53]wFMCommunicate request_size=4 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 11 00 00 [20:38:53]Write to MH i2c: E2 08 00 4B 49 80 11 00 00 00 00 00 00 0E [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 17 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 17 00 4B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 66 [20:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:38:53]wFMCommunicate OK [20:38:53]requested_item fd.num is exist - process it [20:38:53]SAM_PROTO_GetFieldsCounters [20:38:53]wFMCommunicate request_size=4 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 13 00 00 [20:38:53]Write to MH i2c: E2 08 00 4C 49 80 13 00 00 00 00 00 00 11 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:54]Read from MH i2c: E2 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 62 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 62 00 4C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BE 25 01 00 0E 04 04 00 00 02 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 58 [20:38:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BE 25 01 00 0E 04 04 00 00 02 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 [20:38:54]wFMCommunicate OK [20:38:54]SAM_PROTO_GetFieldsCounters done [20:38:54]requested_item shift.num is exist - process it [20:38:54]requested_item shift.opened is exist - process it [20:38:54]req_shift_opened [20:38:54]FM_GetShiftState [20:38:54]SAM_PROTO_GetShiftState [20:38:54]wFMCommunicate request_size=4 [20:38:54]MH_SAM_APDU [20:38:54]CAPDU: 80 13 01 00 [20:38:54]Write to MH i2c: E2 08 00 4D 49 80 13 01 00 00 00 00 00 13 [20:38:54]Write i2c OK [20:38:54]MH_I2C_Read... [20:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:54]Read from MH i2c: E2 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 0E 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 0E 00 4D 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2E [20:38:54]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:38:54]wFMCommunicate OK [20:38:54]SAM_PROTO_GetShiftState done [20:38:54]FM_GetShiftState done [20:38:54]req_shift_opened done [20:38:54]requested_item shift.open_date is exist - process it [20:38:54]req_shift_open_date [20:38:54]req_shift_open_date done [20:38:54]produce_requested_data done [20:38:54]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75198,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [20:38:54]process_action_free close_receipt [20:38:54]json_value_free [20:38:54]json_value_free done [20:38:54]process_json_proto returns [20:38:54]Send response to host [20:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75198,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [20:38:54]free response buf [20:38:54]execute_script done [20:38:54]execute_script returns [20:38:54]free content buf [20:38:54]Sock 10.Close socket [20:38:54]Sock 10.Thread stoped [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:32]accept exits with 9 [20:46:32]New connection [20:46:32]New thread 3066781028 created [20:46:32]Thread 3066924388 joined [20:46:32]Waiting for new connection... [20:46:32] Sock 9.Parse request [20:46:32]Sock 9.Check first char [20:46:32]Sock 9.First char is OK [20:46:32]request: POST /json_proto HTTP/1.0 [20:46:32]Method: POST [20:46:32]URL: /json_proto [20:46:32]Method is POST - this is cgi request [20:46:32]url: /json_proto [20:46:32]query_string will be loaded in cgi processing [20:46:32]execute_cgi json_proto POST (null) [20:46:32]execute_cgi path=json_proto method=POST [20:46:32]POST find Content-Length [20:46:32]Host: 172.17.39.131:8080 [20:46:32]Content-Length: 688 [20:46:32]Content-Type: application/json [20:46:32] [20:46:32]POST finish read [20:46:32]Found Content-Length = 688 [20:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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" ] } } [20:46:32]execute_script... [20:46: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)191177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710194240", "name": "D-ENERGY \u0414\u0422-\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" ] } } [20:46:32]POST & json_proto [20:46:32]process_json_proto [20:46:32]json parsed OK: [20:46:32]protocol is kg_v1.0 [20:46:32]action value=close_receipt [20:46:32]process_action close_receipt [20:46:32]cmd_close_receipt [20:46:32]MH_GetDate [20:46:32]Write to MH i2c: F0 00 00 4E 49 86 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 09 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: F0 09 00 4E 49 00 2F 55 1D 67 86 57 24 65 FD [20:46:32]GetLastDocTimeStamp 1729975136 [20:46:32]current date 1729975599 [20:46:32]FM_GetShiftState [20:46:32]SAM_PROTO_GetShiftState [20:46:32]wFMCommunicate request_size=4 [20:46:32]MH_SAM_APDU [20:46:32]CAPDU: 80 13 01 00 [20:46:32]Write to MH i2c: E2 08 00 4F 49 80 13 01 00 00 00 00 00 15 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0E 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0E 00 4F 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 30 [20:46:32]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:46:32]wFMCommunicate OK [20:46:32]SAM_PROTO_GetShiftState done [20:46:32]FM_GetShiftState done [20:46:32]opened in 1729902166 [20:46:32]opened+sec_in_day 1729988566 [20:46:32]quantity*price = 150076 [20:46:32]sum+1 = 150078 [20:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 191 26.10.2024 20:46 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75199 ФПД: 56860644304641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204639&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75199&fm=56860644304641&tin=02508201610067®Number=0000000000091691&sum=150000 [20:46:33]StoreToDocumentArchive [20:46:33]shift 512 fd 75199 [20:46:33]save to /storage/0512/doc_00075199 [20:46:33]save last doc name /storage/0512/doc_00075199 to /storage/kkm_last_doc_name [20:46:33]save OK [20:46:33]Clear old archive folders... [20:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:46:33]tlvbuf is 008A33B0 [20:46:33]SAM_PROTO_ClearQueue [20:46:33]wFMCommunicate request_size=4 [20:46:33]MH_SAM_APDU [20:46:33]CAPDU: 80 09 00 00 [20:46:33]Write to MH i2c: E2 08 00 5C 49 80 09 00 00 00 00 00 00 17 [20:46:33]Write i2c OK [20:46:33]MH_I2C_Read... [20:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:33]Read from MH i2c: E2 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 03 00 [20:46:33]MH_I2C_Read... [20:46:33]Read from MH i2c: E2 03 00 5C 49 00 90 00 19 [20:46:33]RAPDU: 90 00 [20:46:33]wFMCommunicate OK [20:46:33]SAM_PROTO_ClearQueue done [20:46:33]KKMCreateOFDPacket [20:46:33]OFDProtocolAddRootSTLVToBuf [20:46:33]FM_MakeSignedData [20:46:33]FM_MakeSignedData [20:46:33]SAM_PROTO_SignData [20:46:33]wFMCommunicate request_size=4 [20:46:33]MH_SAM_APDU [20:46:33]CAPDU: 80 0D 01 02 [20:46:33]Write to MH i2c: E2 08 00 5D 49 80 0D 01 02 00 00 00 00 1F [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 5D 49 00 90 00 1A [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=255 [20:46:34]MH_SAM_APDU [20:46:34]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 D0 A2 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 BF 00 00 00 F4 03 04 00 2F 55 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 25 01 [20:46:34]Write to MH i2c: E2 02 01 5E 49 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 D0 A2 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 BF 00 00 00 F4 03 04 00 2F 55 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 25 01 00 00 9C [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 5E 49 00 90 00 1B [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=16 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 33 B6 E6 81 67 01 [20:46:34]Write to MH i2c: E2 13 00 5F 49 80 0D 02 02 0B 00 00 35 04 06 00 33 B6 E6 81 67 01 00 00 2F [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 03 00 5F 49 00 90 00 1C [20:46:34]RAPDU: 90 00 [20:46:34]wFMCommunicate OK [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 0D 03 02 [20:46:34]Write to MH i2c: E2 08 00 60 49 80 0D 03 02 00 00 00 00 24 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0B 00 60 49 00 E8 17 37 8E 90 B4 E5 E2 90 00 F4 [20:46:34]RAPDU: E8 17 37 8E 90 B4 E5 E2 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_SignData done [20:46:34]FM_MakeSignedData done [20:46:34]CreateOFDProtocolMessage [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 11 00 00 [20:46:34]Write to MH i2c: E2 08 00 61 49 80 11 00 00 00 00 00 00 24 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 61 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7C [20:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:46:34]wFMCommunicate OK [20:46:34]CreateOFDProtocolMessage done [20:46:34]OFDSenderStorePacket 75199 [20:46:34]StoreOFDPacket docnum=75199 [20:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 85 22 0D 01 02 31 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 D0 A2 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 BF 00 00 00 F4 03 04 00 2F 55 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 25 01 00 35 04 06 00 33 B6 E6 81 67 01 E8 17 37 8E 90 B4 E5 E2 [20:46:34]CheckFolder [20:46:34]dirname=/storage/ofd_packets [20:46:34]CheckFolder done [20:46:34]ProducePacketName [20:46:34]name=ofd_packets/00075199 [20:46:34]NVStorageSaveData ofd_packets/00075199 [20:46:34]File name is /storage/ofd_packets/00075199 [20:46:34]Write 307 bytes [20:46:34]NVStorageSaveData done [20:46:34]OFDSenderStorePacket done [20:46:34]KKMCreateOFDPacket done [20:46:34]NVStorageSaveData kkm_last_timestamp [20:46:34]File name is /storage/kkm_last_timestamp [20:46:34]Write 4 bytes [20:46:34]NVStorageSaveData done [20:46:34]ExternCall_PrintAddStr [20:46:34]wPrintStart [20:46:34]Write to MH i2c: 01 00 00 62 49 AB [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 62 49 00 00 00 00 00 FF 0F C0 [20:46:34]RasterBufferAndPrint [20:46:34]line Счет N : (1)191177 [20:46:34]line ИНН: 02508201610067 [20:46:34]line Контрольно-Кассовый Чек [20:46:34]line ПРОДАЖА [20:46:34]line ТРК (МРК, ГНК) : 42 [20:46:34]line Товар: 2710194240 [20:46:34]line D-ENERGY ДТ-К-2 [20:46:34]line 19.440 * 77.20 [20:46:34]line = 1500.77 [20:46:34]line НДС 12% НСП 1% [20:46:34]line > о реализуемом товаре [20:46:34]line ОКРУГЛЕНИЕ: -0.77 [20:46:34]line ИТОГО: 1500.00 [20:46:34]line Внесено: 1500.00 [20:46:34]line СДАЧА: 0.00 [20:46:34]line НСП 1% : 13.28 [20:46:34]line НДС 12% : 159.37 [20:46:34]line Наличными: 1500.00 [20:46:34]line Безнал.: 0.00 [20:46:34]line Место: АЗС № 142 "Партнер Нефть" [20:46:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:46:34]line СНО: Общий режим [20:46:34]line Чек 191 26.10.2024 20:46 [20:46:34]line Смена: 512 ФФД: 1.0 [20:46:34]line ЗНМ: 0300000089 [20:46:34]line РНМ: 0000000000091691 [20:46:34]line Версия ККМ: 001 [20:46:34]line ФМ: 0000000000871795 [20:46:34]line ФД: 75199 [20:46:34]line ФПД: 56860644304641 [20:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204639&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75199&fm=56860644304641&tin=02508201610067®Number=0000000000091691&sum=150000 [20:46:34]OFD Sender: Processing packet 75199 [packets to send 13, broken 12] [20:46:34]ProducePacketName [20:46:34]name=ofd_packets/00075199 [20:46:34]OFD Sender: To server: pG, [20:46:34]CommunicateWithHost lk.salyk.kg:30040 [20:46:34]ConnectInit lk.salyk.kg [20:46:34]written 0, free lines is 4095 [20:46:34]Connected sock=8 [20:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 15 01 00 00 85 22 0D 01 02 31 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 D0 A2 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 BF 00 00 00 F4 03 04 00 2F 55 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 25 01 00 35 04 06 00 33 B6 E6 81 67 01 E8 17 37 8E 90 B4 E5 E2 [20:46:35]Write to MH i2c: 01 00 00 8D 49 D6 [20:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 91 4F 47 00 CA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 BF 25 01 00 F4 03 04 00 AA FC 1C 67 B6 04 01 00 00 36 38 AF 40 97 45 2B 45 [20:46:35]CommunicateWithHost err = 0 [20:46:35]CheckOFDResponse [20:46:35]1017 (14) - 77093643461234 [20:46:35]1041 (16) - 0000000000871795 [20:46:35]1040 (4) - 75199 [20:46:35]1012 (4) - 26.10.2024 14:28 [20:46:35]1206 (1) - 0 [20:46:35]OFD Sender: Remove packet 75199 [20:46:35]ProducePacketName [20:46:35]name=ofd_packets/00075199 [20:46:35]NVStorageDeleteData [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: 01 07 00 8D 49 00 00 00 00 00 AD 0C 96 [20:46:35]RasterBufferAndPrint [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]line [20:46:35]written 0, free lines is 3272 [20:46:35]MH_Cut [20:46:35]Write to MH i2c: D1 01 00 94 49 01 AF [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 01 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: D1 01 00 94 49 00 AE [20:46:35]Write to MH i2c: 01 00 00 95 49 DE [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]OFD Sender: No OFD packet to send [20:46:36]*** Cut start [20:46:36]*** Partial cut [20:46:36]*** CUTSNS_PIN = 1 [20:46:36]*** CUTSNS_PIN = 0 [20:46:36]*** Brake cut motor [20:46:36]Read from MH i2c: 01 [20:46:36]MH_I2C_Read... [20:46:36]*** Stop cut motor [20:46:36]*** Cut end [20:46:36]Read from MH i2c: 01 07 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 07 00 95 49 00 00 00 00 00 FF 0F F3 [20:46:36]process_action close_receipt done [20:46:36]requested_data is exist [20:46:36]produce_requested_data [20:46:36]requested_item fm.sn is exist - process it [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 11 00 00 [20:46:36]Write to MH i2c: E2 08 00 96 49 80 11 00 00 00 00 00 00 59 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 96 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B1 [20:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:46:36]wFMCommunicate OK [20:46:36]requested_item fd.num is exist - process it [20:46:36]SAM_PROTO_GetFieldsCounters [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 13 00 00 [20:46:36]Write to MH i2c: E2 08 00 97 49 80 13 00 00 00 00 00 00 5C [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:37]Read from MH i2c: E2 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 62 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 62 00 97 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BF 25 01 00 0E 04 04 00 00 02 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 A7 [20:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 BF 25 01 00 0E 04 04 00 00 02 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 [20:46:37]wFMCommunicate OK [20:46:37]SAM_PROTO_GetFieldsCounters done [20:46:37]requested_item shift.num is exist - process it [20:46:37]requested_item shift.opened is exist - process it [20:46:37]req_shift_opened [20:46:37]FM_GetShiftState [20:46:37]SAM_PROTO_GetShiftState [20:46:37]wFMCommunicate request_size=4 [20:46:37]MH_SAM_APDU [20:46:37]CAPDU: 80 13 01 00 [20:46:37]Write to MH i2c: E2 08 00 98 49 80 13 01 00 00 00 00 00 5E [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:37]Read from MH i2c: E2 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 0E 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 0E 00 98 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 79 [20:46:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:46:37]wFMCommunicate OK [20:46:37]SAM_PROTO_GetShiftState done [20:46:37]FM_GetShiftState done [20:46:37]req_shift_opened done [20:46:37]requested_item shift.open_date is exist - process it [20:46:37]req_shift_open_date [20:46:37]req_shift_open_date done [20:46:37]produce_requested_data done [20:46:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75199,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [20:46:37]process_action_free close_receipt [20:46:37]json_value_free [20:46:37]json_value_free done [20:46:37]process_json_proto returns [20:46:37]Send response to host [20:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75199,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [20:46:37]free response buf [20:46:37]execute_script done [20:46:37]execute_script returns [20:46:37]free content buf [20:46:37]Sock 9.Close socket [20:46:37]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]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:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:40]accept exits with 10 [20:53:40]New connection [20:53:40]New thread 3066924388 created [20:53:40]Thread 3066781028 joined [20:53:40]Waiting for new connection... [20:53:40] Sock 10.Parse request [20:53:40]Sock 10.Check first char [20:53:40]Sock 10.First char is OK [20:53:40]request: POST /json_proto HTTP/1.0 [20:53:40]Method: POST [20:53:40]URL: /json_proto [20:53:40]Method is POST - this is cgi request [20:53:40]url: /json_proto [20:53:40]query_string will be loaded in cgi processing [20:53:40]execute_cgi json_proto POST (null) [20:53:40]execute_cgi path=json_proto method=POST [20:53:40]POST find Content-Length [20:53:40]Host: 172.17.39.131:8080 [20:53:40]Content-Length: 677 [20:53:40]Content-Type: application/json [20:53:40] [20:53:40]POST finish read [20:53:40]Found Content-Length = 677 [20:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [20:53:40]execute_script... [20:53: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)191178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [20:53:40]POST & json_proto [20:53:40]process_json_proto [20:53:40]json parsed OK: [20:53:40]protocol is kg_v1.0 [20:53:40]action value=close_receipt [20:53:40]process_action close_receipt [20:53:40]cmd_close_receipt [20:53:40]MH_GetDate [20:53:40]Write to MH i2c: F0 00 00 99 49 D1 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 09 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 09 00 99 49 00 DB 56 1D 67 86 57 24 65 F5 [20:53:40]GetLastDocTimeStamp 1729975599 [20:53:40]current date 1729976027 [20:53:40]FM_GetShiftState [20:53:40]SAM_PROTO_GetShiftState [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 13 01 00 [20:53:40]Write to MH i2c: E2 08 00 9A 49 80 13 01 00 00 00 00 00 60 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0E 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0E 00 9A 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 7B [20:53:40]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:53:40]wFMCommunicate OK [20:53:40]SAM_PROTO_GetShiftState done [20:53:40]FM_GetShiftState done [20:53:40]opened in 1729902166 [20:53:40]opened+sec_in_day 1729988566 [20:53:40]quantity*price = 40006 [20:53:40]sum+1 = 40007 [20:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 192 26.10.2024 20:53 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75200 ФПД: 167597526246952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205347&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75200&fm=167597526246952&tin=02508201610067®Number=0000000000091691&sum=40000 [20:53:41]StoreToDocumentArchive [20:53:41]shift 512 fd 75200 [20:53:41]save to /storage/0512/doc_00075200 [20:53:41]save last doc name /storage/0512/doc_00075200 to /storage/kkm_last_doc_name [20:53:41]save OK [20:53:41]Clear old archive folders... [20:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:41]tlvbuf is 009495B0 [20:53:41]SAM_PROTO_ClearQueue [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 09 00 00 [20:53:41]Write to MH i2c: E2 08 00 A7 49 80 09 00 00 00 00 00 00 62 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [20:53:42]RAPDU: 90 00 [20:53:42]wFMCommunicate OK [20:53:42]SAM_PROTO_ClearQueue done [20:53:42]KKMCreateOFDPacket [20:53:42]OFDProtocolAddRootSTLVToBuf [20:53:42]FM_MakeSignedData [20:53:42]FM_MakeSignedData [20:53:42]SAM_PROTO_SignData [20:53:42]wFMCommunicate request_size=4 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 0D 01 02 [20:53:42]Write to MH i2c: E2 08 00 A8 49 80 0D 01 02 00 00 00 00 6A [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 A8 49 00 90 00 65 [20:53:42]RAPDU: 90 00 [20:53:42]wFMCommunicate OK [20:53:42]wFMCommunicate request_size=255 [20:53:42]MH_SAM_APDU [20:53: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 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 DB 56 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 25 01 00 35 04 06 00 98 [20:53:42]Write to MH i2c: E2 02 01 A9 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 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 DB 56 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 25 01 00 35 04 06 00 98 00 00 C3 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 A9 49 00 90 00 66 [20:53:42]RAPDU: 90 00 [20:53:42]wFMCommunicate OK [20:53:42]wFMCommunicate request_size=10 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 0D 02 02 05 6D D7 04 66 28 [20:53:42]Write to MH i2c: E2 0D 00 AA 49 80 0D 02 02 05 00 6D D7 04 66 28 00 00 4D [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 03 00 AA 49 00 90 00 67 [20:53:42]RAPDU: 90 00 [20:53:42]wFMCommunicate OK [20:53:42]wFMCommunicate request_size=4 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 0D 03 02 [20:53:42]Write to MH i2c: E2 08 00 AB 49 80 0D 03 02 00 00 00 00 6F [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0B 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0B 00 AB 49 00 C5 65 A9 84 E7 FB BD 29 90 00 8F [20:53:42]RAPDU: C5 65 A9 84 E7 FB BD 29 90 00 [20:53:42]wFMCommunicate OK [20:53:42]SAM_PROTO_SignData done [20:53:42]FM_MakeSignedData done [20:53:42]CreateOFDProtocolMessage [20:53:42]wFMCommunicate request_size=4 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 11 00 00 [20:53:42]Write to MH i2c: E2 08 00 AC 49 80 11 00 00 00 00 00 00 6F [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 17 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 17 00 AC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [20:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:53:42]wFMCommunicate OK [20:53:42]CreateOFDProtocolMessage done [20:53:42]OFDSenderStorePacket 75200 [20:53:42]StoreOFDPacket docnum=75200 [20:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B1 E1 07 01 A8 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 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 DB 56 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 25 01 00 35 04 06 00 98 6D D7 04 66 28 C5 65 A9 84 E7 FB BD 29 [20:53:42]CheckFolder [20:53:42]dirname=/storage/ofd_packets [20:53:42]CheckFolder done [20:53:42]ProducePacketName [20:53:42]name=ofd_packets/00075200 [20:53:42]NVStorageSaveData ofd_packets/00075200 [20:53:42]File name is /storage/ofd_packets/00075200 [20:53:42]Write 301 bytes [20:53:42]NVStorageSaveData done [20:53:42]OFDSenderStorePacket done [20:53:42]KKMCreateOFDPacket done [20:53:42]NVStorageSaveData kkm_last_timestamp [20:53:42]File name is /storage/kkm_last_timestamp [20:53:42]Write 4 bytes [20:53:42]NVStorageSaveData done [20:53:42]ExternCall_PrintAddStr [20:53:42]wPrintStart [20:53:42]Write to MH i2c: 01 00 00 AD 49 F6 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 07 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 07 00 AD 49 00 00 00 00 00 FF 0F 0B [20:53:42]RasterBufferAndPrint [20:53:42]line Счет N : (1)191178 [20:53:42]line ИНН: 02508201610067 [20:53:42]line Контрольно-Кассовый Чек [20:53:42]line ПРОДАЖА [20:53:42]line ТРК (МРК, ГНК) : 21 [20:53:42]line Товар: 2710124130 [20:53:42]line Аи-92-К-5 [20:53:42]line 5.980 * 66.90 [20:53:42]line = 400.06 [20:53:42]line НДС 12% НСП 1% [20:53:42]line > о реализуемом товаре [20:53:42]line ОКРУГЛЕНИЕ: -0.06 [20:53:42]line ИТОГО: 400.00 [20:53:42]line Внесено: 400.00 [20:53:42]line СДАЧА: 0.00 [20:53:42]line НСП 1% : 3.54 [20:53:42]line НДС 12% : 42.48 [20:53:42]line Наличными: 400.00 [20:53:42]line Безнал.: 0.00 [20:53:42]line Место: АЗС № 142 "Партнер Нефть" [20:53:42]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:53:42]line СНО: Общий режим [20:53:42]line Чек 192 26.10.2024 20:53 [20:53:42]line Смена: 512 ФФД: 1.0 [20:53:42]line ЗНМ: 0300000089 [20:53:42]line РНМ: 0000000000091691 [20:53:42]line Версия ККМ: 001 [20:53:42]line ФМ: 0000000000871795 [20:53:42]line ФД: 75200 [20:53:42]line ФПД: 167597526246952 [20:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205347&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75200&fm=167597526246952&tin=02508201610067®Number=0000000000091691&sum=40000 [20:53:42]written 0, free lines is 4095 [20:53:42]OFD Sender: Processing packet 75200 [packets to send 13, broken 12] [20:53:42]ProducePacketName [20:53:42]name=ofd_packets/00075200 [20:53:42]OFD Sender: To server: pG, [20:53:42]CommunicateWithHost lk.salyk.kg:30040 [20:53:42]ConnectInit lk.salyk.kg [20:53:43]Write to MH i2c: 01 00 00 D8 49 21 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 D8 49 00 00 00 00 00 A1 0C D5 [20:53:43]RasterBufferAndPrint [20:53:43]line [20:53:43]line [20:53:43]line [20:53:43]line [20:53:43]line [20:53:43]written 0, free lines is 3240 [20:53:43]MH_Cut [20:53:43]Write to MH i2c: D1 01 00 DF 49 01 FA [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: D1 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: D1 01 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: D1 01 00 DF 49 00 F9 [20:53:43]Write to MH i2c: 01 00 00 E0 49 29 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]int [20:53:43]*** FLAG_PRN_PAP2 set [20:53:43]*** Cut start [20:53:43]*** Partial cut [20:53:43]*** CUTSNS_PIN = 1 [20:53:43]*** CUTSNS_PIN = 0 [20:53:44]*** Brake cut motor [20:53:44]Read from MH i2c: 01 [20:53:44]MH_I2C_Read... [20:53:44]*** Stop cut motor [20:53:44]*** Cut end [20:53:44]Read from MH i2c: 01 07 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 E0 49 00 02 00 00 00 FF 0F 40 [20:53:44]process_action close_receipt done [20:53:44]requested_data is exist [20:53:44]produce_requested_data [20:53:44]requested_item fm.sn is exist - process it [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 11 00 00 [20:53:44]Write to MH i2c: E2 08 00 E1 49 80 11 00 00 00 00 00 00 A4 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 E1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 FC [20:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:53:44]wFMCommunicate OK [20:53:44]requested_item fd.num is exist - process it [20:53:44]SAM_PROTO_GetFieldsCounters [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 13 00 00 [20:53:44]Write to MH i2c: E2 08 00 E2 49 80 13 00 00 00 00 00 00 A7 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 62 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 62 00 E2 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C0 25 01 00 0E 04 04 00 00 02 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 F6 [20:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C0 25 01 00 0E 04 04 00 00 02 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 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_GetFieldsCounters done [20:53:44]requested_item shift.num is exist - process it [20:53:44]requested_item shift.opened is exist - process it [20:53:44]req_shift_opened [20:53:44]FM_GetShiftState [20:53:44]SAM_PROTO_GetShiftState [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 13 01 00 [20:53:44]Write to MH i2c: E2 08 00 E3 49 80 13 01 00 00 00 00 00 A9 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0E 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0E 00 E3 49 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C4 [20:53:44]RAPDU: Write to MH i2c: 09 01 00 00 01 56 00 36 E4 1C 49 2D 67 [20:53:44]00 00 00 00 90 00 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_GetShiftState done [20:53:44]FM_GetShiftState done [20:53:44]req_shift_opened done [20:53:44]requested_item shift.open_date is exist - process it [20:53:44]req_shift_open_date [20:53:44]Write i2c OK [20:53:44]req_shift_open_date done [20:53:44]MH_I2C_Read... [20:53:44]produce_requested_data done [20:53:44]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75200,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [20:53:44]Read from MH i2c: process_action_free close_receipt [20:53:44]01 json_value_free [20:53:44] [20:53:44]MH_I2C_Read... [20:53:44]json_value_free done [20:53:44]process_json_proto returns [20:53:44]Read from MH i2c: Send response to host [20:53:44]01 07 00 [20:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75200,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [20:53:44]MH_I2C_Read... [20:53:44]free response buf [20:53:44]execute_script done [20:53:44]execute_script returns [20:53:44]free content buf [20:53:44]Sock 10.Close socket [20:53:44]Sock 10.Thread stoped [20:53:44]Read from MH i2c: 01 07 00 E4 49 00 02 00 00 00 FF 0F 44 [20:53:44]state=0 [20:53:44]Cover opened [20:53:49]Write to MH i2c: 01 00 00 E5 49 2E [20:53:49]Write i2c OK [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: 01 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: 01 07 00 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: 01 07 00 E5 49 00 02 00 00 00 FF 0F 45 [20:53:49]state=3 [20:53:49]Cover opened [20:53:54]Write to MH i2c: 01 00 00 E6 49 2F [20:53:54]Write i2c OK [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: 01 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: 01 07 00 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: 01 07 00 E6 49 00 02 00 00 00 FF 0F 46 [20:53:54]state=3 [20:53:54]Cover opened [20:53:59]Write to MH i2c: 01 00 00 E7 49 30 [20:53:59]Write i2c OK [20:53:59]MH_I2C_Read... [20:53:59]Read from MH i2c: 01 [20:53:59]MH_I2C_Read... [20:53:59]Read from MH i2c: 01 07 00 [20:53:59]MH_I2C_Read... [20:53:59]Read from MH i2c: 01 07 00 E7 49 00 02 00 00 00 FF 0F 47 [20:53:59]state=3 [20:53:59]Cover opened [20:54:04]Write to MH i2c: 01 00 00 E8 49 31 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 07 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 07 00 E8 49 00 02 00 00 00 FF 0F 48 [20:54:04]state=3 [20:54:04]Cover opened [20:54:09]Write to MH i2c: 01 00 00 E9 49 32 [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: 01 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: 01 07 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: 01 07 00 E9 49 00 02 00 00 00 FF 0F 49 [20:54:09]state=3 [20:54:09]Cover opened [20:54:14]Write to MH i2c: 01 00 00 EA 49 33 [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: 01 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: 01 07 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: 01 07 00 EA 49 00 02 00 00 00 FF 0F 4A [20:54:14]state=3 [20:54:14]Cover opened [20:54:19]Write to MH i2c: 01 00 00 EB 49 34 [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 07 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 07 00 EB 49 00 02 00 00 00 FF 0F 4B [20:54:19]state=3 [20:54:19]Cover opened [20:54:24]Write to MH i2c: 01 00 00 EC 49 35 [20:54:24]Write i2c OK [20:54:24]MH_I2C_Read... [20:54:24]Read from MH i2c: 01 [20:54:24]MH_I2C_Read... [20:54:24]Read from MH i2c: 01 07 00 [20:54:24]MH_I2C_Read... [20:54:24]Read from MH i2c: 01 07 00 EC 49 00 02 00 00 00 FF 0F 4C [20:54:24]state=3 [20:54:24]Cover opened [20:54:29]Write to MH i2c: 01 00 00 ED 49 36 [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: 01 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: 01 07 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: 01 07 00 ED 49 00 02 00 00 00 FF 0F 4D [20:54:29]state=3 [20:54:29]Cover opened [20:54:34]Write to MH i2c: 01 00 00 EE 49 37 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 EE 49 00 02 00 00 00 FF 0F 4E [20:54:34]state=3 [20:54:34]Cover opened [20:54:39]Write to MH i2c: 01 00 00 EF 49 38 [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 07 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 07 00 EF 49 00 02 00 00 00 FF 0F 4F [20:54:39]state=3 [20:54:39]Cover opened [20:54:44]Write to MH i2c: 01 00 00 F0 49 39 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 07 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 07 00 F0 49 00 02 00 00 00 FF 0F 50 [20:54:44]state=3 [20:54:44]Cover opened [20:54:49]Write to MH i2c: 01 00 00 F1 49 3A [20:54:49]Write i2c OK [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 07 00 [20:54:49]MH_I2C_Read... [20:54:49]Read from MH i2c: 01 07 00 F1 49 00 02 00 00 00 FF 0F 51 [20:54:49]state=3 [20:54:49]Cover opened [20:54:54]Write to MH i2c: 01 00 00 F2 49 3B [20:54:54]Write i2c OK [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: 01 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: 01 07 00 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: 01 07 00 F2 49 00 02 00 00 00 FF 0F 52 [20:54:54]state=3 [20:54:54]Cover opened [20:54:59]Write to MH i2c: 01 00 00 F3 49 3C [20:54:59]Write i2c OK [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: 01 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: 01 07 00 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: 01 07 00 F3 49 00 02 00 00 00 FF 0F 53 [20:54:59]state=3 [20:54:59]Cover opened [20:55:04]Write to MH i2c: 01 00 00 F4 49 3D [20:55:04]Write i2c OK [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: 01 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: 01 07 00 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: 01 07 00 F4 49 00 02 00 00 00 FF 0F 54 [20:55:04]state=3 [20:55:04]Cover opened [20:55:09]Write to MH i2c: 01 00 00 F5 49 3E [20:55:09]Write i2c OK [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 07 00 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 07 00 F5 49 00 02 00 00 00 FF 0F 55 [20:55:09]state=3 [20:55:09]Cover opened [20:55:14]Write to MH i2c: 01 00 00 F6 49 3F [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 07 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 07 00 F6 49 00 02 00 00 00 FF 0F 56 [20:55:14]state=3 [20:55:14]Cover opened [20:55:19]Write to MH i2c: 01 00 00 F7 49 40 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 F7 49 00 02 00 00 00 FF 0F 57 [20:55:19]state=3 [20:55:19]Cover opened [20:55:24]Write to MH i2c: 01 00 00 F8 49 41 [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 07 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 07 00 F8 49 00 02 00 00 00 FF 0F 58 [20:55:24]state=3 [20:55:24]Cover opened [20:55:29]Write to MH i2c: 01 00 00 F9 49 42 [20:55:29]Write i2c OK [20:55:29]MH_I2C_Read... [20:55:29]Read from MH i2c: 01 [20:55:29]MH_I2C_Read... [20:55:29]Read from MH i2c: 01 07 00 [20:55:29]MH_I2C_Read... [20:55:29]Read from MH i2c: 01 07 00 F9 49 00 02 00 00 00 FF 0F 59 [20:55:29]state=3 [20:55:29]Cover opened [20:55:34]Write to MH i2c: 01 00 00 FA 49 43 [20:55:34]Write i2c OK [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: 01 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: 01 07 00 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: 01 07 00 FA 49 00 02 00 00 00 FF 0F 5A [20:55:34]state=3 [20:55:34]Cover opened [20:55:39]Write to MH i2c: 01 00 00 FB 49 44 [20:55:39]Write i2c OK [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: 01 [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: 01 07 00 [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: 01 07 00 FB 49 00 02 00 00 00 FF 0F 5B [20:55:39]state=3 [20:55:39]Cover opened [20:55:44]Write to MH i2c: 01 00 00 FC 49 45 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: 01 [20:55:44]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 FC 49 00 02 00 00 00 FF 0F 5C [20:55:45]state=3 [20:55:45]Cover opened [20:55:50]Write to MH i2c: 01 00 00 FD 49 46 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 07 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 07 00 FD 49 00 02 00 00 00 FF 0F 5D [20:55:50]state=3 [20:55:50]Cover opened [20:55:54]ConnectInit Can't connect to host [20:55:54]CommunicateWithHost connect error [20:55:54]CommunicateWithHost err = -1 [20:55:54]OFD Sender: Server communicate error [20:55:55]Write to MH i2c: 01 00 00 FE 49 47 [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 07 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 07 00 FE 49 00 02 00 00 00 FF 0F 5E [20:55:55]state=3 [20:55:55]Cover opened [20:55:59]OFD Sender: Processing packet 75200 [packets to send 13, broken 12] [20:55:59]ProducePacketName [20:55:59]name=ofd_packets/00075200 [20:55:59]OFD Sender: To server: pG, [20:55:59]CommunicateWithHost lk.salyk.kg:30040 [20:55:59]ConnectInit lk.salyk.kg [20:55:59]Connected sock=9 [20:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 B1 E1 07 01 A8 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 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 DB 56 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 25 01 00 35 04 06 00 98 6D D7 04 66 28 C5 65 A9 84 E7 FB BD 29 [20:56:00]Write to MH i2c: 01 00 00 FF 49 48 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: 01 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: 01 07 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: 01 07 00 FF 49 00 02 00 00 00 FF 0F 5F [20:56:00]state=3 [20:56:00]Cover opened [20:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 75 E9 47 00 72 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C0 25 01 00 F4 03 04 00 DF FE 1C 67 B6 04 01 00 00 96 FE 53 28 92 5F 1B 29 [20:56:00]CommunicateWithHost err = 0 [20:56:00]CheckOFDResponse [20:56:00]1017 (14) - 77093643461234 [20:56:00]1041 (16) - 0000000000871795 [20:56:00]1040 (4) - 75200 [20:56:00]1012 (4) - 26.10.2024 14:38 [20:56:00]1206 (1) - 0 [20:56:00]OFD Sender: Remove packet 75200 [20:56:00]ProducePacketName [20:56:00]name=ofd_packets/00075200 [20:56:00]NVStorageDeleteData [20:56:00]OFD Sender: No OFD packet to send [20:56:05]Write to MH i2c: 01 00 00 00 4A 4A [20:56:05]Write i2c OK [20:56:05]MH_I2C_Read... [20:56:05]Read from MH i2c: 01 [20:56:05]MH_I2C_Read... [20:56:05]Read from MH i2c: 01 07 00 [20:56:05]MH_I2C_Read... [20:56:05]Read from MH i2c: 01 07 00 00 4A 00 02 00 00 00 FF 0F 61 [20:56:05]state=3 [20:56:05]Cover opened [20:56:05]OFD Sender: No OFD packet to send [20:56:10]Write to MH i2c: 01 00 00 01 4A 4B [20:56:10]Write i2c OK [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: 01 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: 01 07 00 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: 01 07 00 01 4A 00 02 00 00 00 FF 0F 62 [20:56:10]state=3 [20:56:10]Cover opened [20:56:10]OFD Sender: No OFD packet to send [20:56:15]Write to MH i2c: 01 00 00 02 4A 4C [20:56:15]Write i2c OK [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: 01 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: 01 07 00 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: 01 07 00 02 4A 00 02 00 00 00 FF 0F 63 [20:56:15]state=3 [20:56:15]Cover opened [20:56:15]OFD Sender: No OFD packet to send [20:56:20]Write to MH i2c: 01 00 00 03 4A 4D [20:56:20]Write i2c OK [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 07 00 [20:56:20]MH_I2C_Read... [20:56:20]Read from MH i2c: 01 07 00 03 4A 00 02 00 00 00 FF 0F 64 [20:56:20]state=3 [20:56:20]Cover opened [20:56:20]OFD Sender: No OFD packet to send [20:56:25]Write to MH i2c: 01 00 00 04 4A 4E [20:56:25]Write i2c OK [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: 01 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: 01 07 00 [20:56:25]MH_I2C_Read... [20:56:25]Read from MH i2c: 01 07 00 04 4A 00 02 00 00 00 FF 0F 65 [20:56:25]state=3 [20:56:25]Cover opened [20:56:25]OFD Sender: No OFD packet to send [20:56:30]Write to MH i2c: 01 00 00 05 4A 4F [20:56:30]Write i2c OK [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 07 00 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 07 00 05 4A 00 02 00 00 00 FF 0F 66 [20:56:30]state=3 [20:56:30]Cover opened [20:56:30]OFD Sender: No OFD packet to send [20:56:35]Write to MH i2c: 01 00 00 06 4A 50 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 07 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 07 00 06 4A 00 02 00 00 00 FF 0F 67 [20:56:35]state=3 [20:56:35]Cover opened [20:56:35]OFD Sender: No OFD packet to send [20:56:40]Write to MH i2c: 01 00 00 07 4A 51 [20:56:40]Write i2c OK [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: 01 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: 01 07 00 [20:56:40]MH_I2C_Read... [20:56:40]Read from MH i2c: 01 07 00 07 4A 00 02 00 00 00 FF 0F 68 [20:56:40]state=3 [20:56:40]Cover opened [20:56:40]OFD Sender: No OFD packet to send [20:56:45]Write to MH i2c: 01 00 00 08 4A 52 [20:56:45]Write i2c OK [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: 01 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: 01 07 00 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: 01 07 00 08 4A 00 02 00 00 00 FF 0F 69 [20:56:45]state=3 [20:56:45]Cover opened [20:56:45]OFD Sender: No OFD packet to send [20:56:50]Write to MH i2c: 01 00 00 09 4A 53 [20:56:50]Write i2c OK [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 07 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 07 00 09 4A 00 02 00 00 00 FF 0F 6A [20:56:50]state=3 [20:56:50]Cover opened [20:56:50]OFD Sender: No OFD packet to send [20:56:55]Write to MH i2c: 01 00 00 0A 4A 54 [20:56:55]Write i2c OK [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 07 00 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 07 00 0A 4A 00 02 00 00 00 FF 0F 6B [20:56:55]state=3 [20:56:55]Cover opened [20:56:55]OFD Sender: No OFD packet to send [20:57:00]Write to MH i2c: 01 00 00 0B 4A 55 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 07 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 07 00 0B 4A 00 02 00 00 00 FF 0F 6C [20:57:00]state=3 [20:57:00]Cover opened [20:57:00]OFD Sender: No OFD packet to send [20:57:05]Write to MH i2c: 01 00 00 0C 4A 56 [20:57:05]Write i2c OK [20:57:05]MH_I2C_Read... [20:57:05]Read from MH i2c: 01 [20:57:05]MH_I2C_Read... [20:57:05]Read from MH i2c: 01 07 00 [20:57:05]MH_I2C_Read... [20:57:05]Read from MH i2c: 01 07 00 0C 4A 00 02 00 00 00 FF 0F 6D [20:57:05]state=3 [20:57:05]Cover opened [20:57:05]OFD Sender: No OFD packet to send [20:57:10]Write to MH i2c: 01 00 00 0D 4A 57 [20:57:10]Write i2c OK [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: 01 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: 01 07 00 [20:57:10]MH_I2C_Read... [20:57:10]Read from MH i2c: 01 07 00 0D 4A 00 02 00 00 00 FF 0F 6E [20:57:10]state=3 [20:57:10]Cover opened [20:57:10]OFD Sender: No OFD packet to send [20:57:15]Write to MH i2c: 01 00 00 0E 4A 58 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 0E 4A 00 02 00 00 00 FF 0F 6F [20:57:15]state=3 [20:57:15]Cover opened [20:57:15]OFD Sender: No OFD packet to send [20:57:20]Write to MH i2c: 01 00 00 0F 4A 59 [20:57:20]Write i2c OK [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: 01 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: 01 07 00 [20:57:20]MH_I2C_Read... [20:57:20]Read from MH i2c: 01 07 00 0F 4A 00 02 00 00 00 FF 0F 70 [20:57:20]state=3 [20:57:20]Cover opened [20:57:20]OFD Sender: No OFD packet to send [20:57:25]Write to MH i2c: 01 00 00 10 4A 5A [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 10 4A 00 02 00 00 00 FF 0F 71 [20:57:25]state=3 [20:57:25]Cover opened [20:57:25]OFD Sender: No OFD packet to send [20:57:30]Write to MH i2c: 01 00 00 11 4A 5B [20:57:30]Write i2c OK [20:57:30]MH_I2C_Read... [20:57:30]Read from MH i2c: 01 [20:57:30]MH_I2C_Read... [20:57:30]Read from MH i2c: 01 07 00 [20:57:30]MH_I2C_Read... [20:57:30]Read from MH i2c: 01 07 00 11 4A 00 02 00 00 00 FF 0F 72 [20:57:30]state=3 [20:57:30]Cover opened [20:57:30]OFD Sender: No OFD packet to send [20:57:35]Write to MH i2c: 01 00 00 12 4A 5C [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 12 4A 00 02 00 00 00 FF 0F 73 [20:57:35]state=3 [20:57:35]Cover opened [20:57:35]OFD Sender: No OFD packet to send [20:57:40]Write to MH i2c: 01 00 00 13 4A 5D [20:57:40]Write i2c OK [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: 01 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: 01 07 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: 01 07 00 13 4A 00 02 00 00 00 FF 0F 74 [20:57:40]state=3 [20:57:40]Cover opened [20:57:40]OFD Sender: No OFD packet to send [20:57:45]Write to MH i2c: 01 00 00 14 4A 5E [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 14 4A 00 02 00 00 00 FF 0F 75 [20:57:45]state=3 [20:57:45]Cover opened [20:57:45]OFD Sender: No OFD packet to send [20:57:50]Write to MH i2c: 01 00 00 15 4A 5F [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 07 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 07 00 15 4A 00 02 00 00 00 FF 0F 76 [20:57:50]state=3 [20:57:50]Cover opened [20:57:50]OFD Sender: No OFD packet to send [20:57:55]Write to MH i2c: 01 00 00 16 4A 60 [20:57:55]Write i2c OK [20:57:55]MH_I2C_Read... [20:57:55]Read from MH i2c: 01 [20:57:55]MH_I2C_Read... [20:57:55]Read from MH i2c: 01 07 00 [20:57:55]MH_I2C_Read... [20:57:55]Read from MH i2c: 01 07 00 16 4A 00 02 00 00 00 FF 0F 77 [20:57:55]state=3 [20:57:55]Cover opened [20:57:55]OFD Sender: No OFD packet to send [20:58:00]Write to MH i2c: 01 00 00 17 4A 61 [20:58:00]Write i2c OK [20:58:00]MH_I2C_Read... [20:58:00]Read from MH i2c: 01 [20:58:00]MH_I2C_Read... [20:58:00]Read from MH i2c: 01 07 00 [20:58:00]MH_I2C_Read... [20:58:00]Read from MH i2c: 01 07 00 17 4A 00 02 00 00 00 FF 0F 78 [20:58:00]state=3 [20:58:00]Cover opened [20:58:00]OFD Sender: No OFD packet to send [20:58:05]Write to MH i2c: 01 00 00 18 4A 62 [20:58:05]Write i2c OK [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: 01 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: 01 07 00 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: 01 07 00 18 4A 00 02 00 00 00 FF 0F 79 [20:58:05]state=3 [20:58:05]Cover opened [20:58:05]OFD Sender: No OFD packet to send [20:58:10]Write to MH i2c: 01 00 00 19 4A 63 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 07 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 07 00 19 4A 00 02 00 00 00 FF 0F 7A [20:58:10]state=3 [20:58:10]Cover opened [20:58:10]OFD Sender: No OFD packet to send [20:58:15]Write to MH i2c: 01 00 00 1A 4A 64 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 1A 4A 00 02 00 00 00 FF 0F 7B [20:58:15]state=3 [20:58:15]Cover opened [20:58:15]OFD Sender: No OFD packet to send [20:58:20]Write to MH i2c: 01 00 00 1B 4A 65 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 07 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 07 00 1B 4A 00 02 00 00 00 FF 0F 7C [20:58:20]state=3 [20:58:20]Cover opened [20:58:20]OFD Sender: No OFD packet to send [20:58:22]accept exits with 8 [20:58:22]New connection [20:58:22]New thread 3066781028 created [20:58:22]Thread 3066924388 joined [20:58:22]Waiting for new connection... [20:58:22] Sock 8.Parse request [20:58:22]Sock 8.Check first char [20:58:22]Sock 8.First char is OK [20:58:22]request: POST /json_proto HTTP/1.0 [20:58:22]Method: POST [20:58:22]URL: /json_proto [20:58:22]Method is POST - this is cgi request [20:58:22]url: /json_proto [20:58:22]query_string will be loaded in cgi processing [20:58:22]execute_cgi json_proto POST (null) [20:58:22]execute_cgi path=json_proto method=POST [20:58:22]POST find Content-Length [20:58:22]Host: 172.17.39.131:8080 [20:58:22]Content-Length: 679 [20:58:22]Content-Type: application/json [20:58:22] [20:58:22]POST finish read [20:58:22]Found Content-Length = 679 [20:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [20:58:22]execute_script... [20:58: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)191179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [20:58:22]POST & json_proto [20:58:22]process_json_proto [20:58:22]json parsed OK: [20:58:22]protocol is kg_v1.0 [20:58:22]action value=close_receipt [20:58:22]process_action close_receipt [20:58:22]cmd_close_receipt [20:58:22]MH_GetDate [20:58:22]Write to MH i2c: F0 00 00 1C 4A 55 [20:58:22]Write i2c OK [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 09 00 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 09 00 1C 4A 00 F4 57 1D 67 86 57 24 65 93 [20:58:22]GetLastDocTimeStamp 1729976027 [20:58:22]current date 1729976308 [20:58:22]FM_GetShiftState [20:58:22]SAM_PROTO_GetShiftState [20:58:22]wFMCommunicate request_size=4 [20:58:22]MH_SAM_APDU [20:58:22]CAPDU: 80 13 01 00 [20:58:22]Write to MH i2c: E2 08 00 1D 4A 80 13 01 00 00 00 00 00 E4 [20:58:22]Write i2c OK [20:58:22]MH_I2C_Read... [20:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:22]Read from MH i2c: E2 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: E2 0E 00 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: E2 0E 00 1D 4A 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FF [20:58:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [20:58:22]wFMCommunicate OK [20:58:22]SAM_PROTO_GetShiftState done [20:58:22]FM_GetShiftState done [20:58:22]opened in 1729902166 [20:58:22]opened+sec_in_day 1729988566 [20:58:22]quantity*price = 100050 [20:58:22]sum+1 = 100052 [20:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 193 26.10.2024 20:58 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75201 ФПД: 66344938926954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205829&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75201&fm=66344938926954&tin=02508201610067®Number=0000000000091691&sum=100000 [20:58:23]StoreToDocumentArchive [20:58:23]shift 512 fd 75201 [20:58:23]save to /storage/0512/doc_00075201 [20:58:23]save last doc name /storage/0512/doc_00075201 to /storage/kkm_last_doc_name [20:58:23]save OK [20:58:23]Clear old archive folders... [20:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:58:23]tlvbuf is 00954500 [20:58:23]SAM_PROTO_ClearQueue [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 09 00 00 [20:58:23]Write to MH i2c: E2 08 00 2A 4A 80 09 00 00 00 00 00 00 E6 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 2A 4A 00 90 00 E8 [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]SAM_PROTO_ClearQueue done [20:58:23]KKMCreateOFDPacket [20:58:23]OFDProtocolAddRootSTLVToBuf [20:58:23]FM_MakeSignedData [20:58:23]FM_MakeSignedData [20:58:23]SAM_PROTO_SignData [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 0D 01 02 [20:58:23]Write to MH i2c: E2 08 00 2B 4A 80 0D 01 02 00 00 00 00 EE [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 2B 4A 00 90 00 E9 [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]wFMCommunicate request_size=255 [20:58:23]MH_SAM_APDU [20:58: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 34 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 C1 00 00 00 F4 03 04 00 F5 57 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 25 01 00 35 04 06 00 3C 57 22 84 [20:58:23]Write to MH i2c: E2 02 01 2C 4A 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 34 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 C1 00 00 00 F4 03 04 00 F5 57 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 25 01 00 35 04 06 00 3C 57 22 84 00 00 2B [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 2C 4A 00 90 00 EA [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]wFMCommunicate request_size=7 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 0D 02 02 02 73 6A [20:58:23]Write to MH i2c: E2 0A 00 2D 4A 80 0D 02 02 02 00 73 6A 00 00 D2 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 2D 4A 00 90 00 EB [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 0D 03 02 [20:58:23]Write to MH i2c: E2 08 00 2E 4A 80 0D 03 02 00 00 00 00 F3 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 0B 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 0B 00 2E 4A 00 11 3F F2 34 27 62 09 E3 90 00 DF [20:58:24]RAPDU: 11 3F F2 34 27 62 09 E3 90 00 [20:58:24]wFMCommunicate OK [20:58:24]SAM_PROTO_SignData done [20:58:24]FM_MakeSignedData done [20:58:24]CreateOFDProtocolMessage [20:58:24]wFMCommunicate request_size=4 [20:58:24]MH_SAM_APDU [20:58:24]CAPDU: 80 11 00 00 [20:58:24]Write to MH i2c: E2 08 00 2F 4A 80 11 00 00 00 00 00 00 F3 [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 17 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 17 00 2F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4B [20:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [20:58:24]wFMCommunicate OK [20:58:24]CreateOFDProtocolMessage done [20:58:24]OFDSenderStorePacket 75201 [20:58:24]StoreOFDPacket docnum=75201 [20:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 6E 64 04 01 DA 8E 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 34 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 C1 00 00 00 F4 03 04 00 F5 57 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 25 01 00 35 04 06 00 3C 57 22 84 73 6A 11 3F F2 34 27 62 09 E3 [20:58:24]CheckFolder [20:58:24]dirname=/storage/ofd_packets [20:58:24]CheckFolder done [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00075201 [20:58:24]NVStorageSaveData ofd_packets/00075201 [20:58:24]File name is /storage/ofd_packets/00075201 [20:58:24]Write 298 bytes [20:58:24]NVStorageSaveData done [20:58:24]OFDSenderStorePacket done [20:58:24]KKMCreateOFDPacket done [20:58:24]NVStorageSaveData kkm_last_timestamp [20:58:24]File name is /storage/kkm_last_timestamp [20:58:24]Write 4 bytes [20:58:24]NVStorageSaveData done [20:58:24]ExternCall_PrintAddStr [20:58:24]wPrintStart [20:58:24]Write to MH i2c: 01 00 00 30 4A 7A [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 30 4A 00 02 00 00 00 FF 0F 91 [20:58:24]RasterBufferAndPrint [20:58:24]line Счет N : (1)191179 [20:58:24]line ИНН: 02508201610067 [20:58:24]line Контрольно-Кассовый Чек [20:58:24]line ПРОДАЖА [20:58:24]line ТРК (МРК, ГНК) : 31 [20:58:24]line Товар: 2710194210 [20:58:24]line ДТ-К-4 [20:58:24]line 13.130 * 76.20 [20:58:24]line = 1000.51 [20:58:24]line НДС 12% НСП 1% [20:58:24]line > о реализуемом товаре [20:58:24]line ОКРУГЛЕНИЕ: -0.51 [20:58:24]line ИТОГО: 1000.00 [20:58:24]line Внесено: 1000.00 [20:58:24]line СДАЧА: 0.00 [20:58:24]line НСП 1% : 8.85 [20:58:24]line НДС 12% : 106.25 [20:58:24]line Наличными: 1000.00 [20:58:24]line Безнал.: 0.00 [20:58:24]line Место: АЗС № 142 "Партнер Нефть" [20:58:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [20:58:24]line СНО: Общий режим [20:58:24]line Чек 193 26.10.2024 20:58 [20:58:24]line Смена: 512 ФФД: 1.0 [20:58:24]line ЗНМ: 0300000089 [20:58:24]line РНМ: 0000000000091691 [20:58:24]line Версия ККМ: 001 [20:58:24]line ФМ: 0000000000871795 [20:58:24]line ФД: 75201 [20:58:24]line ФПД: 66344938926954 [20:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205829&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75201&fm=66344938926954&tin=02508201610067®Number=0000000000091691&sum=100000 [20:58:24]written 0, free lines is 4095 [20:58:24]Error from MH - 05 [20:58:24]process_action_free close_receipt [20:58:24]json_value_free [20:58:24]json_value_free done [20:58:24]process_json_proto returns [20:58:24]Send response to host [20:58:24]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [20:58:24]free response buf [20:58:24]execute_script done [20:58:24]execute_script returns [20:58:24]free content buf [20:58:24]Sock 8.Close socket [20:58:24]Sock 8.Thread stoped [20:58:24]OFD Sender: Processing packet 75201 [packets to send 13, broken 12] [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00075201 [20:58:24]OFD Sender: To server: pG, [20:58:24]CommunicateWithHost lk.salyk.kg:30040 [20:58:24]ConnectInit lk.salyk.kg [20:58:24]Connected sock=8 [20:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 6E 64 04 01 DA 8E 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 34 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 C1 00 00 00 F4 03 04 00 F5 57 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C1 25 01 00 35 04 06 00 3C 57 22 84 73 6A 11 3F F2 34 27 62 09 E3 [20:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 23 D3 47 00 00 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 38 37 31 37 39 35 10 04 04 00 C1 25 01 00 F4 03 04 00 70 FF 1C 67 B6 04 01 00 00 32 A3 F5 84 D1 E7 3B 39 [20:58:24]CommunicateWithHost err = 0 [20:58:24]CheckOFDResponse [20:58:24]1017 (14) - 77093643461234 [20:58:24]1041 (16) - 0000000000871795 [20:58:24]1040 (4) - 75201 [20:58:24]1012 (4) - 26.10.2024 14:40 [20:58:24]1206 (1) - 0 [20:58:24]OFD Sender: Remove packet 75201 [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00075201 [20:58:24]NVStorageDeleteData [20:58:25]Write to MH i2c: 01 00 00 33 4A 7D [20:58:25]Write i2c OK [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: 01 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: 01 07 00 [20:58:25]MH_I2C_Read... [20:58:25]Read from MH i2c: 01 07 00 33 4A 00 02 00 00 00 FF 0F 94 [20:58:25]state=3 [20:58:25]Cover opened [20:58:25]OFD Sender: No OFD packet to send [20:58:30]Write to MH i2c: 01 00 00 34 4A 7E [20:58:30]Write i2c OK [20:58:30]MH_I2C_Read... [20:58:30]Read from MH i2c: 01 [20:58:30]MH_I2C_Read... [20:58:30]Read from MH i2c: 01 07 00 [20:58:30]MH_I2C_Read... [20:58:30]Read from MH i2c: 01 07 00 34 4A 00 02 00 00 00 FF 0F 95 [20:58:30]state=3 [20:58:30]Cover opened [20:58:30]OFD Sender: No OFD packet to send [20:58:35]Write to MH i2c: 01 00 00 35 4A 7F [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: 01 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: 01 07 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: 01 07 00 35 4A 00 02 00 00 00 FF 0F 96 [20:58:35]state=3 [20:58:35]Cover opened [20:58:35]OFD Sender: No OFD packet to send [20:58:40]Write to MH i2c: 01 00 00 36 4A 80 [20:58:40]Write i2c OK [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: 01 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: 01 07 00 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: 01 07 00 36 4A 00 02 00 00 00 FF 0F 97 [20:58:40]state=3 [20:58:40]Cover opened [20:58:40]OFD Sender: No OFD packet to send [20:58:45]Write to MH i2c: 01 00 00 37 4A 81 [20:58:45]Write i2c OK [20:58:45]MH_I2C_Read... [20:58:45]Read from MH i2c: 01 [20:58:45]MH_I2C_Read... [20:58:45]Read from MH i2c: 01 07 00 [20:58:45]MH_I2C_Read... [20:58:45]Read from MH i2c: 01 07 00 37 4A 00 02 00 00 00 FF 0F 98 [20:58:45]state=3 [20:58:45]Cover opened [20:58:45]OFD Sender: No OFD packet to send [20:58:50]Write to MH i2c: 01 00 00 38 4A 82 [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: 01 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: 01 07 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: 01 07 00 38 4A 00 02 00 00 00 FF 0F 99 [20:58:50]state=3 [20:58:50]Cover opened [20:58:50]OFD Sender: No OFD packet to send [20:58:55]Write to MH i2c: 01 00 00 39 4A 83 [20:58:55]Write i2c OK [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 07 00 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 07 00 39 4A 00 02 00 00 00 FF 0F 9A [20:58:55]state=3 [20:58:55]Cover opened [20:58:55]OFD Sender: No OFD packet to send [20:59:00]Write to MH i2c: 01 00 00 3A 4A 84 [20:59:00]Write i2c OK [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: 01 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: 01 07 00 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: 01 07 00 3A 4A 00 02 00 00 00 FF 0F 9B [20:59:00]state=3 [20:59:00]Cover opened [20:59:00]OFD Sender: No OFD packet to send [20:59:05]Write to MH i2c: 01 00 00 3B 4A 85 [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: 01 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: 01 07 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: 01 07 00 3B 4A 00 02 00 00 00 FF 0F 9C [20:59:05]state=3 [20:59:05]Cover opened [20:59:05]OFD Sender: No OFD packet to send [20:59:10]Write to MH i2c: 01 00 00 3C 4A 86 [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 07 00 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 07 00 3C 4A 00 02 00 00 00 FF 0F 9D [20:59:10]state=3 [20:59:10]Cover opened [20:59:10]OFD Sender: No OFD packet to send [20:59:15]Write to MH i2c: 01 00 00 3D 4A 87 [20:59:15]Write i2c OK [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: 01 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: 01 07 00 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: 01 07 00 3D 4A 00 02 00 00 00 FF 0F 9E [20:59:15]state=3 [20:59:15]Cover opened [20:59:15]OFD Sender: No OFD packet to send [20:59:20]Write to MH i2c: 01 00 00 3E 4A 88 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: 01 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: 01 07 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: 01 07 00 3E 4A 00 02 00 00 00 FF 0F 9F [20:59:20]state=3 [20:59:20]Cover opened [20:59:20]OFD Sender: No OFD packet to send [20:59:25]Write to MH i2c: 01 00 00 3F 4A 89 [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 07 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 07 00 3F 4A 00 02 00 00 00 FF 0F A0 [20:59:25]state=3 [20:59:25]Cover opened [20:59:25]OFD Sender: No OFD packet to send [20:59:30]Write to MH i2c: 01 00 00 40 4A 8A [20:59:30]Write i2c OK [20:59:30]MH_I2C_Read... [20:59:30]Read from MH i2c: 01 [20:59:30]MH_I2C_Read... [20:59:30]Read from MH i2c: 01 07 00 [20:59:30]MH_I2C_Read... [20:59:30]Read from MH i2c: 01 07 00 40 4A 00 02 00 00 00 FF 0F A1 [20:59:30]state=3 [20:59:30]Cover opened [20:59:30]OFD Sender: No OFD packet to send [20:59:35]Write to MH i2c: 01 00 00 41 4A 8B [20:59:35]Write i2c OK [20:59:35]MH_I2C_Read... [20:59:35]Read from MH i2c: 01 [20:59:35]MH_I2C_Read... [20:59:35]Read from MH i2c: 01 07 00 [20:59:35]MH_I2C_Read... [20:59:35]Read from MH i2c: 01 07 00 41 4A 00 02 00 00 00 FF 0F A2 [20:59:35]state=3 [20:59:35]Cover opened [20:59:35]OFD Sender: No OFD packet to send [20:59:40]Write to MH i2c: 01 00 00 42 4A 8C [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 07 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 07 00 42 4A 00 02 00 00 00 FF 0F A3 [20:59:40]state=3 [20:59:40]Cover opened [20:59:40]OFD Sender: No OFD packet to send [20:59:45]Write to MH i2c: 01 00 00 43 4A 8D [20:59:45]Write i2c OK [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: 01 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: 01 07 00 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: 01 07 00 43 4A 00 02 00 00 00 FF 0F A4 [20:59:45]state=3 [20:59:45]Cover opened [20:59:45]OFD Sender: No OFD packet to send [20:59:50]Write to MH i2c: 01 00 00 44 4A 8E [20:59:50]Write i2c OK [20:59:50]MH_I2C_Read... [20:59:50]Read from MH i2c: 01 [20:59:50]MH_I2C_Read... [20:59:50]Read from MH i2c: 01 07 00 [20:59:50]MH_I2C_Read... [20:59:50]Read from MH i2c: 01 07 00 44 4A 00 02 00 00 00 FF 0F A5 [20:59:50]state=3 [20:59:50]Cover opened [20:59:50]OFD Sender: No OFD packet to send [20:59:55]Write to MH i2c: 01 00 00 45 4A 8F [20:59:55]Write i2c OK [20:59:55]MH_I2C_Read... [20:59:55]Read from MH i2c: 01 [20:59:55]MH_I2C_Read... [20:59:55]Read from MH i2c: 01 07 00 [20:59:55]MH_I2C_Read... [20:59:55]Read from MH i2c: 01 07 00 45 4A 00 02 00 00 00 FF 0F A6 [20:59:55]state=3 [20:59:55]Cover opened [20:59:55]OFD Sender: No OFD packet to send [21:00:00]Write to MH i2c: 01 00 00 46 4A 90 [21:00:00]Write i2c OK [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: 01 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: 01 07 00 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: 01 07 00 46 4A 00 02 00 00 00 FF 0F A7 [21:00:00]state=3 [21:00:00]Cover opened [21:00:00]OFD Sender: No OFD packet to send [21:00:05]Write to MH i2c: 01 00 00 47 4A 91 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 [21:00:05]MH_I2C_Read... [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 47 4A 00 02 00 00 00 FF 0F A8 [21:00:05]state=3 [21:00:05]Cover opened [21:00:05]OFD Sender: No OFD packet to send [21:00:10]Write to MH i2c: 01 00 00 48 4A 92 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 07 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 07 00 48 4A 00 02 00 00 00 FF 0F A9 [21:00:10]state=3 [21:00:10]Cover opened [21:00:10]OFD Sender: No OFD packet to send [21:00:15]Write to MH i2c: 01 00 00 49 4A 93 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 49 4A 00 02 00 00 00 FF 0F AA [21:00:15]state=3 [21:00:15]Cover opened [21:00:15]OFD Sender: No OFD packet to send [21:00:20]Write to MH i2c: 01 00 00 4A 4A 94 [21:00:20]Write i2c OK [21:00:20]MH_I2C_Read... [21:00:20]Read from MH i2c: 01 [21:00:20]MH_I2C_Read... [21:00:20]Read from MH i2c: 01 07 00 [21:00:20]MH_I2C_Read... [21:00:20]Read from MH i2c: 01 07 00 4A 4A 00 02 00 00 00 FF 0F AB [21:00:20]state=3 [21:00:20]Cover opened [21:00:20]OFD Sender: No OFD packet to send [21:00:25]Write to MH i2c: 01 00 00 4B 4A 95 [21:00:25]Write i2c OK [21:00:25]MH_I2C_Read... [21:00:25]Read from MH i2c: 01 [21:00:25]MH_I2C_Read... [21:00:25]Read from MH i2c: 01 07 00 [21:00:25]MH_I2C_Read... [21:00:25]Read from MH i2c: 01 07 00 4B 4A 00 02 00 00 00 FF 0F AC [21:00:25]state=3 [21:00:25]Cover opened [21:00:25]OFD Sender: No OFD packet to send [21:00:30]Write to MH i2c: 01 00 00 4C 4A 96 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 07 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 07 00 4C 4A 00 02 00 00 00 FF 0F AD [21:00:30]state=3 [21:00:30]Cover opened [21:00:30]OFD Sender: No OFD packet to send [21:00:35]Write to MH i2c: 01 00 00 4D 4A 97 [21:00:35]Write i2c OK [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: 01 [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: 01 07 00 [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: 01 07 00 4D 4A 00 02 00 00 00 FF 0F AE [21:00:35]state=3 [21:00:35]Cover opened [21:00:35]OFD Sender: No OFD packet to send [21:00:40]Write to MH i2c: 01 00 00 4E 4A 98 [21:00:40]Write i2c OK [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: 01 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: 01 07 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: 01 07 00 4E 4A 00 02 00 00 00 FF 0F AF [21:00:40]state=3 [21:00:40]Cover opened [21:00:40]OFD Sender: No OFD packet to send [21:00:45]Write to MH i2c: 01 00 00 4F 4A 99 [21:00:45]Write i2c OK [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: 01 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: 01 07 00 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: 01 07 00 4F 4A 00 02 00 00 00 FF 0F B0 [21:00:45]state=3 [21:00:45]Cover opened [21:00:45]OFD Sender: No OFD packet to send [21:00:50]Write to MH i2c: 01 00 00 50 4A 9A [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: 01 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: 01 07 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: 01 07 00 50 4A 00 02 00 00 00 FF 0F B1 [21:00:50]state=3 [21:00:50]Cover opened [21:00:50]OFD Sender: No OFD packet to send [21:00:55]Write to MH i2c: 01 00 00 51 4A 9B [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 51 4A 00 02 00 00 00 FF 0F B2 [21:00:55]state=3 [21:00:55]Cover opened [21:00:55]OFD Sender: No OFD packet to send [21:01:00]Write to MH i2c: 01 00 00 52 4A 9C [21:01:00]Write i2c OK [21:01:00]MH_I2C_Read... [21:01:00]Read from MH i2c: 01 [21:01:00]MH_I2C_Read... [21:01:00]Read from MH i2c: 01 07 00 [21:01:00]MH_I2C_Read... [21:01:00]Read from MH i2c: 01 07 00 52 4A 00 02 00 00 00 FF 0F B3 [21:01:00]state=3 [21:01:00]Cover opened [21:01:00]OFD Sender: No OFD packet to send [21:01:05]Write to MH i2c: 01 00 00 53 4A 9D [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 53 4A 00 02 00 00 00 FF 0F B4 [21:01:05]state=3 [21:01:05]Cover opened [21:01:05]OFD Sender: No OFD packet to send [21:01:10]Write to MH i2c: 01 00 00 54 4A 9E [21:01:10]Write i2c OK [21:01:10]MH_I2C_Read... [21:01:10]Read from MH i2c: 01 [21:01:10]MH_I2C_Read... [21:01:10]Read from MH i2c: 01 07 00 [21:01:10]MH_I2C_Read... [21:01:10]Read from MH i2c: 01 07 00 54 4A 00 02 00 00 00 FF 0F B5 [21:01:10]state=3 [21:01:10]Cover opened [21:01:10]OFD Sender: No OFD packet to send [21:01:15]Write to MH i2c: 01 00 00 55 4A 9F [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: 01 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: 01 07 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: 01 07 00 55 4A 00 02 00 00 00 FF 0F B6 [21:01:15]state=3 [21:01:15]Cover opened [21:01:15]OFD Sender: No OFD packet to send [21:01:20]Write to MH i2c: 01 00 00 56 4A A0 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 56 4A 00 02 00 00 00 FF 0F B7 [21:01:20]state=3 [21:01:20]Cover opened [21:01:20]OFD Sender: No OFD packet to send [21:01:25]Write to MH i2c: 01 00 00 57 4A A1 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 57 4A 00 02 00 00 00 FF 0F B8 [21:01:25]state=3 [21:01:25]Cover opened [21:01:25]OFD Sender: No OFD packet to send [21:01:30]Write to MH i2c: 01 00 00 58 4A A2 [21:01:30]Write i2c OK [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: 01 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: 01 07 00 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: 01 07 00 58 4A 00 02 00 00 00 FF 0F B9 [21:01:30]state=3 [21:01:30]Cover opened [21:01:30]OFD Sender: No OFD packet to send [21:01:35]Write to MH i2c: 01 00 00 59 4A A3 [21:01:35]Write i2c OK [21:01:35]MH_I2C_Read... [21:01:35]Read from MH i2c: 01 [21:01:35]MH_I2C_Read... [21:01:35]Read from MH i2c: 01 07 00 [21:01:35]MH_I2C_Read... [21:01:35]Read from MH i2c: 01 07 00 59 4A 00 02 00 00 00 FF 0F BA [21:01:35]state=3 [21:01:35]Cover opened [21:01:35]OFD Sender: No OFD packet to send [21:01:40]Write to MH i2c: 01 00 00 5A 4A A4 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 5A 4A 00 02 00 00 00 FF 0F BB [21:01:40]state=3 [21:01:40]Cover opened [21:01:40]OFD Sender: No OFD packet to send [21:01:45]Write to MH i2c: 01 00 00 5B 4A A5 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 07 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 07 00 5B 4A 00 02 00 00 00 FF 0F BC [21:01:45]state=3 [21:01:45]Cover opened [21:01:45]OFD Sender: No OFD packet to send [21:01:50]Write to MH i2c: 01 00 00 5C 4A A6 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 5C 4A 00 02 00 00 00 FF 0F BD [21:01:50]state=3 [21:01:50]Cover opened [21:01:50]OFD Sender: No OFD packet to send [21:01:55]Write to MH i2c: 01 00 00 5D 4A A7 [21:01:55]Write i2c OK [21:01:55]MH_I2C_Read... [21:01:55]Read from MH i2c: 01 [21:01:55]MH_I2C_Read... [21:01:55]Read from MH i2c: 01 07 00 [21:01:55]MH_I2C_Read... [21:01:55]Read from MH i2c: 01 07 00 5D 4A 00 02 00 00 00 FF 0F BE [21:01:55]state=3 [21:01:55]Cover opened [21:01:55]OFD Sender: No OFD packet to send [21:02:00]Write to MH i2c: 01 00 00 5E 4A A8 [21:02:00]Write i2c OK [21:02:00]MH_I2C_Read... [21:02:00]Read from MH i2c: 01 [21:02:00]MH_I2C_Read... [21:02:00]Read from MH i2c: 01 07 00 [21:02:00]MH_I2C_Read... [21:02:00]Read from MH i2c: 01 07 00 5E 4A 00 02 00 00 00 FF 0F BF [21:02:00]state=3 [21:02:00]Cover opened [21:02:00]OFD Sender: No OFD packet to send [21:02:05]Write to MH i2c: 01 00 00 5F 4A A9 [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 07 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 07 00 5F 4A 00 02 00 00 00 FF 0F C0 [21:02:05]state=3 [21:02:05]Cover opened [21:02:05]OFD Sender: No OFD packet to send [21:02:10]Write to MH i2c: 01 00 00 60 4A AA [21:02:10]Write i2c OK [21:02:10]MH_I2C_Read... [21:02:10]Read from MH i2c: 01 [21:02:10]MH_I2C_Read... [21:02:10]Read from MH i2c: 01 07 00 [21:02:10]MH_I2C_Read... [21:02:10]Read from MH i2c: 01 07 00 60 4A 00 02 00 00 00 FF 0F C1 [21:02:10]state=3 [21:02:10]Cover opened [21:02:10]OFD Sender: No OFD packet to send [21:02:15]Write to MH i2c: 01 00 00 61 4A AB [21:02:15]Write i2c OK [21:02:15]MH_I2C_Read... [21:02:15]Read from MH i2c: 01 [21:02:15]MH_I2C_Read... [21:02:15]Read from MH i2c: 01 07 00 [21:02:15]MH_I2C_Read... [21:02:15]Read from MH i2c: 01 07 00 61 4A 00 02 00 00 00 FF 0F C2 [21:02:15]state=3 [21:02:15]Cover opened [21:02:15]OFD Sender: No OFD packet to send [21:02:20]Write to MH i2c: 01 00 00 62 4A AC [21:02:20]Write i2c OK [21:02:20]MH_I2C_Read... [21:02:20]Read from MH i2c: 01 [21:02:20]MH_I2C_Read... [21:02:20]Read from MH i2c: 01 07 00 [21:02:20]MH_I2C_Read... [21:02:20]Read from MH i2c: 01 07 00 62 4A 00 02 00 00 00 FF 0F C3 [21:02:20]state=3 [21:02:20]Cover opened [21:02:20]OFD Sender: No OFD packet to send [21:02:25]Write to MH i2c: 01 00 00 63 4A AD [21:02:25]Write i2c OK [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: 01 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: 01 07 00 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: 01 07 00 63 4A 00 02 00 00 00 FF 0F C4 [21:02:25]state=3 [21:02:25]Cover opened [21:02:25]OFD Sender: No OFD packet to send [21:02:30]Write to MH i2c: 01 00 00 64 4A AE [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 07 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 07 00 64 4A 00 02 00 00 00 FF 0F C5 [21:02:30]state=3 [21:02:30]Cover opened [21:02:30]OFD Sender: No OFD packet to send [21:02:35]Write to MH i2c: 01 00 00 65 4A AF [21:02:35]Write i2c OK [21:02:35]MH_I2C_Read... [21:02:35]Read from MH i2c: 01 [21:02:35]MH_I2C_Read... [21:02:35]Read from MH i2c: 01 07 00 [21:02:35]MH_I2C_Read... [21:02:35]Read from MH i2c: 01 07 00 65 4A 00 02 00 00 00 FF 0F C6 [21:02:35]state=3 [21:02:35]Cover opened [21:02:35]OFD Sender: No OFD packet to send [21:02:40]Write to MH i2c: 01 00 00 66 4A B0 [21:02:40]Write i2c OK [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: 01 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: 01 07 00 [21:02:40]MH_I2C_Read... [21:02:40]Read from MH i2c: 01 07 00 66 4A 00 02 00 00 00 FF 0F C7 [21:02:40]state=3 [21:02:40]Cover opened [21:02:40]OFD Sender: No OFD packet to send [21:02:45]Write to MH i2c: 01 00 00 67 4A B1 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 67 4A 00 02 00 00 00 FF 0F C8 [21:02:45]state=3 [21:02:45]Cover opened [21:02:45]OFD Sender: No OFD packet to send [21:02:50]Write to MH i2c: 01 00 00 68 4A B2 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 07 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 07 00 68 4A 00 02 00 00 00 FF 0F C9 [21:02:50]state=3 [21:02:50]Cover opened [21:02:50]OFD Sender: No OFD packet to send [21:02:55]Write to MH i2c: 01 00 00 69 4A B3 [21:02:55]Write i2c OK [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: 01 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: 01 07 00 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: 01 07 00 69 4A 00 02 00 00 00 FF 0F CA [21:02:55]state=3 [21:02:55]Cover opened [21:02:55]OFD Sender: No OFD packet to send [21:03:00]Write to MH i2c: 01 00 00 6A 4A B4 [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 6A 4A 00 02 00 00 00 FF 0F CB [21:03:00]state=3 [21:03:00]Cover opened [21:03:00]OFD Sender: No OFD packet to send [21:03:05]Write to MH i2c: 01 00 00 6B 4A B5 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 6B 4A 00 02 00 00 00 FF 0F CC [21:03:05]state=3 [21:03:05]Cover opened [21:03:05]OFD Sender: No OFD packet to send [21:03:10]Write to MH i2c: 01 00 00 6C 4A B6 [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 07 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 07 00 6C 4A 00 02 00 00 00 FF 0F CD [21:03:10]state=3 [21:03:10]Cover opened [21:03:10]OFD Sender: No OFD packet to send [21:03:15]Write to MH i2c: 01 00 00 6D 4A B7 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 07 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 07 00 6D 4A 00 02 00 00 00 FF 0F CE [21:03:15]state=3 [21:03:15]Cover opened [21:03:15]OFD Sender: No OFD packet to send [21:03:20]Write to MH i2c: 01 00 00 6E 4A B8 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 07 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 07 00 6E 4A 00 02 00 00 00 FF 0F CF [21:03:20]state=3 [21:03:20]Cover opened [21:03:20]OFD Sender: No OFD packet to send [21:03:25]Write to MH i2c: 01 00 00 6F 4A B9 [21:03:25]Write i2c OK [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 07 00 [21:03:25]MH_I2C_Read... [21:03:25]Read from MH i2c: 01 07 00 6F 4A 00 02 00 00 00 FF 0F D0 [21:03:25]state=3 [21:03:25]Cover opened [21:03:25]OFD Sender: No OFD packet to send [21:03:30]Write to MH i2c: 01 00 00 70 4A BA [21:03:30]Write i2c OK [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: 01 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: 01 07 00 [21:03:30]MH_I2C_Read... [21:03:30]Read from MH i2c: 01 07 00 70 4A 00 02 00 00 00 FF 0F D1 [21:03:30]state=3 [21:03:30]Cover opened [21:03:30]OFD Sender: No OFD packet to send [21:03:35]Write to MH i2c: 01 00 00 71 4A BB [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 71 4A 00 02 00 00 00 FF 0F D2 [21:03:35]state=3 [21:03:35]Cover opened [21:03:35]OFD Sender: No OFD packet to send [21:03:40]Write to MH i2c: 01 00 00 72 4A BC [21:03:40]Write i2c OK [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 07 00 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 07 00 72 4A 00 02 00 00 00 FF 0F D3 [21:03:40]state=3 [21:03:40]Cover opened [21:03:40]OFD Sender: No OFD packet to send [21:03:45]Write to MH i2c: 01 00 00 73 4A BD [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 07 00 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 07 00 73 4A 00 02 00 00 00 FF 0F D4 [21:03:45]state=3 [21:03:45]Cover opened [21:03:45]OFD Sender: No OFD packet to send [21:03:50]Write to MH i2c: 01 00 00 74 4A BE [21:03:50]Write i2c OK [21:03:50]MH_I2C_Read... [21:03:50]Read from MH i2c: 01 [21:03:50]MH_I2C_Read... [21:03:50]Read from MH i2c: 01 07 00 [21:03:50]MH_I2C_Read... [21:03:50]Read from MH i2c: 01 07 00 74 4A 00 02 00 00 00 FF 0F D5 [21:03:50]state=3 [21:03:50]Cover opened [21:03:50]OFD Sender: No OFD packet to send [21:03:55]Write to MH i2c: 01 00 00 75 4A BF [21:03:55]Write i2c OK [21:03:55]MH_I2C_Read... [21:03:55]Read from MH i2c: 01 [21:03:55]MH_I2C_Read... [21:03:55]Read from MH i2c: 01 07 00 [21:03:55]MH_I2C_Read... [21:03:55]Read from MH i2c: 01 07 00 75 4A 00 02 00 00 00 FF 0F D6 [21:03:55]state=3 [21:03:55]Cover opened [21:03:55]OFD Sender: No OFD packet to send [21:04:00]Write to MH i2c: 01 00 00 76 4A C0 [21:04:00]Write i2c OK [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: 01 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: 01 07 00 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: 01 07 00 76 4A 00 02 00 00 00 FF 0F D7 [21:04:00]state=3 [21:04:00]Cover opened [21:04:00]OFD Sender: No OFD packet to send [21:04:05]Write to MH i2c: 01 00 00 77 4A C1 [21:04:05]Write i2c OK [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 07 00 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 07 00 77 4A 00 02 00 00 00 FF 0F D8 [21:04:05]state=3 [21:04:05]Cover opened [21:04:05]OFD Sender: No OFD packet to send [21:04:10]Write to MH i2c: 01 00 00 78 4A C2 [21:04:10]Write i2c OK [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 07 00 [21:04:10]MH_I2C_Read... [21:04:10]Read from MH i2c: 01 07 00 78 4A 00 02 00 00 00 FF 0F D9 [21:04:10]state=3 [21:04:10]Cover opened [21:04:10]OFD Sender: No OFD packet to send [21:04:15]Write to MH i2c: 01 00 00 79 4A C3 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: 01 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: 01 07 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: 01 07 00 79 4A 00 02 00 00 00 FF 0F DA [21:04:15]state=3 [21:04:15]Cover opened [21:04:15]OFD Sender: No OFD packet to send [21:04:20]Write to MH i2c: 01 00 00 7A 4A C4 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: 01 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: 01 07 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: 01 07 00 7A 4A 00 02 00 00 00 FF 0F DB [21:04:20]state=3 [21:04:20]Cover opened [21:04:20]OFD Sender: No OFD packet to send [21:04:25]Write to MH i2c: 01 00 00 7B 4A C5 [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 07 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 07 00 7B 4A 00 02 00 00 00 FF 0F DC [21:04:25]state=3 [21:04:25]Cover opened [21:04:25]OFD Sender: No OFD packet to send [21:04:30]Write to MH i2c: 01 00 00 7C 4A C6 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: 01 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: 01 07 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: 01 07 00 7C 4A 00 02 00 00 00 FF 0F DD [21:04:30]state=3 [21:04:30]Cover opened [21:04:30]OFD Sender: No OFD packet to send [21:04:35]Write to MH i2c: 01 00 00 7D 4A C7 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 7D 4A 00 02 00 00 00 FF 0F DE [21:04:35]state=3 [21:04:35]Cover opened [21:04:35]OFD Sender: No OFD packet to send [21:04:40]Write to MH i2c: 01 00 00 7E 4A C8 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 7E 4A 00 02 00 00 00 FF 0F DF [21:04:40]state=3 [21:04:40]Cover opened [21:04:40]OFD Sender: No OFD packet to send [21:04:45]Write to MH i2c: 01 00 00 7F 4A C9 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 7F 4A 00 02 00 00 00 FF 0F E0 [21:04:45]state=3 [21:04:45]Cover opened [21:04:45]OFD Sender: No OFD packet to send [21:04:50]Write to MH i2c: 01 00 00 80 4A CA [21:04:50]Write i2c OK [21:04:50]MH_I2C_Read... [21:04:50]Read from MH i2c: 01 [21:04:50]MH_I2C_Read... [21:04:50]Read from MH i2c: 01 07 00 [21:04:50]MH_I2C_Read... [21:04:50]Read from MH i2c: 01 07 00 80 4A 00 02 00 00 00 FF 0F E1 [21:04:50]state=3 [21:04:50]Cover opened [21:04:50]OFD Sender: No OFD packet to send [21:04:55]Write to MH i2c: 01 00 00 81 4A CB [21:04:55]Write i2c OK [21:04:55]MH_I2C_Read... [21:04:55]Read from MH i2c: 01 [21:04:55]MH_I2C_Read... [21:04:55]Read from MH i2c: 01 07 00 [21:04:55]MH_I2C_Read... [21:04:55]Read from MH i2c: 01 07 00 81 4A 00 02 00 00 00 FF 0F E2 [21:04:55]state=3 [21:04:55]Cover opened [21:04:55]OFD Sender: No OFD packet to send [21:05:00]Write to MH i2c: 01 00 00 82 4A CC [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 07 00 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: 01 07 00 82 4A 00 02 00 00 00 FF 0F E3 [21:05:00]state=3 [21:05:00]Cover opened [21:05:00]OFD Sender: No OFD packet to send [21:05:05]Write to MH i2c: 01 00 00 83 4A CD [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: 01 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: 01 07 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: 01 07 00 83 4A 00 02 00 00 00 FF 0F E4 [21:05:05]state=3 [21:05:05]Cover opened [21:05:05]OFD Sender: No OFD packet to send [21:05:10]Write to MH i2c: 01 00 00 84 4A CE [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 84 4A 00 02 00 00 00 FF 0F E5 [21:05:10]state=3 [21:05:10]Cover opened [21:05:10]OFD Sender: No OFD packet to send [21:05:15]Write to MH i2c: 01 00 00 85 4A CF [21:05:15]Write i2c OK [21:05:15]MH_I2C_Read... [21:05:15]Read from MH i2c: 01 [21:05:15]MH_I2C_Read... [21:05:15]Read from MH i2c: 01 07 00 [21:05:15]MH_I2C_Read... [21:05:15]Read from MH i2c: 01 07 00 85 4A 00 02 00 00 00 FF 0F E6 [21:05:15]state=3 [21:05:15]Cover opened [21:05:15]OFD Sender: No OFD packet to send [21:05:20]Write to MH i2c: 01 00 00 86 4A D0 [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 86 4A 00 02 00 00 00 FF 0F E7 [21:05:20]state=3 [21:05:20]Cover opened [21:05:20]OFD Sender: No OFD packet to send [21:05:25]Write to MH i2c: 01 00 00 87 4A D1 [21:05:25]Write i2c OK [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: 01 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: 01 07 00 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: 01 07 00 87 4A 00 02 00 00 00 FF 0F E8 [21:05:25]state=3 [21:05:25]Cover opened [21:05:25]OFD Sender: No OFD packet to send [21:05:30]Write to MH i2c: 01 00 00 88 4A D2 [21:05:30]Write i2c OK [21:05:30]MH_I2C_Read... [21:05:30]Read from MH i2c: 01 [21:05:30]MH_I2C_Read... [21:05:30]Read from MH i2c: 01 07 00 [21:05:30]MH_I2C_Read... [21:05:30]Read from MH i2c: 01 07 00 88 4A 00 02 00 00 00 FF 0F E9 [21:05:30]state=3 [21:05:30]Cover opened [21:05:30]OFD Sender: No OFD packet to send [21:05:35]Write to MH i2c: 01 00 00 89 4A D3 [21:05:35]Write i2c OK [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 07 00 [21:05:35]MH_I2C_Read... [21:05:35]Read from MH i2c: 01 07 00 89 4A 00 02 00 00 00 FF 0F EA [21:05:35]state=3 [21:05:35]Cover opened [21:05:35]OFD Sender: No OFD packet to send [21:05:40]Write to MH i2c: 01 00 00 8A 4A D4 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 07 00 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 07 00 8A 4A 00 02 00 00 00 FF 0F EB [21:05:40]state=3 [21:05:40]Cover opened [21:05:40]OFD Sender: No OFD packet to send [21:05:45]Write to MH i2c: 01 00 00 8B 4A D5 [21:05:45]Write i2c OK [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: 01 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: 01 07 00 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: 01 07 00 8B 4A 00 02 00 00 00 FF 0F EC [21:05:45]state=3 [21:05:45]Cover opened [21:05:45]OFD Sender: No OFD packet to send [21:05:50]Write to MH i2c: 01 00 00 8C 4A D6 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 8C 4A 00 02 00 00 00 FF 0F ED [21:05:50]state=3 [21:05:50]Cover opened [21:05:50]OFD Sender: No OFD packet to send [21:05:55]Write to MH i2c: 01 00 00 8D 4A D7 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 8D 4A 00 02 00 00 00 FF 0F EE [21:05:55]state=3 [21:05:55]Cover opened [21:05:55]OFD Sender: No OFD packet to send [21:06:00]Write to MH i2c: 01 00 00 8E 4A D8 [21:06:00]Write i2c OK [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: 01 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: 01 07 00 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: 01 07 00 8E 4A 00 02 00 00 00 FF 0F EF [21:06:00]state=3 [21:06:00]Cover opened [21:06:00]OFD Sender: No OFD packet to send [21:06:05]Write to MH i2c: 01 00 00 8F 4A D9 [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 07 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 07 00 8F 4A 00 02 00 00 00 FF 0F F0 [21:06:05]state=3 [21:06:05]Cover opened [21:06:05]OFD Sender: No OFD packet to send [21:06:10]Write to MH i2c: 01 00 00 90 4A DA [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 90 4A 00 02 00 00 00 FF 0F F1 [21:06:10]state=3 [21:06:10]Cover opened [21:06:10]OFD Sender: No OFD packet to send [21:06:15]Write to MH i2c: 01 00 00 91 4A DB [21:06:15]Write i2c OK [21:06:15]MH_I2C_Read... [21:06:15]Read from MH i2c: 01 [21:06:15]MH_I2C_Read... [21:06:15]Read from MH i2c: 01 07 00 [21:06:15]MH_I2C_Read... [21:06:15]Read from MH i2c: 01 07 00 91 4A 00 02 00 00 00 FF 0F F2 [21:06:15]state=3 [21:06:15]Cover opened [21:06:15]OFD Sender: No OFD packet to send [21:06:20]Write to MH i2c: 01 00 00 92 4A DC [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 92 4A 00 02 00 00 00 FF 0F F3 [21:06:20]state=3 [21:06:20]Cover opened [21:06:20]OFD Sender: No OFD packet to send [21:06:25]Write to MH i2c: 01 00 00 93 4A DD [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 07 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 07 00 93 4A 00 02 00 00 00 FF 0F F4 [21:06:25]state=3 [21:06:25]Cover opened [21:06:25]OFD Sender: No OFD packet to send [21:06:30]Write to MH i2c: 01 00 00 94 4A DE [21:06:30]Write i2c OK [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: 01 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: 01 07 00 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: 01 07 00 94 4A 00 02 00 00 00 FF 0F F5 [21:06:30]state=3 [21:06:30]Cover opened [21:06:30]OFD Sender: No OFD packet to send [21:06:35]Write to MH i2c: 01 00 00 95 4A DF [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: 01 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: 01 07 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: 01 07 00 95 4A 00 02 00 00 00 FF 0F F6 [21:06:35]state=3 [21:06:35]Cover opened [21:06:35]OFD Sender: No OFD packet to send [21:06:40]Write to MH i2c: 01 00 00 96 4A E0 [21:06:40]Write i2c OK [21:06:40]MH_I2C_Read... [21:06:40]Read from MH i2c: 01 [21:06:40]MH_I2C_Read... [21:06:40]Read from MH i2c: 01 07 00 [21:06:40]MH_I2C_Read... [21:06:40]Read from MH i2c: 01 07 00 96 4A 00 02 00 00 00 FF 0F F7 [21:06:40]state=3 [21:06:40]Cover opened [21:06:40]OFD Sender: No OFD packet to send [21:06:45]Write to MH i2c: 01 00 00 97 4A E1 [21:06:45]Write i2c OK [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: 01 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: 01 07 00 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: 01 07 00 97 4A 00 02 00 00 00 FF 0F F8 [21:06:45]state=3 [21:06:45]Cover opened [21:06:45]OFD Sender: No OFD packet to send [21:06:50]Write to MH i2c: 01 00 00 98 4A E2 [21:06:50]Write i2c OK [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: 01 [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: 01 07 00 [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: 01 07 00 98 4A 00 02 00 00 00 FF 0F F9 [21:06:50]state=3 [21:06:50]Cover opened [21:06:50]OFD Sender: No OFD packet to send [21:06:55]Write to MH i2c: 01 00 00 99 4A E3 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: 01 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: 01 07 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: 01 07 00 99 4A 00 02 00 00 00 FF 0F FA [21:06:55]state=3 [21:06:55]Cover opened [21:06:55]OFD Sender: No OFD packet to send [21:07:00]Write to MH i2c: 01 00 00 9A 4A E4 [21:07:00]Write i2c OK [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: 01 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: 01 07 00 [21:07:00]MH_I2C_Read... [21:07:00]Read from MH i2c: 01 07 00 9A 4A 00 02 00 00 00 FF 0F FB [21:07:00]state=3 [21:07:00]Cover opened [21:07:00]OFD Sender: No OFD packet to send [21:07:05]Write to MH i2c: 01 00 00 9B 4A E5 [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: 01 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: 01 07 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: 01 07 00 9B 4A 00 02 00 00 00 FF 0F FC [21:07:05]state=3 [21:07:05]Cover opened [21:07:05]OFD Sender: No OFD packet to send [21:07:10]Write to MH i2c: 01 00 00 9C 4A E6 [21:07:10]Write i2c OK [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: 01 [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: 01 07 00 [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: 01 07 00 9C 4A 00 02 00 00 00 FF 0F FD [21:07:10]state=3 [21:07:10]Cover opened [21:07:10]OFD Sender: No OFD packet to send [21:07:15]Write to MH i2c: 01 00 00 9D 4A E7 [21:07:15]Write i2c OK [21:07:15]MH_I2C_Read... [21:07:15]Read from MH i2c: 01 [21:07:15]MH_I2C_Read... [21:07:15]Read from MH i2c: 01 07 00 [21:07:15]MH_I2C_Read... [21:07:15]Read from MH i2c: 01 07 00 9D 4A 00 02 00 00 00 FF 0F FE [21:07:15]state=3 [21:07:15]Cover opened [21:07:15]OFD Sender: No OFD packet to send [21:07:20]Write to MH i2c: 01 00 00 9E 4A E8 [21:07:20]Write i2c OK [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: 01 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: 01 07 00 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: 01 07 00 9E 4A 00 02 00 00 00 FF 0F FF [21:07:20]state=3 [21:07:20]Cover opened [21:07:20]OFD Sender: No OFD packet to send [21:07:25]Write to MH i2c: 01 00 00 9F 4A E9 [21:07:25]Write i2c OK [21:07:25]MH_I2C_Read... [21:07:25]Read from MH i2c: 01 [21:07:25]MH_I2C_Read... [21:07:25]Read from MH i2c: 01 07 00 [21:07:25]MH_I2C_Read... [21:07:25]Read from MH i2c: 01 07 00 9F 4A 00 02 00 00 00 FF 0F 00 [21:07:25]state=3 [21:07:25]Cover opened [21:07:25]OFD Sender: No OFD packet to send [21:07:30]Write to MH i2c: 01 00 00 A0 4A EA [21:07:30]Write i2c OK [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: 01 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: 01 07 00 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: 01 07 00 A0 4A 00 02 00 00 00 FF 0F 01 [21:07:30]state=3 [21:07:30]Cover opened [21:07:30]OFD Sender: No OFD packet to send [21:07:35]Write to MH i2c: 01 00 00 A1 4A EB [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 A1 4A 00 02 00 00 00 FF 0F 02 [21:07:35]state=3 [21:07:35]Cover opened [21:07:35]OFD Sender: No OFD packet to send [21:07:40]Write to MH i2c: 01 00 00 A2 4A EC [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 07 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 07 00 A2 4A 00 02 00 00 00 FF 0F 03 [21:07:40]state=3 [21:07:40]Cover opened [21:07:40]OFD Sender: No OFD packet to send [21:07:45]Write to MH i2c: 01 00 00 A3 4A ED [21:07:45]Write i2c OK [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: 01 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: 01 07 00 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: 01 07 00 A3 4A 00 02 00 00 00 FF 0F 04 [21:07:45]state=3 [21:07:45]Cover opened [21:07:45]OFD Sender: No OFD packet to send [21:07:50]Write to MH i2c: 01 00 00 A4 4A EE [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: 01 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: 01 07 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: 01 07 00 A4 4A 00 02 00 00 00 FF 0F 05 [21:07:50]state=3 [21:07:50]Cover opened [21:07:50]OFD Sender: No OFD packet to send [21:07:55]Write to MH i2c: 01 00 00 A5 4A EF [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: 01 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: 01 07 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: 01 07 00 A5 4A 00 02 00 00 00 FF 0F 06 [21:07:55]state=3 [21:07:55]Cover opened [21:07:55]OFD Sender: No OFD packet to send [21:08:00]Write to MH i2c: 01 00 00 A6 4A F0 [21:08:00]Write i2c OK [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 07 00 [21:08:00]MH_I2C_Read... [21:08:00]Read from MH i2c: 01 07 00 A6 4A 00 02 00 00 00 FF 0F 07 [21:08:00]state=3 [21:08:00]Cover opened [21:08:00]OFD Sender: No OFD packet to send [21:08:05]Write to MH i2c: 01 00 00 A7 4A F1 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 A7 4A 00 02 00 00 00 FF 0F 08 [21:08:05]state=3 [21:08:05]Cover opened [21:08:05]OFD Sender: No OFD packet to send [21:08:10]Write to MH i2c: 01 00 00 A8 4A F2 [21:08:10]Write i2c OK [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: 01 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: 01 07 00 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: 01 07 00 A8 4A 00 02 00 00 00 FF 0F 09 [21:08:10]state=3 [21:08:10]Cover opened [21:08:10]OFD Sender: No OFD packet to send [21:08:15]Write to MH i2c: 01 00 00 A9 4A F3 [21:08:15]Write i2c OK [21:08:15]MH_I2C_Read... [21:08:15]Read from MH i2c: 01 [21:08:15]MH_I2C_Read... [21:08:15]Read from MH i2c: 01 07 00 [21:08:15]MH_I2C_Read... [21:08:15]Read from MH i2c: 01 07 00 A9 4A 00 02 00 00 00 FF 0F 0A [21:08:15]state=3 [21:08:15]Cover opened [21:08:15]OFD Sender: No OFD packet to send [21:08:20]Write to MH i2c: 01 00 00 AA 4A F4 [21:08:20]Write i2c OK [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 07 00 [21:08:20]MH_I2C_Read... [21:08:20]Read from MH i2c: 01 07 00 AA 4A 00 02 00 00 00 FF 0F 0B [21:08:20]state=3 [21:08:20]Cover opened [21:08:20]OFD Sender: No OFD packet to send [21:08:25]Write to MH i2c: 01 00 00 AB 4A F5 [21:08:25]Write i2c OK [21:08:25]MH_I2C_Read... [21:08:25]Read from MH i2c: 01 [21:08:25]MH_I2C_Read... [21:08:25]Read from MH i2c: 01 07 00 [21:08:25]MH_I2C_Read... [21:08:25]Read from MH i2c: 01 07 00 AB 4A 00 02 00 00 00 FF 0F 0C [21:08:25]state=3 [21:08:25]Cover opened [21:08:25]OFD Sender: No OFD packet to send [21:08:30]Write to MH i2c: 01 00 00 AC 4A F6 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 AC 4A 00 02 00 00 00 FF 0F 0D [21:08:30]state=3 [21:08:30]Cover opened [21:08:30]OFD Sender: No OFD packet to send [21:08:35]Write to MH i2c: 01 00 00 AD 4A F7 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 AD 4A 00 02 00 00 00 FF 0F 0E [21:08:35]state=3 [21:08:35]Cover opened [21:08:35]OFD Sender: No OFD packet to send [21:08:40]Write to MH i2c: 01 00 00 AE 4A F8 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 AE 4A 00 02 00 00 00 FF 0F 0F [21:08:40]state=3 [21:08:40]Cover opened [21:08:40]OFD Sender: No OFD packet to send [21:08:45]Write to MH i2c: 01 00 00 AF 4A F9 [21:08:45]Write i2c OK [21:08:45]MH_I2C_Read... [21:08:45]Read from MH i2c: 01 [21:08:45]MH_I2C_Read... [21:08:45]Read from MH i2c: 01 07 00 [21:08:45]MH_I2C_Read... [21:08:45]Read from MH i2c: 01 07 00 AF 4A 00 02 00 00 00 FF 0F 10 [21:08:45]state=3 [21:08:45]Cover opened [21:08:45]OFD Sender: No OFD packet to send [21:08:50]Write to MH i2c: 01 00 00 B0 4A FA [21:08:50]Write i2c OK [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: 01 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: 01 07 00 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: 01 07 00 B0 4A 00 02 00 00 00 FF 0F 11 [21:08:50]state=3 [21:08:50]Cover opened [21:08:50]OFD Sender: No OFD packet to send [21:08:55]Write to MH i2c: 01 00 00 B1 4A FB [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: 01 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: 01 07 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: 01 07 00 B1 4A 00 02 00 00 00 FF 0F 12 [21:08:55]state=3 [21:08:55]Cover opened [21:08:55]OFD Sender: No OFD packet to send [21:09:00]Write to MH i2c: 01 00 00 B2 4A FC [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 07 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 07 00 B2 4A 00 02 00 00 00 FF 0F 13 [21:09:00]state=3 [21:09:00]Cover opened [21:09:00]OFD Sender: No OFD packet to send [21:09:05]Write to MH i2c: 01 00 00 B3 4A FD [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 07 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 07 00 B3 4A 00 02 00 00 00 FF 0F 14 [21:09:05]state=3 [21:09:05]Cover opened [21:09:05]OFD Sender: No OFD packet to send [21:09:10]Write to MH i2c: 01 00 00 B4 4A FE [21:09:10]Write i2c OK [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: 01 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: 01 07 00 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: 01 07 00 B4 4A 00 02 00 00 00 FF 0F 15 [21:09:10]state=3 [21:09:10]Cover opened [21:09:10]OFD Sender: No OFD packet to send [21:09:15]Write to MH i2c: 01 00 00 B5 4A FF [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: 01 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: 01 07 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: 01 07 00 B5 4A 00 02 00 00 00 FF 0F 16 [21:09:15]state=3 [21:09:15]Cover opened [21:09:15]OFD Sender: No OFD packet to send [21:09:20]Write to MH i2c: 01 00 00 B6 4A 00 [21:09:20]Write i2c OK [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: 01 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: 01 07 00 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: 01 07 00 B6 4A 00 02 00 00 00 FF 0F 17 [21:09:20]state=3 [21:09:20]Cover opened [21:09:20]OFD Sender: No OFD packet to send [21:09:25]Write to MH i2c: 01 00 00 B7 4A 01 [21:09:25]Write i2c OK [21:09:25]MH_I2C_Read... [21:09:25]Read from MH i2c: 01 [21:09:25]MH_I2C_Read... [21:09:25]Read from MH i2c: 01 07 00 [21:09:25]MH_I2C_Read... [21:09:25]Read from MH i2c: 01 07 00 B7 4A 00 02 00 00 00 FF 0F 18 [21:09:25]state=3 [21:09:25]Cover opened [21:09:25]OFD Sender: No OFD packet to send [21:09:30]Write to MH i2c: 01 00 00 B8 4A 02 [21:09:30]Write i2c OK [21:09:30]MH_I2C_Read... [21:09:30]Read from MH i2c: 01 [21:09:30]MH_I2C_Read... [21:09:30]Read from MH i2c: 01 07 00 [21:09:30]MH_I2C_Read... [21:09:30]Read from MH i2c: 01 07 00 B8 4A 00 02 00 00 00 FF 0F 19 [21:09:30]state=3 [21:09:30]Cover opened [21:09:30]OFD Sender: No OFD packet to send [21:09:35]Write to MH i2c: 01 00 00 B9 4A 03 [21:09:35]Write i2c OK [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: 01 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: 01 07 00 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: 01 07 00 B9 4A 00 02 00 00 00 FF 0F 1A [21:09:35]state=3 [21:09:35]Cover opened [21:09:35]OFD Sender: No OFD packet to send [21:09:40]Write to MH i2c: 01 00 00 BA 4A 04 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 07 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 07 00 BA 4A 00 02 00 00 00 FF 0F 1B [21:09:40]state=3 [21:09:40]Cover opened [21:09:40]OFD Sender: No OFD packet to send [21:09:45]Write to MH i2c: 01 00 00 BB 4A 05 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 BB 4A 00 02 00 00 00 FF 0F 1C [21:09:45]state=3 [21:09:45]Cover opened [21:09:46]OFD Sender: No OFD packet to send [21:09:50]Write to MH i2c: 01 00 00 BC 4A 06 [21:09:50]Write i2c OK [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 07 00 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 07 00 BC 4A 00 02 00 00 00 FF 0F 1D [21:09:50]state=3 [21:09:50]Cover opened [21:09:51]OFD Sender: No OFD packet to send [21:09:55]Write to MH i2c: 01 00 00 BD 4A 07 [21:09:55]Write i2c OK [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: 01 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: 01 07 00 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: 01 07 00 BD 4A 00 02 00 00 00 FF 0F 1E [21:09:55]state=3 [21:09:55]Cover opened [21:09:56]OFD Sender: No OFD packet to send [21:10:00]Write to MH i2c: 01 00 00 BE 4A 08 [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: 01 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: 01 07 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: 01 07 00 BE 4A 00 02 00 00 00 FF 0F 1F [21:10:00]state=3 [21:10:00]Cover opened [21:10:01]OFD Sender: No OFD packet to send [21:10:05]Write to MH i2c: 01 00 00 BF 4A 09 [21:10:05]Write i2c OK [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 07 00 [21:10:05]MH_I2C_Read... [21:10:05]Read from MH i2c: 01 07 00 BF 4A 00 02 00 00 00 FF 0F 20 [21:10:05]state=3 [21:10:05]Cover opened [21:10:06]OFD Sender: No OFD packet to send [21:10:10]Write to MH i2c: 01 00 00 C0 4A 0A [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 C0 4A 00 02 00 00 00 FF 0F 21 [21:10:10]state=3 [21:10:10]Cover opened [21:10:11]OFD Sender: No OFD packet to send [21:10:15]Write to MH i2c: 01 00 00 C1 4A 0B [21:10:15]Write i2c OK [21:10:15]MH_I2C_Read... [21:10:15]Read from MH i2c: 01 [21:10:15]MH_I2C_Read... [21:10:15]Read from MH i2c: 01 07 00 [21:10:15]MH_I2C_Read... [21:10:15]Read from MH i2c: 01 07 00 C1 4A 00 02 00 00 00 FF 0F 22 [21:10:15]state=3 [21:10:15]Cover opened [21:10:16]OFD Sender: No OFD packet to send [21:10:20]Write to MH i2c: 01 00 00 C2 4A 0C [21:10:20]Write i2c OK [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 C2 4A 00 02 00 00 00 FF 0F 23 [21:10:20]state=3 [21:10:20]Cover opened [21:10:21]OFD Sender: No OFD packet to send [21:10:25]Write to MH i2c: 01 00 00 C3 4A 0D [21:10:25]Write i2c OK [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: 01 [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: 01 07 00 [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: 01 07 00 C3 4A 00 02 00 00 00 FF 0F 24 [21:10:25]state=3 [21:10:25]Cover opened [21:10:26]OFD Sender: No OFD packet to send [21:10:30]Write to MH i2c: 01 00 00 C4 4A 0E [21:10:30]Write i2c OK [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: 01 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: 01 07 00 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: 01 07 00 C4 4A 00 02 00 00 00 FF 0F 25 [21:10:30]state=3 [21:10:30]Cover opened [21:10:31]OFD Sender: No OFD packet to send [21:10:36]Write to MH i2c: 01 00 00 C5 4A 0F [21:10:36]Write i2c OK [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: 01 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: 01 07 00 [21:10:36]MH_I2C_Read... [21:10:36]Read from MH i2c: 01 07 00 C5 4A 00 02 00 00 00 FF 0F 26 [21:10:36]state=3 [21:10:36]Cover opened [21:10:36]OFD Sender: No OFD packet to send [21:10:41]Write to MH i2c: 01 00 00 C6 4A 10 [21:10:41]Write i2c OK [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 07 00 [21:10:41]MH_I2C_Read... [21:10:41]Read from MH i2c: 01 07 00 C6 4A 00 02 00 00 00 FF 0F 27 [21:10:41]state=3 [21:10:41]Cover opened [21:10:41]OFD Sender: No OFD packet to send [21:10:46]Write to MH i2c: 01 00 00 C7 4A 11 [21:10:46]Write i2c OK [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: 01 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: 01 07 00 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: 01 07 00 C7 4A 00 02 00 00 00 FF 0F 28 [21:10:46]state=3 [21:10:46]Cover opened [21:10:46]OFD Sender: No OFD packet to send [21:10:51]Write to MH i2c: 01 00 00 C8 4A 12 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: 01 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: 01 07 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: 01 07 00 C8 4A 00 02 00 00 00 FF 0F 29 [21:10:51]state=3 [21:10:51]Cover opened [21:10:51]OFD Sender: No OFD packet to send [21:10:56]Write to MH i2c: 01 00 00 C9 4A 13 [21:10:56]Write i2c OK [21:10:56]MH_I2C_Read... [21:10:56]Read from MH i2c: 01 [21:10:56]MH_I2C_Read... [21:10:56]Read from MH i2c: 01 07 00 [21:10:56]MH_I2C_Read... [21:10:56]Read from MH i2c: 01 07 00 C9 4A 00 02 00 00 00 FF 0F 2A [21:10:56]state=3 [21:10:56]Cover opened [21:10:56]OFD Sender: No OFD packet to send [21:11:01]Write to MH i2c: 01 00 00 CA 4A 14 [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 07 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 07 00 CA 4A 00 02 00 00 00 FF 0F 2B [21:11:01]state=3 [21:11:01]Cover opened [21:11:01]OFD Sender: No OFD packet to send [21:11:06]Write to MH i2c: 01 00 00 CB 4A 15 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 CB 4A 00 02 00 00 00 FF 0F 2C [21:11:06]state=3 [21:11:06]Cover opened [21:11:06]OFD Sender: No OFD packet to send [21:11:11]Write to MH i2c: 01 00 00 CC 4A 16 [21:11:11]Write i2c OK [21:11:11]MH_I2C_Read... [21:11:11]Read from MH i2c: 01 [21:11:11]MH_I2C_Read... [21:11:11]Read from MH i2c: 01 07 00 [21:11:11]MH_I2C_Read... [21:11:11]Read from MH i2c: 01 07 00 CC 4A 00 02 00 00 00 FF 0F 2D [21:11:11]state=3 [21:11:11]Cover opened [21:11:11]OFD Sender: No OFD packet to send [21:11:16]Write to MH i2c: 01 00 00 CD 4A 17 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: 01 07 00 CD 4A 00 02 00 00 00 FF 0F 2E [21:11:16]state=3 [21:11:16]Cover opened [21:11:16]OFD Sender: No OFD packet to send [21:11:21]Write to MH i2c: 01 00 00 CE 4A 18 [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: 01 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: 01 07 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: 01 07 00 CE 4A 00 02 00 00 00 FF 0F 2F [21:11:21]state=3 [21:11:21]Cover opened [21:11:21]OFD Sender: No OFD packet to send [21:11:26]Write to MH i2c: 01 00 00 CF 4A 19 [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: 01 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: 01 07 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: 01 07 00 CF 4A 00 02 00 00 00 FF 0F 30 [21:11:26]state=3 [21:11:26]Cover opened [21:11:26]OFD Sender: No OFD packet to send [21:11:31]Write to MH i2c: 01 00 00 D0 4A 1A [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 D0 4A 00 02 00 00 00 FF 0F 31 [21:11:31]state=3 [21:11:31]Cover opened [21:11:31]OFD Sender: No OFD packet to send [21:11:36]Write to MH i2c: 01 00 00 D1 4A 1B [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: 01 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: 01 07 00 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: 01 07 00 D1 4A 00 02 00 00 00 FF 0F 32 [21:11:36]state=3 [21:11:36]Cover opened [21:11:36]OFD Sender: No OFD packet to send [21:11:41]Write to MH i2c: 01 00 00 D2 4A 1C [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 07 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 07 00 D2 4A 00 02 00 00 00 FF 0F 33 [21:11:41]state=3 [21:11:41]Cover opened [21:11:41]OFD Sender: No OFD packet to send [21:11:46]Write to MH i2c: 01 00 00 D3 4A 1D [21:11:46]Write i2c OK [21:11:46]MH_I2C_Read... [21:11:46]Read from MH i2c: 01 [21:11:46]MH_I2C_Read... [21:11:46]Read from MH i2c: 01 07 00 [21:11:46]MH_I2C_Read... [21:11:46]Read from MH i2c: 01 07 00 D3 4A 00 02 00 00 00 FF 0F 34 [21:11:46]state=3 [21:11:46]Cover opened [21:11:46]OFD Sender: No OFD packet to send [21:11:51]Write to MH i2c: 01 00 00 D4 4A 1E [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 D4 4A 00 02 00 00 00 FF 0F 35 [21:11:51]state=3 [21:11:51]Cover opened [21:11:51]OFD Sender: No OFD packet to send [21:11:56]Write to MH i2c: 01 00 00 D5 4A 1F [21:11:56]Write i2c OK [21:11:56]MH_I2C_Read... [21:11:56]Read from MH i2c: 01 [21:11:56]MH_I2C_Read... [21:11:56]Read from MH i2c: 01 07 00 [21:11:56]MH_I2C_Read... [21:11:56]Read from MH i2c: 01 07 00 D5 4A 00 02 00 00 00 FF 0F 36 [21:11:56]state=3 [21:11:56]Cover opened [21:11:56]OFD Sender: No OFD packet to send [21:11:58]recv_with_timeout no data received [21:12:01]Write to MH i2c: 01 00 00 D6 4A 20 [21:12:01]Write i2c OK [21:12:01]MH_I2C_Read... [21:12:01]Read from MH i2c: 01 [21:12:01]MH_I2C_Read... [21:12:01]Read from MH i2c: 01 07 00 [21:12:01]MH_I2C_Read... [21:12:01]Read from MH i2c: 01 07 00 D6 4A 00 02 00 00 00 FF 0F 37 [21:12:01]state=3 [21:12:01]Cover opened [21:12:01]OFD Sender: No OFD packet to send [21:12:06]Write to MH i2c: 01 00 00 D7 4A 21 [21:12:06]Write i2c OK [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: 01 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: 01 07 00 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: 01 07 00 D7 4A 00 02 00 00 00 FF 0F 38 [21:12:06]state=3 [21:12:06]Cover opened [21:12:06]OFD Sender: No OFD packet to send [21:12:11]Write to MH i2c: 01 00 00 D8 4A 22 [21:12:11]Write i2c OK [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 07 00 [21:12:11]MH_I2C_Read... [21:12:11]Read from MH i2c: 01 07 00 D8 4A 00 02 00 00 00 FF 0F 39 [21:12:11]state=3 [21:12:11]Cover opened [21:12:11]OFD Sender: No OFD packet to send [21:12:16]Write to MH i2c: 01 00 00 D9 4A 23 [21:12:16]Write i2c OK [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: 01 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: 01 07 00 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: 01 07 00 D9 4A 00 02 00 00 00 FF 0F 3A [21:12:16]state=3 [21:12:16]Cover opened [21:12:16]OFD Sender: No OFD packet to send [21:12:21]Write to MH i2c: 01 00 00 DA 4A 24 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 07 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 07 00 DA 4A 00 02 00 00 00 FF 0F 3B [21:12:21]state=3 [21:12:21]Cover opened [21:12:21]OFD Sender: No OFD packet to send [21:12:26]Write to MH i2c: 01 00 00 DB 4A 25 [21:12:26]Write i2c OK [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: 01 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: 01 07 00 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: 01 07 00 DB 4A 00 02 00 00 00 FF 0F 3C [21:12:26]state=3 [21:12:26]Cover opened [21:12:26]OFD Sender: No OFD packet to send [21:12:31]Write to MH i2c: 01 00 00 DC 4A 26 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 07 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 07 00 DC 4A 00 02 00 00 00 FF 0F 3D [21:12:31]state=3 [21:12:31]Cover opened [21:12:31]OFD Sender: No OFD packet to send [21:12:36]Write to MH i2c: 01 00 00 DD 4A 27 [21:12:36]Write i2c OK [21:12:36]MH_I2C_Read... [21:12:36]Read from MH i2c: 01 [21:12:36]MH_I2C_Read... [21:12:36]Read from MH i2c: 01 07 00 [21:12:36]MH_I2C_Read... [21:12:36]Read from MH i2c: 01 07 00 DD 4A 00 02 00 00 00 FF 0F 3E [21:12:36]state=3 [21:12:36]Cover opened [21:12:36]OFD Sender: No OFD packet to send [21:12:41]Write to MH i2c: 01 00 00 DE 4A 28 [21:12:41]Write i2c OK [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 DE 4A 00 02 00 00 00 FF 0F 3F [21:12:41]state=3 [21:12:41]Cover opened [21:12:41]OFD Sender: No OFD packet to send [21:12:46]Write to MH i2c: 01 00 00 DF 4A 29 [21:12:46]Write i2c OK [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: 01 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: 01 07 00 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: 01 07 00 DF 4A 00 02 00 00 00 FF 0F 40 [21:12:46]state=3 [21:12:46]Cover opened [21:12:46]OFD Sender: No OFD packet to send [21:12:51]Write to MH i2c: 01 00 00 E0 4A 2A [21:12:51]Write i2c OK [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 07 00 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 07 00 E0 4A 00 02 00 00 00 FF 0F 41 [21:12:51]state=3 [21:12:51]Cover opened [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:12:56]Write to MH i2c: 01 00 00 E1 4A 2B [21:12:56]Write i2c OK [21:12:56]MH_I2C_Read... [21:12:56]Read from MH i2c: 01 [21:12:56]MH_I2C_Read... [21:12:56]Read from MH i2c: 01 07 00 [21:12:56]MH_I2C_Read... [21:12:56]Read from MH i2c: 01 07 00 E1 4A 00 02 00 00 00 FF 0F 42 [21:12:56]state=3 [21:12:56]Cover opened [21:13:01]Write to MH i2c: 01 00 00 E2 4A 2C [21:13:01]OFD Sender: No OFD packet to send [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 07 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 07 00 E2 4A 00 02 00 00 00 FF 0F 43 [21:13:01]state=3 [21:13:01]Cover opened [21:13:06]OFD Sender: No OFD packet to send [21:13:06]Write to MH i2c: 01 00 00 E3 4A 2D [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 07 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 07 00 E3 4A 00 02 00 00 00 FF 0F 44 [21:13:06]state=3 [21:13:06]Cover opened [21:13:11]OFD Sender: No OFD packet to send [21:13:11]Write to MH i2c: 01 00 00 E4 4A 2E [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 E4 4A 00 02 00 00 00 FF 0F 45 [21:13:11]state=3 [21:13:11]Cover opened [21:13:16]OFD Sender: No OFD packet to send [21:13:16]Write to MH i2c: 01 00 00 E5 4A 2F [21:13:16]Write i2c OK [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: 01 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: 01 07 00 [21:13:16]MH_I2C_Read... [21:13:16]Read from MH i2c: 01 07 00 E5 4A 00 02 00 00 00 FF 0F 46 [21:13:16]state=3 [21:13:16]Cover opened [21:13:21]OFD Sender: No OFD packet to send [21:13:21]Write to MH i2c: 01 00 00 E6 4A 30 [21:13:21]Write i2c OK [21:13:21]MH_I2C_Read... [21:13:21]Read from MH i2c: 01 [21:13:21]MH_I2C_Read... [21:13:21]Read from MH i2c: 01 07 00 [21:13:21]MH_I2C_Read... [21:13:21]Read from MH i2c: 01 07 00 E6 4A 00 02 00 00 00 FF 0F 47 [21:13:21]state=3 [21:13:21]Cover opened [21:13:26]OFD Sender: No OFD packet to send [21:13:26]Write to MH i2c: 01 00 00 E7 4A 31 [21:13:26]Write i2c OK [21:13:26]MH_I2C_Read... [21:13:26]Read from MH i2c: 01 [21:13:26]MH_I2C_Read... [21:13:26]Read from MH i2c: 01 07 00 [21:13:26]MH_I2C_Read... [21:13:26]Read from MH i2c: 01 07 00 E7 4A 00 02 00 00 00 FF 0F 48 [21:13:26]state=3 [21:13:26]Cover opened [21:13:31]OFD Sender: No OFD packet to send [21:13:31]Write to MH i2c: 01 00 00 E8 4A 32 [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: 01 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: 01 07 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: 01 07 00 E8 4A 00 02 00 00 00 FF 0F 49 [21:13:31]state=3 [21:13:31]Cover opened [21:13:36]OFD Sender: No OFD packet to send [21:13:36]Write to MH i2c: 01 00 00 E9 4A 33 [21:13:36]Write i2c OK [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: 01 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: 01 07 00 [21:13:36]MH_I2C_Read... [21:13:36]Read from MH i2c: 01 07 00 E9 4A 00 02 00 00 00 FF 0F 4A [21:13:36]state=3 [21:13:36]Cover opened [21:13:41]OFD Sender: No OFD packet to send [21:13:41]Write to MH i2c: 01 00 00 EA 4A 34 [21:13:41]Write i2c OK [21:13:41]MH_I2C_Read... [21:13:41]Read from MH i2c: 01 [21:13:41]MH_I2C_Read... [21:13:41]Read from MH i2c: 01 07 00 [21:13:41]MH_I2C_Read... [21:13:41]Read from MH i2c: 01 07 00 EA 4A 00 02 00 00 00 FF 0F 4B [21:13:41]state=3 [21:13:41]Cover opened [21:13:46]OFD Sender: No OFD packet to send [21:13:46]Write to MH i2c: 01 00 00 EB 4A 35 [21:13:46]Write i2c OK [21:13:46]MH_I2C_Read... [21:13:46]Read from MH i2c: 01 [21:13:46]MH_I2C_Read... [21:13:46]Read from MH i2c: 01 07 00 [21:13:46]MH_I2C_Read... [21:13:46]Read from MH i2c: 01 07 00 EB 4A 00 02 00 00 00 FF 0F 4C [21:13:46]state=3 [21:13:46]Cover opened [21:13:51]OFD Sender: No OFD packet to send [21:13:51]Write to MH i2c: 01 00 00 EC 4A 36 [21:13:51]Write i2c OK [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 EC 4A 00 02 00 00 00 FF 0F 4D [21:13:51]state=3 [21:13:51]Cover opened [21:13:56]OFD Sender: No OFD packet to send [21:13:56]Write to MH i2c: 01 00 00 ED 4A 37 [21:13:56]Write i2c OK [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: 01 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: 01 07 00 [21:13:56]MH_I2C_Read... [21:13:56]Read from MH i2c: 01 07 00 ED 4A 00 02 00 00 00 FF 0F 4E [21:13:56]state=3 [21:13:56]Cover opened [21:14:01]OFD Sender: No OFD packet to send [21:14:01]Write to MH i2c: 01 00 00 EE 4A 38 [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: 01 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: 01 07 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: 01 07 00 EE 4A 00 02 00 00 00 FF 0F 4F [21:14:01]state=3 [21:14:01]Cover opened [21:14:06]OFD Sender: No OFD packet to send [21:14:06]Write to MH i2c: 01 00 00 EF 4A 39 [21:14:06]Write i2c OK [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: 01 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: 01 07 00 [21:14:06]MH_I2C_Read... [21:14:06]Read from MH i2c: 01 07 00 EF 4A 00 02 00 00 00 FF 0F 50 [21:14:06]state=3 [21:14:06]Cover opened [21:14:11]OFD Sender: No OFD packet to send [21:14:11]Write to MH i2c: 01 00 00 F0 4A 3A [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 F0 4A 00 02 00 00 00 FF 0F 51 [21:14:11]state=3 [21:14:11]Cover opened [21:14:13]recv_with_timeout no data received [21:14:16]OFD Sender: No OFD packet to send [21:14:16]Write to MH i2c: 01 00 00 F1 4A 3B [21:14:16]Write i2c OK [21:14:16]MH_I2C_Read... [21:14:16]Read from MH i2c: 01 [21:14:16]MH_I2C_Read... [21:14:16]Read from MH i2c: 01 07 00 [21:14:16]MH_I2C_Read... [21:14:16]Read from MH i2c: 01 07 00 F1 4A 00 02 00 00 00 FF 0F 52 [21:14:16]state=3 [21:14:16]Cover opened [21:14:21]OFD Sender: No OFD packet to send [21:14:21]Write to MH i2c: 01 00 00 F2 4A 3C [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: 01 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: 01 07 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: 01 07 00 F2 4A 00 02 00 00 00 FF 0F 53 [21:14:21]state=3 [21:14:21]Cover opened [21:14:26]OFD Sender: No OFD packet to send [21:14:26]Write to MH i2c: 01 00 00 F3 4A 3D [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: 01 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: 01 07 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: 01 07 00 F3 4A 00 02 00 00 00 FF 0F 54 [21:14:26]state=3 [21:14:26]Cover opened [21:14:31]OFD Sender: No OFD packet to send [21:14:31]Write to MH i2c: 01 00 00 F4 4A 3E [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 F4 4A 00 02 00 00 00 FF 0F 55 [21:14:31]state=3 [21:14:31]Cover opened [21:14:36]OFD Sender: No OFD packet to send [21:14:36]Write to MH i2c: 01 00 00 F5 4A 3F [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: 01 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: 01 07 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: 01 07 00 F5 4A 00 02 00 00 00 FF 0F 56 [21:14:36]state=3 [21:14:36]Cover opened [21:14:41]OFD Sender: No OFD packet to send [21:14:41]Write to MH i2c: 01 00 00 F6 4A 40 [21:14:41]Write i2c OK [21:14:41]MH_I2C_Read... [21:14:41]Read from MH i2c: 01 [21:14:41]MH_I2C_Read... [21:14:41]Read from MH i2c: 01 07 00 [21:14:41]MH_I2C_Read... [21:14:41]Read from MH i2c: 01 07 00 F6 4A 00 02 00 00 00 FF 0F 57 [21:14:41]state=3 [21:14:41]Cover opened [21:14:46]OFD Sender: No OFD packet to send [21:14:46]Write to MH i2c: 01 00 00 F7 4A 41 [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: 01 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: 01 07 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: 01 07 00 F7 4A 00 02 00 00 00 FF 0F 58 [21:14:46]state=3 [21:14:46]Cover opened [21:14:51]OFD Sender: No OFD packet to send [21:14:51]Write to MH i2c: 01 00 00 F8 4A 42 [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 07 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 07 00 F8 4A 00 02 00 00 00 FF 0F 59 [21:14:51]state=3 [21:14:51]Cover opened [21:14:56]OFD Sender: No OFD packet to send [21:14:56]Write to MH i2c: 01 00 00 F9 4A 43 [21:14:56]Write i2c OK [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: 01 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: 01 07 00 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: 01 07 00 F9 4A 00 02 00 00 00 FF 0F 5A [21:14:56]state=3 [21:14:56]Cover opened [21:15:01]OFD Sender: No OFD packet to send [21:15:01]Write to MH i2c: 01 00 00 FA 4A 44 [21:15:01]Write i2c OK [21:15:01]MH_I2C_Read... [21:15:01]Read from MH i2c: 01 [21:15:01]MH_I2C_Read... [21:15:01]Read from MH i2c: 01 07 00 [21:15:01]MH_I2C_Read... [21:15:01]Read from MH i2c: 01 07 00 FA 4A 00 02 00 00 00 FF 0F 5B [21:15:01]state=3 [21:15:01]Cover opened [21:15:06]OFD Sender: No OFD packet to send [21:15:06]Write to MH i2c: 01 00 00 FB 4A 45 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 FB 4A 00 02 00 00 00 FF 0F 5C [21:15:06]state=3 [21:15:06]Cover opened [21:15:11]OFD Sender: No OFD packet to send [21:15:11]Write to MH i2c: 01 00 00 FC 4A 46 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 FC 4A 00 02 00 00 00 FF 0F 5D [21:15:11]state=3 [21:15:11]Cover opened [21:15:16]OFD Sender: No OFD packet to send [21:15:16]Write to MH i2c: 01 00 00 FD 4A 47 [21:15:16]Write i2c OK [21:15:16]MH_I2C_Read... [21:15:16]Read from MH i2c: 01 [21:15:16]MH_I2C_Read... [21:15:16]Read from MH i2c: 01 07 00 [21:15:16]MH_I2C_Read... [21:15:16]Read from MH i2c: 01 07 00 FD 4A 00 02 00 00 00 FF 0F 5E [21:15:16]state=3 [21:15:16]Cover opened [21:15:21]OFD Sender: No OFD packet to send [21:15:21]Write to MH i2c: 01 00 00 FE 4A 48 [21:15:21]Write i2c OK [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: 01 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: 01 07 00 [21:15:21]MH_I2C_Read... [21:15:21]Read from MH i2c: 01 07 00 FE 4A 00 02 00 00 00 FF 0F 5F [21:15:21]state=3 [21:15:21]Cover opened [21:15:26]OFD Sender: No OFD packet to send [21:15:26]Write to MH i2c: 01 00 00 FF 4A 49 [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 07 00 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 07 00 FF 4A 00 02 00 00 00 FF 0F 60 [21:15:26]state=3 [21:15:26]Cover opened [21:15:31]OFD Sender: No OFD packet to send [21:15:31]Write to MH i2c: 01 00 00 00 4B 4B [21:15:31]Write i2c OK [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: 01 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: 01 07 00 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: 01 07 00 00 4B 00 02 00 00 00 FF 0F 62 [21:15:31]state=3 [21:15:31]Cover opened [21:15:36]OFD Sender: No OFD packet to send [21:15:36]Write to MH i2c: 01 00 00 01 4B 4C [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 07 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 07 00 01 4B 00 02 00 00 00 FF 0F 63 [21:15:36]state=3 [21:15:36]Cover opened [21:15:41]OFD Sender: No OFD packet to send [21:15:41]Write to MH i2c: 01 00 00 02 4B 4D [21:15:41]Write i2c OK [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: 01 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: 01 07 00 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: 01 07 00 02 4B 00 02 00 00 00 FF 0F 64 [21:15:41]state=3 [21:15:41]Cover opened [21:15:46]OFD Sender: No OFD packet to send [21:15:46]Write to MH i2c: 01 00 00 03 4B 4E [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 07 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 07 00 03 4B 00 02 00 00 00 FF 0F 65 [21:15:46]state=3 [21:15:46]Cover opened [21:15:51]OFD Sender: No OFD packet to send [21:15:51]Write to MH i2c: 01 00 00 04 4B 4F [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 07 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 07 00 04 4B 00 02 00 00 00 FF 0F 66 [21:15:51]state=3 [21:15:51]Cover opened [21:15:56]OFD Sender: No OFD packet to send [21:15:56]Write to MH i2c: 01 00 00 05 4B 50 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 05 4B 00 02 00 00 00 FF 0F 67 [21:15:56]state=3 [21:15:56]Cover opened [21:16:01]OFD Sender: No OFD packet to send [21:16:01]Write to MH i2c: 01 00 00 06 4B 51 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 07 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: 01 07 00 06 4B 00 02 00 00 00 FF 0F 68 [21:16:01]state=3 [21:16:01]Cover opened [21:16:06]OFD Sender: No OFD packet to send [21:16:06]Write to MH i2c: 01 00 00 07 4B 52 [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 07 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 07 00 07 4B 00 02 00 00 00 FF 0F 69 [21:16:06]state=3 [21:16:06]Cover opened [21:16:11]OFD Sender: No OFD packet to send [21:16:11]Write to MH i2c: 01 00 00 08 4B 53 [21:16:11]Write i2c OK [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: 01 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: 01 07 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: 01 07 00 08 4B 00 02 00 00 00 FF 0F 6A [21:16:11]state=3 [21:16:11]Cover opened [21:16:16]OFD Sender: No OFD packet to send [21:16:16]Write to MH i2c: 01 00 00 09 4B 54 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 09 4B 00 02 00 00 00 FF 0F 6B [21:16:16]state=3 [21:16:16]Cover opened [21:16:21]OFD Sender: No OFD packet to send [21:16:21]Write to MH i2c: 01 00 00 0A 4B 55 [21:16:21]Write i2c OK [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: 01 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: 01 07 00 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: 01 07 00 0A 4B 00 02 00 00 00 FF 0F 6C [21:16:21]state=3 [21:16:21]Cover opened [21:16:26]OFD Sender: No OFD packet to send [21:16:26]Write to MH i2c: 01 00 00 0B 4B 56 [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: 01 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: 01 07 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: 01 07 00 0B 4B 00 02 00 00 00 FF 0F 6D [21:16:26]state=3 [21:16:26]Cover opened [21:16:31]OFD Sender: No OFD packet to send [21:16:31]Write to MH i2c: 01 00 00 0C 4B 57 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 07 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 07 00 0C 4B 00 02 00 00 00 FF 0F 6E [21:16:31]state=3 [21:16:31]Cover opened [21:16:36]OFD Sender: No OFD packet to send [21:16:36]Write to MH i2c: 01 00 00 0D 4B 58 [21:16:36]Write i2c OK [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: 01 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: 01 07 00 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: 01 07 00 0D 4B 00 02 00 00 00 FF 0F 6F [21:16:36]state=3 [21:16:36]Cover opened [21:16:41]OFD Sender: No OFD packet to send [21:16:41]Write to MH i2c: 01 00 00 0E 4B 59 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 07 00 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 07 00 0E 4B 00 02 00 00 00 FF 0F 70 [21:16:41]state=3 [21:16:41]Cover opened [21:16:46]OFD Sender: No OFD packet to send [21:16:46]Write to MH i2c: 01 00 00 0F 4B 5A [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 07 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 07 00 0F 4B 00 02 00 00 00 FF 0F 71 [21:16:46]state=3 [21:16:46]Cover opened [21:16:51]OFD Sender: No OFD packet to send [21:16:51]Write to MH i2c: 01 00 00 10 4B 5B [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 07 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 07 00 10 4B 00 02 00 00 00 FF 0F 72 [21:16:51]state=3 [21:16:51]Cover opened [21:16:56]OFD Sender: No OFD packet to send [21:16:56]Write to MH i2c: 01 00 00 11 4B 5C [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 11 4B 00 02 00 00 00 FF 0F 73 [21:16:56]state=3 [21:16:56]Cover opened [21:17:01]OFD Sender: No OFD packet to send [21:17:01]Write to MH i2c: 01 00 00 12 4B 5D [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 12 4B 00 02 00 00 00 FF 0F 74 [21:17:01]state=3 [21:17:01]Cover opened [21:17:06]OFD Sender: No OFD packet to send [21:17:06]Write to MH i2c: 01 00 00 13 4B 5E [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: 01 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: 01 07 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: 01 07 00 13 4B 00 02 00 00 00 FF 0F 75 [21:17:06]state=3 [21:17:06]Cover opened [21:17:11]OFD Sender: No OFD packet to send [21:17:11]Write to MH i2c: 01 00 00 14 4B 5F [21:17:11]Write i2c OK [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: 01 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: 01 07 00 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: 01 07 00 14 4B 00 02 00 00 00 FF 0F 76 [21:17:11]state=3 [21:17:11]Cover opened [21:17:16]OFD Sender: No OFD packet to send [21:17:16]Write to MH i2c: 01 00 00 15 4B 60 [21:17:16]Write i2c OK [21:17:16]MH_I2C_Read... [21:17:16]Read from MH i2c: 01 [21:17:16]MH_I2C_Read... [21:17:16]Read from MH i2c: 01 07 00 [21:17:16]MH_I2C_Read... [21:17:16]Read from MH i2c: 01 07 00 15 4B 00 02 00 00 00 FF 0F 77 [21:17:16]state=3 [21:17:16]Cover opened [21:17:21]OFD Sender: No OFD packet to send [21:17:21]Write to MH i2c: 01 00 00 16 4B 61 [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 07 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 07 00 16 4B 00 02 00 00 00 FF 0F 78 [21:17:21]state=3 [21:17:21]Cover opened [21:17:26]OFD Sender: No OFD packet to send [21:17:26]Write to MH i2c: 01 00 00 17 4B 62 [21:17:26]Write i2c OK [21:17:26]MH_I2C_Read... [21:17:26]Read from MH i2c: 01 [21:17:26]MH_I2C_Read... [21:17:26]Read from MH i2c: 01 07 00 [21:17:26]MH_I2C_Read... [21:17:26]Read from MH i2c: 01 07 00 17 4B 00 02 00 00 00 FF 0F 79 [21:17:26]state=3 [21:17:26]Cover opened [21:17:31]OFD Sender: No OFD packet to send [21:17:31]Write to MH i2c: 01 00 00 18 4B 63 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: 01 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: 01 07 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: 01 07 00 18 4B 00 02 00 00 00 FF 0F 7A [21:17:31]state=3 [21:17:31]Cover opened [21:17:36]OFD Sender: No OFD packet to send [21:17:36]Write to MH i2c: 01 00 00 19 4B 64 [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 07 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 07 00 19 4B 00 02 00 00 00 FF 0F 7B [21:17:36]state=3 [21:17:36]Cover opened [21:17:41]OFD Sender: No OFD packet to send [21:17:41]Write to MH i2c: 01 00 00 1A 4B 65 [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 07 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: 01 07 00 1A 4B 00 02 00 00 00 FF 0F 7C [21:17:41]state=3 [21:17:41]Cover opened [21:17:46]OFD Sender: No OFD packet to send [21:17:46]Write to MH i2c: 01 00 00 1B 4B 66 [21:17:46]Write i2c OK [21:17:46]MH_I2C_Read... [21:17:46]Read from MH i2c: 01 [21:17:46]MH_I2C_Read... [21:17:46]Read from MH i2c: 01 07 00 [21:17:46]MH_I2C_Read... [21:17:46]Read from MH i2c: 01 07 00 1B 4B 00 02 00 00 00 FF 0F 7D [21:17:46]state=3 [21:17:46]Cover opened [21:17:51]OFD Sender: No OFD packet to send [21:17:51]Write to MH i2c: 01 00 00 1C 4B 67 [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: 01 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: 01 07 00 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: 01 07 00 1C 4B 00 02 00 00 00 FF 0F 7E [21:17:51]state=3 [21:17:51]Cover opened [21:17:56]OFD Sender: No OFD packet to send [21:17:56]Write to MH i2c: 01 00 00 1D 4B 68 [21:17:56]Write i2c OK [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 [21:17:56]MH_I2C_Read... [21:17:56]Read from MH i2c: 01 07 00 1D 4B 00 02 00 00 00 FF 0F 7F [21:17:56]state=3 [21:17:56]Cover opened [21:18:01]OFD Sender: No OFD packet to send [21:18:01]Write to MH i2c: 01 00 00 1E 4B 69 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 [21:18:01]MH_I2C_Read... [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 1E 4B 00 02 00 00 00 FF 0F 80 [21:18:01]state=3 [21:18:01]Cover opened [21:18:06]OFD Sender: No OFD packet to send [21:18:06]Write to MH i2c: 01 00 00 1F 4B 6A [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: 01 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: 01 07 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: 01 07 00 1F 4B 00 02 00 00 00 FF 0F 81 [21:18:06]state=3 [21:18:06]Cover opened [21:18:11]OFD Sender: No OFD packet to send [21:18:11]Write to MH i2c: 01 00 00 20 4B 6B [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 20 4B 00 02 00 00 00 FF 0F 82 [21:18:11]state=3 [21:18:11]Cover opened [21:18:16]OFD Sender: No OFD packet to send [21:18:16]Write to MH i2c: 01 00 00 21 4B 6C [21:18:16]Write i2c OK [21:18:16]MH_I2C_Read... [21:18:16]Read from MH i2c: 01 [21:18:16]MH_I2C_Read... [21:18:16]Read from MH i2c: 01 07 00 [21:18:16]MH_I2C_Read... [21:18:16]Read from MH i2c: 01 07 00 21 4B 00 02 00 00 00 FF 0F 83 [21:18:16]state=3 [21:18:16]Cover opened [21:18:21]OFD Sender: No OFD packet to send [21:18:21]Write to MH i2c: 01 00 00 22 4B 6D [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: 01 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: 01 07 00 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: 01 07 00 22 4B 00 02 00 00 00 FF 0F 84 [21:18:21]state=3 [21:18:21]Cover opened [21:18:26]OFD Sender: No OFD packet to send [21:18:26]Write to MH i2c: 01 00 00 23 4B 6E [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 23 4B 00 02 00 00 00 FF 0F 85 [21:18:26]state=3 [21:18:26]Cover opened [21:18:31]OFD Sender: No OFD packet to send [21:18:31]Write to MH i2c: 01 00 00 24 4B 6F [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 24 4B 00 02 00 00 00 FF 0F 86 [21:18:31]state=3 [21:18:31]Cover opened [21:18:36]OFD Sender: No OFD packet to send [21:18:36]Write to MH i2c: 01 00 00 25 4B 70 [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: 01 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: 01 07 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: 01 07 00 25 4B 00 02 00 00 00 FF 0F 87 [21:18:36]state=3 [21:18:36]Cover opened [21:18:41]OFD Sender: No OFD packet to send [21:18:41]Write to MH i2c: 01 00 00 26 4B 71 [21:18:41]Write i2c OK [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: 01 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: 01 07 00 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: 01 07 00 26 4B 00 02 00 00 00 FF 0F 88 [21:18:41]state=3 [21:18:41]Cover opened [21:18:46]OFD Sender: No OFD packet to send [21:18:46]Write to MH i2c: 01 00 00 27 4B 72 [21:18:46]Write i2c OK [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: 01 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: 01 07 00 [21:18:46]MH_I2C_Read... [21:18:46]Read from MH i2c: 01 07 00 27 4B 00 02 00 00 00 FF 0F 89 [21:18:46]state=3 [21:18:46]Cover opened [21:18:51]OFD Sender: No OFD packet to send [21:18:51]Write to MH i2c: 01 00 00 28 4B 73 [21:18:51]Write i2c OK [21:18:51]MH_I2C_Read... [21:18:51]Read from MH i2c: 01 [21:18:51]MH_I2C_Read... [21:18:51]Read from MH i2c: 01 07 00 [21:18:51]MH_I2C_Read... [21:18:51]Read from MH i2c: 01 07 00 28 4B 00 02 00 00 00 FF 0F 8A [21:18:51]state=3 [21:18:51]Cover opened [21:18:56]OFD Sender: No OFD packet to send [21:18:56]Write to MH i2c: 01 00 00 29 4B 74 [21:18:56]Write i2c OK [21:18:56]MH_I2C_Read... [21:18:56]Read from MH i2c: 01 [21:18:56]MH_I2C_Read... [21:18:56]Read from MH i2c: 01 07 00 [21:18:56]MH_I2C_Read... [21:18:56]Read from MH i2c: 01 07 00 29 4B 00 02 00 00 00 FF 0F 8B [21:18:56]state=3 [21:18:56]Cover opened [21:19:01]OFD Sender: No OFD packet to send [21:19:01]Write to MH i2c: 01 00 00 2A 4B 75 [21:19:01]Write i2c OK [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: 01 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: 01 07 00 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: 01 07 00 2A 4B 00 02 00 00 00 FF 0F 8C [21:19:01]state=3 [21:19:01]Cover opened [21:19:06]OFD Sender: No OFD packet to send [21:19:06]Write to MH i2c: 01 00 00 2B 4B 76 [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 2B 4B 00 02 00 00 00 FF 0F 8D [21:19:06]state=3 [21:19:06]Cover opened [21:19:11]OFD Sender: No OFD packet to send [21:19:11]Write to MH i2c: 01 00 00 2C 4B 77 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 07 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 07 00 2C 4B 00 02 00 00 00 FF 0F 8E [21:19:11]state=3 [21:19:11]Cover opened [21:19:16]OFD Sender: No OFD packet to send [21:19:16]Write to MH i2c: 01 00 00 2D 4B 78 [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 07 00 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 07 00 2D 4B 00 02 00 00 00 FF 0F 8F [21:19:16]state=3 [21:19:16]Cover opened [21:19:21]OFD Sender: No OFD packet to send [21:19:21]Write to MH i2c: 01 00 00 2E 4B 79 [21:19:21]Write i2c OK [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: 01 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: 01 07 00 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: 01 07 00 2E 4B 00 02 00 00 00 FF 0F 90 [21:19:21]state=3 [21:19:21]Cover opened [21:19:22]accept exits with 9 [21:19:22]New connection [21:19:22]New thread 3066924388 created [21:19:22]Thread 3066781028 joined [21:19:22]Waiting for new connection... [21:19:22] Sock 9.Parse request [21:19:22]Sock 9.Check first char [21:19:22]Sock 9.First char is OK [21:19:22]request: POST /json_proto HTTP/1.0 [21:19:22]Method: POST [21:19:22]URL: /json_proto [21:19:22]Method is POST - this is cgi request [21:19:22]url: /json_proto [21:19:22]query_string will be loaded in cgi processing [21:19:22]execute_cgi json_proto POST (null) [21:19:22]execute_cgi path=json_proto method=POST [21:19:22]POST find Content-Length [21:19:22]Host: 172.17.39.131:8080 [21:19:22]Content-Length: 215 [21:19:22]Content-Type: application/json [21:19:22] [21:19:22]POST finish read [21:19:22]Found Content-Length = 215 [21:19:22]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" ] } } [21:19:22]execute_script... [21:19:22]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" ] } } [21:19:22]POST & json_proto [21:19:22]process_json_proto [21:19:22]json parsed OK: [21:19:22]protocol is kg_v1.0 [21:19:22]action value=get_value [21:19:22]process_action get_value [21:19:22]cmd_get_value [21:19:22]process_action get_value done [21:19:22]requested_data is exist [21:19:22]produce_requested_data [21:19:22]requested_item kkm.sn is exist - process it [21:19:22]requested_item kkm.ver is exist - process it [21:19:22]requested_item fm.sn is exist - process it [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 11 00 00 [21:19:22]Write to MH i2c: E2 08 00 2F 4B 80 11 00 00 00 00 00 00 F4 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 17 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 17 00 2F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4C [21:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:19:22]wFMCommunicate OK [21:19:22]requested_item fd.num is exist - process it [21:19:22]SAM_PROTO_GetFieldsCounters [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 13 00 00 [21:19:22]Write to MH i2c: E2 08 00 30 4B 80 13 00 00 00 00 00 00 F7 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:22]Read from MH i2c: E2 62 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 62 00 30 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 25 01 00 0E 04 04 00 00 02 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 4A [21:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 25 01 00 0E 04 04 00 00 02 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 [21:19:22]wFMCommunicate OK [21:19:22]SAM_PROTO_GetFieldsCounters done [21:19:22]requested_item shift.num is exist - process it [21:19:22]requested_item shift.opened is exist - process it [21:19:22]req_shift_opened [21:19:22]FM_GetShiftState [21:19:22]SAM_PROTO_GetShiftState [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 13 01 00 [21:19:22]Write to MH i2c: E2 08 00 31 4B 80 13 01 00 00 00 00 00 F9 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 0E 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 0E 00 31 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 14 [21:19:22]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:19:22]wFMCommunicate OK [21:19:22]SAM_PROTO_GetShiftState done [21:19:22]FM_GetShiftState done [21:19:22]req_shift_opened done [21:19:22]requested_item shift.open_date is exist - process it [21:19:22]req_shift_open_date [21:19:22]req_shift_open_date done [21:19:22]produce_requested_data done [21:19:22]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75201,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:19:22]process_action_free get_value [21:19:22]json_value_free [21:19:22]json_value_free done [21:19:22]process_json_proto returns [21:19:22]Send response to host [21:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75201,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:19:22]free response buf [21:19:22]execute_script done [21:19:22]execute_script returns [21:19:22]free content buf [21:19:22]Sock 9.Close socket [21:19:22]Sock 9.Thread stoped [21:19:22]accept exits with 10 [21:19:22]New connection [21:19:22]New thread 3066781028 created [21:19:22]Thread 3066924388 joined [21:19:22]Waiting for new connection... [21:19:22] Sock 10.Parse request [21:19:22]Sock 10.Check first char [21:19:22]Sock 10.First char is OK [21:19:22]request: POST /json_proto HTTP/1.0 [21:19:22]Method: POST [21:19:22]URL: /json_proto [21:19:22]Method is POST - this is cgi request [21:19:22]url: /json_proto [21:19:22]query_string will be loaded in cgi processing [21:19:22]execute_cgi json_proto POST (null) [21:19:22]execute_cgi path=json_proto method=POST [21:19:22]POST find Content-Length [21:19:22]Host: 172.17.39.131:8080 [21:19:22]Content-Length: 331 [21:19:22]Content-Type: application/json [21:19:22] [21:19:22]POST finish read [21:19:22]Found Content-Length = 331 [21:19:22]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" ] } } [21:19:22]execute_script... [21:19:22]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" ] } } [21:19:22]POST & json_proto [21:19:22]process_json_proto [21:19:22]json parsed OK: [21:19:22]protocol is kg_v1.0 [21:19:22]action value=get_value [21:19:22]process_action get_value [21:19:22]cmd_get_value [21:19:22]process_action get_value done [21:19:22]requested_data is exist [21:19:22]produce_requested_data [21:19:22]requested_item fm.sale.total is exist - process it [21:19:22]SAM_PROTO_GetFMData [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 13 03 00 [21:19:22]Write to MH i2c: E2 08 00 32 4B 80 13 03 00 00 00 00 00 FC [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 32 4B 00 C1 04 85 04 BD 04 6E 04 04 00 C1 21 01 00 69 04 A3 00 6F 04 04 00 B4 21 01 00 B1 04 05 00 9C D6 30 A9 01 70 04 05 00 34 4C DF 62 01 72 04 04 00 68 8A 51 46 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 3D 9D 2A 2D 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 77 79 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 F8 [21:19:23]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C1 21 01 00 69 04 A3 00 6F 04 04 00 B4 21 01 00 B1 04 05 00 9C D6 30 A9 01 70 04 05 00 34 4C DF 62 01 72 04 04 00 68 8A 51 46 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 3D 9D 2A 2D 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 77 79 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 17 00 00 [21:19:23]Write to MH i2c: E2 08 00 33 4B 80 17 00 00 00 00 00 00 FE [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 33 4B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [21:19:23]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 17 00 00 [21:19:23]Write to MH i2c: E2 08 00 34 4B 80 17 00 00 00 00 00 00 FF [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]int [21:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:23]*** FLAG_PRN_PAP1 set [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 34 4B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [21:19:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 17 00 00 [21:19:23]Write to MH i2c: 01 00 00 35 4B 80 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 35 4B 00 03 00 00 00 FF 0F 98 [21:19:23]state=3 [21:19:23]No paper [21:19:23]Cover opened [21:19:23]Write to MH i2c: E2 08 00 36 4B 80 17 00 00 00 00 00 00 01 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 FD 00 36 4B 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 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 90 00 86 [21:19:23]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 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 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 17 00 00 [21:19:23]Write to MH i2c: E2 08 00 37 4B 80 17 00 00 00 00 00 00 02 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:19:24]Read from MH i2c: E2 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 DE 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 DE 00 37 4B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E1 [21:19:24]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:24]wFMCommunicate OK [21:19:24]SAM_PROTO_GetFMData done [21:19:24]requested_item fm.sale_refund.total is exist - process it [21:19:24]requested_item fm.buy.total is exist - process it [21:19:24]requested_item shift.sale.total is exist - process it [21:19:24]SAM_PROTO_GetShiftData [21:19:24]wFMCommunicate request_size=4 [21:19:24]MH_SAM_APDU [21:19:24]CAPDU: 80 13 02 00 [21:19:24]Write to MH i2c: E2 08 00 38 4B 80 13 02 00 00 00 00 00 01 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:19:24]Read from MH i2c: E2 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 FD 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 FD 00 38 4B 00 B0 04 AA 04 AC 04 6E 04 04 00 C1 00 00 00 69 04 9D 00 6F 04 04 00 C1 00 00 00 B1 04 04 00 B6 BE 1A 01 70 04 03 00 50 34 B2 72 04 03 00 66 8A 68 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 9E 08 1E 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 B4 80 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 6D [21:19:24]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 C1 00 00 00 69 04 9D 00 6F 04 04 00 C1 00 00 00 B1 04 04 00 B6 BE 1A 01 70 04 03 00 50 34 B2 72 04 03 00 66 8A 68 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 9E 08 1E 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 B4 80 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:19:24]wFMCommunicate OK [21:19:24]wFMCommunicate request_size=4 [21:19:24]MH_SAM_APDU [21:19:24]CAPDU: 80 17 00 00 [21:19:24]Write to MH i2c: E2 08 00 39 4B 80 17 00 00 00 00 00 00 04 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:24]Read from MH i2c: E2 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 FD 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 FD 00 39 4B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [21:19:24]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:19:24]wFMCommunicate OK [21:19:24]wFMCommunicate request_size=4 [21:19:24]MH_SAM_APDU [21:19:24]CAPDU: 80 17 00 00 [21:19:24]Write to MH i2c: E2 08 00 3A 4B 80 17 00 00 00 00 00 00 05 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 FD 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 FD 00 3A 4B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [21:19:25]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:19:25]wFMCommunicate OK [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 17 00 00 [21:19:25]Write to MH i2c: E2 08 00 3B 4B 80 17 00 00 00 00 00 00 06 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 FD 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 FD 00 3B 4B 00 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 90 00 79 [21:19:25]RAPDU: 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 90 00 [21:19:25]wFMCommunicate OK [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 17 00 00 [21:19:25]Write to MH i2c: E2 08 00 3C 4B 80 17 00 00 00 00 00 00 07 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 CD 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 CD 00 3C 4B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:19:25]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:25]wFMCommunicate OK [21:19:25]SAM_PROTO_GetShiftData done [21:19:25]requested_item shift.sale.total_cash is exist - process it [21:19:25]requested_item shift.sale_refund.total is exist - process it [21:19:25]requested_item shift.sale_refund.total_cash is exist - process it [21:19:25]requested_item shift.buy.total is exist - process it [21:19:25]requested_item shift.buy.total_cash is exist - process it [21:19:25]produce_requested_data done [21:19:25]produce_requested_data return {"fm.sale.total":71335174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":185299.74,"shift.sale.total_cash":116788.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} [21:19:25]process_action_free get_value [21:19:25]json_value_free [21:19:25]json_value_free done [21:19:25]process_json_proto returns [21:19:25]Send response to host [21:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71335174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":185299.74,"shift.sale.total_cash":116788.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}}} [21:19:25]free response buf [21:19:25]execute_script done [21:19:25]execute_script returns [21:19:25]free content buf [21:19:25]Sock 10.Close socket [21:19:25]Sock 10.Thread stoped [21:19:26]accept exits with 9 [21:19:26]New connection [21:19:26]New thread 3066924388 created [21:19:26]Thread 3066781028 joined [21:19:26]Waiting for new connection... [21:19:26] Sock 9.Parse request [21:19:26]Sock 9.Check first char [21:19:26]Sock 9.First char is OK [21:19:26]request: POST /json_proto HTTP/1.0 [21:19:26]Method: POST [21:19:26]URL: /json_proto [21:19:26]Method is POST - this is cgi request [21:19:26]url: /json_proto [21:19:26]query_string will be loaded in cgi processing [21:19:26]execute_cgi json_proto POST (null) [21:19:26]execute_cgi path=json_proto method=POST [21:19:26]POST find Content-Length [21:19:26]Host: 172.17.39.131:8080 [21:19:26]Content-Length: 144 [21:19:26]Content-Type: application/json [21:19:26] [21:19:26]POST finish read [21:19:26]Found Content-Length = 144 [21:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:19:26]execute_script... [21:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:19:26]POST & json_proto [21:19:26]process_json_proto [21:19:26]json parsed OK: [21:19:26]protocol is kg_v1.0 [21:19:26]action value=print_doc [21:19:26]process_action print_doc [21:19:26]ExternCall_PrintAddStr [21:19:26]wPrintStart [21:19:26]Write to MH i2c: 01 00 00 3D 4B 88 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 3D 4B 00 03 00 00 00 FF 0F A0 [21:19:26]RasterBufferAndPrint [21:19:26]line Счет N : (1)191179 [21:19:26]line ИНН: 02508201610067 [21:19:26]line Контрольно-Кассовый Чек [21:19:26]line ПРОДАЖА [21:19:26]line ТРК (МРК, ГНК) : 31 [21:19:26]line Товар: 2710194210 [21:19:26]line ДТ-К-4 [21:19:26]line 13.130 * 76.20 [21:19:26]line = 1000.51 [21:19:26]line НДС 12% НСП 1% [21:19:26]line > о реализуемом товаре [21:19:26]line ОКРУГЛЕНИЕ: -0.51 [21:19:26]line ИТОГО: 1000.00 [21:19:26]line Внесено: 1000.00 [21:19:26]line СДАЧА: 0.00 [21:19:26]line НСП 1% : 8.85 [21:19:26]line НДС 12% : 106.25 [21:19:26]line Наличными: 1000.00 [21:19:26]line Безнал.: 0.00 [21:19:26]line Место: АЗС № 142 "Партнер Нефть" [21:19:26]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:19:26]line СНО: Общий режим [21:19:26]line Чек 193 26.10.2024 20:58 [21:19:26]line Смена: 512 ФФД: 1.0 [21:19:26]line ЗНМ: 0300000089 [21:19:26]line РНМ: 0000000000091691 [21:19:26]line Версия ККМ: 001 [21:19:26]line ФМ: 0000000000871795 [21:19:26]line ФД: 75201 [21:19:26]line ФПД: 66344938926954 [21:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205829&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75201&fm=66344938926954&tin=02508201610067®Number=0000000000091691&sum=100000 [21:19:26]written 0, free lines is 4095 [21:19:26]Error from MH - 05 [21:19:26]process_action_free print_doc [21:19:26]json_value_free [21:19:26]json_value_free done [21:19:26]process_json_proto returns [21:19:26]Send response to host [21:19:26]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [21:19:26]free response buf [21:19:26]execute_script done [21:19:26]execute_script returns [21:19:26]free content buf [21:19:26]Sock 9.Close socket [21:19:26]Sock 9.Thread stoped [21:19:26]OFD Sender: No OFD packet to send [21:19:28]Write to MH i2c: 01 00 00 40 4B 8B [21:19:28]Write i2c OK [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 07 00 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 07 00 40 4B 00 03 00 00 00 FF 0F A3 [21:19:28]state=3 [21:19:28]No paper [21:19:28]Cover opened [21:19:31]OFD Sender: No OFD packet to send [21:19:33]Write to MH i2c: 01 00 00 41 4B 8C [21:19:33]Write i2c OK [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 07 00 [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 07 00 41 4B 00 03 00 00 00 FF 0F A4 [21:19:33]state=3 [21:19:33]No paper [21:19:33]Cover opened [21:19:36]OFD Sender: No OFD packet to send [21:19:36]int [21:19:36]Write to MH i2c: 01 00 00 42 4B 8D [21:19:36]*** FLAG_PRN_PAP2 reset [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 [21:19:36]MH_I2C_Read... [21:19:36]*** FLAG_PRN_PAP1 reset [21:19:36]Read from MH i2c: 01 07 00 42 4B 00 01 00 00 00 FF 0F A3 [21:19:36]state=3 [21:19:36]No paper [21:19:36]Cover closed [21:19:36]int line is 0 - check status [21:19:36]Write to MH i2c: 01 00 00 43 4B 8E [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 43 4B 00 00 00 00 00 FF 0F A3 [21:19:36]state=0 [21:19:36]int [21:19:36]Write to MH i2c: 01 00 00 44 4B 8F [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 44 4B 00 00 00 00 00 FF 0F A4 [21:19:36]state=0 [21:19:37]int [21:19:37]Write to MH i2c: 01 00 00 45 4B 90 [21:19:37]*** FLAG_PRN_PAP1 set [21:19:37]Write i2c OK [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 07 00 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 07 00 45 4B 00 01 00 00 00 FF 0F A6 [21:19:37]state=0 [21:19:37]No paper [21:19:37]int [21:19:37]Write to MH i2c: 01 00 00 46 4B 91 [21:19:37]*** FLAG_PRN_PAP2 set [21:19:37]Write i2c OK [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 07 00 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: 01 07 00 46 4B 00 03 00 00 00 FF 0F A9 [21:19:37]state=0 [21:19:37]No paper [21:19:37]Cover opened [21:19:38]int [21:19:38]Write to MH i2c: 01 00 00 47 4B 92 [21:19:38]*** FLAG_PRN_PAP1 reset [21:19:38]*** FLAG_PRN_PAP2 reset [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 47 4B 00 00 00 00 00 FF 0F A7 [21:19:38]state=3 [21:19:38]Cover closed [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:08]recv_with_timeout no data received [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:44]accept exits with 8 [21:35:44]New connection [21:35:44]New thread 3066781028 created [21:35:44]Thread 3066924388 joined [21:35:44]Waiting for new connection... [21:35:44] Sock 8.Parse request [21:35:44]Sock 8.Check first char [21:35:44]Sock 8.First char is OK [21:35:44]request: POST /json_proto HTTP/1.0 [21:35:44]Method: POST [21:35:44]URL: /json_proto [21:35:44]Method is POST - this is cgi request [21:35:44]url: /json_proto [21:35:44]query_string will be loaded in cgi processing [21:35:44]execute_cgi json_proto POST (null) [21:35:44]execute_cgi path=json_proto method=POST [21:35:44]POST find Content-Length [21:35:44]Host: 172.17.39.131:8080 [21:35:44]Content-Length: 215 [21:35:44]Content-Type: application/json [21:35:44] [21:35:44]POST finish read [21:35:44]Found Content-Length = 215 [21:35:44]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" ] } } [21:35:44]execute_script... [21:35:44]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" ] } } [21:35:44]POST & json_proto [21:35:44]process_json_proto [21:35:44]json parsed OK: [21:35:44]protocol is kg_v1.0 [21:35:44]action value=get_value [21:35:44]process_action get_value [21:35:44]cmd_get_value [21:35:44]process_action get_value done [21:35:44]requested_data is exist [21:35:44]produce_requested_data [21:35:44]requested_item kkm.sn is exist - process it [21:35:44]requested_item kkm.ver is exist - process it [21:35:44]requested_item fm.sn is exist - process it [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 11 00 00 [21:35:44]Write to MH i2c: E2 08 00 48 4B 80 11 00 00 00 00 00 00 0D [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:44]Read from MH i2c: E2 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 17 00 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 17 00 48 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 65 [21:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:35:44]wFMCommunicate OK [21:35:44]requested_item fd.num is exist - process it [21:35:44]SAM_PROTO_GetFieldsCounters [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 13 00 00 [21:35:44]Write to MH i2c: E2 08 00 49 4B 80 13 00 00 00 00 00 00 10 [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:44]Read from MH i2c: E2 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 62 00 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 62 00 49 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 25 01 00 0E 04 04 00 00 02 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 63 [21:35:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C1 25 01 00 0E 04 04 00 00 02 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 [21:35:44]wFMCommunicate OK [21:35:44]SAM_PROTO_GetFieldsCounters done [21:35:44]requested_item shift.num is exist - process it [21:35:44]requested_item shift.opened is exist - process it [21:35:44]req_shift_opened [21:35:44]FM_GetShiftState [21:35:44]SAM_PROTO_GetShiftState [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 13 01 00 [21:35:44]Write to MH i2c: E2 08 00 4A 4B 80 13 01 00 00 00 00 00 12 [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:44]Read from MH i2c: E2 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 0E 00 [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: E2 0E 00 4A 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2D [21:35:44]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:35:44]wFMCommunicate OK [21:35:44]SAM_PROTO_GetShiftState done [21:35:44]FM_GetShiftState done [21:35:44]req_shift_opened done [21:35:44]requested_item shift.open_date is exist - process it [21:35:44]req_shift_open_date [21:35:44]req_shift_open_date done [21:35:44]produce_requested_data done [21:35:44]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75201,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:35:44]process_action_free get_value [21:35:44]json_value_free [21:35:44]json_value_free done [21:35:44]process_json_proto returns [21:35:44]Send response to host [21:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75201,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:35:44]free response buf [21:35:44]execute_script done [21:35:44]execute_script returns [21:35:44]free content buf [21:35:44]Sock 8.Close socket [21:35:44]Sock 8.Thread stoped [21:35:44]accept exits with 9 [21:35:44]New connection [21:35:44]New thread 3066924388 created [21:35:44]Thread 3066781028 joined [21:35:44]Waiting for new connection... [21:35:44] Sock 9.Parse request [21:35:44]Sock 9.Check first char [21:35:44]Sock 9.First char is OK [21:35:44]request: POST /json_proto HTTP/1.0 [21:35:44]Method: POST [21:35:44]URL: /json_proto [21:35:44]Method is POST - this is cgi request [21:35:44]url: /json_proto [21:35:44]query_string will be loaded in cgi processing [21:35:44]execute_cgi json_proto POST (null) [21:35:44]execute_cgi path=json_proto method=POST [21:35:44]POST find Content-Length [21:35:44]Host: 172.17.39.131:8080 [21:35:44]Content-Length: 331 [21:35:44]Content-Type: application/json [21:35:44] [21:35:44]POST finish read [21:35:44]Found Content-Length = 331 [21:35:44]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" ] } } [21:35:44]execute_script... [21:35:44]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" ] } } [21:35:44]POST & json_proto [21:35:44]process_json_proto [21:35:44]json parsed OK: [21:35:44]protocol is kg_v1.0 [21:35:44]action value=get_value [21:35:44]process_action get_value [21:35:44]cmd_get_value [21:35:44]process_action get_value done [21:35:44]requested_data is exist [21:35:44]produce_requested_data [21:35:44]requested_item fm.sale.total is exist - process it [21:35:44]SAM_PROTO_GetFMData [21:35:44]wFMCommunicate request_size=4 [21:35:44]MH_SAM_APDU [21:35:44]CAPDU: 80 13 03 00 [21:35:44]Write to MH i2c: E2 08 00 4B 4B 80 13 03 00 00 00 00 00 15 [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 4B 4B 00 C1 04 85 04 BD 04 6E 04 04 00 C1 21 01 00 69 04 A3 00 6F 04 04 00 B4 21 01 00 B1 04 05 00 9C D6 30 A9 01 70 04 05 00 34 4C DF 62 01 72 04 04 00 68 8A 51 46 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 3D 9D 2A 2D 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 77 79 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 11 [21:35:45]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C1 21 01 00 69 04 A3 00 6F 04 04 00 B4 21 01 00 B1 04 05 00 9C D6 30 A9 01 70 04 05 00 34 4C DF 62 01 72 04 04 00 68 8A 51 46 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 3D 9D 2A 2D 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 77 79 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [21:35:45]wFMCommunicate OK [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 17 00 00 [21:35:45]Write to MH i2c: E2 08 00 4C 4B 80 17 00 00 00 00 00 00 17 [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 4C 4B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [21:35:45]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:45]wFMCommunicate OK [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 17 00 00 [21:35:45]Write to MH i2c: E2 08 00 4D 4B 80 17 00 00 00 00 00 00 18 [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 4D 4B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [21:35:45]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:45]wFMCommunicate OK [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 17 00 00 [21:35:45]Write to MH i2c: E2 08 00 4E 4B 80 17 00 00 00 00 00 00 19 [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:45]Read from MH i2c: E2 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 [21:35:45]MH_I2C_Read... [21:35:45]Read from MH i2c: E2 FD 00 4E 4B 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 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 90 00 9E [21:35:45]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 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 90 00 [21:35:45]wFMCommunicate OK [21:35:45]wFMCommunicate request_size=4 [21:35:45]MH_SAM_APDU [21:35:45]CAPDU: 80 17 00 00 [21:35:45]Write to MH i2c: E2 08 00 4F 4B 80 17 00 00 00 00 00 00 1A [21:35:45]Write i2c OK [21:35:45]MH_I2C_Read... [21:35:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:35:46]Read from MH i2c: E2 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 DE 00 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 DE 00 4F 4B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [21:35:46]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:46]wFMCommunicate OK [21:35:46]SAM_PROTO_GetFMData done [21:35:46]requested_item fm.sale_refund.total is exist - process it [21:35:46]requested_item fm.buy.total is exist - process it [21:35:46]requested_item shift.sale.total is exist - process it [21:35:46]SAM_PROTO_GetShiftData [21:35:46]wFMCommunicate request_size=4 [21:35:46]MH_SAM_APDU [21:35:46]CAPDU: 80 13 02 00 [21:35:46]Write to MH i2c: E2 08 00 50 4B 80 13 02 00 00 00 00 00 19 [21:35:46]Write i2c OK [21:35:46]MH_I2C_Read... [21:35:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:35:46]Read from MH i2c: E2 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 FD 00 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 FD 00 50 4B 00 B0 04 AA 04 AC 04 6E 04 04 00 C1 00 00 00 69 04 9D 00 6F 04 04 00 C1 00 00 00 B1 04 04 00 B6 BE 1A 01 70 04 03 00 50 34 B2 72 04 03 00 66 8A 68 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 9E 08 1E 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 B4 80 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 85 [21:35:46]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 C1 00 00 00 69 04 9D 00 6F 04 04 00 C1 00 00 00 B1 04 04 00 B6 BE 1A 01 70 04 03 00 50 34 B2 72 04 03 00 66 8A 68 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 9E 08 1E 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 B4 80 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:35:46]wFMCommunicate OK [21:35:46]wFMCommunicate request_size=4 [21:35:46]MH_SAM_APDU [21:35:46]CAPDU: 80 17 00 00 [21:35:46]Write to MH i2c: E2 08 00 51 4B 80 17 00 00 00 00 00 00 1C [21:35:46]Write i2c OK [21:35:46]MH_I2C_Read... [21:35:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:46]Read from MH i2c: E2 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 FD 00 [21:35:46]MH_I2C_Read... [21:35:46]Read from MH i2c: E2 FD 00 51 4B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [21:35:46]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:46]wFMCommunicate OK [21:35:46]wFMCommunicate request_size=4 [21:35:46]MH_SAM_APDU [21:35:46]CAPDU: 80 17 00 00 [21:35:46]Write to MH i2c: E2 08 00 52 4B 80 17 00 00 00 00 00 00 1D [21:35:46]Write i2c OK [21:35:46]MH_I2C_Read... [21:35:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 FD 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 FD 00 52 4B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [21:35:47]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:47]wFMCommunicate OK [21:35:47]wFMCommunicate request_size=4 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 17 00 00 [21:35:47]Write to MH i2c: E2 08 00 53 4B 80 17 00 00 00 00 00 00 1E [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]OFD Sender: No OFD packet to send [21:35:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 FD 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 FD 00 53 4B 00 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 90 00 91 [21:35:47]RAPDU: 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 90 00 [21:35:47]wFMCommunicate OK [21:35:47]wFMCommunicate request_size=4 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 17 00 00 [21:35:47]Write to MH i2c: E2 08 00 54 4B 80 17 00 00 00 00 00 00 1F [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 CD 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 CD 00 54 4B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [21:35:47]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:47]wFMCommunicate OK [21:35:47]SAM_PROTO_GetShiftData done [21:35:47]requested_item shift.sale.total_cash is exist - process it [21:35:47]requested_item shift.sale_refund.total is exist - process it [21:35:47]requested_item shift.sale_refund.total_cash is exist - process it [21:35:47]requested_item shift.buy.total is exist - process it [21:35:47]requested_item shift.buy.total_cash is exist - process it [21:35:47]produce_requested_data done [21:35:47]produce_requested_data return {"fm.sale.total":71335174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":185299.74,"shift.sale.total_cash":116788.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} [21:35:47]process_action_free get_value [21:35:47]json_value_free [21:35:47]json_value_free done [21:35:47]process_json_proto returns [21:35:47]Send response to host [21:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71335174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":185299.74,"shift.sale.total_cash":116788.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}}} [21:35:47]free response buf [21:35:47]execute_script done [21:35:47]execute_script returns [21:35:47]free content buf [21:35:47]Sock 9.Close socket [21:35:47]Sock 9.Thread stoped [21:35:47]accept exits with 8 [21:35:47]New connection [21:35:47]New thread 3066781028 created [21:35:47]Thread 3066924388 joined [21:35:47]Waiting for new connection... [21:35:47] Sock 8.Parse request [21:35:47]Sock 8.Check first char [21:35:47]Sock 8.First char is OK [21:35:47]request: POST /json_proto HTTP/1.0 [21:35:47]Method: POST [21:35:47]URL: /json_proto [21:35:47]Method is POST - this is cgi request [21:35:47]url: /json_proto [21:35:47]query_string will be loaded in cgi processing [21:35:47]execute_cgi json_proto POST (null) [21:35:47]execute_cgi path=json_proto method=POST [21:35:47]POST find Content-Length [21:35:47]Host: 172.17.39.131:8080 [21:35:47]Content-Length: 682 [21:35:47]Content-Type: application/json [21:35:47] [21:35:47]POST finish read [21:35:47]Found Content-Length = 682 [21:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [21:35:47]execute_script... [21:35: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)191180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [21:35:47]POST & json_proto [21:35:47]process_json_proto [21:35:47]json parsed OK: [21:35:47]protocol is kg_v1.0 [21:35:47]action value=close_receipt [21:35:47]process_action close_receipt [21:35:47]cmd_close_receipt [21:35:47]MH_GetDate [21:35:47]Write to MH i2c: F0 00 00 55 4B 8F [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 09 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 09 00 55 4B 00 BA 60 1D 67 86 57 24 65 9C [21:35:47]GetLastDocTimeStamp 1729976309 [21:35:47]current date 1729978554 [21:35:47]FM_GetShiftState [21:35:47]SAM_PROTO_GetShiftState [21:35:47]wFMCommunicate request_size=4 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 13 01 00 [21:35:47]Write to MH i2c: E2 08 00 56 4B 80 13 01 00 00 00 00 00 1E [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0E 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0E 00 56 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 39 [21:35:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:35:48]wFMCommunicate OK [21:35:48]SAM_PROTO_GetShiftState done [21:35:48]FM_GetShiftState done [21:35:48]opened in 1729902166 [21:35:48]opened+sec_in_day 1729988566 [21:35:48]quantity*price = 100015 [21:35:48]sum+1 = 100017 [21:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 194 26.10.2024 21:35 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75202 ФПД: 247976693787548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75202&fm=247976693787548&tin=02508201610067®Number=0000000000091691&sum=100000 [21:35:49]StoreToDocumentArchive [21:35:49]shift 512 fd 75202 [21:35:49]save to /storage/0512/doc_00075202 [21:35:49]save last doc name /storage/0512/doc_00075202 to /storage/kkm_last_doc_name [21:35:49]save OK [21:35:49]Clear old archive folders... [21:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:49]tlvbuf is 009ACD50 [21:35:49]SAM_PROTO_ClearQueue [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 09 00 00 [21:35:49]Write to MH i2c: E2 08 00 63 4B 80 09 00 00 00 00 00 00 20 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 63 4B 00 90 00 22 [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]SAM_PROTO_ClearQueue done [21:35:49]KKMCreateOFDPacket [21:35:49]OFDProtocolAddRootSTLVToBuf [21:35:49]FM_MakeSignedData [21:35:49]FM_MakeSignedData [21:35:49]SAM_PROTO_SignData [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 01 02 [21:35:49]Write to MH i2c: E2 08 00 64 4B 80 0D 01 02 00 00 00 00 28 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 64 4B 00 90 00 23 [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=255 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 BA 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 25 01 00 35 04 06 00 E1 [21:35:49]Write to MH i2c: E2 02 01 65 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 C2 00 00 00 F4 03 04 00 BA 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 25 01 00 35 04 06 00 E1 00 00 E2 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 65 4B 00 90 00 24 [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=10 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 02 02 05 88 92 BE EB 9C [21:35:49]Write to MH i2c: E2 0D 00 66 4B 80 0D 02 02 05 00 88 92 BE EB 9C 00 00 94 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 66 4B 00 90 00 25 [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 03 02 [21:35:49]Write to MH i2c: E2 08 00 67 4B 80 0D 03 02 00 00 00 00 2D [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 0B 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 0B 00 67 4B 00 F4 BF 0E D0 CC 73 CB 9A 90 00 63 [21:35:49]RAPDU: F4 BF 0E D0 CC 73 CB 9A 90 00 [21:35:49]wFMCommunicate OK [21:35:49]SAM_PROTO_SignData done [21:35:49]FM_MakeSignedData done [21:35:49]CreateOFDProtocolMessage [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 11 00 00 [21:35:49]Write to MH i2c: E2 08 00 68 4B 80 11 00 00 00 00 00 00 2D [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:50]Read from MH i2c: E2 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 17 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 17 00 68 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 85 [21:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:35:50]wFMCommunicate OK [21:35:50]CreateOFDProtocolMessage done [21:35:50]OFDSenderStorePacket 75202 [21:35:50]StoreOFDPacket docnum=75202 [21:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 17 53 07 01 91 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 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 C2 00 00 00 F4 03 04 00 BA 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 25 01 00 35 04 06 00 E1 88 92 BE EB 9C F4 BF 0E D0 CC 73 CB 9A [21:35:50]CheckFolder [21:35:50]dirname=/storage/ofd_packets [21:35:50]CheckFolder done [21:35:50]ProducePacketName [21:35:50]name=ofd_packets/00075202 [21:35:50]NVStorageSaveData ofd_packets/00075202 [21:35:50]File name is /storage/ofd_packets/00075202 [21:35:50]Write 301 bytes [21:35:50]NVStorageSaveData done [21:35:50]OFDSenderStorePacket done [21:35:50]KKMCreateOFDPacket done [21:35:50]NVStorageSaveData kkm_last_timestamp [21:35:50]File name is /storage/kkm_last_timestamp [21:35:50]Write 4 bytes [21:35:50]NVStorageSaveData done [21:35:50]ExternCall_PrintAddStr [21:35:50]wPrintStart [21:35:50]Write to MH i2c: 01 00 00 69 4B B4 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 69 4B 00 00 00 00 00 FF 0F C9 [21:35:50]RasterBufferAndPrint [21:35:50]line Счет N : (1)191180 [21:35:50]line ИНН: 02508201610067 [21:35:50]line Контрольно-Кассовый Чек [21:35:50]line ПРОДАЖА [21:35:50]line ТРК (МРК, ГНК) : 21 [21:35:50]line Товар: 2710124130 [21:35:50]line Аи-92-К-5 [21:35:50]line 14.950 * 66.90 [21:35:50]line = 1000.16 [21:35:50]line НДС 12% НСП 1% [21:35:50]line > о реализуемом товаре [21:35:50]line ОКРУГЛЕНИЕ: -0.16 [21:35:50]line ИТОГО: 1000.00 [21:35:50]line Внесено: 1000.00 [21:35:50]line СДАЧА: 0.00 [21:35:50]line НСП 1% : 8.85 [21:35:50]line НДС 12% : 106.21 [21:35:50]line Наличными: 1000.00 [21:35:50]line Безнал.: 0.00 [21:35:50]line Место: АЗС № 142 "Партнер Нефть" [21:35:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:35:50]line СНО: Общий режим [21:35:50]line Чек 194 26.10.2024 21:35 [21:35:50]line Смена: 512 ФФД: 1.0 [21:35:50]line ЗНМ: 0300000089 [21:35:50]line РНМ: 0000000000091691 [21:35:50]line Версия ККМ: 001 [21:35:50]line ФМ: 0000000000871795 [21:35:50]line ФД: 75202 [21:35:50]line ФПД: 247976693787548 [21:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213554&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75202&fm=247976693787548&tin=02508201610067®Number=0000000000091691&sum=100000 [21:35:50]written 0, free lines is 4095 [21:35:50]OFD Sender: Processing packet 75202 [packets to send 13, broken 12] [21:35:50]ProducePacketName [21:35:50]name=ofd_packets/00075202 [21:35:50]OFD Sender: To server: pG, [21:35:50]CommunicateWithHost lk.salyk.kg:30040 [21:35:50]ConnectInit lk.salyk.kg [21:35:50]Connected sock=10 [21:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 17 53 07 01 91 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 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 C2 00 00 00 F4 03 04 00 BA 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C2 25 01 00 35 04 06 00 E1 88 92 BE EB 9C F4 BF 0E D0 CC 73 CB 9A [21:35:50]Write to MH i2c: 01 00 00 94 4B DF [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 94 4B 00 00 00 00 00 B6 0C A8 [21:35:50]RasterBufferAndPrint [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]written 0, free lines is 3275 [21:35:50]MH_Cut [21:35:50]Write to MH i2c: D1 01 00 9B 4B 01 B8 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 01 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 01 00 9B 4B 00 B7 [21:35:50]Write to MH i2c: 01 00 00 9C 4B E7 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0F 95 47 00 25 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 38 37 31 37 39 35 10 04 04 00 C2 25 01 00 F4 03 04 00 36 08 1D 67 B6 04 01 00 00 D3 87 CB A9 28 2E 71 69 [21:35:50]CommunicateWithHost err = 0 [21:35:50]CheckOFDResponse [21:35:50]1017 (14) - 77093643461234 [21:35:50]1041 (16) - 0000000000871795 [21:35:50]1040 (4) - 75202 [21:35:50]1012 (4) - 26.10.2024 15:18 [21:35:50]1206 (1) - 0 [21:35:50]OFD Sender: Remove packet 75202 [21:35:50]ProducePacketName [21:35:50]name=ofd_packets/00075202 [21:35:50]NVStorageDeleteData [21:35:51]OFD Sender: No OFD packet to send [21:35:51]*** Cut start [21:35:51]*** Partial cut [21:35:51]*** CUTSNS_PIN = 1 [21:35:51]*** CUTSNS_PIN = 0 [21:35:51]*** Brake cut motor [21:35:52]Read from MH i2c: 01 [21:35:52]MH_I2C_Read... [21:35:52]*** Stop cut motor [21:35:52]*** Cut end [21:35:52]Read from MH i2c: 01 07 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: 01 07 00 9C 4B 00 00 00 00 00 FF 0F FC [21:35:52]process_action close_receipt done [21:35:52]requested_data is exist [21:35:52]produce_requested_data [21:35:52]requested_item fm.sn is exist - process it [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 11 00 00 [21:35:52]Write to MH i2c: E2 08 00 9D 4B 80 11 00 00 00 00 00 00 62 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 9D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BA [21:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:35:52]wFMCommunicate OK [21:35:52]requested_item fd.num is exist - process it [21:35:52]SAM_PROTO_GetFieldsCounters [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 00 00 [21:35:52]Write to MH i2c: E2 08 00 9E 4B 80 13 00 00 00 00 00 00 65 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 62 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 62 00 9E 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 25 01 00 0E 04 04 00 00 02 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 BC [21:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 25 01 00 0E 04 04 00 00 02 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 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetFieldsCounters done [21:35:52]requested_item shift.num is exist - process it [21:35:52]requested_item shift.opened is exist - process it [21:35:52]req_shift_opened [21:35:52]FM_GetShiftState [21:35:52]SAM_PROTO_GetShiftState [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 01 00 [21:35:52]Write to MH i2c: E2 08 00 9F 4B 80 13 01 00 00 00 00 00 67 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 9F 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 82 [21:35:52]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetShiftState done [21:35:52]FM_GetShiftState done [21:35:52]req_shift_opened done [21:35:52]requested_item shift.open_date is exist - process it [21:35:52]req_shift_open_date [21:35:52]req_shift_open_date done [21:35:52]produce_requested_data done [21:35:52]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75202,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:35:52]process_action_free close_receipt [21:35:52]json_value_free [21:35:52]json_value_free done [21:35:52]process_json_proto returns [21:35:52]Send response to host [21:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75202,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:35:52]free response buf [21:35:52]execute_script done [21:35:52]execute_script returns [21:35:52]free content buf [21:35:52]Sock 8.Close socket [21:35:52]Sock 8.Thread stoped [21:35:52]accept exits with 9 [21:35:52]New connection [21:35:52]New thread 3066924388 created [21:35:52]Thread 3066781028 joined [21:35:52]Waiting for new connection... [21:35:52] Sock 9.Parse request [21:35:52]Sock 9.Check first char [21:35:52]Sock 9.First char is OK [21:35:52]request: POST /json_proto HTTP/1.0 [21:35:52]Method: POST [21:35:52]URL: /json_proto [21:35:52]Method is POST - this is cgi request [21:35:52]url: /json_proto [21:35:52]query_string will be loaded in cgi processing [21:35:52]execute_cgi json_proto POST (null) [21:35:52]execute_cgi path=json_proto method=POST [21:35:52]POST find Content-Length [21:35:52]Host: 172.17.39.131:8080 [21:35:52]Content-Length: 215 [21:35:52]Content-Type: application/json [21:35:52] [21:35:52]POST finish read [21:35:52]Found Content-Length = 215 [21:35:52]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" ] } } [21:35:52]execute_script... [21:35:52]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" ] } } [21:35:52]POST & json_proto [21:35:52]process_json_proto [21:35:52]json parsed OK: [21:35:52]protocol is kg_v1.0 [21:35:52]action value=get_value [21:35:52]process_action get_value [21:35:52]cmd_get_value [21:35:52]process_action get_value done [21:35:52]requested_data is exist [21:35:52]produce_requested_data [21:35:52]requested_item kkm.sn is exist - process it [21:35:52]requested_item kkm.ver is exist - process it [21:35:52]requested_item fm.sn is exist - process it [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 11 00 00 [21:35:52]Write to MH i2c: E2 08 00 A0 4B 80 11 00 00 00 00 00 00 65 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 A0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 BD [21:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:35:52]wFMCommunicate OK [21:35:52]requested_item fd.num is exist - process it [21:35:52]SAM_PROTO_GetFieldsCounters [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 00 00 [21:35:52]Write to MH i2c: E2 08 00 A1 4B 80 13 00 00 00 00 00 00 68 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 62 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 62 00 A1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 25 01 00 0E 04 04 00 00 02 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 BF [21:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C2 25 01 00 0E 04 04 00 00 02 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 [21:35:53]wFMCommunicate OK [21:35:53]SAM_PROTO_GetFieldsCounters done [21:35:53]requested_item shift.num is exist - process it [21:35:53]requested_item shift.opened is exist - process it [21:35:53]req_shift_opened [21:35:53]FM_GetShiftState [21:35:53]SAM_PROTO_GetShiftState [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 13 01 00 [21:35:53]Write to MH i2c: E2 08 00 A2 4B 80 13 01 00 00 00 00 00 6A [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 0E 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 0E 00 A2 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 85 [21:35:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:35:53]wFMCommunicate OK [21:35:53]SAM_PROTO_GetShiftState done [21:35:53]FM_GetShiftState done [21:35:53]req_shift_opened done [21:35:53]requested_item shift.open_date is exist - process it [21:35:53]req_shift_open_date [21:35:53]req_shift_open_date done [21:35:53]produce_requested_data done [21:35:53]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75202,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:35:53]process_action_free get_value [21:35:53]json_value_free [21:35:53]json_value_free done [21:35:53]process_json_proto returns [21:35:53]Send response to host [21:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75202,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:35:53]free response buf [21:35:53]execute_script done [21:35:53]execute_script returns [21:35:53]free content buf [21:35:53]Sock 9.Close socket [21:35:53]Sock 9.Thread stoped [21:35:53]accept exits with 8 [21:35:53]New connection [21:35:53]New thread 3066781028 created [21:35:53]Thread 3066924388 joined [21:35:53]Waiting for new connection... [21:35:53] Sock 8.Parse request [21:35:53]Sock 8.Check first char [21:35:53]Sock 8.First char is OK [21:35:53]request: POST /json_proto HTTP/1.0 [21:35:53]Method: POST [21:35:53]URL: /json_proto [21:35:53]Method is POST - this is cgi request [21:35:53]url: /json_proto [21:35:53]query_string will be loaded in cgi processing [21:35:53]execute_cgi json_proto POST (null) [21:35:53]execute_cgi path=json_proto method=POST [21:35:53]POST find Content-Length [21:35:53]Host: 172.17.39.131:8080 [21:35:53]Content-Length: 331 [21:35:53]Content-Type: application/json [21:35:53] [21:35:53]POST finish read [21:35:53]Found Content-Length = 331 [21:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:35:53]execute_script... [21:35:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:35:53]POST & json_proto [21:35:53]process_json_proto [21:35:53]json parsed OK: [21:35:53]protocol is kg_v1.0 [21:35:53]action value=get_value [21:35:53]process_action get_value [21:35:53]cmd_get_value [21:35:53]process_action get_value done [21:35:53]requested_data is exist [21:35:53]produce_requested_data [21:35:53]requested_item fm.sale.total is exist - process it [21:35:53]SAM_PROTO_GetFMData [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 13 03 00 [21:35:53]Write to MH i2c: E2 08 00 A3 4B 80 13 03 00 00 00 00 00 6D [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 FD 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 FD 00 A3 4B 00 C1 04 85 04 BD 04 6E 04 04 00 C2 21 01 00 69 04 A3 00 6F 04 04 00 B5 21 01 00 B1 04 05 00 3C 5D 32 A9 01 70 04 05 00 D4 D2 E0 62 01 72 04 04 00 68 8A 51 46 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 BA C6 2A 2D 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 EC 7C C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 D9 [21:35:53]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C2 21 01 00 69 04 A3 00 6F 04 04 00 B5 21 01 00 B1 04 05 00 3C 5D 32 A9 01 70 04 05 00 D4 D2 E0 62 01 72 04 04 00 68 8A 51 46 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 BA C6 2A 2D 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 EC 7C C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [21:35:53]wFMCommunicate OK [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 17 00 00 [21:35:53]Write to MH i2c: E2 08 00 A4 4B 80 17 00 00 00 00 00 00 6F [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 FD 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 FD 00 A4 4B 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [21:35:54]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 17 00 00 [21:35:54]Write to MH i2c: E2 08 00 A5 4B 80 17 00 00 00 00 00 00 70 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 FD 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 FD 00 A5 4B 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [21:35:54]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 17 00 00 [21:35:54]Write to MH i2c: E2 08 00 A6 4B 80 17 00 00 00 00 00 00 71 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 FD 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 FD 00 A6 4B 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 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 90 00 F6 [21:35:54]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 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 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 17 00 00 [21:35:54]Write to MH i2c: E2 08 00 A7 4B 80 17 00 00 00 00 00 00 72 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 [21:35:55]MH_I2C_Read... [21:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:35:55]Read from MH i2c: E2 DE 00 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 DE 00 A7 4B 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [21:35:55]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:55]wFMCommunicate OK [21:35:55]SAM_PROTO_GetFMData done [21:35:55]requested_item fm.sale_refund.total is exist - process it [21:35:55]requested_item fm.buy.total is exist - process it [21:35:55]requested_item shift.sale.total is exist - process it [21:35:55]SAM_PROTO_GetShiftData [21:35:55]wFMCommunicate request_size=4 [21:35:55]MH_SAM_APDU [21:35:55]CAPDU: 80 13 02 00 [21:35:55]Write to MH i2c: E2 08 00 A8 4B 80 13 02 00 00 00 00 00 71 [21:35:55]Write i2c OK [21:35:55]MH_I2C_Read... [21:35:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:35:55]Read from MH i2c: E2 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 FD 00 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 FD 00 A8 4B 00 B0 04 AA 04 AC 04 6E 04 04 00 C2 00 00 00 69 04 9D 00 6F 04 04 00 C2 00 00 00 B1 04 04 00 56 45 1C 01 70 04 03 00 F0 BA B3 72 04 03 00 66 8A 68 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 1B 32 1E 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 29 84 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 4F [21:35:55]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 C2 00 00 00 69 04 9D 00 6F 04 04 00 C2 00 00 00 B1 04 04 00 56 45 1C 01 70 04 03 00 F0 BA B3 72 04 03 00 66 8A 68 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 1B 32 1E 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 29 84 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:35:56]wFMCommunicate OK [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 17 00 00 [21:35:56]Write to MH i2c: E2 08 00 A9 4B 80 17 00 00 00 00 00 00 74 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]OFD Sender: No OFD packet to send [21:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 FD 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 FD 00 A9 4B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [21:35:56]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:56]wFMCommunicate OK [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 17 00 00 [21:35:56]Write to MH i2c: E2 08 00 AA 4B 80 17 00 00 00 00 00 00 75 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 FD 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 FD 00 AA 4B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [21:35:56]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:35:57]wFMCommunicate OK [21:35:57]wFMCommunicate request_size=4 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 17 00 00 [21:35:57]Write to MH i2c: E2 08 00 AB 4B 80 17 00 00 00 00 00 00 76 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 FD 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 FD 00 AB 4B 00 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 90 00 E9 [21:35:57]RAPDU: 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 90 00 [21:35:57]wFMCommunicate OK [21:35:57]wFMCommunicate request_size=4 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 17 00 00 [21:35:57]Write to MH i2c: E2 08 00 AC 4B 80 17 00 00 00 00 00 00 77 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 CD 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 CD 00 AC 4B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [21:35:57]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:57]wFMCommunicate OK [21:35:57]SAM_PROTO_GetShiftData done [21:35:57]requested_item shift.sale.total_cash is exist - process it [21:35:57]requested_item shift.sale_refund.total is exist - process it [21:35:57]requested_item shift.sale_refund.total_cash is exist - process it [21:35:57]requested_item shift.buy.total is exist - process it [21:35:57]requested_item shift.buy.total_cash is exist - process it [21:35:57]produce_requested_data done [21:35:57]produce_requested_data return {"fm.sale.total":71336174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":186299.74,"shift.sale.total_cash":117788.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} [21:35:57]process_action_free get_value [21:35:57]json_value_free [21:35:57]json_value_free done [21:35:57]process_json_proto returns [21:35:57]Send response to host [21:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71336174.68,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":186299.74,"shift.sale.total_cash":117788.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}}} [21:35:57]free response buf [21:35:57]execute_script done [21:35:57]execute_script returns [21:35:57]free content buf [21:35:57]Sock 8.Close socket [21:35:57]Sock 8.Thread stoped [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:11]accept exits with 9 [21:36:11]New connection [21:36:11]New thread 3066924388 created [21:36:11]Thread 3066781028 joined [21:36:11]Waiting for new connection... [21:36:11] Sock 9.Parse request [21:36:11]Sock 9.Check first char [21:36:11]Sock 9.First char is OK [21:36:11]request: POST /json_proto HTTP/1.0 [21:36:11]Method: POST [21:36:11]URL: /json_proto [21:36:11]Method is POST - this is cgi request [21:36:11]url: /json_proto [21:36:11]query_string will be loaded in cgi processing [21:36:11]execute_cgi json_proto POST (null) [21:36:11]execute_cgi path=json_proto method=POST [21:36:11]POST find Content-Length [21:36:11]Host: 172.17.39.131:8080 [21:36:11]Content-Length: 674 [21:36:11]Content-Type: application/json [21:36:11] [21:36:11]POST finish read [21:36:11]Found Content-Length = 674 [21:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [21:36:11]execute_script... [21:36: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)191181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [21:36:11]POST & json_proto [21:36:11]process_json_proto [21:36:11]json parsed OK: [21:36:11]protocol is kg_v1.0 [21:36:11]action value=close_receipt [21:36:11]process_action close_receipt [21:36:11]cmd_close_receipt [21:36:11]MH_GetDate [21:36:11]Write to MH i2c: F0 00 00 AD 4B E7 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: F0 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: F0 09 00 [21:36:11]MH_I2C_Read... [21:36:11]Read from MH i2c: F0 09 00 AD 4B 00 D2 60 1D 67 86 57 24 65 0C [21:36:11]GetLastDocTimeStamp 1729978554 [21:36:11]current date 1729978578 [21:36:11]FM_GetShiftState [21:36:11]SAM_PROTO_GetShiftState [21:36:11]wFMCommunicate request_size=4 [21:36:11]MH_SAM_APDU [21:36:11]CAPDU: 80 13 01 00 [21:36:11]Write to MH i2c: E2 08 00 AE 4B 80 13 01 00 00 00 00 00 76 [21:36:11]Write i2c OK [21:36:11]MH_I2C_Read... [21:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:12]Read from MH i2c: E2 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 [21:36:12]MH_I2C_Read... [21:36:12]Read from MH i2c: E2 0E 00 AE 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 91 [21:36:12]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:36:12]wFMCommunicate OK [21:36:12]SAM_PROTO_GetShiftState done [21:36:12]FM_GetShiftState done [21:36:12]opened in 1729902166 [21:36:12]opened+sec_in_day 1729988566 [21:36:12]quantity*price = 50063 [21:36:12]sum+1 = 50064 [21:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 195 26.10.2024 21:36 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75203 ФПД: 123273856288699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213618&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75203&fm=123273856288699&tin=02508201610067®Number=0000000000091691&sum=50000 [21:36:13]StoreToDocumentArchive [21:36:13]shift 512 fd 75203 [21:36:13]save to /storage/0512/doc_00075203 [21:36:13]save last doc name /storage/0512/doc_00075203 to /storage/kkm_last_doc_name [21:36:13]save OK [21:36:13]Clear old archive folders... [21:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:36:13]tlvbuf is 009AE680 [21:36:13]SAM_PROTO_ClearQueue [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 09 00 00 [21:36:13]Write to MH i2c: E2 08 00 BB 4B 80 09 00 00 00 00 00 00 78 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 BB 4B 00 90 00 7A [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_ClearQueue done [21:36:13]KKMCreateOFDPacket [21:36:13]OFDProtocolAddRootSTLVToBuf [21:36:13]FM_MakeSignedData [21:36:13]FM_MakeSignedData [21:36:13]SAM_PROTO_SignData [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 01 02 [21:36:13]Write to MH i2c: E2 08 00 BC 4B 80 0D 01 02 00 00 00 00 80 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 BC 4B 00 90 00 7B [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=255 [21:36:13]MH_SAM_APDU [21:36: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 34 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 C3 00 00 00 F4 03 04 00 D2 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 25 01 00 35 04 06 00 70 1D EE 6A [21:36:13]Write to MH i2c: E2 02 01 BD 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 C3 00 00 00 F4 03 04 00 D2 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 25 01 00 35 04 06 00 70 1D EE 6A 00 00 DB [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 BD 4B 00 90 00 7C [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=7 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 02 02 02 07 BB [21:36:13]Write to MH i2c: E2 0A 00 BE 4B 80 0D 02 02 02 00 07 BB 00 00 49 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 03 00 BE 4B 00 90 00 7D [21:36:13]RAPDU: 90 00 [21:36:13]wFMCommunicate OK [21:36:13]wFMCommunicate request_size=4 [21:36:13]MH_SAM_APDU [21:36:13]CAPDU: 80 0D 03 02 [21:36:13]Write to MH i2c: E2 08 00 BF 4B 80 0D 03 02 00 00 00 00 85 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:13]Read from MH i2c: E2 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: E2 0B 00 BF 4B 00 AA DB 60 8D 08 52 08 FA 90 00 54 [21:36:13]RAPDU: AA DB 60 8D 08 52 08 FA 90 00 [21:36:13]wFMCommunicate OK [21:36:13]SAM_PROTO_SignData done [21:36:13]FM_MakeSignedData done [21:36:13]CreateOFDProtocolMessage [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 C0 4B 80 11 00 00 00 00 00 00 85 [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 C0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 DD [21:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:14]wFMCommunicate OK [21:36:14]CreateOFDProtocolMessage done [21:36:14]OFDSenderStorePacket 75203 [21:36:14]StoreOFDPacket docnum=75203 [21:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0E 7A 04 01 13 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 C3 00 00 00 F4 03 04 00 D2 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 25 01 00 35 04 06 00 70 1D EE 6A 07 BB AA DB 60 8D 08 52 08 FA [21:36:14]CheckFolder [21:36:14]dirname=/storage/ofd_packets [21:36:14]CheckFolder done [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00075203 [21:36:14]NVStorageSaveData ofd_packets/00075203 [21:36:14]File name is /storage/ofd_packets/00075203 [21:36:14]Write 298 bytes [21:36:14]NVStorageSaveData done [21:36:14]OFDSenderStorePacket done [21:36:14]KKMCreateOFDPacket done [21:36:14]NVStorageSaveData kkm_last_timestamp [21:36:14]File name is /storage/kkm_last_timestamp [21:36:14]Write 4 bytes [21:36:14]NVStorageSaveData done [21:36:14]ExternCall_PrintAddStr [21:36:14]wPrintStart [21:36:14]Write to MH i2c: 01 00 00 C1 4B 0C [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 C1 4B 00 00 00 00 00 FF 0F 21 [21:36:14]RasterBufferAndPrint [21:36:14]line Счет N : (1)191181 [21:36:14]line ИНН: 02508201610067 [21:36:14]line Контрольно-Кассовый Чек [21:36:14]line ПРОДАЖА [21:36:14]line ТРК (МРК, ГНК) : 41 [21:36:14]line Товар: 2710194210 [21:36:14]line ДТ-К-4 [21:36:14]line 6.570 * 76.20 [21:36:14]line = 500.63 [21:36:14]line НДС 12% НСП 1% [21:36:14]line > о реализуемом товаре [21:36:14]line ОКРУГЛЕНИЕ: -0.63 [21:36:14]line ИТОГО: 500.00 [21:36:14]line Внесено: 500.00 [21:36:14]line СДАЧА: 0.00 [21:36:14]line НСП 1% : 4.43 [21:36:14]line НДС 12% : 53.16 [21:36:14]line Наличными: 500.00 [21:36:14]line Безнал.: 0.00 [21:36:14]line Место: АЗС № 142 "Партнер Нефть" [21:36:14]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:36:14]line СНО: Общий режим [21:36:14]line Чек 195 26.10.2024 21:36 [21:36:14]line Смена: 512 ФФД: 1.0 [21:36:14]line ЗНМ: 0300000089 [21:36:14]line РНМ: 0000000000091691 [21:36:14]line Версия ККМ: 001 [21:36:14]line ФМ: 0000000000871795 [21:36:14]line ФД: 75203 [21:36:14]line ФПД: 123273856288699 [21:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213618&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75203&fm=123273856288699&tin=02508201610067®Number=0000000000091691&sum=50000 [21:36:14]written 0, free lines is 4095 [21:36:14]OFD Sender: Processing packet 75203 [packets to send 13, broken 12] [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00075203 [21:36:14]OFD Sender: To server: pG, [21:36:14]CommunicateWithHost lk.salyk.kg:30040 [21:36:14]ConnectInit lk.salyk.kg [21:36:14]Connected sock=10 [21:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 0E 7A 04 01 13 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 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 C3 00 00 00 F4 03 04 00 D2 60 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 25 01 00 35 04 06 00 70 1D EE 6A 07 BB AA DB 60 8D 08 52 08 FA [21:36:14]Write to MH i2c: 01 00 00 EC 4B 37 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 EC 4B 00 00 00 00 00 B0 0C FA [21:36:14]RasterBufferAndPrint [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]line [21:36:14]written 0, free lines is 3279 [21:36:14]MH_Cut [21:36:14]Write to MH i2c: D1 01 00 F3 4B 01 10 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: D1 01 00 F3 4B 00 0F [21:36:14]Write to MH i2c: 01 00 00 F4 4B 3F [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7D E4 47 00 24 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C3 25 01 00 F4 03 04 00 4E 08 1D 67 B6 04 01 00 00 50 ED 83 50 0E 88 DE 97 [21:36:14]CommunicateWithHost err = 0 [21:36:14]CheckOFDResponse [21:36:14]1017 (14) - 77093643461234 [21:36:14]1041 (16) - 0000000000871795 [21:36:14]1040 (4) - 75203 [21:36:14]1012 (4) - 26.10.2024 15:18 [21:36:14]1206 (1) - 0 [21:36:14]OFD Sender: Remove packet 75203 [21:36:14]ProducePacketName [21:36:14]name=ofd_packets/00075203 [21:36:14]NVStorageDeleteData [21:36:15]OFD Sender: No OFD packet to send [21:36:15]*** Cut start [21:36:15]*** Partial cut [21:36:15]*** CUTSNS_PIN = 1 [21:36:15]*** CUTSNS_PIN = 0 [21:36:15]*** Brake cut motor [21:36:16]Read from MH i2c: 01 [21:36:16]MH_I2C_Read... [21:36:16]*** Stop cut motor [21:36:16]*** Cut end [21:36:16]Read from MH i2c: 01 07 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: 01 07 00 F4 4B 00 00 00 00 00 FF 0F 54 [21:36:16]process_action close_receipt done [21:36:16]requested_data is exist [21:36:16]produce_requested_data [21:36:16]requested_item fm.sn is exist - process it [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 11 00 00 [21:36:16]Write to MH i2c: E2 08 00 F5 4B 80 11 00 00 00 00 00 00 BA [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 F5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 12 [21:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:36:16]wFMCommunicate OK [21:36:16]requested_item fd.num is exist - process it [21:36:16]SAM_PROTO_GetFieldsCounters [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 00 00 [21:36:16]Write to MH i2c: E2 08 00 F6 4B 80 13 00 00 00 00 00 00 BD [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 F6 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C3 25 01 00 0E 04 04 00 00 02 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 18 [21:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C3 25 01 00 0E 04 04 00 00 02 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 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetFieldsCounters done [21:36:16]requested_item shift.num is exist - process it [21:36:16]requested_item shift.opened is exist - process it [21:36:16]req_shift_opened [21:36:16]FM_GetShiftState [21:36:16]SAM_PROTO_GetShiftState [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 01 00 [21:36:16]Write to MH i2c: E2 08 00 F7 4B 80 13 01 00 00 00 00 00 BF [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 F7 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DA [21:36:16]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetShiftState done [21:36:16]FM_GetShiftState done [21:36:16]req_shift_opened done [21:36:16]requested_item shift.open_date is exist - process it [21:36:16]req_shift_open_date [21:36:16]req_shift_open_date done [21:36:16]produce_requested_data done [21:36:16]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75203,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:36:16]process_action_free close_receipt [21:36:16]json_value_free [21:36:16]json_value_free done [21:36:16]process_json_proto returns [21:36:16]Send response to host [21:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75203,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:36:16]free response buf [21:36:16]execute_script done [21:36:16]execute_script returns [21:36:16]free content buf [21:36:16]Sock 9.Close socket [21:36:16]Sock 9.Thread stoped [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:40:57]accept exits with 8 [21:40:57]New connection [21:40:57]New thread 3066781028 created [21:40:57]Thread 3066924388 joined [21:40:57]Waiting for new connection... [21:40:57] Sock 8.Parse request [21:40:57]Sock 8.Check first char [21:40:57]Sock 8.First char is OK [21:40:57]request: POST /json_proto HTTP/1.0 [21:40:57]Method: POST [21:40:57]URL: /json_proto [21:40:57]Method is POST - this is cgi request [21:40:57]url: /json_proto [21:40:57]query_string will be loaded in cgi processing [21:40:57]execute_cgi json_proto POST (null) [21:40:57]execute_cgi path=json_proto method=POST [21:40:57]POST find Content-Length [21:40:57]Host: 172.17.39.131:8080 [21:40:57]Content-Length: 677 [21:40:57]Content-Type: application/json [21:40:57] [21:40:57]POST finish read [21:40:57]Found Content-Length = 677 [21:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:40:57]execute_script... [21:40: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)191182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:40:57]POST & json_proto [21:40:57]process_json_proto [21:40:57]json parsed OK: [21:40:57]protocol is kg_v1.0 [21:40:57]action value=close_receipt [21:40:57]process_action close_receipt [21:40:57]cmd_close_receipt [21:40:57]MH_GetDate [21:40:57]Write to MH i2c: F0 00 00 F8 4B 32 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: F0 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: F0 09 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: F0 09 00 F8 4B 00 EF 61 1D 67 86 57 24 65 75 [21:40:57]GetLastDocTimeStamp 1729978578 [21:40:57]current date 1729978863 [21:40:57]FM_GetShiftState [21:40:57]SAM_PROTO_GetShiftState [21:40:57]wFMCommunicate request_size=4 [21:40:57]MH_SAM_APDU [21:40:57]CAPDU: 80 13 01 00 [21:40:57]Write to MH i2c: E2 08 00 F9 4B 80 13 01 00 00 00 00 00 C1 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:57]Read from MH i2c: E2 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 0E 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 0E 00 F9 4B 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 DC [21:40:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:40:57]wFMCommunicate OK [21:40:57]SAM_PROTO_GetShiftState done [21:40:57]FM_GetShiftState done [21:40:57]opened in 1729902166 [21:40:57]opened+sec_in_day 1729988566 [21:40:57]quantity*price = 60009 [21:40:57]sum+1 = 60010 [21:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 196 26.10.2024 21:41 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75204 ФПД: 191181599751421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214103&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75204&fm=191181599751421&tin=02508201610067®Number=0000000000091691&sum=60000 [21:40:58]StoreToDocumentArchive [21:40:58]shift 512 fd 75204 [21:40:58]save to /storage/0512/doc_00075204 [21:40:58]save last doc name /storage/0512/doc_00075204 to /storage/kkm_last_doc_name [21:40:58]save OK [21:40:58]Clear old archive folders... [21:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:58]tlvbuf is 008F2AD0 [21:40:58]SAM_PROTO_ClearQueue [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 09 00 00 [21:40:58]Write to MH i2c: E2 08 00 06 4C 80 09 00 00 00 00 00 00 C4 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 06 4C 00 90 00 C6 [21:40:58]RAPDU: 90 00 [21:40:58]wFMCommunicate OK [21:40:58]SAM_PROTO_ClearQueue done [21:40:58]KKMCreateOFDPacket [21:40:58]OFDProtocolAddRootSTLVToBuf [21:40:58]FM_MakeSignedData [21:40:58]FM_MakeSignedData [21:40:58]SAM_PROTO_SignData [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 0D 01 02 [21:40:58]Write to MH i2c: E2 08 00 07 4C 80 0D 01 02 00 00 00 00 CC [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 07 4C 00 90 00 C7 [21:40:58]RAPDU: 90 00 [21:40:58]wFMCommunicate OK [21:40:58]wFMCommunicate request_size=255 [21:40:58]MH_SAM_APDU [21:40: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 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 C4 00 00 00 F4 03 04 00 EF 61 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 25 01 00 35 04 06 00 AD [21:40:58]Write to MH i2c: E2 02 01 08 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 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 C4 00 00 00 F4 03 04 00 EF 61 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 25 01 00 35 04 06 00 AD 00 00 6F [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 08 4C 00 90 00 C8 [21:40:58]RAPDU: 90 00 [21:40:58]wFMCommunicate OK [21:40:58]wFMCommunicate request_size=10 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 0D 02 02 05 E0 EF 57 3C FD [21:40:58]Write to MH i2c: E2 0D 00 09 4C 80 0D 02 02 05 00 E0 EF 57 3C FD 00 00 38 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 03 00 09 4C 00 90 00 C9 [21:40:58]RAPDU: 90 00 [21:40:58]wFMCommunicate OK [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 0D 03 02 [21:40:58]Write to MH i2c: E2 08 00 0A 4C 80 0D 03 02 00 00 00 00 D1 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 0B 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 0B 00 0A 4C 00 3A E3 59 7E D2 F8 B4 56 90 00 9A [21:40:58]RAPDU: 3A E3 59 7E D2 F8 B4 56 90 00 [21:40:58]wFMCommunicate OK [21:40:58]SAM_PROTO_SignData done [21:40:58]FM_MakeSignedData done [21:40:58]CreateOFDProtocolMessage [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 11 00 00 [21:40:58]Write to MH i2c: E2 08 00 0B 4C 80 11 00 00 00 00 00 00 D1 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 0B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 29 [21:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:40:58]wFMCommunicate OK [21:40:58]CreateOFDProtocolMessage done [21:40:58]OFDSenderStorePacket 75204 [21:40:58]StoreOFDPacket docnum=75204 [21:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EC C4 07 01 0D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 EF 61 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 25 01 00 35 04 06 00 AD E0 EF 57 3C FD 3A E3 59 7E D2 F8 B4 56 [21:40:58]CheckFolder [21:40:58]dirname=/storage/ofd_packets [21:40:58]CheckFolder done [21:40:58]ProducePacketName [21:40:58]name=ofd_packets/00075204 [21:40:58]NVStorageSaveData ofd_packets/00075204 [21:40:58]File name is /storage/ofd_packets/00075204 [21:40:58]Write 301 bytes [21:40:58]NVStorageSaveData done [21:40:58]OFDSenderStorePacket done [21:40:58]KKMCreateOFDPacket done [21:40:58]NVStorageSaveData kkm_last_timestamp [21:40:58]File name is /storage/kkm_last_timestamp [21:40:58]Write 4 bytes [21:40:58]NVStorageSaveData done [21:40:58]ExternCall_PrintAddStr [21:40:58]wPrintStart [21:40:58]Write to MH i2c: 01 00 00 0C 4C 58 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: 01 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: 01 07 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: 01 07 00 0C 4C 00 00 00 00 00 FF 0F 6D [21:40:58]RasterBufferAndPrint [21:40:58]line Счет N : (1)191182 [21:40:58]line ИНН: 02508201610067 [21:40:58]line Контрольно-Кассовый Чек [21:40:58]line ПРОДАЖА [21:40:58]line ТРК (МРК, ГНК) : 21 [21:40:58]line Товар: 2710124130 [21:40:58]line Аи-92-К-5 [21:40:58]line 8.970 * 66.90 [21:40:58]line = 600.09 [21:40:58]line НДС 12% НСП 1% [21:40:58]line > о реализуемом товаре [21:40:58]line ОКРУГЛЕНИЕ: -0.09 [21:40:58]line ИТОГО: 600.00 [21:40:58]line Внесено: 600.00 [21:40:58]line СДАЧА: 0.00 [21:40:58]line НСП 1% : 5.31 [21:40:58]line НДС 12% : 63.73 [21:40:58]line Наличными: 600.00 [21:40:58]line Безнал.: 0.00 [21:40:58]line Место: АЗС № 142 "Партнер Нефть" [21:40:58]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [21:40:58]line СНО: Общий режим [21:40:58]line Чек 196 26.10.2024 21:41 [21:40:58]line Смена: 512 ФФД: 1.0 [21:40:58]line ЗНМ: 0300000089 [21:40:58]line РНМ: 0000000000091691 [21:40:58]line Версия ККМ: 001 [21:40:58]line ФМ: 0000000000871795 [21:40:58]line ФД: 75204 [21:40:58]line ФПД: 191181599751421 [21:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214103&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75204&fm=191181599751421&tin=02508201610067®Number=0000000000091691&sum=60000 [21:40:58]written 0, free lines is 4095 [21:40:58]OFD Sender: Processing packet 75204 [packets to send 13, broken 12] [21:40:58]ProducePacketName [21:40:58]name=ofd_packets/00075204 [21:40:58]OFD Sender: To server: pG, [21:40:58]CommunicateWithHost lk.salyk.kg:30040 [21:40:58]ConnectInit lk.salyk.kg [21:40:59]Connected sock=10 [21:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 EC C4 07 01 0D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 00 00 00 F4 03 04 00 EF 61 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 25 01 00 35 04 06 00 AD E0 EF 57 3C FD 3A E3 59 7E D2 F8 B4 56 [21:40:59]Write to MH i2c: 01 00 00 37 4C 83 [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: 01 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: 01 07 00 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: 01 07 00 37 4C 00 00 00 00 00 AB 0C 41 [21:40:59]RasterBufferAndPrint [21:40:59]line [21:40:59]line [21:40:59]line [21:40:59]line [21:40:59]line [21:40:59]written 0, free lines is 3251 [21:40:59]MH_Cut [21:40:59]Write to MH i2c: D1 01 00 3E 4C 01 5C [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: D1 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: D1 01 00 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: D1 01 00 3E 4C 00 5B [21:40:59]Write to MH i2c: 01 00 00 3F 4C 8B [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CC 18 47 00 D4 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C4 25 01 00 F4 03 04 00 6A 09 1D 67 B6 04 01 00 00 BF AC B3 D1 E6 8A 59 11 [21:40:59]CommunicateWithHost err = 0 [21:40:59]CheckOFDResponse [21:40:59]1017 (14) - 77093643461234 [21:40:59]1041 (16) - 0000000000871795 [21:40:59]1040 (4) - 75204 [21:40:59]1012 (4) - 26.10.2024 15:23 [21:40:59]1206 (1) - 0 [21:40:59]OFD Sender: Remove packet 75204 [21:40:59]ProducePacketName [21:40:59]name=ofd_packets/00075204 [21:40:59]NVStorageDeleteData [21:40:59]OFD Sender: No OFD packet to send [21:41:00]*** Cut start [21:41:00]*** Partial cut [21:41:00]*** CUTSNS_PIN = 1 [21:41:00]*** CUTSNS_PIN = 0 [21:41:00]*** Brake cut motor [21:41:00]Read from MH i2c: 01 [21:41:00]MH_I2C_Read... [21:41:00]*** Stop cut motor [21:41:00]*** Cut end [21:41:00]Read from MH i2c: 01 07 00 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: 01 07 00 3F 4C 00 00 00 00 00 FF 0F A0 [21:41:00]process_action close_receipt done [21:41:00]requested_data is exist [21:41:00]produce_requested_data [21:41:00]requested_item fm.sn is exist - process it [21:41:00]wFMCommunicate request_size=4 [21:41:00]MH_SAM_APDU [21:41:00]CAPDU: 80 11 00 00 [21:41:00]Write to MH i2c: E2 08 00 40 4C 80 11 00 00 00 00 00 00 06 [21:41:00]Write i2c OK [21:41:00]MH_I2C_Read... [21:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:00]Read from MH i2c: E2 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 17 00 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 17 00 40 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 5E [21:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [21:41:00]wFMCommunicate OK [21:41:00]requested_item fd.num is exist - process it [21:41:00]SAM_PROTO_GetFieldsCounters [21:41:00]wFMCommunicate request_size=4 [21:41:00]MH_SAM_APDU [21:41:00]CAPDU: 80 13 00 00 [21:41:00]Write to MH i2c: E2 08 00 41 4C 80 13 00 00 00 00 00 00 09 [21:41:00]Write i2c OK [21:41:00]MH_I2C_Read... [21:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:00]Read from MH i2c: E2 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 62 00 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 62 00 41 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C4 25 01 00 0E 04 04 00 00 02 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 68 [21:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C4 25 01 00 0E 04 04 00 00 02 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 [21:41:01]wFMCommunicate OK [21:41:01]SAM_PROTO_GetFieldsCounters done [21:41:01]requested_item shift.num is exist - process it [21:41:01]requested_item shift.opened is exist - process it [21:41:01]req_shift_opened [21:41:01]FM_GetShiftState [21:41:01]SAM_PROTO_GetShiftState [21:41:01]wFMCommunicate request_size=4 [21:41:01]MH_SAM_APDU [21:41:01]CAPDU: 80 13 01 00 [21:41:01]Write to MH i2c: E2 08 00 42 4C 80 13 01 00 00 00 00 00 0B [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:01]Read from MH i2c: E2 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 0E 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 0E 00 42 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 26 [21:41:01]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [21:41:01]wFMCommunicate OK [21:41:01]SAM_PROTO_GetShiftState done [21:41:01]FM_GetShiftState done [21:41:01]req_shift_opened done [21:41:01]requested_item shift.open_date is exist - process it [21:41:01]req_shift_open_date [21:41:01]req_shift_open_date done [21:41:01]produce_requested_data done [21:41:01]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75204,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [21:41:01]process_action_free close_receipt [21:41:01]json_value_free [21:41:01]json_value_free done [21:41:01]process_json_proto returns [21:41:01]Send response to host [21:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75204,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [21:41:01]free response buf [21:41:01]execute_script done [21:41:01]execute_script returns [21:41:01]free content buf [21:41:01]Sock 8.Close socket [21:41:01]Sock 8.Thread stoped [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:25]accept exits with 9 [22:05:25]New connection [22:05:25]New thread 3066924388 created [22:05:25]Thread 3066781028 joined [22:05:25]Waiting for new connection... [22:05:25] Sock 9.Parse request [22:05:25]Sock 9.Check first char [22:05:25]Sock 9.First char is OK [22:05:25]request: POST /json_proto HTTP/1.0 [22:05:25]Method: POST [22:05:25]URL: /json_proto [22:05:25]Method is POST - this is cgi request [22:05:25]url: /json_proto [22:05:25]query_string will be loaded in cgi processing [22:05:25]execute_cgi json_proto POST (null) [22:05:25]execute_cgi path=json_proto method=POST [22:05:25]POST find Content-Length [22:05:25]Host: 172.17.39.131:8080 [22:05:25]Content-Length: 677 [22:05:25]Content-Type: application/json [22:05:25] [22:05:25]POST finish read [22:05:25]Found Content-Length = 677 [22:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:25]execute_script... [22:05: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)191183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:05:25]POST & json_proto [22:05:25]process_json_proto [22:05:25]json parsed OK: [22:05:25]protocol is kg_v1.0 [22:05:25]action value=close_receipt [22:05:25]process_action close_receipt [22:05:25]cmd_close_receipt [22:05:25]MH_GetDate [22:05:25]Write to MH i2c: F0 00 00 43 4C 7E [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: F0 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: F0 09 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: F0 09 00 43 4C 00 AC 67 1D 67 86 57 24 65 84 [22:05:25]GetLastDocTimeStamp 1729978863 [22:05:25]current date 1729980332 [22:05:25]FM_GetShiftState [22:05:25]SAM_PROTO_GetShiftState [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 13 01 00 [22:05:25]Write to MH i2c: E2 08 00 44 4C 80 13 01 00 00 00 00 00 0D [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 44 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 28 [22:05:25]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:05:25]wFMCommunicate OK [22:05:25]SAM_PROTO_GetShiftState done [22:05:25]FM_GetShiftState done [22:05:25]opened in 1729902166 [22:05:25]opened+sec_in_day 1729988566 [22:05:25]quantity*price = 50041 [22:05:25]sum+1 = 50042 [22:05: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 197 26.10.2024 22:05 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75205 ФПД: 59871337339005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220532&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75205&fm=59871337339005&tin=02508201610067®Number=0000000000091691&sum=50000 [22:05:27]StoreToDocumentArchive [22:05:27]shift 512 fd 75205 [22:05:27]save to /storage/0512/doc_00075205 [22:05:27]save last doc name /storage/0512/doc_00075205 to /storage/kkm_last_doc_name [22:05:27]save OK [22:05:27]Clear old archive folders... [22:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:27]tlvbuf is 007FB4E0 [22:05:27]SAM_PROTO_ClearQueue [22:05:27]wFMCommunicate request_size=4 [22:05:27]MH_SAM_APDU [22:05:27]CAPDU: 80 09 00 00 [22:05:27]Write to MH i2c: E2 08 00 51 4C 80 09 00 00 00 00 00 00 0F [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 51 4C 00 90 00 11 [22:05:27]RAPDU: 90 00 [22:05:27]wFMCommunicate OK [22:05:27]SAM_PROTO_ClearQueue done [22:05:27]KKMCreateOFDPacket [22:05:27]OFDProtocolAddRootSTLVToBuf [22:05:27]FM_MakeSignedData [22:05:27]FM_MakeSignedData [22:05:27]SAM_PROTO_SignData [22:05:27]wFMCommunicate request_size=4 [22:05:27]MH_SAM_APDU [22:05:27]CAPDU: 80 0D 01 02 [22:05:27]Write to MH i2c: E2 08 00 52 4C 80 0D 01 02 00 00 00 00 17 [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 52 4C 00 90 00 12 [22:05:27]RAPDU: 90 00 [22:05:27]wFMCommunicate OK [22:05:27]wFMCommunicate request_size=255 [22:05:27]MH_SAM_APDU [22:05: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 C5 00 00 00 F4 03 04 00 AC 67 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 25 01 00 35 04 06 00 36 [22:05:27]Write to MH i2c: E2 02 01 53 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 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 C5 00 00 00 F4 03 04 00 AC 67 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 25 01 00 35 04 06 00 36 00 00 2B [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 53 4C 00 90 00 13 [22:05:27]RAPDU: 90 00 [22:05:27]wFMCommunicate OK [22:05:27]wFMCommunicate request_size=10 [22:05:27]MH_SAM_APDU [22:05:27]CAPDU: 80 0D 02 02 05 73 E1 CB 58 7D [22:05:27]Write to MH i2c: E2 0D 00 54 4C 80 0D 02 02 05 00 73 E1 CB 58 7D 00 00 18 [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 03 00 54 4C 00 90 00 14 [22:05:27]RAPDU: 90 00 [22:05:27]wFMCommunicate OK [22:05:27]wFMCommunicate request_size=4 [22:05:27]MH_SAM_APDU [22:05:27]CAPDU: 80 0D 03 02 [22:05:27]Write to MH i2c: E2 08 00 55 4C 80 0D 03 02 00 00 00 00 1C [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 0B 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 0B 00 55 4C 00 3E 57 2B 88 D3 98 45 ED 90 00 02 [22:05:27]RAPDU: 3E 57 2B 88 D3 98 45 ED 90 00 [22:05:27]wFMCommunicate OK [22:05:27]SAM_PROTO_SignData done [22:05:27]FM_MakeSignedData done [22:05:27]CreateOFDProtocolMessage [22:05:27]wFMCommunicate request_size=4 [22:05:27]MH_SAM_APDU [22:05:27]CAPDU: 80 11 00 00 [22:05:27]Write to MH i2c: E2 08 00 56 4C 80 11 00 00 00 00 00 00 1C [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:27]Read from MH i2c: E2 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 17 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: E2 17 00 56 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 74 [22:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:05:27]wFMCommunicate OK [22:05:27]CreateOFDProtocolMessage done [22:05:27]OFDSenderStorePacket 75205 [22:05:27]StoreOFDPacket docnum=75205 [22:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 77 CA 07 01 C6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 AC 67 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 25 01 00 35 04 06 00 36 73 E1 CB 58 7D 3E 57 2B 88 D3 98 45 ED [22:05:27]CheckFolder [22:05:27]dirname=/storage/ofd_packets [22:05:27]CheckFolder done [22:05:27]ProducePacketName [22:05:27]name=ofd_packets/00075205 [22:05:27]NVStorageSaveData ofd_packets/00075205 [22:05:27]File name is /storage/ofd_packets/00075205 [22:05:27]Write 301 bytes [22:05:27]NVStorageSaveData done [22:05:27]OFDSenderStorePacket done [22:05:27]KKMCreateOFDPacket done [22:05:27]NVStorageSaveData kkm_last_timestamp [22:05:27]File name is /storage/kkm_last_timestamp [22:05:27]Write 4 bytes [22:05:27]NVStorageSaveData done [22:05:27]ExternCall_PrintAddStr [22:05:27]wPrintStart [22:05:27]Write to MH i2c: 01 00 00 57 4C A3 [22:05:27]Write i2c OK [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: 01 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: 01 07 00 [22:05:27]MH_I2C_Read... [22:05:27]Read from MH i2c: 01 07 00 57 4C 00 00 00 00 00 FF 0F B8 [22:05:27]RasterBufferAndPrint [22:05:27]line Счет N : (1)191183 [22:05:27]line ИНН: 02508201610067 [22:05:27]line Контрольно-Кассовый Чек [22:05:27]line ПРОДАЖА [22:05:27]line ТРК (МРК, ГНК) : 21 [22:05:27]line Товар: 2710124130 [22:05:27]line Аи-92-К-5 [22:05:27]line 7.480 * 66.90 [22:05:27]line = 500.41 [22:05:27]line НДС 12% НСП 1% [22:05:27]line > о реализуемом товаре [22:05:27]line ОКРУГЛЕНИЕ: -0.41 [22:05:27]line ИТОГО: 500.00 [22:05:27]line Внесено: 500.00 [22:05:27]line СДАЧА: 0.00 [22:05:27]line НСП 1% : 4.43 [22:05:27]line НДС 12% : 53.14 [22:05:27]line Наличными: 500.00 [22:05:27]line Безнал.: 0.00 [22:05:27]line Место: АЗС № 142 "Партнер Нефть" [22:05:27]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:05:27]line СНО: Общий режим [22:05:27]line Чек 197 26.10.2024 22:05 [22:05:27]line Смена: 512 ФФД: 1.0 [22:05:27]line ЗНМ: 0300000089 [22:05:27]line РНМ: 0000000000091691 [22:05:27]line Версия ККМ: 001 [22:05:27]line ФМ: 0000000000871795 [22:05:27]line ФД: 75205 [22:05:27]line ФПД: 59871337339005 [22:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220532&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75205&fm=59871337339005&tin=02508201610067®Number=0000000000091691&sum=50000 [22:05:27]OFD Sender: Processing packet 75205 [packets to send 13, broken 12] [22:05:27]ProducePacketName [22:05:27]name=ofd_packets/00075205 [22:05:27]OFD Sender: To server: pG, [22:05:27]CommunicateWithHost lk.salyk.kg:30040 [22:05:27]ConnectInit lk.salyk.kg [22:05:27]written 0, free lines is 4095 [22:05:28]Connected sock=10 [22:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 77 CA 07 01 C6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 AC 67 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 25 01 00 35 04 06 00 36 73 E1 CB 58 7D 3E 57 2B 88 D3 98 45 ED [22:05:28]Write to MH i2c: 01 00 00 82 4C CE [22:05:28]Write i2c OK [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: 01 [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: 01 07 00 [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: 01 07 00 82 4C 00 00 00 00 00 99 0C 7A [22:05:28]RasterBufferAndPrint [22:05:28]line [22:05:28]line [22:05:28]line [22:05:28]line [22:05:28]line [22:05:28]written 0, free lines is 3229 [22:05:28]MH_Cut [22:05:28]Write to MH i2c: D1 01 00 89 4C 01 A7 [22:05:28]Write i2c OK [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: D1 [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: D1 01 00 [22:05:28]MH_I2C_Read... [22:05:28]Read from MH i2c: D1 01 00 89 4C 00 A6 [22:05:28]Write to MH i2c: 01 00 00 8A 4C D6 [22:05:28]Write i2c OK [22:05:28]MH_I2C_Read... [22:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 7F F2 47 00 4A F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C5 25 01 00 F4 03 04 00 27 0F 1D 67 B6 04 01 00 00 CF 6A C0 1A 2A 42 E9 9C [22:05:28]CommunicateWithHost err = 0 [22:05:28]CheckOFDResponse [22:05:28]1017 (14) - 77093643461234 [22:05:28]1041 (16) - 0000000000871795 [22:05:28]1040 (4) - 75205 [22:05:28]1012 (4) - 26.10.2024 15:47 [22:05:28]1206 (1) - 0 [22:05:28]OFD Sender: Remove packet 75205 [22:05:28]ProducePacketName [22:05:28]name=ofd_packets/00075205 [22:05:28]NVStorageDeleteData [22:05:28]OFD Sender: No OFD packet to send [22:05:29]*** Cut start [22:05:29]*** Partial cut [22:05:29]*** CUTSNS_PIN = 1 [22:05:29]*** CUTSNS_PIN = 0 [22:05:29]*** Brake cut motor [22:05:29]Read from MH i2c: 01 [22:05:29]MH_I2C_Read... [22:05:29]*** Stop cut motor [22:05:29]*** Cut end [22:05:29]Read from MH i2c: 01 07 00 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: 01 07 00 8A 4C 00 00 00 00 00 FF 0F EB [22:05:29]process_action close_receipt done [22:05:29]requested_data is exist [22:05:29]produce_requested_data [22:05:29]requested_item fm.sn is exist - process it [22:05:29]wFMCommunicate request_size=4 [22:05:29]MH_SAM_APDU [22:05:29]CAPDU: 80 11 00 00 [22:05:29]Write to MH i2c: E2 08 00 8B 4C 80 11 00 00 00 00 00 00 51 [22:05:29]Write i2c OK [22:05:29]MH_I2C_Read... [22:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:29]Read from MH i2c: E2 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: E2 17 00 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: E2 17 00 8B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A9 [22:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:05:29]wFMCommunicate OK [22:05:29]requested_item fd.num is exist - process it [22:05:29]SAM_PROTO_GetFieldsCounters [22:05:29]wFMCommunicate request_size=4 [22:05:29]MH_SAM_APDU [22:05:29]CAPDU: 80 13 00 00 [22:05:29]Write to MH i2c: E2 08 00 8C 4C 80 13 00 00 00 00 00 00 54 [22:05:29]Write i2c OK [22:05:29]MH_I2C_Read... [22:05:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:30]Read from MH i2c: E2 [22:05:30]MH_I2C_Read... [22:05:30]Read from MH i2c: E2 62 00 [22:05:30]MH_I2C_Read... [22:05:30]Read from MH i2c: E2 62 00 8C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C5 25 01 00 0E 04 04 00 00 02 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 B7 [22:05:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C5 25 01 00 0E 04 04 00 00 02 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 [22:05:30]wFMCommunicate OK [22:05:30]SAM_PROTO_GetFieldsCounters done [22:05:30]requested_item shift.num is exist - process it [22:05:30]requested_item shift.opened is exist - process it [22:05:30]req_shift_opened [22:05:30]FM_GetShiftState [22:05:30]SAM_PROTO_GetShiftState [22:05:30]wFMCommunicate request_size=4 [22:05:30]MH_SAM_APDU [22:05:30]CAPDU: 80 13 01 00 [22:05:30]Write to MH i2c: E2 08 00 8D 4C 80 13 01 00 00 00 00 00 56 [22:05:30]Write i2c OK [22:05:30]MH_I2C_Read... [22:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:30]Read from MH i2c: E2 [22:05:30]MH_I2C_Read... [22:05:30]Read from MH i2c: E2 0E 00 [22:05:30]MH_I2C_Read... [22:05:30]Read from MH i2c: E2 0E 00 8D 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 71 [22:05:30]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:05:30]wFMCommunicate OK [22:05:30]SAM_PROTO_GetShiftState done [22:05:30]FM_GetShiftState done [22:05:30]req_shift_opened done [22:05:30]requested_item shift.open_date is exist - process it [22:05:30]req_shift_open_date [22:05:30]req_shift_open_date done [22:05:30]produce_requested_data done [22:05:30]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75205,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:05:30]process_action_free close_receipt [22:05:30]json_value_free [22:05:30]json_value_free done [22:05:30]process_json_proto returns [22:05:30]Send response to host [22:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75205,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:05:30]free response buf [22:05:30]execute_script done [22:05:30]execute_script returns [22:05:30]free content buf [22:05:30]Sock 9.Close socket [22:05:30]Sock 9.Thread stoped [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]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:17]int [22:09:17]Write to MH i2c: 01 00 00 8E 4C DA [22:09:17]*** FLAG_PRN_KEY set [22:09:17]Write i2c OK [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 8E 4C 00 08 00 00 00 FF 0F F7 [22:09:17]state=0 [22:09:17]Key pressed [22:09:17]Feed [22:09:17]Write to MH i2c: D8 00 00 8F 4C B2 [22:09:17]Write i2c OK [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: D8 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: D8 01 00 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: D8 01 00 8F 4C 00 B3 [22:09:17]int [22:09:17]Write to MH i2c: 01 00 00 90 4C DC [22:09:17]Write i2c OK [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 90 4C 00 48 00 00 00 3C 00 67 [22:09:17]state=2 [22:09:17]Key pressed [22:09:17]int [22:09:17]Write to MH i2c: 01 00 00 91 4C DD [22:09:17]*** FLAG_PRN_KEY reset [22:09:17]Write i2c OK [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 [22:09:17]MH_I2C_Read... [22:09:17]Read from MH i2c: 01 07 00 91 4C 00 00 00 00 00 F6 0F E9 [22:09:17]state=2 [22:09:17]Stop feed [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:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:10]ConnectInit Can't connect to host [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:19]accept exits with 8 [22:13:19]New connection [22:13:19]New thread 3066781028 created [22:13:19]Thread 3066924388 joined [22:13:19]Waiting for new connection... [22:13:19] Sock 8.Parse request [22:13:19]Sock 8.Check first char [22:13:19]Sock 8.First char is OK [22:13:19]request: POST /json_proto HTTP/1.0 [22:13:19]Method: POST [22:13:19]URL: /json_proto [22:13:19]Method is POST - this is cgi request [22:13:19]url: /json_proto [22:13:19]query_string will be loaded in cgi processing [22:13:19]execute_cgi json_proto POST (null) [22:13:19]execute_cgi path=json_proto method=POST [22:13:19]POST find Content-Length [22:13:19]Host: 172.17.39.131:8080 [22:13:19]Content-Length: 677 [22:13:19]Content-Type: application/json [22:13:19] [22:13:19]POST finish read [22:13:19]Found Content-Length = 677 [22:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:19]execute_script... [22:13: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)191186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:13:19]POST & json_proto [22:13:19]process_json_proto [22:13:19]json parsed OK: [22:13:19]protocol is kg_v1.0 [22:13:19]action value=close_receipt [22:13:19]process_action close_receipt [22:13:19]cmd_close_receipt [22:13:19]MH_GetDate [22:13:19]Write to MH i2c: F0 00 00 92 4C CD [22:13:19]Write i2c OK [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 09 00 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 09 00 92 4C 00 86 69 1D 67 86 57 24 65 AF [22:13:19]GetLastDocTimeStamp 1729980332 [22:13:19]current date 1729980806 [22:13:19]FM_GetShiftState [22:13:19]SAM_PROTO_GetShiftState [22:13:19]wFMCommunicate request_size=4 [22:13:19]MH_SAM_APDU [22:13:19]CAPDU: 80 13 01 00 [22:13:19]Write to MH i2c: E2 08 00 93 4C 80 13 01 00 00 00 00 00 5C [22:13:19]Write i2c OK [22:13:19]MH_I2C_Read... [22:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:19]Read from MH i2c: E2 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: E2 0E 00 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: E2 0E 00 93 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 77 [22:13:19]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:13:19]wFMCommunicate OK [22:13:19]SAM_PROTO_GetShiftState done [22:13:19]FM_GetShiftState done [22:13:19]opened in 1729902166 [22:13:19]opened+sec_in_day 1729988566 [22:13:19]quantity*price = 50041 [22:13:19]sum+1 = 50042 [22:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 198 26.10.2024 22:13 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75206 ФПД: 111797039141189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221326&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75206&fm=111797039141189&tin=02508201610067®Number=0000000000091691&sum=50000 [22:13:20]StoreToDocumentArchive [22:13:20]shift 512 fd 75206 [22:13:20]save to /storage/0512/doc_00075206 [22:13:20]save last doc name /storage/0512/doc_00075206 to /storage/kkm_last_doc_name [22:13:20]save OK [22:13:20]Clear old archive folders... [22:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:20]tlvbuf is B6DA11B0 [22:13:20]SAM_PROTO_ClearQueue [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 09 00 00 [22:13:20]Write to MH i2c: E2 08 00 A0 4C 80 09 00 00 00 00 00 00 5E [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 A0 4C 00 90 00 60 [22:13:20]RAPDU: 90 00 [22:13:20]wFMCommunicate OK [22:13:20]SAM_PROTO_ClearQueue done [22:13:20]KKMCreateOFDPacket [22:13:20]OFDProtocolAddRootSTLVToBuf [22:13:20]FM_MakeSignedData [22:13:20]FM_MakeSignedData [22:13:20]SAM_PROTO_SignData [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 0D 01 02 [22:13:20]Write to MH i2c: E2 08 00 A1 4C 80 0D 01 02 00 00 00 00 66 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:21]Read from MH i2c: E2 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 A1 4C 00 90 00 61 [22:13:21]RAPDU: 90 00 [22:13:21]wFMCommunicate OK [22:13:21]wFMCommunicate request_size=255 [22:13:21]MH_SAM_APDU [22:13:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 86 69 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 25 01 00 35 04 06 00 65 [22:13:21]Write to MH i2c: E2 02 01 A2 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 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 86 69 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 25 01 00 35 04 06 00 65 00 00 87 [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:21]Read from MH i2c: E2 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 A2 4C 00 90 00 62 [22:13:21]RAPDU: 90 00 [22:13:21]wFMCommunicate OK [22:13:21]wFMCommunicate request_size=10 [22:13:21]MH_SAM_APDU [22:13:21]CAPDU: 80 0D 02 02 05 AD C6 CE 11 45 [22:13:21]Write to MH i2c: E2 0D 00 A3 4C 80 0D 02 02 05 00 AD C6 CE 11 45 00 00 0A [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:21]Read from MH i2c: E2 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 03 00 A3 4C 00 90 00 63 [22:13:21]RAPDU: 90 00 [22:13:21]wFMCommunicate OK [22:13:21]wFMCommunicate request_size=4 [22:13:21]MH_SAM_APDU [22:13:21]CAPDU: 80 0D 03 02 [22:13:21]Write to MH i2c: E2 08 00 A4 4C 80 0D 03 02 00 00 00 00 6B [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:21]Read from MH i2c: E2 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 0B 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 0B 00 A4 4C 00 2B C8 49 5B B6 C5 63 23 90 00 04 [22:13:21]RAPDU: 2B C8 49 5B B6 C5 63 23 90 00 [22:13:21]wFMCommunicate OK [22:13:21]SAM_PROTO_SignData done [22:13:21]FM_MakeSignedData done [22:13:21]CreateOFDProtocolMessage [22:13:21]wFMCommunicate request_size=4 [22:13:21]MH_SAM_APDU [22:13:21]CAPDU: 80 11 00 00 [22:13:21]Write to MH i2c: E2 08 00 A5 4C 80 11 00 00 00 00 00 00 6B [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:21]Read from MH i2c: E2 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 17 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: E2 17 00 A5 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C3 [22:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:13:21]wFMCommunicate OK [22:13:21]CreateOFDProtocolMessage done [22:13:21]OFDSenderStorePacket 75206 [22:13:21]StoreOFDPacket docnum=75206 [22:13:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A6 65 07 01 2C 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 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 86 69 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 25 01 00 35 04 06 00 65 AD C6 CE 11 45 2B C8 49 5B B6 C5 63 23 [22:13:21]CheckFolder [22:13:21]dirname=/storage/ofd_packets [22:13:21]CheckFolder done [22:13:21]ProducePacketName [22:13:21]name=ofd_packets/00075206 [22:13:21]NVStorageSaveData ofd_packets/00075206 [22:13:21]File name is /storage/ofd_packets/00075206 [22:13:21]Write 301 bytes [22:13:21]NVStorageSaveData done [22:13:21]OFDSenderStorePacket done [22:13:21]KKMCreateOFDPacket done [22:13:21]NVStorageSaveData kkm_last_timestamp [22:13:21]File name is /storage/kkm_last_timestamp [22:13:21]Write 4 bytes [22:13:21]NVStorageSaveData done [22:13:21]ExternCall_PrintAddStr [22:13:21]wPrintStart [22:13:21]Write to MH i2c: 01 00 00 A6 4C F2 [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 07 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 07 00 A6 4C 00 00 00 00 00 FF 0F 07 [22:13:21]RasterBufferAndPrint [22:13:21]line Счет N : (1)191186 [22:13:21]line ИНН: 02508201610067 [22:13:21]line Контрольно-Кассовый Чек [22:13:21]line ПРОДАЖА [22:13:21]line ТРК (МРК, ГНК) : 21 [22:13:21]line Товар: 2710124130 [22:13:21]line Аи-92-К-5 [22:13:21]line 7.480 * 66.90 [22:13:21]line = 500.41 [22:13:21]line НДС 12% НСП 1% [22:13:21]line > о реализуемом товаре [22:13:21]line ОКРУГЛЕНИЕ: -0.41 [22:13:21]line ИТОГО: 500.00 [22:13:21]line Внесено: 500.00 [22:13:21]line СДАЧА: 0.00 [22:13:21]line НСП 1% : 4.43 [22:13:21]line НДС 12% : 53.14 [22:13:21]line Наличными: 500.00 [22:13:21]line Безнал.: 0.00 [22:13:21]line Место: АЗС № 142 "Партнер Нефть" [22:13:21]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:13:21]line СНО: Общий режим [22:13:21]line Чек 198 26.10.2024 22:13 [22:13:21]line Смена: 512 ФФД: 1.0 [22:13:21]line ЗНМ: 0300000089 [22:13:21]line РНМ: 0000000000091691 [22:13:21]line Версия ККМ: 001 [22:13:21]line ФМ: 0000000000871795 [22:13:21]line ФД: 75206 [22:13:21]line ФПД: 111797039141189 [22:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221326&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75206&fm=111797039141189&tin=02508201610067®Number=0000000000091691&sum=50000 [22:13:21]written 0, free lines is 4095 [22:13:21]OFD Sender: Processing packet 75206 [packets to send 13, broken 12] [22:13:21]ProducePacketName [22:13:21]name=ofd_packets/00075206 [22:13:21]OFD Sender: To server: pG, [22:13:21]CommunicateWithHost lk.salyk.kg:30040 [22:13:21]ConnectInit lk.salyk.kg [22:13:21]Connected sock=11 [22:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 A6 65 07 01 2C 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 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 86 69 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 25 01 00 35 04 06 00 65 AD C6 CE 11 45 2B C8 49 5B B6 C5 63 23 [22:13:22]Write to MH i2c: 01 00 00 D1 4C 1D [22:13:22]Write i2c OK [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: 01 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: 01 07 00 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: 01 07 00 D1 4C 00 00 00 00 00 A7 0C D7 [22:13:22]RasterBufferAndPrint [22:13:22]line [22:13:22]line [22:13:22]line [22:13:22]line [22:13:22]line [22:13:22]written 0, free lines is 3243 [22:13:22]MH_Cut [22:13:22]Write to MH i2c: D1 01 00 D8 4C 01 F6 [22:13:22]Write i2c OK [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: D1 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: D1 01 00 [22:13:22]MH_I2C_Read... [22:13:22]Read from MH i2c: D1 01 00 D8 4C 00 F5 [22:13:22]Write to MH i2c: 01 00 00 D9 4C 25 [22:13:22]Write i2c OK [22:13:22]MH_I2C_Read... [22:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 99 66 47 00 B8 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C6 25 01 00 F4 03 04 00 01 11 1D 67 B6 04 01 00 00 8F 36 09 A4 51 5D 7F F3 [22:13:22]CommunicateWithHost err = 0 [22:13:22]CheckOFDResponse [22:13:22]1017 (14) - 77093643461234 [22:13:22]1041 (16) - 0000000000871795 [22:13:22]1040 (4) - 75206 [22:13:22]1012 (4) - 26.10.2024 15:55 [22:13:22]1206 (1) - 0 [22:13:22]OFD Sender: Remove packet 75206 [22:13:22]ProducePacketName [22:13:22]name=ofd_packets/00075206 [22:13:22]NVStorageDeleteData [22:13:22]OFD Sender: No OFD packet to send [22:13:23]*** Cut start [22:13:23]*** Partial cut [22:13:23]*** CUTSNS_PIN = 1 [22:13:23]*** CUTSNS_PIN = 0 [22:13:23]*** Brake cut motor [22:13:23]Read from MH i2c: 01 [22:13:23]MH_I2C_Read... [22:13:23]*** Stop cut motor [22:13:23]*** Cut end [22:13:23]Read from MH i2c: 01 07 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: 01 07 00 D9 4C 00 00 00 00 00 FF 0F 3A [22:13:23]process_action close_receipt done [22:13:23]requested_data is exist [22:13:23]produce_requested_data [22:13:23]requested_item fm.sn is exist - process it [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 11 00 00 [22:13:23]Write to MH i2c: E2 08 00 DA 4C 80 11 00 00 00 00 00 00 A0 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 DA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F8 [22:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:13:23]wFMCommunicate OK [22:13:23]requested_item fd.num is exist - process it [22:13:23]SAM_PROTO_GetFieldsCounters [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 13 00 00 [22:13:23]Write to MH i2c: E2 08 00 DB 4C 80 13 00 00 00 00 00 00 A3 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 62 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 62 00 DB 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C6 25 01 00 0E 04 04 00 00 02 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 0A [22:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C6 25 01 00 0E 04 04 00 00 02 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 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_GetFieldsCounters done [22:13:23]requested_item shift.num is exist - process it [22:13:23]requested_item shift.opened is exist - process it [22:13:23]req_shift_opened [22:13:23]FM_GetShiftState [22:13:23]SAM_PROTO_GetShiftState [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 13 01 00 [22:13:23]Write to MH i2c: E2 08 00 DC 4C 80 13 01 00 00 00 00 00 A5 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0E 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0E 00 DC 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 C0 [22:13:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_GetShiftState done [22:13:23]FM_GetShiftState done [22:13:23]req_shift_opened done [22:13:23]requested_item shift.open_date is exist - process it [22:13:23]req_shift_open_date [22:13:23]req_shift_open_date done [22:13:23]produce_requested_data done [22:13:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75206,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:13:23]process_action_free close_receipt [22:13:23]json_value_free [22:13:23]json_value_free done [22:13:23]process_json_proto returns [22:13:23]Send response to host [22:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75206,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:13:23]free response buf [22:13:23]execute_script done [22:13:23]execute_script returns [22:13:23]free content buf [22:13:23]Sock 8.Close socket [22:13:23]Sock 8.Thread stoped [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:15]int [22:19:15]Write to MH i2c: 01 00 00 DD 4C 29 [22:19:15]*** FLAG_PRN_KEY set [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: 01 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: 01 07 00 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: 01 07 00 DD 4C 00 08 00 00 00 FF 0F 46 [22:19:15]state=0 [22:19:15]Key pressed [22:19:15]Feed [22:19:15]Write to MH i2c: D8 00 00 DE 4C 01 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D8 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D8 01 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D8 01 00 DE 4C 00 02 [22:19:16]int [22:19:16]Write to MH i2c: 01 00 00 DF 4C 2B [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 DF 4C 00 48 00 00 00 3C 00 B6 [22:19:16]state=2 [22:19:16]Key pressed [22:19:16]int [22:19:16]Write to MH i2c: 01 00 00 E0 4C 2C [22:19:16]*** FLAG_PRN_KEY reset [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 E0 4C 00 00 00 00 00 F7 0F 39 [22:19:16]state=2 [22:19:16]Stop feed [22:19:18]OFD Sender: No OFD packet to send [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E1 4C 2D [22:19:18]*** FLAG_PRN_KEY set [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E1 4C 00 08 00 00 00 FF 0F 4A [22:19:18]state=0 [22:19:18]Key pressed [22:19:18]Feed [22:19:18]Write to MH i2c: D8 00 00 E2 4C 05 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 01 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 01 00 E2 4C 00 06 [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E3 4C 2F [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E3 4C 00 48 00 00 00 3C 00 BA [22:19:18]state=2 [22:19:18]Key pressed [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E4 4C 30 [22:19:18]*** FLAG_PRN_KEY reset [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E4 4C 00 00 00 00 00 F6 0F 3C [22:19:18]state=2 [22:19:18]Stop feed [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E5 4C 31 [22:19:18]*** FLAG_PRN_KEY set [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E5 4C 00 08 00 00 00 FF 0F 4E [22:19:18]state=0 [22:19:18]Key pressed [22:19:18]Feed [22:19:18]Write to MH i2c: D8 00 00 E6 4C 09 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 01 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: D8 01 00 E6 4C 00 0A [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E7 4C 33 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E7 4C 00 48 00 00 00 3C 00 BE [22:19:18]state=2 [22:19:18]Key pressed [22:19:18]int [22:19:18]Write to MH i2c: 01 00 00 E8 4C 34 [22:19:18]*** FLAG_PRN_KEY reset [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 E8 4C 00 00 00 00 00 F5 0F 3F [22:19:18]state=2 [22:19:18]Stop feed [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:22]accept exits with 9 [22:27:22]New connection [22:27:22]New thread 3066924388 created [22:27:22]Thread 3066781028 joined [22:27:22]Waiting for new connection... [22:27:22] Sock 9.Parse request [22:27:22]Sock 9.Check first char [22:27:22]Sock 9.First char is OK [22:27:22]request: POST /json_proto HTTP/1.0 [22:27:22]Method: POST [22:27:22]URL: /json_proto [22:27:22]Method is POST - this is cgi request [22:27:22]url: /json_proto [22:27:22]query_string will be loaded in cgi processing [22:27:22]execute_cgi json_proto POST (null) [22:27:22]execute_cgi path=json_proto method=POST [22:27:23]POST find Content-Length [22:27:23]Host: 172.17.39.131:8080 [22:27:23]Content-Length: 766 [22:27:23]Content-Type: application/json [22:27:23] [22:27:23]POST finish read [22:27:23]Found Content-Length = 766 [22:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.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" : 1700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:23]execute_script... [22:27:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.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" : 1700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:23]POST & json_proto [22:27:23]process_json_proto [22:27:23]json parsed OK: [22:27:23]protocol is kg_v1.0 [22:27:23]action value=close_receipt [22:27:23]process_action close_receipt [22:27:23]cmd_close_receipt [22:27:23]MH_GetDate [22:27:23]Write to MH i2c: F0 00 00 E9 4C 24 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: F0 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: F0 09 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: F0 09 00 E9 4C 00 D1 6C 1D 67 86 57 24 65 54 [22:27:23]GetLastDocTimeStamp 1729980806 [22:27:23]current date 1729981649 [22:27:23]FM_GetShiftState [22:27:23]SAM_PROTO_GetShiftState [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 13 01 00 [22:27:23]Write to MH i2c: E2 08 00 EA 4C 80 13 01 00 00 00 00 00 B3 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0E 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0E 00 EA 4C 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 CE [22:27:23]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_GetShiftState done [22:27:23]FM_GetShiftState done [22:27:23]opened in 1729902166 [22:27:23]opened+sec_in_day 1729988566 [22:27:23]quantity*price = 170002 [22:27:23]sum+1 = 170003 [22:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.02 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 0.00 Безнал.: 1700.02 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 199 26.10.2024 22:27 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75207 ФПД: 78826299043289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222729&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75207&fm=78826299043289&tin=02508201610067®Number=0000000000091691&sum=170002 [22:27:24]StoreToDocumentArchive [22:27:24]shift 512 fd 75207 [22:27:24]save to /storage/0512/doc_00075207 [22:27:24]save last doc name /storage/0512/doc_00075207 to /storage/kkm_last_doc_name [22:27:24]save OK [22:27:24]Clear old archive folders... [22:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:27:24]tlvbuf is 008AFA60 [22:27:24]SAM_PROTO_ClearQueue [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 09 00 00 [22:27:24]Write to MH i2c: E2 08 00 F7 4C 80 09 00 00 00 00 00 00 B5 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 F7 4C 00 90 00 B7 [22:27:24]RAPDU: 90 00 [22:27:24]wFMCommunicate OK [22:27:24]SAM_PROTO_ClearQueue done [22:27:24]KKMCreateOFDPacket [22:27:24]OFDProtocolAddRootSTLVToBuf [22:27:24]FM_MakeSignedData [22:27:24]FM_MakeSignedData [22:27:24]SAM_PROTO_SignData [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 0D 01 02 [22:27:24]Write to MH i2c: E2 08 00 F8 4C 80 0D 01 02 00 00 00 00 BD [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 F8 4C 00 90 00 B8 [22:27:24]RAPDU: 90 00 [22:27:24]wFMCommunicate OK [22:27:24]wFMCommunicate request_size=255 [22:27:24]MH_SAM_APDU [22:27:24]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 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D1 6C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 25 01 00 35 04 06 00 47 B1 2D 8D [22:27:24]Write to MH i2c: E2 02 01 F9 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 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D1 6C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 25 01 00 35 04 06 00 47 B1 2D 8D 00 00 5A [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 F9 4C 00 90 00 B9 [22:27:24]RAPDU: 90 00 [22:27:24]wFMCommunicate OK [22:27:24]wFMCommunicate request_size=7 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 0D 02 02 02 AD D9 [22:27:24]Write to MH i2c: E2 0A 00 FA 4C 80 0D 02 02 02 00 AD D9 00 00 4A [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 03 00 FA 4C 00 90 00 BA [22:27:24]RAPDU: 90 00 [22:27:24]wFMCommunicate OK [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 0D 03 02 [22:27:24]Write to MH i2c: E2 08 00 FB 4C 80 0D 03 02 00 00 00 00 C2 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 0B 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 0B 00 FB 4C 00 05 53 35 C4 B5 A8 50 44 90 00 05 [22:27:24]RAPDU: 05 53 35 C4 B5 A8 50 44 90 00 [22:27:24]wFMCommunicate OK [22:27:24]SAM_PROTO_SignData done [22:27:24]FM_MakeSignedData done [22:27:24]CreateOFDProtocolMessage [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 11 00 00 [22:27:24]Write to MH i2c: E2 08 00 FC 4C 80 11 00 00 00 00 00 00 C2 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 17 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 17 00 FC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 1A [22:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:27:24]wFMCommunicate OK [22:27:24]CreateOFDProtocolMessage done [22:27:24]OFDSenderStorePacket 75207 [22:27:24]StoreOFDPacket docnum=75207 [22:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 38 08 04 01 20 3E 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 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D1 6C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 25 01 00 35 04 06 00 47 B1 2D 8D AD D9 05 53 35 C4 B5 A8 50 44 [22:27:24]CheckFolder [22:27:24]dirname=/storage/ofd_packets [22:27:24]CheckFolder done [22:27:24]ProducePacketName [22:27:24]name=ofd_packets/00075207 [22:27:24]NVStorageSaveData ofd_packets/00075207 [22:27:24]File name is /storage/ofd_packets/00075207 [22:27:24]Write 298 bytes [22:27:24]NVStorageSaveData done [22:27:24]OFDSenderStorePacket done [22:27:24]KKMCreateOFDPacket done [22:27:24]NVStorageSaveData kkm_last_timestamp [22:27:24]File name is /storage/kkm_last_timestamp [22:27:24]Write 4 bytes [22:27:24]NVStorageSaveData done [22:27:24]ExternCall_PrintAddStr [22:27:24]wPrintStart [22:27:24]Write to MH i2c: 01 00 00 FD 4C 49 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 FD 4C 00 00 00 00 00 FF 0F 5E [22:27:24]RasterBufferAndPrint [22:27:24]line Счет N : (1)191187 [22:27:24]line ИНН: 02508201610067 [22:27:24]line Контрольно-Кассовый Чек [22:27:24]line ПРОДАЖА [22:27:24]line ТРК (МРК, ГНК) : 31 [22:27:24]line Товар: 2710194210 [22:27:24]line ДТ-К-4 [22:27:24]line 22.310 * 76.20 [22:27:24]line = 1700.02 [22:27:24]line НДС 12% НСП 1% [22:27:24]line > о реализуемом товаре [22:27:24]line ИТОГО: 1700.02 [22:27:24]line НСП 1% : 15.04 [22:27:24]line НДС 12% : 180.53 [22:27:24]line Наличными: 0.00 [22:27:24]line Безнал.: 1700.02 [22:27:24]line Место: АЗС № 142 "Партнер Нефть" [22:27:24]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:27:24]line СНО: Общий режим [22:27:24]line Чек 199 26.10.2024 22:27 [22:27:24]line Смена: 512 ФФД: 1.0 [22:27:24]line ЗНМ: 0300000089 [22:27:24]line РНМ: 0000000000091691 [22:27:24]line Версия ККМ: 001 [22:27:24]line Платежная система: Mbank [22:27:24]line ФМ: 0000000000871795 [22:27:24]line ФД: 75207 [22:27:24]line ФПД: 78826299043289 [22:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222729&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75207&fm=78826299043289&tin=02508201610067®Number=0000000000091691&sum=170002 [22:27:25]OFD Sender: Processing packet 75207 [packets to send 13, broken 12] [22:27:25]ProducePacketName [22:27:25]name=ofd_packets/00075207 [22:27:25]OFD Sender: To server: pG, [22:27:25]CommunicateWithHost lk.salyk.kg:30040 [22:27:25]ConnectInit lk.salyk.kg [22:27:25]written 0, free lines is 4095 [22:27:25]Connected sock=10 [22:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 38 08 04 01 20 3E 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 34 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D1 6C 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 25 01 00 35 04 06 00 47 B1 2D 8D AD D9 05 53 35 C4 B5 A8 50 44 [22:27:25]Write to MH i2c: 01 00 00 26 4D 73 [22:27:25]Write i2c OK [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: 01 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: 01 07 00 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: 01 07 00 26 4D 00 00 00 00 00 CB 0C 51 [22:27:25]RasterBufferAndPrint [22:27:25]line [22:27:25]line [22:27:25]line [22:27:25]line [22:27:25]line [22:27:25]written 0, free lines is 3280 [22:27:25]MH_Cut [22:27:25]Write to MH i2c: D1 01 00 2D 4D 01 4C [22:27:25]Write i2c OK [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: D1 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: D1 01 00 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: D1 01 00 2D 4D 00 4B [22:27:25]Write to MH i2c: 01 00 00 2E 4D 7B [22:27:25]Write i2c OK [22:27:25]MH_I2C_Read... [22:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 51 6B 47 00 95 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C7 25 01 00 F4 03 04 00 4C 14 1D 67 B6 04 01 00 00 79 E4 1B 09 BC 44 33 21 [22:27:25]CommunicateWithHost err = 0 [22:27:25]CheckOFDResponse [22:27:25]1017 (14) - 77093643461234 [22:27:25]1041 (16) - 0000000000871795 [22:27:25]1040 (4) - 75207 [22:27:25]1012 (4) - 26.10.2024 16:09 [22:27:25]1206 (1) - 0 [22:27:25]OFD Sender: Remove packet 75207 [22:27:25]ProducePacketName [22:27:25]name=ofd_packets/00075207 [22:27:25]NVStorageDeleteData [22:27:26]OFD Sender: No OFD packet to send [22:27:26]*** Cut start [22:27:26]*** Partial cut [22:27:26]*** CUTSNS_PIN = 1 [22:27:26]*** CUTSNS_PIN = 0 [22:27:26]*** Brake cut motor [22:27:26]Read from MH i2c: 01 [22:27:26]MH_I2C_Read... [22:27:26]*** Stop cut motor [22:27:26]*** Cut end [22:27:26]Read from MH i2c: 01 07 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: 01 07 00 2E 4D 00 00 00 00 00 FF 0F 90 [22:27:26]process_action close_receipt done [22:27:26]requested_data is exist [22:27:26]produce_requested_data [22:27:26]requested_item fm.sn is exist - process it [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 11 00 00 [22:27:26]Write to MH i2c: E2 08 00 2F 4D 80 11 00 00 00 00 00 00 F6 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 17 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 17 00 2F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4E [22:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:27:27]wFMCommunicate OK [22:27:27]requested_item fd.num is exist - process it [22:27:27]SAM_PROTO_GetFieldsCounters [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 13 00 00 [22:27:27]Write to MH i2c: E2 08 00 30 4D 80 13 00 00 00 00 00 00 F9 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 62 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 62 00 30 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C7 25 01 00 0E 04 04 00 00 02 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 64 [22:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C7 25 01 00 0E 04 04 00 00 02 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 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetFieldsCounters done [22:27:27]requested_item shift.num is exist - process it [22:27:27]requested_item shift.opened is exist - process it [22:27:27]req_shift_opened [22:27:27]FM_GetShiftState [22:27:27]SAM_PROTO_GetShiftState [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 13 01 00 [22:27:27]Write to MH i2c: E2 08 00 31 4D 80 13 01 00 00 00 00 00 FB [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 31 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 16 [22:27:27]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetShiftState done [22:27:27]FM_GetShiftState done [22:27:27]req_shift_opened done [22:27:27]requested_item shift.open_date is exist - process it [22:27:27]req_shift_open_date [22:27:27]req_shift_open_date done [22:27:27]produce_requested_data done [22:27:27]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75207,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:27:27]process_action_free close_receipt [22:27:27]json_value_free [22:27:27]json_value_free done [22:27:27]process_json_proto returns [22:27:27]Send response to host [22:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75207,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:27:27]free response buf [22:27:27]execute_script done [22:27:27]execute_script returns [22:27:27]free content buf [22:27:27]Sock 9.Close socket [22:27:27]Sock 9.Thread stoped [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:33]accept exits with 8 [22:32:33]New connection [22:32:33]New thread 3066781028 created [22:32:33]Thread 3066924388 joined [22:32:33]Waiting for new connection... [22:32:33] Sock 8.Parse request [22:32:33]Sock 8.Check first char [22:32:33]Sock 8.First char is OK [22:32:33]request: POST /json_proto HTTP/1.0 [22:32:33]Method: POST [22:32:33]URL: /json_proto [22:32:33]Method is POST - this is cgi request [22:32:33]url: /json_proto [22:32:33]query_string will be loaded in cgi processing [22:32:33]execute_cgi json_proto POST (null) [22:32:33]execute_cgi path=json_proto method=POST [22:32:33]POST find Content-Length [22:32:33]Host: 172.17.39.131:8080 [22:32:33]Content-Length: 769 [22:32:33]Content-Type: application/json [22:32:33] [22:32:33]POST finish read [22:32:33]Found Content-Length = 769 [22:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:32:33]execute_script... [22:32: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)191188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [22:32:33]POST & json_proto [22:32:33]process_json_proto [22:32:33]json parsed OK: [22:32:33]protocol is kg_v1.0 [22:32:33]action value=close_receipt [22:32:33]process_action close_receipt [22:32:33]cmd_close_receipt [22:32:33]MH_GetDate [22:32:33]Write to MH i2c: F0 00 00 32 4D 6E [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: F0 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: F0 09 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: F0 09 00 32 4D 00 08 6E 1D 67 86 57 24 65 D7 [22:32:33]GetLastDocTimeStamp 1729981649 [22:32:33]current date 1729981960 [22:32:33]FM_GetShiftState [22:32:33]SAM_PROTO_GetShiftState [22:32:33]wFMCommunicate request_size=4 [22:32:33]MH_SAM_APDU [22:32:33]CAPDU: 80 13 01 00 [22:32:33]Write to MH i2c: E2 08 00 33 4D 80 13 01 00 00 00 00 00 FD [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:33]Read from MH i2c: E2 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 0E 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 0E 00 33 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 18 [22:32:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:32:33]wFMCommunicate OK [22:32:33]SAM_PROTO_GetShiftState done [22:32:33]FM_GetShiftState done [22:32:33]opened in 1729902166 [22:32:33]opened+sec_in_day 1729988566 [22:32:33]quantity*price = 100015 [22:32:33]sum+1 = 100017 [22:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 200 26.10.2024 22:32 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75208 ФПД: 242270165478038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223240&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75208&fm=242270165478038&tin=02508201610067®Number=0000000000091691&sum=100016 [22:32:34]StoreToDocumentArchive [22:32:34]shift 512 fd 75208 [22:32:34]save to /storage/0512/doc_00075208 [22:32:34]save last doc name /storage/0512/doc_00075208 to /storage/kkm_last_doc_name [22:32:34]save OK [22:32:34]Clear old archive folders... [22:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:34]tlvbuf is 00983840 [22:32:34]SAM_PROTO_ClearQueue [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 09 00 00 [22:32:34]Write to MH i2c: E2 08 00 40 4D 80 09 00 00 00 00 00 00 FF [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 40 4D 00 90 00 01 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]SAM_PROTO_ClearQueue done [22:32:34]KKMCreateOFDPacket [22:32:34]OFDProtocolAddRootSTLVToBuf [22:32:34]FM_MakeSignedData [22:32:34]FM_MakeSignedData [22:32:34]SAM_PROTO_SignData [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 0D 01 02 [22:32:34]Write to MH i2c: E2 08 00 41 4D 80 0D 01 02 00 00 00 00 07 [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 41 4D 00 90 00 02 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]wFMCommunicate request_size=255 [22:32:34]MH_SAM_APDU [22:32: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 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 C8 00 00 00 F4 03 04 00 08 6E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 25 01 00 35 04 06 00 DC [22:32:34]Write to MH i2c: E2 02 01 42 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 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 C8 00 00 00 F4 03 04 00 08 6E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 25 01 00 35 04 06 00 DC 00 00 44 [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 42 4D 00 90 00 03 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]wFMCommunicate request_size=10 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 0D 02 02 05 57 EB 27 2A 96 [22:32:34]Write to MH i2c: E2 0D 00 43 4D 80 0D 02 02 05 00 57 EB 27 2A 96 00 00 3D [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 43 4D 00 90 00 04 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 0D 03 02 [22:32:34]Write to MH i2c: E2 08 00 44 4D 80 0D 03 02 00 00 00 00 0C [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 0B 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 0B 00 44 4D 00 90 BD A8 BB 2F 93 71 7B 90 00 6B [22:32:34]RAPDU: 90 BD A8 BB 2F 93 71 7B 90 00 [22:32:34]wFMCommunicate OK [22:32:34]SAM_PROTO_SignData done [22:32:34]FM_MakeSignedData done [22:32:34]CreateOFDProtocolMessage [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 11 00 00 [22:32:34]Write to MH i2c: E2 08 00 45 4D 80 11 00 00 00 00 00 00 0C [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 17 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 17 00 45 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 64 [22:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:32:34]wFMCommunicate OK [22:32:34]CreateOFDProtocolMessage done [22:32:34]OFDSenderStorePacket 75208 [22:32:34]StoreOFDPacket docnum=75208 [22:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D DD 07 01 8C AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C8 00 00 00 F4 03 04 00 08 6E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 25 01 00 35 04 06 00 DC 57 EB 27 2A 96 90 BD A8 BB 2F 93 71 7B [22:32:34]CheckFolder [22:32:34]dirname=/storage/ofd_packets [22:32:34]CheckFolder done [22:32:34]ProducePacketName [22:32:34]name=ofd_packets/00075208 [22:32:34]NVStorageSaveData ofd_packets/00075208 [22:32:34]File name is /storage/ofd_packets/00075208 [22:32:34]Write 301 bytes [22:32:34]NVStorageSaveData done [22:32:34]OFDSenderStorePacket done [22:32:34]KKMCreateOFDPacket done [22:32:34]NVStorageSaveData kkm_last_timestamp [22:32:34]File name is /storage/kkm_last_timestamp [22:32:34]Write 4 bytes [22:32:34]NVStorageSaveData done [22:32:34]ExternCall_PrintAddStr [22:32:34]wPrintStart [22:32:34]Write to MH i2c: 01 00 00 46 4D 93 [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 46 4D 00 00 00 00 00 FF 0F A8 [22:32:34]RasterBufferAndPrint [22:32:34]line Счет N : (1)191188 [22:32:34]line ИНН: 02508201610067 [22:32:34]line Контрольно-Кассовый Чек [22:32:34]line ПРОДАЖА [22:32:34]line ТРК (МРК, ГНК) : 21 [22:32:34]line Товар: 2710124130 [22:32:34]line Аи-92-К-5 [22:32:34]line 14.950 * 66.90 [22:32:34]line = 1000.16 [22:32:34]line НДС 12% НСП 1% [22:32:34]line > о реализуемом товаре [22:32:34]line ИТОГО: 1000.16 [22:32:34]line НСП 1% : 8.85 [22:32:34]line НДС 12% : 106.21 [22:32:34]line Наличными: 0.00 [22:32:34]line Безнал.: 1000.16 [22:32:34]line Место: АЗС № 142 "Партнер Нефть" [22:32:34]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:32:34]line СНО: Общий режим [22:32:34]line Чек 200 26.10.2024 22:32 [22:32:34]line Смена: 512 ФФД: 1.0 [22:32:34]line ЗНМ: 0300000089 [22:32:34]line РНМ: 0000000000091691 [22:32:34]line Версия ККМ: 001 [22:32:34]line Платежная система: Mbank [22:32:34]line ФМ: 0000000000871795 [22:32:34]line ФД: 75208 [22:32:34]line ФПД: 242270165478038 [22:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223240&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75208&fm=242270165478038&tin=02508201610067®Number=0000000000091691&sum=100016 [22:32:34]written 0, free lines is 4095 [22:32:34]OFD Sender: Processing packet 75208 [packets to send 13, broken 12] [22:32:34]ProducePacketName [22:32:34]name=ofd_packets/00075208 [22:32:35]OFD Sender: To server: pG, [22:32:35]CommunicateWithHost lk.salyk.kg:30040 [22:32:35]ConnectInit lk.salyk.kg [22:32:35]Write to MH i2c: 01 00 00 6F 4D BC [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: 01 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: 01 07 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: 01 07 00 6F 4D 00 00 00 00 00 CC 0C 9B [22:32:35]RasterBufferAndPrint [22:32:35]line [22:32:35]line [22:32:35]line [22:32:35]line [22:32:35]line [22:32:35]written 0, free lines is 3280 [22:32:35]MH_Cut [22:32:35]Write to MH i2c: D1 01 00 76 4D 01 95 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 01 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 01 00 76 4D 00 94 [22:32:35]Write to MH i2c: 01 00 00 77 4D C4 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]Connected sock=10 [22:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D DD 07 01 8C AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C8 00 00 00 F4 03 04 00 08 6E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 25 01 00 35 04 06 00 DC 57 EB 27 2A 96 90 BD A8 BB 2F 93 71 7B [22:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 0C 63 47 00 D0 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C8 25 01 00 F4 03 04 00 83 15 1D 67 B6 04 01 00 00 71 A2 5D 0C 75 CE 65 D6 [22:32:35]CommunicateWithHost err = 0 [22:32:35]CheckOFDResponse [22:32:35]1017 (14) - 77093643461234 [22:32:35]1041 (16) - 0000000000871795 [22:32:35]1040 (4) - 75208 [22:32:35]1012 (4) - 26.10.2024 16:14 [22:32:35]1206 (1) - 0 [22:32:35]OFD Sender: Remove packet 75208 [22:32:35]ProducePacketName [22:32:35]name=ofd_packets/00075208 [22:32:35]NVStorageDeleteData [22:32:36]*** Cut start [22:32:36]*** Partial cut [22:32:36]*** CUTSNS_PIN = 1 [22:32:36]OFD Sender: No OFD packet to send [22:32:36]*** CUTSNS_PIN = 0 [22:32:36]*** Brake cut motor [22:32:36]Read from MH i2c: 01 [22:32:36]MH_I2C_Read... [22:32:36]*** Stop cut motor [22:32:36]*** Cut end [22:32:36]Read from MH i2c: 01 07 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: 01 07 00 77 4D 00 00 00 00 00 FF 0F D9 [22:32:36]process_action close_receipt done [22:32:36]requested_data is exist [22:32:36]produce_requested_data [22:32:36]requested_item fm.sn is exist - process it [22:32:36]wFMCommunicate request_size=4 [22:32:36]MH_SAM_APDU [22:32:36]CAPDU: 80 11 00 00 [22:32:36]Write to MH i2c: E2 08 00 78 4D 80 11 00 00 00 00 00 00 3F [22:32:36]Write i2c OK [22:32:36]MH_I2C_Read... [22:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:36]Read from MH i2c: E2 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 17 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 17 00 78 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 97 [22:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:32:36]wFMCommunicate OK [22:32:36]requested_item fd.num is exist - process it [22:32:36]SAM_PROTO_GetFieldsCounters [22:32:36]wFMCommunicate request_size=4 [22:32:36]MH_SAM_APDU [22:32:36]CAPDU: 80 13 00 00 [22:32:36]Write to MH i2c: E2 08 00 79 4D 80 13 00 00 00 00 00 00 42 [22:32:36]Write i2c OK [22:32:36]MH_I2C_Read... [22:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:37]Read from MH i2c: E2 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 62 00 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 62 00 79 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C8 25 01 00 0E 04 04 00 00 02 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 B1 [22:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C8 25 01 00 0E 04 04 00 00 02 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 [22:32:37]wFMCommunicate OK [22:32:37]SAM_PROTO_GetFieldsCounters done [22:32:37]requested_item shift.num is exist - process it [22:32:37]requested_item shift.opened is exist - process it [22:32:37]req_shift_opened [22:32:37]FM_GetShiftState [22:32:37]SAM_PROTO_GetShiftState [22:32:37]wFMCommunicate request_size=4 [22:32:37]MH_SAM_APDU [22:32:37]CAPDU: 80 13 01 00 [22:32:37]Write to MH i2c: E2 08 00 7A 4D 80 13 01 00 00 00 00 00 44 [22:32:37]Write i2c OK [22:32:37]MH_I2C_Read... [22:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:37]Read from MH i2c: E2 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 0E 00 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 0E 00 7A 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 5F [22:32:37]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:32:37]wFMCommunicate OK [22:32:37]SAM_PROTO_GetShiftState done [22:32:37]FM_GetShiftState done [22:32:37]req_shift_opened done [22:32:37]requested_item shift.open_date is exist - process it [22:32:37]req_shift_open_date [22:32:37]req_shift_open_date done [22:32:37]produce_requested_data done [22:32:37]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75208,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:32:37]process_action_free close_receipt [22:32:37]json_value_free [22:32:37]json_value_free done [22:32:37]process_json_proto returns [22:32:37]Send response to host [22:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75208,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:32:37]free response buf [22:32:37]execute_script done [22:32:37]execute_script returns [22:32:37]free content buf [22:32:37]Sock 8.Close socket [22:32:37]Sock 8.Thread stoped [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:29]accept exits with 9 [22:41:29]New connection [22:41:29]New thread 3066924388 created [22:41:29]Thread 3066781028 joined [22:41:29]Waiting for new connection... [22:41:29] Sock 9.Parse request [22:41:29]Sock 9.Check first char [22:41:29]Sock 9.First char is OK [22:41:29]request: POST /json_proto HTTP/1.0 [22:41:29]Method: POST [22:41:29]URL: /json_proto [22:41:29]Method is POST - this is cgi request [22:41:29]url: /json_proto [22:41:29]query_string will be loaded in cgi processing [22:41:29]execute_cgi json_proto POST (null) [22:41:29]execute_cgi path=json_proto method=POST [22:41:29]POST find Content-Length [22:41:29]Host: 172.17.39.131:8080 [22:41:29]Content-Length: 677 [22:41:29]Content-Type: application/json [22:41:29] [22:41:29]POST finish read [22:41:29]Found Content-Length = 677 [22:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:41:29]execute_script... [22:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:41:29]POST & json_proto [22:41:29]process_json_proto [22:41:29]json parsed OK: [22:41:29]protocol is kg_v1.0 [22:41:29]action value=close_receipt [22:41:29]process_action close_receipt [22:41:29]cmd_close_receipt [22:41:29]MH_GetDate [22:41:29]Write to MH i2c: F0 00 00 7B 4D B7 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 09 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 09 00 7B 4D 00 20 70 1D 67 86 57 24 65 3A [22:41:29]GetLastDocTimeStamp 1729981960 [22:41:29]current date 1729982496 [22:41:29]FM_GetShiftState [22:41:29]SAM_PROTO_GetShiftState [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 13 01 00 [22:41:29]Write to MH i2c: E2 08 00 7C 4D 80 13 01 00 00 00 00 00 46 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0E 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0E 00 7C 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 61 [22:41:29]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:41:29]wFMCommunicate OK [22:41:29]SAM_PROTO_GetShiftState done [22:41:29]FM_GetShiftState done [22:41:29]opened in 1729902166 [22:41:29]opened+sec_in_day 1729988566 [22:41:29]quantity*price = 50041 [22:41:29]sum+1 = 50042 [22:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 201 26.10.2024 22:41 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75209 ФПД: 123945904686112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224136&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75209&fm=123945904686112&tin=02508201610067®Number=0000000000091691&sum=50000 [22:41:30]StoreToDocumentArchive [22:41:30]shift 512 fd 75209 [22:41:30]save to /storage/0512/doc_00075209 [22:41:30]save last doc name /storage/0512/doc_00075209 to /storage/kkm_last_doc_name [22:41:30]save OK [22:41:30]Clear old archive folders... [22:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:30]tlvbuf is 007FFC60 [22:41:30]SAM_PROTO_ClearQueue [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 09 00 00 [22:41:30]Write to MH i2c: E2 08 00 89 4D 80 09 00 00 00 00 00 00 48 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [22:41:30]RAPDU: 90 00 [22:41:30]wFMCommunicate OK [22:41:30]SAM_PROTO_ClearQueue done [22:41:30]KKMCreateOFDPacket [22:41:30]OFDProtocolAddRootSTLVToBuf [22:41:30]FM_MakeSignedData [22:41:30]FM_MakeSignedData [22:41:30]SAM_PROTO_SignData [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 0D 01 02 [22:41:30]Write to MH i2c: E2 08 00 8A 4D 80 0D 01 02 00 00 00 00 50 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 8A 4D 00 90 00 4B [22:41:30]RAPDU: 90 00 [22:41:30]wFMCommunicate OK [22:41:30]wFMCommunicate request_size=255 [22:41:30]MH_SAM_APDU [22:41: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 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 C9 00 00 00 F4 03 04 00 20 70 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 25 01 00 35 04 06 00 70 [22:41:30]Write to MH i2c: E2 02 01 8B 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 C9 00 00 00 F4 03 04 00 20 70 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 25 01 00 35 04 06 00 70 00 00 23 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 8B 4D 00 90 00 4C [22:41:31]RAPDU: 90 00 [22:41:31]wFMCommunicate OK [22:41:31]wFMCommunicate request_size=10 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 0D 02 02 05 BA 67 9E C4 20 [22:41:31]Write to MH i2c: E2 0D 00 8C 4D 80 0D 02 02 05 00 BA 67 9E C4 20 00 00 00 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 8C 4D 00 90 00 4D [22:41:31]RAPDU: 90 00 [22:41:31]wFMCommunicate OK [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 0D 03 02 [22:41:31]Write to MH i2c: E2 08 00 8D 4D 80 0D 03 02 00 00 00 00 55 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0B 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0B 00 8D 4D 00 61 D3 A5 68 1A 00 97 76 90 00 BE [22:41:31]RAPDU: 61 D3 A5 68 1A 00 97 76 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_SignData done [22:41:31]FM_MakeSignedData done [22:41:31]CreateOFDProtocolMessage [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 11 00 00 [22:41:31]Write to MH i2c: E2 08 00 8E 4D 80 11 00 00 00 00 00 00 55 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 8E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 AD [22:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:41:31]wFMCommunicate OK [22:41:31]CreateOFDProtocolMessage done [22:41:31]OFDSenderStorePacket 75209 [22:41:31]StoreOFDPacket docnum=75209 [22:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 23 76 07 01 E0 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C9 00 00 00 F4 03 04 00 20 70 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 25 01 00 35 04 06 00 70 BA 67 9E C4 20 61 D3 A5 68 1A 00 97 76 [22:41:31]CheckFolder [22:41:31]dirname=/storage/ofd_packets [22:41:31]CheckFolder done [22:41:31]ProducePacketName [22:41:31]name=ofd_packets/00075209 [22:41:31]NVStorageSaveData ofd_packets/00075209 [22:41:31]File name is /storage/ofd_packets/00075209 [22:41:31]Write 301 bytes [22:41:31]NVStorageSaveData done [22:41:31]OFDSenderStorePacket done [22:41:31]KKMCreateOFDPacket done [22:41:31]NVStorageSaveData kkm_last_timestamp [22:41:31]File name is /storage/kkm_last_timestamp [22:41:31]Write 4 bytes [22:41:31]NVStorageSaveData done [22:41:31]ExternCall_PrintAddStr [22:41:31]wPrintStart [22:41:31]Write to MH i2c: 01 00 00 8F 4D DC [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 8F 4D 00 00 00 00 00 FF 0F F1 [22:41:31]RasterBufferAndPrint [22:41:31]line Счет N : (1)191189 [22:41:31]line ИНН: 02508201610067 [22:41:31]line Контрольно-Кассовый Чек [22:41:31]line ПРОДАЖА [22:41:31]line ТРК (МРК, ГНК) : 21 [22:41:31]line Товар: 2710124130 [22:41:31]line Аи-92-К-5 [22:41:31]line 7.480 * 66.90 [22:41:31]line = 500.41 [22:41:31]line НДС 12% НСП 1% [22:41:31]line > о реализуемом товаре [22:41:31]line ОКРУГЛЕНИЕ: -0.41 [22:41:31]line ИТОГО: 500.00 [22:41:31]line Внесено: 500.00 [22:41:31]line СДАЧА: 0.00 [22:41:31]line НСП 1% : 4.43 [22:41:31]line НДС 12% : 53.14 [22:41:31]line Наличными: 500.00 [22:41:31]line Безнал.: 0.00 [22:41:31]line Место: АЗС № 142 "Партнер Нефть" [22:41:31]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:41:31]line СНО: Общий режим [22:41:31]line Чек 201 26.10.2024 22:41 [22:41:31]line Смена: 512 ФФД: 1.0 [22:41:31]line ЗНМ: 0300000089 [22:41:31]line РНМ: 0000000000091691 [22:41:31]line Версия ККМ: 001 [22:41:31]line ФМ: 0000000000871795 [22:41:31]line ФД: 75209 [22:41:31]line ФПД: 123945904686112 [22:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224136&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75209&fm=123945904686112&tin=02508201610067®Number=0000000000091691&sum=50000 [22:41:31]written 0, free lines is 4095 [22:41:31]OFD Sender: Processing packet 75209 [packets to send 13, broken 12] [22:41:31]ProducePacketName [22:41:31]name=ofd_packets/00075209 [22:41:31]OFD Sender: To server: pG, [22:41:31]CommunicateWithHost lk.salyk.kg:30040 [22:41:31]ConnectInit lk.salyk.kg [22:41:31]Connected sock=10 [22:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 23 76 07 01 E0 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C9 00 00 00 F4 03 04 00 20 70 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 25 01 00 35 04 06 00 70 BA 67 9E C4 20 61 D3 A5 68 1A 00 97 76 [22:41:32]Write to MH i2c: 01 00 00 BA 4D 07 [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 07 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 07 00 BA 4D 00 00 00 00 00 A0 0C BA [22:41:32]RasterBufferAndPrint [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]written 0, free lines is 3237 [22:41:32]MH_Cut [22:41:32]Write to MH i2c: D1 01 00 C1 4D 01 E0 [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 01 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 01 00 C1 4D 00 DF [22:41:32]Write to MH i2c: 01 00 00 C2 4D 0F [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E0 BF 47 00 3F A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 C9 25 01 00 F4 03 04 00 9B 17 1D 67 B6 04 01 00 00 FE A2 52 DA A4 5E EC 10 [22:41:32]CommunicateWithHost err = 0 [22:41:32]CheckOFDResponse [22:41:32]1017 (14) - 77093643461234 [22:41:32]1041 (16) - 0000000000871795 [22:41:32]1040 (4) - 75209 [22:41:32]1012 (4) - 26.10.2024 16:23 [22:41:32]1206 (1) - 0 [22:41:32]OFD Sender: Remove packet 75209 [22:41:32]ProducePacketName [22:41:32]name=ofd_packets/00075209 [22:41:32]NVStorageDeleteData [22:41:32]OFD Sender: No OFD packet to send [22:41:33]*** Cut start [22:41:33]*** Partial cut [22:41:33]*** CUTSNS_PIN = 1 [22:41:33]*** CUTSNS_PIN = 0 [22:41:33]*** Brake cut motor [22:41:33]Read from MH i2c: 01 [22:41:33]MH_I2C_Read... [22:41:33]*** Stop cut motor [22:41:33]*** Cut end [22:41:33]Read from MH i2c: 01 07 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: 01 07 00 C2 4D 00 00 00 00 00 FF 0F 24 [22:41:33]process_action close_receipt done [22:41:33]requested_data is exist [22:41:33]produce_requested_data [22:41:33]requested_item fm.sn is exist - process it [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 11 00 00 [22:41:33]Write to MH i2c: E2 08 00 C3 4D 80 11 00 00 00 00 00 00 8A [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 17 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 17 00 C3 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E2 [22:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:41:33]wFMCommunicate OK [22:41:33]requested_item fd.num is exist - process it [22:41:33]SAM_PROTO_GetFieldsCounters [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 13 00 00 [22:41:33]Write to MH i2c: E2 08 00 C4 4D 80 13 00 00 00 00 00 00 8D [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 62 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 62 00 C4 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C9 25 01 00 0E 04 04 00 00 02 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 00 [22:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 C9 25 01 00 0E 04 04 00 00 02 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 [22:41:33]wFMCommunicate OK [22:41:33]SAM_PROTO_GetFieldsCounters done [22:41:33]requested_item shift.num is exist - process it [22:41:33]requested_item shift.opened is exist - process it [22:41:33]req_shift_opened [22:41:33]FM_GetShiftState [22:41:33]SAM_PROTO_GetShiftState [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 13 01 00 [22:41:33]Write to MH i2c: E2 08 00 C5 4D 80 13 01 00 00 00 00 00 8F [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 0E 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 0E 00 C5 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AA [22:41:33]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:41:33]wFMCommunicate OK [22:41:33]SAM_PROTO_GetShiftState done [22:41:33]FM_GetShiftState done [22:41:33]req_shift_opened done [22:41:33]requested_item shift.open_date is exist - process it [22:41:33]req_shift_open_date [22:41:33]req_shift_open_date done [22:41:33]produce_requested_data done [22:41:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75209,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:41:33]process_action_free close_receipt [22:41:33]json_value_free [22:41:33]json_value_free done [22:41:33]process_json_proto returns [22:41:33]Send response to host [22:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75209,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:41:33]free response buf [22:41:33]execute_script done [22:41:33]execute_script returns [22:41:33]free content buf [22:41:33]Sock 9.Close socket [22:41:33]Sock 9.Thread stoped [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:48]accept exits with 8 [22:50:48]New connection [22:50:48]New thread 3066781028 created [22:50:48]Thread 3066924388 joined [22:50:48]Waiting for new connection... [22:50:48] Sock 8.Parse request [22:50:48]Sock 8.Check first char [22:50:48]Sock 8.First char is OK [22:50:48]request: POST /json_proto HTTP/1.0 [22:50:48]Method: POST [22:50:48]URL: /json_proto [22:50:48]Method is POST - this is cgi request [22:50:48]url: /json_proto [22:50:48]query_string will be loaded in cgi processing [22:50:48]execute_cgi json_proto POST (null) [22:50:48]execute_cgi path=json_proto method=POST [22:50:48]POST find Content-Length [22:50:48]Host: 172.17.39.131:8080 [22:50:48]Content-Length: 677 [22:50:48]Content-Type: application/json [22:50:48] [22:50:48]POST finish read [22:50:48]Found Content-Length = 677 [22:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:50:48]execute_script... [22:50: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)191190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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:50:48]POST & json_proto [22:50:48]process_json_proto [22:50:48]json parsed OK: [22:50:48]protocol is kg_v1.0 [22:50:48]action value=close_receipt [22:50:48]process_action close_receipt [22:50:48]cmd_close_receipt [22:50:48]MH_GetDate [22:50:48]Write to MH i2c: F0 00 00 C6 4D 02 [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 C6 4D 00 4F 72 1D 67 86 57 24 65 B6 [22:50:48]GetLastDocTimeStamp 1729982496 [22:50:48]current date 1729983055 [22:50:48]FM_GetShiftState [22:50:48]SAM_PROTO_GetShiftState [22:50:48]wFMCommunicate request_size=4 [22:50:48]MH_SAM_APDU [22:50:48]CAPDU: 80 13 01 00 [22:50:48]Write to MH i2c: E2 08 00 C7 4D 80 13 01 00 00 00 00 00 91 [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:48]Read from MH i2c: E2 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 C7 4D 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 AC [22:50:48]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:50:48]wFMCommunicate OK [22:50:48]SAM_PROTO_GetShiftState done [22:50:48]FM_GetShiftState done [22:50:48]opened in 1729902166 [22:50:48]opened+sec_in_day 1729988566 [22:50:48]quantity*price = 50041 [22:50:48]sum+1 = 50042 [22:50: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 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 202 26.10.2024 22:50 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75210 ФПД: 57760694252249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T225055&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75210&fm=57760694252249&tin=02508201610067®Number=0000000000091691&sum=50000 [22:50:49]StoreToDocumentArchive [22:50:49]shift 512 fd 75210 [22:50:49]save to /storage/0512/doc_00075210 [22:50:49]save last doc name /storage/0512/doc_00075210 to /storage/kkm_last_doc_name [22:50:49]save OK [22:50:49]Clear old archive folders... [22:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:50]tlvbuf is 007FFBD0 [22:50:50]SAM_PROTO_ClearQueue [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 09 00 00 [22:50:50]Write to MH i2c: E2 08 00 D4 4D 80 09 00 00 00 00 00 00 93 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 D4 4D 00 90 00 95 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_ClearQueue done [22:50:50]KKMCreateOFDPacket [22:50:50]OFDProtocolAddRootSTLVToBuf [22:50:50]FM_MakeSignedData [22:50:50]FM_MakeSignedData [22:50:50]SAM_PROTO_SignData [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 01 02 [22:50:50]Write to MH i2c: E2 08 00 D5 4D 80 0D 01 02 00 00 00 00 9B [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 D5 4D 00 90 00 96 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=255 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F 72 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 25 01 00 35 04 06 00 34 [22:50:50]Write to MH i2c: E2 02 01 D6 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 CA 00 00 00 F4 03 04 00 4F 72 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 25 01 00 35 04 06 00 34 00 00 65 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 D6 4D 00 90 00 97 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=10 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 05 88 75 A9 B2 D9 [22:50:50]Write to MH i2c: E2 0D 00 D7 4D 80 0D 02 02 05 00 88 75 A9 B2 D9 00 00 D9 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 D7 4D 00 90 00 98 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 03 02 [22:50:50]Write to MH i2c: E2 08 00 D8 4D 80 0D 03 02 00 00 00 00 A0 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 D8 4D 00 E3 C3 81 09 C2 0E 7B 64 90 00 80 [22:50:50]RAPDU: E3 C3 81 09 C2 0E 7B 64 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_SignData done [22:50:50]FM_MakeSignedData done [22:50:50]CreateOFDProtocolMessage [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 11 00 00 [22:50:50]Write to MH i2c: E2 08 00 D9 4D 80 11 00 00 00 00 00 00 A0 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 D9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 F8 [22:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:50:50]wFMCommunicate OK [22:50:50]CreateOFDProtocolMessage done [22:50:50]OFDSenderStorePacket 75210 [22:50:50]StoreOFDPacket docnum=75210 [22:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7D 48 07 01 08 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 4F 72 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 25 01 00 35 04 06 00 34 88 75 A9 B2 D9 E3 C3 81 09 C2 0E 7B 64 [22:50:50]CheckFolder [22:50:50]dirname=/storage/ofd_packets [22:50:50]CheckFolder done [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00075210 [22:50:50]NVStorageSaveData ofd_packets/00075210 [22:50:50]File name is /storage/ofd_packets/00075210 [22:50:50]Write 301 bytes [22:50:50]NVStorageSaveData done [22:50:50]OFDSenderStorePacket done [22:50:50]KKMCreateOFDPacket done [22:50:50]NVStorageSaveData kkm_last_timestamp [22:50:50]File name is /storage/kkm_last_timestamp [22:50:50]Write 4 bytes [22:50:50]NVStorageSaveData done [22:50:50]ExternCall_PrintAddStr [22:50:50]wPrintStart [22:50:50]Write to MH i2c: 01 00 00 DA 4D 27 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 DA 4D 00 00 00 00 00 FF 0F 3C [22:50:50]RasterBufferAndPrint [22:50:50]line Счет N : (1)191190 [22:50:50]line ИНН: 02508201610067 [22:50:50]line Контрольно-Кассовый Чек [22:50:50]line ПРОДАЖА [22:50:50]line ТРК (МРК, ГНК) : 21 [22:50:50]line Товар: 2710124130 [22:50:50]line Аи-92-К-5 [22:50:50]line 7.480 * 66.90 [22:50:50]line = 500.41 [22:50:50]line НДС 12% НСП 1% [22:50:50]line > о реализуемом товаре [22:50:50]line ОКРУГЛЕНИЕ: -0.41 [22:50:50]line ИТОГО: 500.00 [22:50:50]line Внесено: 500.00 [22:50:50]line СДАЧА: 0.00 [22:50:50]line НСП 1% : 4.43 [22:50:50]line НДС 12% : 53.14 [22:50:50]line Наличными: 500.00 [22:50:50]line Безнал.: 0.00 [22:50:50]line Место: АЗС № 142 "Партнер Нефть" [22:50:50]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [22:50:50]line СНО: Общий режим [22:50:50]line Чек 202 26.10.2024 22:50 [22:50:50]line Смена: 512 ФФД: 1.0 [22:50:50]line ЗНМ: 0300000089 [22:50:50]line РНМ: 0000000000091691 [22:50:50]line Версия ККМ: 001 [22:50:50]line ФМ: 0000000000871795 [22:50:50]line ФД: 75210 [22:50:50]line ФПД: 57760694252249 [22:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T225055&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75210&fm=57760694252249&tin=02508201610067®Number=0000000000091691&sum=50000 [22:50:50]written 0, free lines is 4095 [22:50:50]OFD Sender: Processing packet 75210 [packets to send 13, broken 12] [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00075210 [22:50:50]OFD Sender: To server: pG, [22:50:50]CommunicateWithHost lk.salyk.kg:30040 [22:50:50]ConnectInit lk.salyk.kg [22:50:51]Connected sock=10 [22:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 7D 48 07 01 08 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 4F 72 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 25 01 00 35 04 06 00 34 88 75 A9 B2 D9 E3 C3 81 09 C2 0E 7B 64 [22:50:51]Write to MH i2c: 01 00 00 05 4E 53 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 05 4E 00 00 00 00 00 A1 0C 07 [22:50:51]RasterBufferAndPrint [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]written 0, free lines is 3240 [22:50:51]MH_Cut [22:50:51]Write to MH i2c: D1 01 00 0C 4E 01 2C [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 0C 4E 00 2B [22:50:51]Write to MH i2c: 01 00 00 0D 4E 5B [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 00 F3 47 00 03 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CA 25 01 00 F4 03 04 00 CA 19 1D 67 B6 04 01 00 00 7C 96 09 A6 AB 0B 0F 0E [22:50:51]CommunicateWithHost err = 0 [22:50:51]CheckOFDResponse [22:50:51]1017 (14) - 77093643461234 [22:50:51]1041 (16) - 0000000000871795 [22:50:51]1040 (4) - 75210 [22:50:51]1012 (4) - 26.10.2024 16:33 [22:50:51]1206 (1) - 0 [22:50:51]OFD Sender: Remove packet 75210 [22:50:51]ProducePacketName [22:50:51]name=ofd_packets/00075210 [22:50:51]NVStorageDeleteData [22:50:51]OFD Sender: No OFD packet to send [22:50:52]*** Cut start [22:50:52]*** Partial cut [22:50:52]*** CUTSNS_PIN = 1 [22:50:52]*** CUTSNS_PIN = 0 [22:50:52]*** Brake cut motor [22:50:52]Read from MH i2c: 01 [22:50:52]MH_I2C_Read... [22:50:52]*** Stop cut motor [22:50:52]*** Cut end [22:50:52]Read from MH i2c: 01 07 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 07 00 0D 4E 00 00 00 00 00 FF 0F 70 [22:50:52]process_action close_receipt done [22:50:52]requested_data is exist [22:50:52]produce_requested_data [22:50:52]requested_item fm.sn is exist - process it [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 11 00 00 [22:50:52]Write to MH i2c: E2 08 00 0E 4E 80 11 00 00 00 00 00 00 D6 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 0E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2E [22:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [22:50:52]wFMCommunicate OK [22:50:52]requested_item fd.num is exist - process it [22:50:52]SAM_PROTO_GetFieldsCounters [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 13 00 00 [22:50:52]Write to MH i2c: E2 08 00 0F 4E 80 13 00 00 00 00 00 00 D9 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:53]Read from MH i2c: E2 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: E2 62 00 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: E2 62 00 0F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CA 25 01 00 0E 04 04 00 00 02 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 50 [22:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CA 25 01 00 0E 04 04 00 00 02 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 [22:50:53]wFMCommunicate OK [22:50:53]SAM_PROTO_GetFieldsCounters done [22:50:53]requested_item shift.num is exist - process it [22:50:53]requested_item shift.opened is exist - process it [22:50:53]req_shift_opened [22:50:53]FM_GetShiftState [22:50:53]SAM_PROTO_GetShiftState [22:50:53]wFMCommunicate request_size=4 [22:50:53]MH_SAM_APDU [22:50:53]CAPDU: 80 13 01 00 [22:50:53]Write to MH i2c: E2 08 00 10 4E 80 13 01 00 00 00 00 00 DB [22:50:53]Write i2c OK [22:50:53]MH_I2C_Read... [22:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:53]Read from MH i2c: E2 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: E2 0E 00 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: E2 0E 00 10 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 F6 [22:50:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [22:50:53]wFMCommunicate OK [22:50:53]SAM_PROTO_GetShiftState done [22:50:53]FM_GetShiftState done [22:50:53]req_shift_opened done [22:50:53]requested_item shift.open_date is exist - process it [22:50:53]req_shift_open_date [22:50:53]req_shift_open_date done [22:50:53]produce_requested_data done [22:50:53]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75210,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [22:50:53]process_action_free close_receipt [22:50:53]json_value_free [22:50:53]json_value_free done [22:50:53]process_json_proto returns [22:50:53]Send response to host [22:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75210,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [22:50:53]free response buf [22:50:53]execute_script done [22:50:53]execute_script returns [22:50:53]free content buf [22:50:53]Sock 8.Close socket [22:50:53]Sock 8.Thread stoped [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:22]int [22:56:22]Write to MH i2c: 01 00 00 11 4E 5F [22:56:22]*** FLAG_PRN_KEY set [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 11 4E 00 08 00 00 00 FF 0F 7C [22:56:22]state=0 [22:56:22]Key pressed [22:56:22]Feed [22:56:22]Write to MH i2c: D8 00 00 12 4E 37 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: D8 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: D8 01 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: D8 01 00 12 4E 00 38 [22:56:22]int [22:56:22]Write to MH i2c: 01 00 00 13 4E 61 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 13 4E 00 48 00 00 00 3C 00 EC [22:56:22]state=2 [22:56:22]Key pressed [22:56:22]int [22:56:22]Write to MH i2c: 01 00 00 14 4E 62 [22:56:22]*** FLAG_PRN_KEY reset [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 14 4E 00 00 00 00 00 F7 0F 6F [22:56:22]state=2 [22:56:22]Stop feed [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:13]accept exits with 9 [23:00:13]New connection [23:00:13]New thread 3066924388 created [23:00:13]Thread 3066781028 joined [23:00:13]Waiting for new connection... [23:00:13] Sock 9.Parse request [23:00:13]Sock 9.Check first char [23:00:13]Sock 9.First char is OK [23:00:13]request: POST /json_proto HTTP/1.0 [23:00:13]Method: POST [23:00:13]URL: /json_proto [23:00:13]Method is POST - this is cgi request [23:00:13]url: /json_proto [23:00:13]query_string will be loaded in cgi processing [23:00:13]execute_cgi json_proto POST (null) [23:00:13]execute_cgi path=json_proto method=POST [23:00:13]POST find Content-Length [23:00:13]Host: 172.17.39.131:8080 [23:00:13]Content-Length: 766 [23:00:13]Content-Type: application/json [23:00:13] [23:00:13]POST finish read [23:00:13]Found Content-Length = 766 [23:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:00:13]execute_script... [23:00: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)191191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [23:00:13]POST & json_proto [23:00:13]process_json_proto [23:00:13]json parsed OK: [23:00:13]protocol is kg_v1.0 [23:00:13]action value=close_receipt [23:00:13]process_action close_receipt [23:00:13]cmd_close_receipt [23:00:13]MH_GetDate [23:00:13]Write to MH i2c: F0 00 00 15 4E 52 [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: F0 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: F0 09 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: F0 09 00 15 4E 00 84 74 1D 67 86 57 24 65 3D [23:00:13]GetLastDocTimeStamp 1729983055 [23:00:13]current date 1729983620 [23:00:13]FM_GetShiftState [23:00:13]SAM_PROTO_GetShiftState [23:00:13]wFMCommunicate request_size=4 [23:00:13]MH_SAM_APDU [23:00:13]CAPDU: 80 13 01 00 [23:00:13]Write to MH i2c: E2 08 00 16 4E 80 13 01 00 00 00 00 00 E1 [23:00:13]Write i2c OK [23:00:13]MH_I2C_Read... [23:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:13]Read from MH i2c: E2 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 0E 00 [23:00:13]MH_I2C_Read... [23:00:13]Read from MH i2c: E2 0E 00 16 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 FC [23:00:13]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [23:00:13]wFMCommunicate OK [23:00:13]SAM_PROTO_GetShiftState done [23:00:13]FM_GetShiftState done [23:00:13]opened in 1729902166 [23:00:13]opened+sec_in_day 1729988566 [23:00:13]quantity*price = 50041 [23:00:13]sum+1 = 50042 [23:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 203 26.10.2024 23:00 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75211 ФПД: 128950040595881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230020&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75211&fm=128950040595881&tin=02508201610067®Number=0000000000091691&sum=50041 [23:00:14]StoreToDocumentArchive [23:00:14]shift 512 fd 75211 [23:00:14]save to /storage/0512/doc_00075211 [23:00:14]save last doc name /storage/0512/doc_00075211 to /storage/kkm_last_doc_name [23:00:14]save OK [23:00:14]Clear old archive folders... [23:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:14]tlvbuf is 007D92D0 [23:00:14]SAM_PROTO_ClearQueue [23:00:14]wFMCommunicate request_size=4 [23:00:14]MH_SAM_APDU [23:00:14]CAPDU: 80 09 00 00 [23:00:14]Write to MH i2c: E2 08 00 23 4E 80 09 00 00 00 00 00 00 E3 [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:14]Read from MH i2c: E2 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: E2 03 00 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: E2 03 00 23 4E 00 90 00 E5 [23:00:14]RAPDU: 90 00 [23:00:14]wFMCommunicate OK [23:00:14]SAM_PROTO_ClearQueue done [23:00:14]KKMCreateOFDPacket [23:00:14]OFDProtocolAddRootSTLVToBuf [23:00:14]FM_MakeSignedData [23:00:14]FM_MakeSignedData [23:00:14]SAM_PROTO_SignData [23:00:14]wFMCommunicate request_size=4 [23:00:14]MH_SAM_APDU [23:00:14]CAPDU: 80 0D 01 02 [23:00:14]Write to MH i2c: E2 08 00 24 4E 80 0D 01 02 00 00 00 00 EB [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:14]Read from MH i2c: E2 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: E2 03 00 [23:00:14]MH_I2C_Read... [23:00:14]Read from MH i2c: E2 03 00 24 4E 00 90 00 E6 [23:00:14]RAPDU: 90 00 [23:00:14]wFMCommunicate OK [23:00:14]wFMCommunicate request_size=255 [23:00:14]MH_SAM_APDU [23:00:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CB 00 00 00 F4 03 04 00 84 74 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 25 01 00 35 04 06 00 75 [23:00:14]Write to MH i2c: E2 02 01 25 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 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 CB 00 00 00 F4 03 04 00 84 74 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 25 01 00 35 04 06 00 75 00 00 81 [23:00:14]Write i2c OK [23:00:14]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 03 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [23:00:15]RAPDU: 90 00 [23:00:15]wFMCommunicate OK [23:00:15]wFMCommunicate request_size=10 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 0D 02 02 05 47 85 5D 0D A9 [23:00:15]Write to MH i2c: E2 0D 00 26 4E 80 0D 02 02 05 00 47 85 5D 0D A9 00 00 D7 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 03 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [23:00:15]RAPDU: 90 00 [23:00:15]wFMCommunicate OK [23:00:15]wFMCommunicate request_size=4 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 0D 03 02 [23:00:15]Write to MH i2c: E2 08 00 27 4E 80 0D 03 02 00 00 00 00 F0 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 0B 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 0B 00 27 4E 00 AF 10 39 61 D9 8E 8D FD 90 00 3B [23:00:15]RAPDU: AF 10 39 61 D9 8E 8D FD 90 00 [23:00:15]wFMCommunicate OK [23:00:15]SAM_PROTO_SignData done [23:00:15]FM_MakeSignedData done [23:00:15]CreateOFDProtocolMessage [23:00:15]wFMCommunicate request_size=4 [23:00:15]MH_SAM_APDU [23:00:15]CAPDU: 80 11 00 00 [23:00:15]Write to MH i2c: E2 08 00 28 4E 80 11 00 00 00 00 00 00 F0 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:15]Read from MH i2c: E2 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 17 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: E2 17 00 28 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 48 [23:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:00:15]wFMCommunicate OK [23:00:15]CreateOFDProtocolMessage done [23:00:15]OFDSenderStorePacket 75211 [23:00:15]StoreOFDPacket docnum=75211 [23:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D 79 07 01 4F 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 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 CB 00 00 00 F4 03 04 00 84 74 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 25 01 00 35 04 06 00 75 47 85 5D 0D A9 AF 10 39 61 D9 8E 8D FD [23:00:15]CheckFolder [23:00:15]dirname=/storage/ofd_packets [23:00:15]CheckFolder done [23:00:15]ProducePacketName [23:00:15]name=ofd_packets/00075211 [23:00:15]NVStorageSaveData ofd_packets/00075211 [23:00:15]File name is /storage/ofd_packets/00075211 [23:00:15]Write 301 bytes [23:00:15]NVStorageSaveData done [23:00:15]OFDSenderStorePacket done [23:00:15]KKMCreateOFDPacket done [23:00:15]NVStorageSaveData kkm_last_timestamp [23:00:15]File name is /storage/kkm_last_timestamp [23:00:15]Write 4 bytes [23:00:15]NVStorageSaveData done [23:00:15]ExternCall_PrintAddStr [23:00:15]wPrintStart [23:00:15]Write to MH i2c: 01 00 00 29 4E 77 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 07 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 07 00 29 4E 00 00 00 00 00 FF 0F 8C [23:00:15]RasterBufferAndPrint [23:00:15]line Счет N : (1)191191 [23:00:15]line ИНН: 02508201610067 [23:00:15]line Контрольно-Кассовый Чек [23:00:15]line ПРОДАЖА [23:00:15]line ТРК (МРК, ГНК) : 21 [23:00:15]line Товар: 2710124130 [23:00:15]line Аи-92-К-5 [23:00:15]line 7.480 * 66.90 [23:00:15]line = 500.41 [23:00:15]line НДС 12% НСП 1% [23:00:15]line > о реализуемом товаре [23:00:15]line ИТОГО: 500.41 [23:00:15]line НСП 1% : 4.43 [23:00:15]line НДС 12% : 53.14 [23:00:15]line Наличными: 0.00 [23:00:15]line Безнал.: 500.41 [23:00:15]line Место: АЗС № 142 "Партнер Нефть" [23:00:15]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:00:15]line СНО: Общий режим [23:00:15]line Чек 203 26.10.2024 23:00 [23:00:15]line Смена: 512 ФФД: 1.0 [23:00:15]line ЗНМ: 0300000089 [23:00:15]line РНМ: 0000000000091691 [23:00:15]line Версия ККМ: 001 [23:00:15]line Платежная система: Mbank [23:00:15]line ФМ: 0000000000871795 [23:00:15]line ФД: 75211 [23:00:15]line ФПД: 128950040595881 [23:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230020&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75211&fm=128950040595881&tin=02508201610067®Number=0000000000091691&sum=50041 [23:00:15]written 0, free lines is 4095 [23:00:15]OFD Sender: Processing packet 75211 [packets to send 13, broken 12] [23:00:15]ProducePacketName [23:00:15]name=ofd_packets/00075211 [23:00:15]OFD Sender: To server: pG, [23:00:15]CommunicateWithHost lk.salyk.kg:30040 [23:00:15]ConnectInit lk.salyk.kg [23:00:15]Write to MH i2c: 01 00 00 52 4E A0 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 07 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: 01 07 00 52 4E 00 00 00 00 00 CA 0C 7D [23:00:15]RasterBufferAndPrint [23:00:15]line [23:00:15]line [23:00:15]line [23:00:15]line [23:00:15]line [23:00:15]written 0, free lines is 3279 [23:00:15]MH_Cut [23:00:15]Write to MH i2c: D1 01 00 59 4E 01 79 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: D1 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: D1 01 00 [23:00:15]MH_I2C_Read... [23:00:15]Read from MH i2c: D1 01 00 59 4E 00 78 [23:00:15]Write to MH i2c: 01 00 00 5A 4E A8 [23:00:15]Write i2c OK [23:00:15]MH_I2C_Read... [23:00:15]Connected sock=10 [23:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 6D 79 07 01 4F 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 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 CB 00 00 00 F4 03 04 00 84 74 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 25 01 00 35 04 06 00 75 47 85 5D 0D A9 AF 10 39 61 D9 8E 8D FD [23:00:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 62 61 47 00 F9 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CB 25 01 00 F4 03 04 00 FF 1B 1D 67 B6 04 01 00 00 56 7F E5 59 D0 93 F1 9A [23:00:16]CommunicateWithHost err = 0 [23:00:16]CheckOFDResponse [23:00:16]1017 (14) - 77093643461234 [23:00:16]1041 (16) - 0000000000871795 [23:00:16]1040 (4) - 75211 [23:00:16]1012 (4) - 26.10.2024 16:42 [23:00:16]1206 (1) - 0 [23:00:16]OFD Sender: Remove packet 75211 [23:00:16]ProducePacketName [23:00:16]name=ofd_packets/00075211 [23:00:16]NVStorageDeleteData [23:00:16]*** Cut start [23:00:16]*** Partial cut [23:00:16]*** CUTSNS_PIN = 1 [23:00:16]*** CUTSNS_PIN = 0 [23:00:16]OFD Sender: No OFD packet to send [23:00:16]*** Brake cut motor [23:00:17]Read from MH i2c: 01 [23:00:17]MH_I2C_Read... [23:00:17]*** Stop cut motor [23:00:17]*** Cut end [23:00:17]Read from MH i2c: 01 07 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: 01 07 00 5A 4E 00 00 00 00 00 FF 0F BD [23:00:17]process_action close_receipt done [23:00:17]requested_data is exist [23:00:17]produce_requested_data [23:00:17]requested_item fm.sn is exist - process it [23:00:17]wFMCommunicate request_size=4 [23:00:17]MH_SAM_APDU [23:00:17]CAPDU: 80 11 00 00 [23:00:17]Write to MH i2c: E2 08 00 5B 4E 80 11 00 00 00 00 00 00 23 [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:17]Read from MH i2c: E2 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 17 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 17 00 5B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 7B [23:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:00:17]wFMCommunicate OK [23:00:17]requested_item fd.num is exist - process it [23:00:17]SAM_PROTO_GetFieldsCounters [23:00:17]wFMCommunicate request_size=4 [23:00:17]MH_SAM_APDU [23:00:17]CAPDU: 80 13 00 00 [23:00:17]Write to MH i2c: E2 08 00 5C 4E 80 13 00 00 00 00 00 00 26 [23:00:17]Write i2c OK [23:00:17]MH_I2C_Read... [23:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:17]Read from MH i2c: E2 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 62 00 [23:00:17]MH_I2C_Read... [23:00:17]Read from MH i2c: E2 62 00 5C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CB 25 01 00 0E 04 04 00 00 02 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 A1 [23:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CB 25 01 00 0E 04 04 00 00 02 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 [23:00:17]wFMCommunicate OK [23:00:17]SAM_PROTO_GetFieldsCounters done [23:00:17]requested_item shift.num is exist - process it [23:00:17]requested_item shift.opened is exist - process it [23:00:17]req_shift_opened [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 5D 4E 80 13 01 00 00 00 00 00 28 [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 5D 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 43 [23:00:17]RAPDU: 09 00 01 56 36 1C 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]req_shift_opened done [23:00:17]requested_item shift.open_date is exist - process it [23:00:17]req_shift_open_date [23:00:17]req_shift_open_date done [23:00:17]produce_requested_data done [23:00:17]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75211,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [23:00:17]process_action_free close_receipt [23:00:17]json_value_free [23:00:17]json_value_free done [23:00:17]process_json_proto returns [23:00:17]Send response to host [23:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75211,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [23:00:17]free response buf [23:00:17]execute_script done [23:00:17]execute_script returns [23:00:17]free content buf [23:00:17]Sock 9.Close socket [23:00:17]Sock 9.Thread stoped [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]accept exits with 8 [23:44:53]New connection [23:44:53]New thread 3066781028 created [23:44:53]Thread 3066924388 joined [23:44:53]Waiting for new connection... [23:44:53] Sock 8.Parse request [23:44:53]Sock 8.Check first char [23:44:53]Sock 8.First char is OK [23:44:53]request: POST /json_proto HTTP/1.0 [23:44:53]Method: POST [23:44:53]URL: /json_proto [23:44:53]Method is POST - this is cgi request [23:44:53]url: /json_proto [23:44:53]query_string will be loaded in cgi processing [23:44:53]execute_cgi json_proto POST (null) [23:44:53]execute_cgi path=json_proto method=POST [23:44:53]POST find Content-Length [23:44:53]Host: 172.17.39.131:8080 [23:44:53]Content-Length: 772 [23:44:53]Content-Type: application/json [23:44:53] [23:44:53]POST finish read [23:44:53]Found Content-Length = 772 [23:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 50.000, "sum" : 1945.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" : 1945.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:53]execute_script... [23:44: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)191192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 50.000, "sum" : 1945.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" : 1945.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:53]POST & json_proto [23:44:53]process_json_proto [23:44:53]json parsed OK: [23:44:53]protocol is kg_v1.0 [23:44:53]action value=close_receipt [23:44:53]process_action close_receipt [23:44:53]cmd_close_receipt [23:44:53]MH_GetDate [23:44:53]Write to MH i2c: F0 00 00 5E 4E 9B [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: F0 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: F0 09 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: F0 09 00 5E 4E 00 FC 7E 1D 67 86 57 24 65 08 [23:44:53]GetLastDocTimeStamp 1729983620 [23:44:53]current date 1729986300 [23:44:53]FM_GetShiftState [23:44:53]SAM_PROTO_GetShiftState [23:44:53]wFMCommunicate request_size=4 [23:44:53]MH_SAM_APDU [23:44:53]CAPDU: 80 13 01 00 [23:44:53]Write to MH i2c: E2 08 00 5F 4E 80 13 01 00 00 00 00 00 2A [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:53]Read from MH i2c: E2 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 0E 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 0E 00 5F 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 45 [23:44:53]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [23:44:53]wFMCommunicate OK [23:44:53]SAM_PROTO_GetShiftState done [23:44:53]FM_GetShiftState done [23:44:53]opened in 1729902166 [23:44:53]opened+sec_in_day 1729988566 [23:44:53]quantity*price = 194500 [23:44:53]sum+1 = 194501 [23:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1945.00 НСП 1% : 17.21 НДС 12% : 206.55 Наличными: 0.00 Безнал.: 1945.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 204 26.10.2024 23:45 Смена: 512 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75212 ФПД: 181159417968024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234500&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75212&fm=181159417968024&tin=02508201610067®Number=0000000000091691&sum=194500 [23:44:54]StoreToDocumentArchive [23:44:54]shift 512 fd 75212 [23:44:54]save to /storage/0512/doc_00075212 [23:44:54]save last doc name /storage/0512/doc_00075212 to /storage/kkm_last_doc_name [23:44:54]save OK [23:44:54]Clear old archive folders... [23:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:44:54]tlvbuf is 008F2940 [23:44:54]SAM_PROTO_ClearQueue [23:44:54]wFMCommunicate request_size=4 [23:44:54]MH_SAM_APDU [23:44:54]CAPDU: 80 09 00 00 [23:44:54]Write to MH i2c: E2 08 00 6C 4E 80 09 00 00 00 00 00 00 2C [23:44:54]Write i2c OK [23:44:54]MH_I2C_Read... [23:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:54]Read from MH i2c: E2 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: E2 03 00 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: E2 03 00 6C 4E 00 90 00 2E [23:44:54]RAPDU: 90 00 [23:44:54]wFMCommunicate OK [23:44:54]SAM_PROTO_ClearQueue done [23:44:54]KKMCreateOFDPacket [23:44:54]OFDProtocolAddRootSTLVToBuf [23:44:54]FM_MakeSignedData [23:44:54]FM_MakeSignedData [23:44:54]SAM_PROTO_SignData [23:44:54]wFMCommunicate request_size=4 [23:44:54]MH_SAM_APDU [23:44:54]CAPDU: 80 0D 01 02 [23:44:54]Write to MH i2c: E2 08 00 6D 4E 80 0D 01 02 00 00 00 00 34 [23:44:54]Write i2c OK [23:44:54]MH_I2C_Read... [23:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:54]Read from MH i2c: E2 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: E2 03 00 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: E2 03 00 6D 4E 00 90 00 2F [23:44:54]RAPDU: 90 00 [23:44:54]wFMCommunicate OK [23:44:54]wFMCommunicate request_size=255 [23:44:54]MH_SAM_APDU [23:44: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 F7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 FC 7E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 25 01 00 35 04 06 00 A4 C3 [23:44:54]Write to MH i2c: E2 02 01 6E 4E 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 F7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 FC 7E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 25 01 00 35 04 06 00 A4 C3 00 00 57 [23:44:54]Write i2c OK [23:44:54]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 03 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 03 00 6E 4E 00 90 00 30 [23:44:55]RAPDU: 90 00 [23:44:55]wFMCommunicate OK [23:44:55]wFMCommunicate request_size=9 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 0D 02 02 04 76 C1 75 98 [23:44:55]Write to MH i2c: E2 0C 00 6F 4E 80 0D 02 02 04 00 76 C1 75 98 00 00 83 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 03 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 03 00 6F 4E 00 90 00 31 [23:44:55]RAPDU: 90 00 [23:44:55]wFMCommunicate OK [23:44:55]wFMCommunicate request_size=4 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 0D 03 02 [23:44:55]Write to MH i2c: E2 08 00 70 4E 80 0D 03 02 00 00 00 00 39 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 0B 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 0B 00 70 4E 00 C4 29 88 A0 BA 32 7C 49 90 00 00 [23:44:55]RAPDU: C4 29 88 A0 BA 32 7C 49 90 00 [23:44:55]wFMCommunicate OK [23:44:55]SAM_PROTO_SignData done [23:44:55]FM_MakeSignedData done [23:44:55]CreateOFDProtocolMessage [23:44:55]wFMCommunicate request_size=4 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 11 00 00 [23:44:55]Write to MH i2c: E2 08 00 71 4E 80 11 00 00 00 00 00 00 39 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 17 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 17 00 71 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 91 [23:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:44:55]wFMCommunicate OK [23:44:55]CreateOFDProtocolMessage done [23:44:55]OFDSenderStorePacket 75212 [23:44:55]StoreOFDPacket docnum=75212 [23:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D5 41 06 01 F4 EE 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 F7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 FC 7E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 25 01 00 35 04 06 00 A4 C3 76 C1 75 98 C4 29 88 A0 BA 32 7C 49 [23:44:55]CheckFolder [23:44:55]dirname=/storage/ofd_packets [23:44:55]CheckFolder done [23:44:55]ProducePacketName [23:44:55]name=ofd_packets/00075212 [23:44:55]NVStorageSaveData ofd_packets/00075212 [23:44:55]File name is /storage/ofd_packets/00075212 [23:44:55]Write 300 bytes [23:44:55]NVStorageSaveData done [23:44:55]OFDSenderStorePacket done [23:44:55]KKMCreateOFDPacket done [23:44:55]NVStorageSaveData kkm_last_timestamp [23:44:55]File name is /storage/kkm_last_timestamp [23:44:55]Write 4 bytes [23:44:55]NVStorageSaveData done [23:44:55]ExternCall_PrintAddStr [23:44:55]wPrintStart [23:44:55]Write to MH i2c: 01 00 00 72 4E C0 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 07 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 07 00 72 4E 00 00 00 00 00 FF 0F D5 [23:44:55]RasterBufferAndPrint [23:44:55]line Счет N : (1)191192 [23:44:55]line ИНН: 02508201610067 [23:44:55]line Контрольно-Кассовый Чек [23:44:55]line ПРОДАЖА [23:44:55]line ТРК (МРК, ГНК) : 51 [23:44:55]line Товар: 2711190000 [23:44:55]line ГАЗ-К-3 [23:44:55]line 50.000 * 38.90 [23:44:55]line = 1945.00 [23:44:55]line НДС 12% НСП 1% [23:44:55]line > о реализуемом товаре [23:44:55]line ИТОГО: 1945.00 [23:44:55]line НСП 1% : 17.21 [23:44:55]line НДС 12% : 206.55 [23:44:55]line Наличными: 0.00 [23:44:55]line Безнал.: 1945.00 [23:44:55]line Место: АЗС № 142 "Партнер Нефть" [23:44:55]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [23:44:55]line СНО: Общий режим [23:44:55]line Чек 204 26.10.2024 23:45 [23:44:55]line Смена: 512 ФФД: 1.0 [23:44:55]line ЗНМ: 0300000089 [23:44:55]line РНМ: 0000000000091691 [23:44:55]line Версия ККМ: 001 [23:44:55]line Платежная система: Mbank [23:44:55]line ФМ: 0000000000871795 [23:44:55]line ФД: 75212 [23:44:55]line ФПД: 181159417968024 [23:44:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234500&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75212&fm=181159417968024&tin=02508201610067®Number=0000000000091691&sum=194500 [23:44:55]written 0, free lines is 4095 [23:44:55]OFD Sender: Processing packet 75212 [packets to send 13, broken 12] [23:44:55]ProducePacketName [23:44:55]name=ofd_packets/00075212 [23:44:55]OFD Sender: To server: pG, [23:44:55]CommunicateWithHost lk.salyk.kg:30040 [23:44:55]ConnectInit lk.salyk.kg [23:44:55]Write to MH i2c: 01 00 00 9B 4E E9 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 07 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 07 00 9B 4E 00 00 00 00 00 C8 0C C4 [23:44:55]RasterBufferAndPrint [23:44:55]line [23:44:55]line [23:44:55]line [23:44:55]line [23:44:55]line [23:44:55]written 0, free lines is 3279 [23:44:55]MH_Cut [23:44:55]Write to MH i2c: D1 01 00 A2 4E 01 C2 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: D1 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: D1 01 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: D1 01 00 A2 4E 00 C1 [23:44:55]Write to MH i2c: 01 00 00 A3 4E F1 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]Connected sock=9 [23:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 D5 41 06 01 F4 EE 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 F7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 FC 7E 1D 67 0E 04 04 00 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 25 01 00 35 04 06 00 A4 C3 76 C1 75 98 C4 29 88 A0 BA 32 7C 49 [23:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 D6 A8 47 00 95 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CC 25 01 00 F4 03 04 00 77 26 1D 67 B6 04 01 00 00 CB 53 A0 85 2F 85 FA 6F [23:44:56]CommunicateWithHost err = 0 [23:44:56]CheckOFDResponse [23:44:56]1017 (14) - 77093643461234 [23:44:56]1041 (16) - 0000000000871795 [23:44:56]1040 (4) - 75212 [23:44:56]1012 (4) - 26.10.2024 17:27 [23:44:56]1206 (1) - 0 [23:44:56]OFD Sender: Remove packet 75212 [23:44:56]ProducePacketName [23:44:56]name=ofd_packets/00075212 [23:44:56]NVStorageDeleteData [23:44:56]*** Cut start [23:44:56]*** Partial cut [23:44:56]*** CUTSNS_PIN = 1 [23:44:56]OFD Sender: No OFD packet to send [23:44:56]*** CUTSNS_PIN = 0 [23:44:56]*** Brake cut motor [23:44:57]Read from MH i2c: 01 [23:44:57]MH_I2C_Read... [23:44:57]*** Stop cut motor [23:44:57]*** Cut end [23:44:57]Read from MH i2c: 01 07 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: 01 07 00 A3 4E 00 00 00 00 00 FF 0F 06 [23:44:57]process_action close_receipt done [23:44:57]requested_data is exist [23:44:57]produce_requested_data [23:44:57]requested_item fm.sn is exist - process it [23:44:57]wFMCommunicate request_size=4 [23:44:57]MH_SAM_APDU [23:44:57]CAPDU: 80 11 00 00 [23:44:57]Write to MH i2c: E2 08 00 A4 4E 80 11 00 00 00 00 00 00 6C [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:57]Read from MH i2c: E2 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 17 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 17 00 A4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C4 [23:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [23:44:57]wFMCommunicate OK [23:44:57]requested_item fd.num is exist - process it [23:44:57]SAM_PROTO_GetFieldsCounters [23:44:57]wFMCommunicate request_size=4 [23:44:57]MH_SAM_APDU [23:44:57]CAPDU: 80 13 00 00 [23:44:57]Write to MH i2c: E2 08 00 A5 4E 80 13 00 00 00 00 00 00 6F [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:57]Read from MH i2c: E2 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 62 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 62 00 A5 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 EE [23:44:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 [23:44:57]wFMCommunicate OK [23:44:57]SAM_PROTO_GetFieldsCounters done [23:44:57]requested_item shift.num is exist - process it [23:44:57]requested_item shift.opened is exist - process it [23:44:57]req_shift_opened [23:44:57]FM_GetShiftState [23:44:57]SAM_PROTO_GetShiftState [23:44:57]wFMCommunicate request_size=4 [23:44:57]MH_SAM_APDU [23:44:57]CAPDU: 80 13 01 00 [23:44:57]Write to MH i2c: E2 08 00 A6 4E 80 13 01 00 00 00 00 00 71 [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:57]Read from MH i2c: E2 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 0E 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 0E 00 A6 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8C [23:44:57]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [23:44:57]wFMCommunicate OK [23:44:57]SAM_PROTO_GetShiftState done [23:44:57]FM_GetShiftState done [23:44:57]req_shift_opened done [23:44:57]requested_item shift.open_date is exist - process it [23:44:57]req_shift_open_date [23:44:57]req_shift_open_date done [23:44:57]produce_requested_data done [23:44:57]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [23:44:57]process_action_free close_receipt [23:44:57]json_value_free [23:44:57]json_value_free done [23:44:57]process_json_proto returns [23:44:57]Send response to host [23:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [23:44:57]free response buf [23:44:57]execute_script done [23:44:57]execute_script returns [23:44:57]free content buf [23:44:57]Sock 8.Close socket [23:44:57]Sock 8.Thread stoped [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [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:33]ConnectInit Can't connect to host [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:02]accept exits with 10 [00:15:02]New connection [00:15:02]New thread 3066924388 created [00:15:02]Thread 3066781028 joined [00:15:02]Waiting for new connection... [00:15:02] Sock 10.Parse request [00:15:02]Sock 10.Check first char [00:15:02]Sock 10.First char is OK [00:15:02]request: POST /json_proto HTTP/1.0 [00:15:02]Method: POST [00:15:02]URL: /json_proto [00:15:02]Method is POST - this is cgi request [00:15:02]url: /json_proto [00:15:02]query_string will be loaded in cgi processing [00:15:02]execute_cgi json_proto POST (null) [00:15:02]execute_cgi path=json_proto method=POST [00:15:02]POST find Content-Length [00:15:02]Host: 172.17.39.131:8080 [00:15:02]Content-Length: 215 [00:15:02]Content-Type: application/json [00:15:02] [00:15:02]POST finish read [00:15:02]Found Content-Length = 215 [00:15:02]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:15:02]execute_script... [00:15:02]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:15:02]POST & json_proto [00:15:02]process_json_proto [00:15:02]json parsed OK: [00:15:02]protocol is kg_v1.0 [00:15:02]action value=get_value [00:15:02]process_action get_value [00:15:02]cmd_get_value [00:15:02]process_action get_value done [00:15:02]requested_data is exist [00:15:02]produce_requested_data [00:15:02]requested_item kkm.sn is exist - process it [00:15:02]requested_item kkm.ver is exist - process it [00:15:02]requested_item fm.sn is exist - process it [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 11 00 00 [00:15:02]Write to MH i2c: E2 08 00 A7 4E 80 11 00 00 00 00 00 00 6F [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 17 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 17 00 A7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C7 [00:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:15:02]wFMCommunicate OK [00:15:02]requested_item fd.num is exist - process it [00:15:02]SAM_PROTO_GetFieldsCounters [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 13 00 00 [00:15:02]Write to MH i2c: E2 08 00 A8 4E 80 13 00 00 00 00 00 00 72 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 62 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 62 00 A8 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 F1 [00:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 [00:15:02]wFMCommunicate OK [00:15:02]SAM_PROTO_GetFieldsCounters done [00:15:02]requested_item shift.num is exist - process it [00:15:02]requested_item shift.opened is exist - process it [00:15:02]req_shift_opened [00:15:02]FM_GetShiftState [00:15:02]SAM_PROTO_GetShiftState [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 13 01 00 [00:15:02]Write to MH i2c: E2 08 00 A9 4E 80 13 01 00 00 00 00 00 74 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 0E 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 0E 00 A9 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 8F [00:15:02]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [00:15:02]wFMCommunicate OK [00:15:02]SAM_PROTO_GetShiftState done [00:15:02]FM_GetShiftState done [00:15:02]req_shift_opened done [00:15:02]requested_item shift.open_date is exist - process it [00:15:02]req_shift_open_date [00:15:02]req_shift_open_date done [00:15:02]produce_requested_data done [00:15:02]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [00:15:02]process_action_free get_value [00:15:02]json_value_free [00:15:02]json_value_free done [00:15:02]process_json_proto returns [00:15:02]Send response to host [00:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [00:15:02]free response buf [00:15:02]execute_script done [00:15:02]execute_script returns [00:15:02]free content buf [00:15:02]Sock 10.Close socket [00:15:02]Sock 10.Thread stoped [00:15:02]accept exits with 9 [00:15:02]New connection [00:15:02]New thread 3066781028 created [00:15:02]Thread 3066924388 joined [00:15:02]Waiting for new connection... [00:15:02] Sock 9.Parse request [00:15:02]Sock 9.Check first char [00:15:02]Sock 9.First char is OK [00:15:02]request: POST /json_proto HTTP/1.0 [00:15:02]Method: POST [00:15:02]URL: /json_proto [00:15:02]Method is POST - this is cgi request [00:15:02]url: /json_proto [00:15:02]query_string will be loaded in cgi processing [00:15:02]execute_cgi json_proto POST (null) [00:15:02]execute_cgi path=json_proto method=POST [00:15:02]POST find Content-Length [00:15:02]Host: 172.17.39.131:8080 [00:15:02]Content-Length: 331 [00:15:02]Content-Type: application/json [00:15:02] [00:15:02]POST finish read [00:15:02]Found Content-Length = 331 [00:15:02]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:15:02]execute_script... [00:15:02]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:15:02]POST & json_proto [00:15:02]process_json_proto [00:15:02]json parsed OK: [00:15:02]protocol is kg_v1.0 [00:15:02]action value=get_value [00:15:02]process_action get_value [00:15:02]cmd_get_value [00:15:02]process_action get_value done [00:15:02]requested_data is exist [00:15:02]produce_requested_data [00:15:02]requested_item fm.sale.total is exist - process it [00:15:02]SAM_PROTO_GetFMData [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 13 03 00 [00:15:02]Write to MH i2c: E2 08 00 AA 4E 80 13 03 00 00 00 00 00 77 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 AA 4E 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 34 [00:15:03]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 17 00 00 [00:15:03]Write to MH i2c: E2 08 00 AB 4E 80 17 00 00 00 00 00 00 79 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]OFD Sender: No OFD packet to send [00:15:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 AB 4E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:15:03]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 17 00 00 [00:15:03]Write to MH i2c: E2 08 00 AC 4E 80 17 00 00 00 00 00 00 7A [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]int [00:15:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:03]*** FLAG_PRN_PAP1 set [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 AC 4E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:15:03]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 17 00 00 [00:15:03]*** FLAG_PRN_PAP2 set [00:15:03]Write to MH i2c: 01 00 00 AD 4E FB [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: 01 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: 01 07 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: 01 07 00 AD 4E 00 03 00 00 00 FF 0F 13 [00:15:03]state=0 [00:15:03]No paper [00:15:03]Cover opened [00:15:03]Write to MH i2c: E2 08 00 AE 4E 80 17 00 00 00 00 00 00 7C [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 FD 00 AE 4E 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 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 90 00 01 [00:15:03]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 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 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 17 00 00 [00:15:03]Write to MH i2c: E2 08 00 AF 4E 80 17 00 00 00 00 00 00 7D [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 DE 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 DE 00 AF 4E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [00:15:04]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:04]wFMCommunicate OK [00:15:04]SAM_PROTO_GetFMData done [00:15:04]requested_item fm.sale_refund.total is exist - process it [00:15:04]requested_item fm.buy.total is exist - process it [00:15:04]requested_item shift.sale.total is exist - process it [00:15:04]SAM_PROTO_GetShiftData [00:15:04]wFMCommunicate request_size=4 [00:15:04]MH_SAM_APDU [00:15:04]CAPDU: 80 13 02 00 [00:15:04]Write to MH i2c: E2 08 00 B0 4E 80 13 02 00 00 00 00 00 7C [00:15:04]Write i2c OK [00:15:04]MH_I2C_Read... [00:15:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 B0 4E 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A9 [00:15:04]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:04]wFMCommunicate OK [00:15:04]wFMCommunicate request_size=4 [00:15:04]MH_SAM_APDU [00:15:04]CAPDU: 80 17 00 00 [00:15:04]Write to MH i2c: E2 08 00 B1 4E 80 17 00 00 00 00 00 00 7F [00:15:04]Write i2c OK [00:15:04]MH_I2C_Read... [00:15:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 B1 4E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:15:04]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:04]wFMCommunicate OK [00:15:04]wFMCommunicate request_size=4 [00:15:04]MH_SAM_APDU [00:15:04]CAPDU: 80 17 00 00 [00:15:04]Write to MH i2c: E2 08 00 B2 4E 80 17 00 00 00 00 00 00 80 [00:15:04]Write i2c OK [00:15:04]MH_I2C_Read... [00:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:05]Read from MH i2c: E2 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 B2 4E 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:15:05]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:05]wFMCommunicate OK [00:15:05]wFMCommunicate request_size=4 [00:15:05]MH_SAM_APDU [00:15:05]CAPDU: 80 17 00 00 [00:15:05]Write to MH i2c: E2 08 00 B3 4E 80 17 00 00 00 00 00 00 81 [00:15:05]Write i2c OK [00:15:05]MH_I2C_Read... [00:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:05]Read from MH i2c: E2 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 B3 4E 00 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 90 00 F4 [00:15:05]RAPDU: 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 90 00 [00:15:05]wFMCommunicate OK [00:15:05]wFMCommunicate request_size=4 [00:15:05]MH_SAM_APDU [00:15:05]CAPDU: 80 17 00 00 [00:15:05]Write to MH i2c: E2 08 00 B4 4E 80 17 00 00 00 00 00 00 82 [00:15:05]Write i2c OK [00:15:05]MH_I2C_Read... [00:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:05]Read from MH i2c: E2 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 CD 00 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 CD 00 B4 4E 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:15:05]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:05]wFMCommunicate OK [00:15:05]SAM_PROTO_GetShiftData done [00:15:05]requested_item shift.sale.total_cash is exist - process it [00:15:05]requested_item shift.sale_refund.total is exist - process it [00:15:05]requested_item shift.sale_refund.total_cash is exist - process it [00:15:05]requested_item shift.buy.total is exist - process it [00:15:05]requested_item shift.buy.total_cash is exist - process it [00:15:05]produce_requested_data done [00:15:05]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:05]process_action_free get_value [00:15:05]json_value_free [00:15:05]json_value_free done [00:15:05]process_json_proto returns [00:15:05]Send response to host [00:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:05]free response buf [00:15:05]execute_script done [00:15:05]execute_script returns [00:15:05]free content buf [00:15:05]Sock 9.Close socket [00:15:05]Sock 9.Thread stoped [00:15:05]accept exits with 10 [00:15:05]New connection [00:15:05]New thread 3066924388 created [00:15:05]Thread 3066781028 joined [00:15:05]Waiting for new connection... [00:15:05] Sock 10.Parse request [00:15:05]Sock 10.Check first char [00:15:05]Sock 10.First char is OK [00:15:05]request: POST /json_proto HTTP/1.0 [00:15:05]Method: POST [00:15:05]URL: /json_proto [00:15:05]Method is POST - this is cgi request [00:15:05]url: /json_proto [00:15:05]query_string will be loaded in cgi processing [00:15:05]execute_cgi json_proto POST (null) [00:15:05]execute_cgi path=json_proto method=POST [00:15:05]POST find Content-Length [00:15:05]Host: 172.17.39.131:8080 [00:15:05]Content-Length: 331 [00:15:05]Content-Type: application/json [00:15:05] [00:15:05]POST finish read [00:15:05]Found Content-Length = 331 [00:15:05]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:15:05]execute_script... [00:15:05]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:15:05]POST & json_proto [00:15:05]process_json_proto [00:15:05]json parsed OK: [00:15:05]protocol is kg_v1.0 [00:15:05]action value=get_value [00:15:05]process_action get_value [00:15:05]cmd_get_value [00:15:05]process_action get_value done [00:15:05]requested_data is exist [00:15:05]produce_requested_data [00:15:05]requested_item fm.sale.total is exist - process it [00:15:05]SAM_PROTO_GetFMData [00:15:05]wFMCommunicate request_size=4 [00:15:05]MH_SAM_APDU [00:15:05]CAPDU: 80 13 03 00 [00:15:05]Write to MH i2c: E2 08 00 B5 4E 80 13 03 00 00 00 00 00 82 [00:15:05]Write i2c OK [00:15:05]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 B5 4E 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 3F [00:15:06]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:06]wFMCommunicate OK [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 17 00 00 [00:15:06]Write to MH i2c: E2 08 00 B6 4E 80 17 00 00 00 00 00 00 84 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]int [00:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:06]*** FLAG_PRN_PAP1 reset [00:15:06]*** FLAG_PRN_PAP2 reset [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 B6 4E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:15:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write to MH i2c: 00 01 F6 00 03 00 01 B7 00 4E 06 05 F7 [00:15:07]03 00 00 6C Write i2c OK [00:15:07]04 MH_I2C_Read... [00:15:07]8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:15:07]wFMCommunicate OK [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 17 00 Read from MH i2c: 00 01 [00:15:07] [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 B7 4E 00 00 00 00 00 FF 0F 1A [00:15:07]Write to MH i2c: state=3 [00:15:07]E2 Cover closed [00:15:07]08 00 B8 4E 80 17 00 00 00 00 00 00 86 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 B8 4E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [00:15:07]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:07]wFMCommunicate OK [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 17 00 00 [00:15:07]Write to MH i2c: E2 08 00 B9 4E 80 17 00 00 00 00 00 00 87 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 B9 4E 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 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 90 00 0C [00:15:07]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 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 90 00 [00:15:07]wFMCommunicate OK [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 17 00 00 [00:15:07]Write to MH i2c: E2 08 00 BA 4E 80 17 00 00 00 00 00 00 88 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 DE 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 DE 00 BA 4E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:15:08]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetFMData done [00:15:08]requested_item fm.sale_refund.total is exist - process it [00:15:08]requested_item fm.buy.total is exist - process it [00:15:08]requested_item shift.sale.total is exist - process it [00:15:08]SAM_PROTO_GetShiftData [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 02 00 [00:15:08]Write to MH i2c: E2 08 00 BB 4E 80 13 02 00 00 00 00 00 87 [00:15:08]OFD Sender: No OFD packet to send [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 BB 4E 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B4 [00:15:08]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 BC 4E 80 17 00 00 00 00 00 00 8A [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 BC 4E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:15:09]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 BD 4E 80 17 00 00 00 00 00 00 8B [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 BD 4E 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [00:15:09]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 BE 4E 80 17 00 00 00 00 00 00 8C [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 BE 4E 00 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 90 00 FF [00:15:10]RAPDU: 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 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 BF 4E 80 17 00 00 00 00 00 00 8D [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 CD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 CD 00 BF 4E 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [00:15:10]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_GetShiftData done [00:15:10]requested_item shift.sale.total_cash is exist - process it [00:15:10]requested_item shift.sale_refund.total is exist - process it [00:15:10]requested_item shift.sale_refund.total_cash is exist - process it [00:15:10]requested_item shift.buy.total is exist - process it [00:15:10]requested_item shift.buy.total_cash is exist - process it [00:15:10]produce_requested_data done [00:15:10]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:10]process_action_free get_value [00:15:10]json_value_free [00:15:10]json_value_free done [00:15:10]process_json_proto returns [00:15:10]Send response to host [00:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:10]free response buf [00:15:10]execute_script done [00:15:10]execute_script returns [00:15:10]free content buf [00:15:10]Sock 10.Close socket [00:15:10]Sock 10.Thread stoped [00:15:10]accept exits with 9 [00:15:10]New connection [00:15:10]New thread 3066781028 created [00:15:10]Thread 3066924388 joined [00:15:10]Waiting for new connection... [00:15:10] Sock 9.Parse request [00:15:10]Sock 9.Check first char [00:15:10]Sock 9.First char is OK [00:15:10]request: POST /json_proto HTTP/1.0 [00:15:10]Method: POST [00:15:10]URL: /json_proto [00:15:10]Method is POST - this is cgi request [00:15:10]url: /json_proto [00:15:10]query_string will be loaded in cgi processing [00:15:10]execute_cgi json_proto POST (null) [00:15:10]execute_cgi path=json_proto method=POST [00:15:10]POST find Content-Length [00:15:10]Host: 172.17.39.131:8080 [00:15:10]Content-Length: 269 [00:15:10]Content-Type: application/json [00:15:10] [00:15:10]POST finish read [00:15:10]Found Content-Length = 269 [00:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u0441\u0443\u043F\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:10]execute_script... [00:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u0441\u0443\u043F\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:10]POST & json_proto [00:15:10]process_json_proto [00:15:10]json parsed OK: [00:15:10]protocol is kg_v1.0 [00:15:10]action value=x_report [00:15:10]process_action x_report [00:15:10]cmd_x_report [00:15:10]MH_GetDate [00:15:10]Write to MH i2c: F0 00 00 C0 4E FD [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 09 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 09 00 C0 4E 00 16 86 1D 67 86 57 24 65 8C [00:15:10]GetLastDocTimeStamp 1729986300 [00:15:10]current date 1729988118 [00:15:10]FM_GetShiftState [00:15:10]SAM_PROTO_GetShiftState [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 13 01 00 [00:15:10]Write to MH i2c: E2 08 00 C1 4E 80 13 01 00 00 00 00 00 8C [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 0E 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 0E 00 C1 4E 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 A7 [00:15:10]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [00:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_GetShiftState done [00:15:10]FM_GetShiftState done [00:15:10]KKMCreateXReportDocument [00:15:10]Load OK [00:15:10]Malloc new data [00:15:10]MH_GetDate [00:15:10]Write to MH i2c: F0 00 00 C2 4E FF [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 09 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: F0 09 00 C2 4E 00 16 86 1D 67 86 57 24 65 8E [00:15:10]Malloc new data [00:15:10]Malloc new data [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 11 00 00 [00:15:10]Write to MH i2c: E2 08 00 C3 4E 80 11 00 00 00 00 00 00 8B [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 17 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 17 00 C3 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E3 [00:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_GetFieldsCounters [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 13 00 00 [00:15:11]Write to MH i2c: E2 08 00 C4 4E 80 13 00 00 00 00 00 00 8E [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 62 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 62 00 C4 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 0D [00:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 [00:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_GetFieldsCounters done [00:15:11]Malloc new data [00:15:11]Malloc new data [00:15:11]Malloc new data [00:15:11]KKMCreateXReportDocument OK [00:15:11]KKMSetXReportData OK [00:15:11]KKMPrepareXReportFMData [00:15:11]SAM_PROTO_GetShiftData [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 13 02 00 [00:15:11]Write to MH i2c: E2 08 00 C5 4E 80 13 02 00 00 00 00 00 91 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 C5 4E 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BE [00:15:11]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 17 00 00 [00:15:11]Write to MH i2c: E2 08 00 C6 4E 80 17 00 00 00 00 00 00 94 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 C6 4E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:15:12]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 17 00 00 [00:15:12]Write to MH i2c: E2 08 00 C7 4E 80 17 00 00 00 00 00 00 95 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 C7 4E 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [00:15:12]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:13]wFMCommunicate OK [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 17 00 00 [00:15:13]Write to MH i2c: E2 08 00 C8 4E 80 17 00 00 00 00 00 00 96 [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 FD 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 FD 00 C8 4E 00 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 OFD Sender: No OFD packet to send [00:15:13]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 09 [00:15:13]RAPDU: 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 90 00 [00:15:13]wFMCommunicate OK [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 17 00 00 [00:15:13]Write to MH i2c: E2 08 00 C9 4E 80 17 00 00 00 00 00 00 97 [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 CD 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 CD 00 C9 4E 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [00:15:14]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:14]wFMCommunicate OK [00:15:14]SAM_PROTO_GetShiftData done [00:15:14]1194 (1196) - счетчики итогов смены [00:15:14] 1134 (4) - 204 - количество чеков со всеми признаками расчетов [00:15:14] 1129 (157) - счетчики операций «приход» [00:15:14] 1135 (4) - 204 - количество чеков по признаку расчетов [00:15:14] 1201 (4) - 194545.33 - общая итоговая сумма в чеках [00:15:14] 1136 (3) - 120888.00 - итоговая сумма в чеках наличными [00:15:14] 1138 (3) - 73657.33 - итоговая сумма в чеках безналичными [00:15:14] 1024 (123) - суммы налогов [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 0% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1006 (12) - суммы НДС [00:15:14] 1010 (1) - 12% - код ставки НДС [00:15:14] 1011 (3) - 20664.95 - сумма НДС по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (12) - суммы НСП [00:15:14] 1014 (1) - 1% - код ставки НСП [00:15:14] 1015 (3) - 1722.04 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 2% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 3% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 5% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1130 (141) - счетчики операций «возврат прихода» [00:15:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:14] 1024 (117) - суммы налогов [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 0% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 12% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 2% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 3% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 5% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1131 (141) - счетчики операций «расход» [00:15:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:14] 1024 (117) - суммы налогов [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 0% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 12% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 2% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 3% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 5% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1132 (141) - счетчики операций «возврат расхода» [00:15:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:14] 1024 (117) - суммы налогов [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 0% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1006 (9) - суммы НДС [00:15:14] 1010 (1) - 12% - код ставки НДС [00:15:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 2% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 3% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 5% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 0,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1007 (9) - суммы НСП [00:15:14] 1014 (1) - 1,50% - код ставки НСП [00:15:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:14] 1133 (588) - - счетчики коррекции - не используются [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1194 (04AA) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1134 (046E) [00:15:14]Malloc new data [00:15:14]Processing tag 1129 (0469) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1135 (046F) [00:15:14]Malloc new data [00:15:14]Processing tag 1201 (04B1) [00:15:14]Malloc new data [00:15:14]Processing tag 1136 (0470) [00:15:14]Malloc new data [00:15:14]Processing tag 1138 (0472) [00:15:14]Malloc new data [00:15:14]Processing tag 1024 (0400) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1006 (03EE) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1010 (03F2) [00:15:14]Malloc new data [00:15:14]Processing tag 1011 (03F3) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1006 (03EE) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1010 (03F2) [00:15:14]Malloc new data [00:15:14]Processing tag 1011 (03F3) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]SetTLVBufToDocument err=0 [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1130 (046A) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1135 (046F) [00:15:14]Malloc new data [00:15:14]Processing tag 1201 (04B1) [00:15:14]Malloc new data [00:15:14]Processing tag 1136 (0470) [00:15:14]Malloc new data [00:15:14]Processing tag 1138 (0472) [00:15:14]Malloc new data [00:15:14]Processing tag 1024 (0400) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1006 (03EE) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1010 (03F2) [00:15:14]Malloc new data [00:15:14]Processing tag 1011 (03F3) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1006 (03EE) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1010 (03F2) [00:15:14]Malloc new data [00:15:14]Processing tag 1011 (03F3) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:14]Processing tag 1014 (03F6) [00:15:14]Malloc new data [00:15:14]Processing tag 1015 (03F7) [00:15:14]Malloc new data [00:15:14]SetTLVBufToDocument err=0 [00:15:14]Processing tag 1007 (03EF) [00:15:14]Load OK [00:15:14]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1131 (046B) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1135 (046F) [00:15:15]Malloc new data [00:15:15]Processing tag 1201 (04B1) [00:15:15]Malloc new data [00:15:15]Processing tag 1136 (0470) [00:15:15]Malloc new data [00:15:15]Processing tag 1138 (0472) [00:15:15]Malloc new data [00:15:15]Processing tag 1024 (0400) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1006 (03EE) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1010 (03F2) [00:15:15]Malloc new data [00:15:15]Processing tag 1011 (03F3) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1006 (03EE) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1010 (03F2) [00:15:15]Malloc new data [00:15:15]Processing tag 1011 (03F3) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1132 (046C) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1135 (046F) [00:15:15]Malloc new data [00:15:15]Processing tag 1201 (04B1) [00:15:15]Malloc new data [00:15:15]Processing tag 1136 (0470) [00:15:15]Malloc new data [00:15:15]Processing tag 1138 (0472) [00:15:15]Malloc new data [00:15:15]Processing tag 1024 (0400) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1006 (03EE) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1010 (03F2) [00:15:15]Malloc new data [00:15:15]Processing tag 1011 (03F3) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1006 (03EE) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1010 (03F2) [00:15:15]Malloc new data [00:15:15]Processing tag 1011 (03F3) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1007 (03EF) [00:15:15]Load OK [00:15:15]SetTLVBufToDocument [00:15:15]Processing tag 1014 (03F6) [00:15:15]Malloc new data [00:15:15]Processing tag 1015 (03F7) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Processing tag 1133 (046D) [00:15:15]Malloc new data [00:15:15]SetTLVBufToDocument err=0 [00:15:15]SetTLVBufToDocument err=0 [00:15:15]Malloc new data [00:15:15]SAM_PROTO_GetFMData [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 13 03 00 [00:15:15]Write to MH i2c: E2 08 00 CA 4E 80 13 03 00 00 00 00 00 97 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 FD 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 FD 00 CA 4E 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 54 [00:15:16]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 17 00 00 [00:15:16]Write to MH i2c: E2 08 00 CB 4E 80 17 00 00 00 00 00 00 99 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 CB 4E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [00:15:16]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 17 00 00 [00:15:16]Write to MH i2c: E2 08 00 CC 4E 80 17 00 00 00 00 00 00 9A [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 CC 4E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:15:17]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 17 00 00 [00:15:17]Write to MH i2c: E2 08 00 CD 4E 80 17 00 00 00 00 00 00 9B [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 CD 4E 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 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 90 00 20 [00:15:17]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 CE 4E 80 17 00 00 00 00 00 00 9C [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 DE 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 DE 00 CE 4E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [00:15:18]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 OFD Sender: No OFD packet to send [00:15:18]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:18]wFMCommunicate OK [00:15:18]SAM_PROTO_GetFMData done [00:15:18]FM_GetFMData:85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 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 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:19]oper:6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:15:19]total:2B F2 3E A9 01 [00:15:19]Malloc new data [00:15:19]oper:6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 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 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:19]total:AC FC 51 [00:15:19]Malloc new data [00:15:19]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:15:20]total: [00:15:20]Malloc new data [00:15:20]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:15:20]total: [00:15:20]Malloc new data [00:15:20]KKMPrepareXReportFMData err=0 [00:15:20]Х отчет ИНН: 02508201610067 Кассир: Усупбекова Ч. 27.10.2024 00:15 Смена: 522 РНМ: 0000000000091691 ЗНМ: 0300000089 СНО: Общий режим Всего чеков: 204 ИТОГИ ПРИХОД Чеков: 204 Общий итог: 194545.33 Итого наличными: 120888.00 Итого безнал.: 73657.33 НДС 0% : 0.00 НДС 12% : 20664.95 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1722.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Общий итог: 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 Нал. в кассе: 120888.00 НС Приход: 71344420.27 НС Возвр.Прихода: 53731.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871795 [00:15:20]StoreToDocumentArchive [00:15:20]MH_GetDate [00:15:20]Write to MH i2c: F0 00 00 CF 4E 0C [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 09 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 09 00 CF 4E 00 1F 86 1D 67 86 57 24 65 A4 [00:15:20]shift 522 fd 1729988127 [00:15:20]Create dir for shift 0522 [00:15:20]save to /storage/0522/doc_1729988127 [00:15:20]save last doc name /storage/0522/doc_1729988127 to /storage/kkm_last_doc_name [00:15:20]save OK [00:15:20]Clear old archive folders... [00:15:20]Remove dir /storage/0512 [00:15:20]opendir ok [00:15:20]file . [00:15:20]file .. [00:15:20]file doc_00075008 [00:15:20]remove file /storage/0512/doc_00075008 [00:15:20]file doc_00075009 [00:15:20]remove file /storage/0512/doc_00075009 [00:15:20]file doc_00075010 [00:15:20]remove file /storage/0512/doc_00075010 [00:15:20]file doc_00075011 [00:15:20]remove file /storage/0512/doc_00075011 [00:15:20]file doc_00075012 [00:15:20]remove file /storage/0512/doc_00075012 [00:15:20]file doc_00075013 [00:15:20]remove file /storage/0512/doc_00075013 [00:15:20]file doc_00075014 [00:15:20]remove file /storage/0512/doc_00075014 [00:15:20]file doc_00075015 [00:15:20]remove file /storage/0512/doc_00075015 [00:15:20]file doc_00075016 [00:15:20]remove file /storage/0512/doc_00075016 [00:15:20]file doc_00075017 [00:15:20]remove file /storage/0512/doc_00075017 [00:15:20]file doc_00075018 [00:15:20]remove file /storage/0512/doc_00075018 [00:15:20]file doc_00075019 [00:15:20]remove file /storage/0512/doc_00075019 [00:15:20]file doc_00075020 [00:15:20]remove file /storage/0512/doc_00075020 [00:15:20]file doc_00075021 [00:15:20]remove file /storage/0512/doc_00075021 [00:15:20]file doc_00075022 [00:15:20]remove file /storage/0512/doc_00075022 [00:15:20]file doc_00075023 [00:15:20]remove file /storage/0512/doc_00075023 [00:15:20]file doc_00075024 [00:15:20]remove file /storage/0512/doc_00075024 [00:15:20]file doc_00075025 [00:15:20]remove file /storage/0512/doc_00075025 [00:15:20]file doc_00075026 [00:15:20]remove file /storage/0512/doc_00075026 [00:15:20]file doc_00075027 [00:15:20]remove file /storage/0512/doc_00075027 [00:15:20]file doc_00075028 [00:15:20]remove file /storage/0512/doc_00075028 [00:15:20]file doc_00075029 [00:15:20]remove file /storage/0512/doc_00075029 [00:15:20]file doc_00075030 [00:15:20]remove file /storage/0512/doc_00075030 [00:15:20]file doc_00075031 [00:15:20]remove file /storage/0512/doc_00075031 [00:15:20]file doc_00075032 [00:15:20]remove file /storage/0512/doc_00075032 [00:15:20]file doc_00075033 [00:15:20]remove file /storage/0512/doc_00075033 [00:15:20]file doc_00075034 [00:15:20]remove file /storage/0512/doc_00075034 [00:15:20]file doc_00075035 [00:15:20]remove file /storage/0512/doc_00075035 [00:15:20]file doc_00075036 [00:15:20]remove file /storage/0512/doc_00075036 [00:15:20]file doc_00075037 [00:15:20]remove file /storage/0512/doc_00075037 [00:15:20]file doc_00075038 [00:15:20]remove file /storage/0512/doc_00075038 [00:15:20]file doc_00075039 [00:15:20]remove file /storage/0512/doc_00075039 [00:15:20]file doc_00075040 [00:15:20]remove file /storage/0512/doc_00075040 [00:15:20]file doc_00075041 [00:15:20]remove file /storage/0512/doc_00075041 [00:15:20]file doc_00075042 [00:15:20]remove file /storage/0512/doc_00075042 [00:15:20]file doc_00075043 [00:15:20]remove file /storage/0512/doc_00075043 [00:15:20]file doc_00075044 [00:15:20]remove file /storage/0512/doc_00075044 [00:15:20]file doc_00075045 [00:15:20]remove file /storage/0512/doc_00075045 [00:15:20]file doc_00075046 [00:15:20]remove file /storage/0512/doc_00075046 [00:15:20]file doc_00075047 [00:15:20]remove file /storage/0512/doc_00075047 [00:15:20]file doc_00075048 [00:15:20]remove file /storage/0512/doc_00075048 [00:15:20]file doc_00075049 [00:15:20]remove file /storage/0512/doc_00075049 [00:15:20]file doc_00075050 [00:15:20]remove file /storage/0512/doc_00075050 [00:15:20]file doc_00075051 [00:15:20]remove file /storage/0512/doc_00075051 [00:15:20]file doc_00075052 [00:15:20]remove file /storage/0512/doc_00075052 [00:15:20]file doc_00075053 [00:15:20]remove file /storage/0512/doc_00075053 [00:15:20]file doc_00075054 [00:15:20]remove file /storage/0512/doc_00075054 [00:15:20]file doc_00075055 [00:15:20]remove file /storage/0512/doc_00075055 [00:15:20]file doc_00075056 [00:15:20]remove file /storage/0512/doc_00075056 [00:15:20]file doc_00075057 [00:15:20]remove file /storage/0512/doc_00075057 [00:15:20]file doc_00075058 [00:15:20]remove file /storage/0512/doc_00075058 [00:15:20]file doc_00075059 [00:15:20]remove file /storage/0512/doc_00075059 [00:15:20]file doc_00075060 [00:15:20]remove file /storage/0512/doc_00075060 [00:15:20]file doc_00075061 [00:15:20]remove file /storage/0512/doc_00075061 [00:15:20]file doc_00075062 [00:15:20]remove file /storage/0512/doc_00075062 [00:15:20]file doc_00075063 [00:15:20]remove file /storage/0512/doc_00075063 [00:15:20]file doc_00075064 [00:15:20]remove file /storage/0512/doc_00075064 [00:15:20]file doc_00075065 [00:15:20]remove file /storage/0512/doc_00075065 [00:15:20]file doc_00075066 [00:15:20]remove file /storage/0512/doc_00075066 [00:15:20]file doc_00075067 [00:15:20]remove file /storage/0512/doc_00075067 [00:15:20]file doc_00075068 [00:15:20]remove file /storage/0512/doc_00075068 [00:15:20]file doc_00075069 [00:15:20]remove file /storage/0512/doc_00075069 [00:15:20]file doc_00075070 [00:15:20]remove file /storage/0512/doc_00075070 [00:15:20]file doc_00075071 [00:15:20]remove file /storage/0512/doc_00075071 [00:15:20]file doc_00075072 [00:15:20]remove file /storage/0512/doc_00075072 [00:15:20]file doc_00075073 [00:15:20]remove file /storage/0512/doc_00075073 [00:15:20]file doc_00075074 [00:15:20]remove file /storage/0512/doc_00075074 [00:15:20]file doc_00075075 [00:15:20]remove file /storage/0512/doc_00075075 [00:15:20]file doc_00075076 [00:15:20]remove file /storage/0512/doc_00075076 [00:15:20]file doc_00075077 [00:15:20]remove file /storage/0512/doc_00075077 [00:15:20]file doc_00075078 [00:15:20]remove file /storage/0512/doc_00075078 [00:15:20]file doc_00075079 [00:15:20]remove file /storage/0512/doc_00075079 [00:15:20]file doc_00075080 [00:15:20]remove file /storage/0512/doc_00075080 [00:15:20]file doc_00075081 [00:15:20]remove file /storage/0512/doc_00075081 [00:15:20]file doc_00075082 [00:15:20]remove file /storage/0512/doc_00075082 [00:15:20]file doc_00075083 [00:15:20]remove file /storage/0512/doc_00075083 [00:15:20]file doc_00075084 [00:15:20]remove file /storage/0512/doc_00075084 [00:15:20]file doc_00075085 [00:15:20]remove file /storage/0512/doc_00075085 [00:15:20]file doc_00075086 [00:15:20]remove file /storage/0512/doc_00075086 [00:15:20]file doc_00075087 [00:15:20]remove file /storage/0512/doc_00075087 [00:15:20]file doc_00075088 [00:15:20]remove file /storage/0512/doc_00075088 [00:15:20]file doc_00075089 [00:15:20]remove file /storage/0512/doc_00075089 [00:15:20]file doc_00075090 [00:15:20]remove file /storage/0512/doc_00075090 [00:15:20]file doc_00075091 [00:15:20]remove file /storage/0512/doc_00075091 [00:15:20]file doc_00075092 [00:15:20]remove file /storage/0512/doc_00075092 [00:15:20]file doc_00075093 [00:15:20]remove file /storage/0512/doc_00075093 [00:15:20]file doc_00075094 [00:15:20]remove file /storage/0512/doc_00075094 [00:15:20]file doc_00075095 [00:15:20]remove file /storage/0512/doc_00075095 [00:15:20]file doc_00075096 [00:15:20]remove file /storage/0512/doc_00075096 [00:15:20]file doc_00075097 [00:15:20]remove file /storage/0512/doc_00075097 [00:15:20]file doc_00075098 [00:15:20]remove file /storage/0512/doc_00075098 [00:15:20]file doc_00075099 [00:15:20]remove file /storage/0512/doc_00075099 [00:15:20]file doc_00075100 [00:15:20]remove file /storage/0512/doc_00075100 [00:15:20]file doc_00075101 [00:15:20]remove file /storage/0512/doc_00075101 [00:15:20]file doc_00075102 [00:15:20]remove file /storage/0512/doc_00075102 [00:15:20]file doc_00075103 [00:15:20]remove file /storage/0512/doc_00075103 [00:15:20]file doc_00075104 [00:15:20]remove file /storage/0512/doc_00075104 [00:15:20]file doc_00075105 [00:15:20]remove file /storage/0512/doc_00075105 [00:15:20]file doc_00075106 [00:15:20]remove file /storage/0512/doc_00075106 [00:15:20]file doc_00075107 [00:15:20]remove file /storage/0512/doc_00075107 [00:15:20]file doc_00075108 [00:15:20]remove file /storage/0512/doc_00075108 [00:15:20]file doc_00075109 [00:15:20]remove file /storage/0512/doc_00075109 [00:15:20]file doc_00075110 [00:15:20]remove file /storage/0512/doc_00075110 [00:15:20]file doc_00075111 [00:15:20]remove file /storage/0512/doc_00075111 [00:15:20]file doc_00075112 [00:15:20]remove file /storage/0512/doc_00075112 [00:15:20]file doc_00075113 [00:15:20]remove file /storage/0512/doc_00075113 [00:15:20]file doc_00075114 [00:15:20]remove file /storage/0512/doc_00075114 [00:15:20]file doc_00075115 [00:15:20]remove file /storage/0512/doc_00075115 [00:15:20]file doc_00075116 [00:15:20]remove file /storage/0512/doc_00075116 [00:15:20]file doc_00075117 [00:15:20]remove file /storage/0512/doc_00075117 [00:15:20]file doc_00075118 [00:15:20]remove file /storage/0512/doc_00075118 [00:15:20]file doc_00075119 [00:15:20]remove file /storage/0512/doc_00075119 [00:15:20]file doc_00075120 [00:15:20]remove file /storage/0512/doc_00075120 [00:15:20]file doc_00075121 [00:15:20]remove file /storage/0512/doc_00075121 [00:15:20]file doc_00075122 [00:15:20]remove file /storage/0512/doc_00075122 [00:15:20]file doc_00075123 [00:15:20]remove file /storage/0512/doc_00075123 [00:15:20]file doc_00075124 [00:15:20]remove file /storage/0512/doc_00075124 [00:15:20]file doc_00075125 [00:15:20]remove file /storage/0512/doc_00075125 [00:15:20]file doc_00075126 [00:15:20]remove file /storage/0512/doc_00075126 [00:15:20]file doc_00075127 [00:15:20]remove file /storage/0512/doc_00075127 [00:15:20]file doc_00075128 [00:15:20]remove file /storage/0512/doc_00075128 [00:15:20]file doc_00075129 [00:15:20]remove file /storage/0512/doc_00075129 [00:15:20]file doc_00075130 [00:15:20]remove file /storage/0512/doc_00075130 [00:15:20]file doc_00075131 [00:15:20]remove file /storage/0512/doc_00075131 [00:15:20]file doc_00075132 [00:15:20]remove file /storage/0512/doc_00075132 [00:15:20]file doc_00075133 [00:15:20]remove file /storage/0512/doc_00075133 [00:15:20]file doc_00075134 [00:15:20]remove file /storage/0512/doc_00075134 [00:15:20]file doc_00075135 [00:15:20]remove file /storage/0512/doc_00075135 [00:15:20]file doc_00075136 [00:15:20]remove file /storage/0512/doc_00075136 [00:15:20]file doc_00075137 [00:15:20]remove file /storage/0512/doc_00075137 [00:15:20]file doc_00075138 [00:15:20]remove file /storage/0512/doc_00075138 [00:15:20]file doc_00075139 [00:15:20]remove file /storage/0512/doc_00075139 [00:15:20]file doc_00075140 [00:15:20]remove file /storage/0512/doc_00075140 [00:15:20]file doc_00075141 [00:15:20]remove file /storage/0512/doc_00075141 [00:15:20]file doc_00075142 [00:15:20]remove file /storage/0512/doc_00075142 [00:15:20]file doc_00075143 [00:15:20]remove file /storage/0512/doc_00075143 [00:15:20]file doc_00075144 [00:15:20]remove file /storage/0512/doc_00075144 [00:15:20]file doc_00075145 [00:15:20]remove file /storage/0512/doc_00075145 [00:15:20]file doc_00075146 [00:15:20]remove file /storage/0512/doc_00075146 [00:15:20]file doc_00075147 [00:15:20]remove file /storage/0512/doc_00075147 [00:15:20]file doc_00075148 [00:15:20]remove file /storage/0512/doc_00075148 [00:15:20]file doc_00075149 [00:15:20]remove file /storage/0512/doc_00075149 [00:15:20]file doc_00075150 [00:15:20]remove file /storage/0512/doc_00075150 [00:15:20]file doc_00075151 [00:15:20]remove file /storage/0512/doc_00075151 [00:15:20]file doc_00075152 [00:15:20]remove file /storage/0512/doc_00075152 [00:15:20]file doc_00075153 [00:15:20]remove file /storage/0512/doc_00075153 [00:15:20]file doc_00075154 [00:15:20]remove file /storage/0512/doc_00075154 [00:15:20]file doc_00075155 [00:15:20]remove file /storage/0512/doc_00075155 [00:15:20]file doc_00075156 [00:15:20]remove file /storage/0512/doc_00075156 [00:15:20]file doc_00075157 [00:15:20]remove file /storage/0512/doc_00075157 [00:15:20]file doc_00075158 [00:15:20]remove file /storage/0512/doc_00075158 [00:15:20]file doc_00075159 [00:15:20]remove file /storage/0512/doc_00075159 [00:15:20]file doc_00075160 [00:15:20]remove file /storage/0512/doc_00075160 [00:15:20]file doc_00075161 [00:15:20]remove file /storage/0512/doc_00075161 [00:15:20]file doc_00075162 [00:15:20]remove file /storage/0512/doc_00075162 [00:15:20]file doc_00075163 [00:15:20]remove file /storage/0512/doc_00075163 [00:15:20]file doc_00075164 [00:15:20]remove file /storage/0512/doc_00075164 [00:15:20]file doc_00075165 [00:15:20]remove file /storage/0512/doc_00075165 [00:15:20]file doc_00075166 [00:15:20]remove file /storage/0512/doc_00075166 [00:15:20]file doc_00075167 [00:15:20]remove file /storage/0512/doc_00075167 [00:15:20]file doc_00075168 [00:15:20]remove file /storage/0512/doc_00075168 [00:15:20]file doc_00075169 [00:15:20]remove file /storage/0512/doc_00075169 [00:15:20]file doc_00075170 [00:15:20]remove file /storage/0512/doc_00075170 [00:15:20]file doc_00075171 [00:15:20]remove file /storage/0512/doc_00075171 [00:15:20]file doc_00075172 [00:15:20]remove file /storage/0512/doc_00075172 [00:15:20]file doc_00075173 [00:15:20]remove file /storage/0512/doc_00075173 [00:15:20]file doc_00075174 [00:15:20]remove file /storage/0512/doc_00075174 [00:15:20]file doc_00075175 [00:15:20]remove file /storage/0512/doc_00075175 [00:15:20]file doc_00075176 [00:15:20]remove file /storage/0512/doc_00075176 [00:15:20]file doc_00075177 [00:15:20]remove file /storage/0512/doc_00075177 [00:15:20]file doc_00075178 [00:15:20]remove file /storage/0512/doc_00075178 [00:15:20]file doc_00075179 [00:15:20]remove file /storage/0512/doc_00075179 [00:15:20]file doc_00075180 [00:15:20]remove file /storage/0512/doc_00075180 [00:15:20]file doc_00075181 [00:15:20]remove file /storage/0512/doc_00075181 [00:15:20]file doc_00075182 [00:15:20]remove file /storage/0512/doc_00075182 [00:15:20]file doc_00075183 [00:15:20]remove file /storage/0512/doc_00075183 [00:15:20]file doc_00075184 [00:15:20]remove file /storage/0512/doc_00075184 [00:15:20]file doc_00075185 [00:15:20]remove file /storage/0512/doc_00075185 [00:15:20]file doc_00075186 [00:15:20]remove file /storage/0512/doc_00075186 [00:15:20]file doc_00075187 [00:15:20]remove file /storage/0512/doc_00075187 [00:15:20]file doc_00075188 [00:15:20]remove file /storage/0512/doc_00075188 [00:15:21]file doc_00075189 [00:15:21]remove file /storage/0512/doc_00075189 [00:15:21]file doc_00075190 [00:15:21]remove file /storage/0512/doc_00075190 [00:15:21]file doc_00075191 [00:15:21]remove file /storage/0512/doc_00075191 [00:15:21]file doc_00075192 [00:15:21]remove file /storage/0512/doc_00075192 [00:15:21]file doc_00075193 [00:15:21]remove file /storage/0512/doc_00075193 [00:15:21]file doc_00075194 [00:15:21]remove file /storage/0512/doc_00075194 [00:15:21]file doc_00075195 [00:15:21]remove file /storage/0512/doc_00075195 [00:15:21]file doc_00075196 [00:15:21]remove file /storage/0512/doc_00075196 [00:15:21]file doc_00075197 [00:15:21]remove file /storage/0512/doc_00075197 [00:15:21]file doc_00075198 [00:15:21]remove file /storage/0512/doc_00075198 [00:15:21]file doc_00075199 [00:15:21]remove file /storage/0512/doc_00075199 [00:15:21]file doc_00075200 [00:15:21]remove file /storage/0512/doc_00075200 [00:15:21]file doc_00075201 [00:15:21]remove file /storage/0512/doc_00075201 [00:15:21]file doc_00075202 [00:15:21]remove file /storage/0512/doc_00075202 [00:15:21]file doc_00075203 [00:15:21]remove file /storage/0512/doc_00075203 [00:15:21]file doc_00075204 [00:15:21]remove file /storage/0512/doc_00075204 [00:15:21]file doc_00075205 [00:15:21]remove file /storage/0512/doc_00075205 [00:15:21]file doc_00075206 [00:15:21]remove file /storage/0512/doc_00075206 [00:15:21]file doc_00075207 [00:15:21]remove file /storage/0512/doc_00075207 [00:15:21]file doc_00075208 [00:15:21]remove file /storage/0512/doc_00075208 [00:15:21]file doc_00075209 [00:15:21]remove file /storage/0512/doc_00075209 [00:15:21]file doc_00075210 [00:15:21]remove file /storage/0512/doc_00075210 [00:15:21]file doc_00075211 [00:15:21]remove file /storage/0512/doc_00075211 [00:15:21]file doc_00075212 [00:15:21]remove file /storage/0512/doc_00075212 [00:15:21]remove dir /storage/0512 [00:15:21]NVStorageSaveData kkm_last_timestamp [00:15:21]File name is /storage/kkm_last_timestamp [00:15:21]Write 4 bytes [00:15:21]NVStorageSaveData done [00:15:21]ExternCall_PrintAddStr [00:15:21]wPrintStart [00:15:21]Write to MH i2c: 01 00 00 D0 4E 1E [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 07 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 07 00 D0 4E 00 00 00 00 00 FF 0F 33 [00:15:21]RasterBufferAndPrint [00:15:21]line Х отчет [00:15:21]line ИНН: 02508201610067 [00:15:21]line Кассир: Усупбекова Ч. [00:15:21]line 27.10.2024 00:15 [00:15:21]line Смена: 522 [00:15:21]line РНМ: 0000000000091691 [00:15:21]line ЗНМ: 0300000089 [00:15:21]line СНО: Общий режим [00:15:21]line Всего чеков: 204 [00:15:21]line ИТОГИ ПРИХОД [00:15:21]line Чеков: 204 [00:15:21]line Общий итог: 194545.33 [00:15:21]line Итого наличными: 120888.00 [00:15:21]line Итого безнал.: 73657.33 [00:15:21]line НДС 0% : 0.00 [00:15:21]line НДС 12% : 20664.95 [00:15:21]line НСП 0% : 0.00 [00:15:21]line НСП 1,50% : 0.00 [00:15:21]line НСП 0,50% : 0.00 [00:15:21]line НСП 5% : 0.00 [00:15:21]line НСП 3% : 0.00 [00:15:21]line НСП 2% : 0.00 [00:15:21]line НСП 1% : 1722.04 [00:15:21]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:15:21]line Чеков: 0 [00:15:21]line Общий итог: 0.00 [00:15:21]line Итого наличными: 0.00 [00:15:21]line Итого безнал.: 0.00 [00:15:21]line НДС 0% : 0.00 [00:15:21]line НДС 12% : 0.00 [00:15:21]line НСП 0% : 0.00 [00:15:21]line НСП 1,50% : 0.00 [00:15:21]line НСП 0,50% : 0.00 [00:15:21]line НСП 5% : 0.00 [00:15:21]line НСП 3% : 0.00 [00:15:21]line НСП 2% : 0.00 [00:15:21]line НСП 1% : 0.00 [00:15:21]line ИТОГИ РАСХОД [00:15:21]line Чеков: 0 [00:15:21]line Общий итог: 0.00 [00:15:21]line Итого наличными: 0.00 [00:15:21]line Итого безнал.: 0.00 [00:15:21]line НДС 0% : 0.00 [00:15:21]line НДС 12% : 0.00 [00:15:21]line НСП 0% : 0.00 [00:15:21]line НСП 1,50% : 0.00 [00:15:21]line НСП 0,50% : 0.00 [00:15:21]line НСП 5% : 0.00 [00:15:21]line НСП 3% : 0.00 [00:15:21]line НСП 2% : 0.00 [00:15:21]line НСП 1% : 0.00 [00:15:21]line ИТОГИ ВОЗВРАТ РАСХОДА [00:15:21]line Чеков: 0 [00:15:21]line Общий итог: 0.00 [00:15:21]line Итого наличными: 0.00 [00:15:21]line Итого безнал.: 0.00 [00:15:21]line НДС 0% : 0.00 [00:15:21]line НДС 12% : 0.00 [00:15:21]line НСП 0% : 0.00 [00:15:21]line НСП 1,50% : 0.00 [00:15:21]line НСП 0,50% : 0.00 [00:15:21]line НСП 5% : 0.00 [00:15:21]line НСП 3% : 0.00 [00:15:21]line НСП 2% : 0.00 [00:15:21]line НСП 1% : 0.00 [00:15:21]line Сумма внесений: 0.00 [00:15:21]line Сумма выплат: 0.00 [00:15:21]line Нал. в кассе: 120888.00 [00:15:21]line НС Приход: 71344420.27 [00:15:21]line НС Возвр.Прихода: 53731.00 [00:15:21]line НС Расход: 0.00 [00:15:21]line НС Возвр.Расхода: 0.00 [00:15:21]line ФМ: 0000000000871795 [00:15:21]written 0, free lines is 4095 [00:15:21]Write to MH i2c: 01 00 00 1B 4F 6A [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 07 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: 01 07 00 1B 4F 00 00 00 00 00 6F 0A EA [00:15:21]RasterBufferAndPrint [00:15:21]line [00:15:21]line [00:15:21]line [00:15:21]line [00:15:21]line [00:15:21]written 0, free lines is 2712 [00:15:21]MH_Cut [00:15:21]Write to MH i2c: D1 01 00 22 4F 01 43 [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: D1 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: D1 01 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: D1 01 00 22 4F 00 42 [00:15:21]Write to MH i2c: 01 00 00 23 4F 72 [00:15:21]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:23]*** Cut start [00:15:23]*** Partial cut [00:15:23]*** CUTSNS_PIN = 1 [00:15:23]*** CUTSNS_PIN = 0 [00:15:23]*** Brake cut motor [00:15:23]OFD Sender: No OFD packet to send [00:15:23]Read from MH i2c: 01 [00:15:23]MH_I2C_Read... [00:15:23]*** Stop cut motor [00:15:23]*** Cut end [00:15:23]Read from MH i2c: 01 07 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: 01 07 00 23 4F 00 00 00 00 00 FF 0F 87 [00:15:23]process_action x_report done [00:15:23]requested_data is exist [00:15:23]produce_requested_data [00:15:23]requested_item fd.num is exist - process it [00:15:23]SAM_PROTO_GetFieldsCounters [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 13 00 00 [00:15:23]Write to MH i2c: E2 08 00 24 4F 80 13 00 00 00 00 00 00 EF [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 62 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 62 00 24 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 6E [00:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 [00:15:24]wFMCommunicate OK [00:15:24]SAM_PROTO_GetFieldsCounters done [00:15:24]requested_item shift.num is exist - process it [00:15:24]requested_item shift.opened is exist - process it [00:15:24]req_shift_opened [00:15:24]FM_GetShiftState [00:15:24]SAM_PROTO_GetShiftState [00:15:24]wFMCommunicate request_size=4 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 13 01 00 [00:15:24]Write to MH i2c: E2 08 00 25 4F 80 13 01 00 00 00 00 00 F1 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 0E 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 0E 00 25 4F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 0C [00:15:24]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [00:15:24]wFMCommunicate OK [00:15:24]SAM_PROTO_GetShiftState done [00:15:24]FM_GetShiftState done [00:15:24]req_shift_opened done [00:15:24]requested_item shift.open_date is exist - process it [00:15:24]req_shift_open_date [00:15:24]req_shift_open_date done [00:15:24]produce_requested_data done [00:15:24]produce_requested_data return {"fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [00:15:24]process_action_free x_report [00:15:24]json_value_free [00:15:24]json_value_free done [00:15:24]process_json_proto returns [00:15:24]Send response to host [00:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [00:15:24]free response buf [00:15:24]execute_script done [00:15:24]execute_script returns [00:15:24]free content buf [00:15:24]Sock 9.Close socket [00:15:24]Sock 9.Thread stoped [00:15:27]int [00:15:27]Write to MH i2c: 01 00 00 26 4F 75 [00:15:27]*** FLAG_PRN_KEY set [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 26 4F 00 08 00 00 00 FF 0F 92 [00:15:27]state=0 [00:15:27]Key pressed [00:15:27]Feed [00:15:27]Write to MH i2c: D8 00 00 27 4F 4D [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 01 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 01 00 27 4F 00 4E [00:15:27]int line is 0 - check status [00:15:27]Write to MH i2c: 01 00 00 28 4F 77 [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 28 4F 00 48 00 00 00 3C 00 02 [00:15:27]state=2 [00:15:27]Key pressed [00:15:27]int [00:15:27]Write to MH i2c: 01 00 00 29 4F 78 [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 29 4F 00 48 00 00 00 3C 00 03 [00:15:27]state=2 [00:15:27]Key pressed [00:15:27]int [00:15:27]Write to MH i2c: 01 00 00 2A 4F 79 [00:15:27]*** FLAG_PRN_KEY reset [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 2A 4F 00 00 00 00 00 FD 0F 8C [00:15:27]state=2 [00:15:27]Stop feed [00:15:27]int [00:15:27]Write to MH i2c: 01 00 00 2B 4F 7A [00:15:27]*** FLAG_PRN_KEY set [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 2B 4F 00 08 00 00 00 FF 0F 97 [00:15:27]state=0 [00:15:27]Key pressed [00:15:27]Feed [00:15:27]Write to MH i2c: D8 00 00 2C 4F 52 [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 01 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: D8 01 00 2C 4F 00 53 [00:15:27]int line is 0 - check status [00:15:27]Write to MH i2c: 01 00 00 2D 4F 7C [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 2D 4F 00 48 00 00 00 3C 00 07 [00:15:27]state=2 [00:15:27]Key pressed [00:15:27]int [00:15:27]Write to MH i2c: 01 00 00 2E 4F 7D [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: 01 07 00 2E 4F 00 48 00 00 00 3C 00 08 [00:15:27]state=2 [00:15:27]Key pressed [00:15:28]int [00:15:28]Write to MH i2c: 01 00 00 2F 4F 7E [00:15:28]*** FLAG_PRN_KEY reset [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 07 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 07 00 2F 4F 00 00 00 00 00 FF 0F 93 [00:15:28]state=2 [00:15:28]Stop feed [00:15:28]OFD Sender: No OFD packet to send [00:15:30]accept exits with 10 [00:15:30]New connection [00:15:30]New thread 3066924388 created [00:15:30]Thread 3066781028 joined [00:15:30]Waiting for new connection... [00:15:30] Sock 10.Parse request [00:15:30]Sock 10.Check first char [00:15:30]Sock 10.First char is OK [00:15:30]request: POST /json_proto HTTP/1.0 [00:15:30]Method: POST [00:15:30]URL: /json_proto [00:15:30]Method is POST - this is cgi request [00:15:30]url: /json_proto [00:15:30]query_string will be loaded in cgi processing [00:15:30]execute_cgi json_proto POST (null) [00:15:30]execute_cgi path=json_proto method=POST [00:15:30]POST find Content-Length [00:15:30]Host: 172.17.39.131:8080 [00:15:30]Content-Length: 215 [00:15:30]Content-Type: application/json [00:15:30] [00:15:30]POST finish read [00:15:30]Found Content-Length = 215 [00:15:30]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:15:30]execute_script... [00:15:30]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:15:30]POST & json_proto [00:15:30]process_json_proto [00:15:30]json parsed OK: [00:15:30]protocol is kg_v1.0 [00:15:30]action value=get_value [00:15:30]process_action get_value [00:15:30]cmd_get_value [00:15:30]process_action get_value done [00:15:30]requested_data is exist [00:15:30]produce_requested_data [00:15:30]requested_item kkm.sn is exist - process it [00:15:30]requested_item kkm.ver is exist - process it [00:15:30]requested_item fm.sn is exist - process it [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 11 00 00 [00:15:30]Write to MH i2c: E2 08 00 30 4F 80 11 00 00 00 00 00 00 F9 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 17 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 17 00 30 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 51 [00:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:15:30]wFMCommunicate OK [00:15:30]requested_item fd.num is exist - process it [00:15:30]SAM_PROTO_GetFieldsCounters [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 13 00 00 [00:15:30]Write to MH i2c: E2 08 00 31 4F 80 13 00 00 00 00 00 00 FC [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 62 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 62 00 31 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 7B [00:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CC 25 01 00 0E 04 04 00 00 02 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 [00:15:31]wFMCommunicate OK [00:15:31]SAM_PROTO_GetFieldsCounters done [00:15:31]requested_item shift.num is exist - process it [00:15:31]requested_item shift.opened is exist - process it [00:15:31]req_shift_opened [00:15:31]FM_GetShiftState [00:15:31]SAM_PROTO_GetShiftState [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 13 01 00 [00:15:31]Write to MH i2c: E2 08 00 32 4F 80 13 01 00 00 00 00 00 FE [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0E 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0E 00 32 4F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 19 [00:15:31]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [00:15:31]wFMCommunicate OK [00:15:31]SAM_PROTO_GetShiftState done [00:15:31]FM_GetShiftState done [00:15:31]req_shift_opened done [00:15:31]requested_item shift.open_date is exist - process it [00:15:31]req_shift_open_date [00:15:31]req_shift_open_date done [00:15:31]produce_requested_data done [00:15:31]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166} [00:15:31]process_action_free get_value [00:15:31]json_value_free [00:15:31]json_value_free done [00:15:31]process_json_proto returns [00:15:31]Send response to host [00:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75212,"shift.num":512,"shift.opened":1,"shift.open_date":1729902166}}} [00:15:31]free response buf [00:15:31]execute_script done [00:15:31]execute_script returns [00:15:31]free content buf [00:15:31]Sock 10.Close socket [00:15:31]Sock 10.Thread stoped [00:15:31]accept exits with 7 [00:15:31]New connection [00:15:31]New thread 3066781028 created [00:15:31]Thread 3066924388 joined [00:15:31]Waiting for new connection... [00:15:31] Sock 7.Parse request [00:15:31]Sock 7.Check first char [00:15:31]Sock 7.First char is OK [00:15:31]request: POST /json_proto HTTP/1.0 [00:15:31]Method: POST [00:15:31]URL: /json_proto [00:15:31]Method is POST - this is cgi request [00:15:31]url: /json_proto [00:15:31]query_string will be loaded in cgi processing [00:15:31]execute_cgi json_proto POST (null) [00:15:31]execute_cgi path=json_proto method=POST [00:15:31]POST find Content-Length [00:15:31]Host: 172.17.39.131:8080 [00:15:31]Content-Length: 331 [00:15:31]Content-Type: application/json [00:15:31] [00:15:31]POST finish read [00:15:31]Found Content-Length = 331 [00:15:31]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:15:31]execute_script... [00:15:31]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:15:31]POST & json_proto [00:15:31]process_json_proto [00:15:31]json parsed OK: [00:15:31]protocol is kg_v1.0 [00:15:31]action value=get_value [00:15:31]process_action get_value [00:15:31]cmd_get_value [00:15:31]process_action get_value done [00:15:31]requested_data is exist [00:15:31]produce_requested_data [00:15:31]requested_item fm.sale.total is exist - process it [00:15:31]SAM_PROTO_GetFMData [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 13 03 00 [00:15:31]Write to MH i2c: E2 08 00 33 4F 80 13 03 00 00 00 00 00 01 [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 33 4F 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 BE [00:15:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:32]wFMCommunicate OK [00:15:32]wFMCommunicate request_size=4 [00:15:32]MH_SAM_APDU [00:15:32]CAPDU: 80 17 00 00 [00:15:32]Write to MH i2c: E2 08 00 34 4F 80 17 00 00 00 00 00 00 03 [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:32]Read from MH i2c: E2 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 34 4F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:15:32]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:32]wFMCommunicate OK [00:15:32]wFMCommunicate request_size=4 [00:15:32]MH_SAM_APDU [00:15:32]CAPDU: 80 17 00 00 [00:15:33]Write to MH i2c: E2 08 00 35 4F 80 17 00 00 00 00 00 00 04 [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 35 4F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:15:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:33]wFMCommunicate OK [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: OFD Sender: No OFD packet to send [00:15:33]80 17 00 00 [00:15:33]Write to MH i2c: E2 08 00 36 4F 80 17 00 00 00 00 00 00 05 [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 36 4F 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 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 90 00 8A [00:15:34]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 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 90 00 [00:15:34]wFMCommunicate OK [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 17 00 00 [00:15:34]Write to MH i2c: E2 08 00 37 4F 80 17 00 00 00 00 00 00 06 [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 DE 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 DE 00 37 4F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [00:15:34]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:34]wFMCommunicate OK [00:15:34]SAM_PROTO_GetFMData done [00:15:34]requested_item fm.sale_refund.total is exist - process it [00:15:34]requested_item fm.buy.total is exist - process it [00:15:34]requested_item shift.sale.total is exist - process it [00:15:34]SAM_PROTO_GetShiftData [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 13 02 00 [00:15:34]Write to MH i2c: E2 08 00 38 4F 80 13 02 00 00 00 00 00 05 [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:35]Read from MH i2c: E2 [00:15:35]MH_I2C_Read... [00:15:35]Read from MH i2c: E2 FD 00 [00:15:35]MH_I2C_Read... [00:15:35]Read from MH i2c: E2 FD 00 38 4F 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 32 [00:15:35]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:35]wFMCommunicate OK [00:15:35]wFMCommunicate request_size=4 [00:15:35]MH_SAM_APDU [00:15:35]CAPDU: 80 17 00 00 [00:15:35]Write to MH i2c: E2 08 00 39 4F 80 17 00 00 00 00 00 00 08 [00:15:35]Write i2c OK [00:15:35]MH_I2C_Read... [00:15:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:36]Read from MH i2c: E2 [00:15:36]MH_I2C_Read... [00:15:36]Read from MH i2c: E2 FD 00 [00:15:36]MH_I2C_Read... [00:15:36]Read from MH i2c: E2 FD 00 39 4F 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:15:36]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:36]wFMCommunicate OK [00:15:36]wFMCommunicate request_size=4 [00:15:36]MH_SAM_APDU [00:15:36]CAPDU: 80 17 00 00 [00:15:36]Write to MH i2c: E2 08 00 3A 4F 80 17 00 00 00 00 00 00 09 [00:15:36]Write i2c OK [00:15:36]MH_I2C_Read... [00:15:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:36]Read from MH i2c: E2 [00:15:36]MH_I2C_Read... [00:15:36]Read from MH i2c: E2 FD 00 [00:15:36]MH_I2C_Read... [00:15:36]Read from MH i2c: E2 FD 00 3A 4F 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [00:15:37]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:37]wFMCommunicate OK [00:15:37]wFMCommunicate request_size=4 [00:15:37]MH_SAM_APDU [00:15:37]CAPDU: 80 17 00 00 [00:15:37]Write to MH i2c: E2 08 00 3B 4F 80 17 00 00 00 00 00 00 0A [00:15:37]Write i2c OK [00:15:37]MH_I2C_Read... [00:15:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:37]Read from MH i2c: E2 [00:15:37]MH_I2C_Read... [00:15:37]Read from MH i2c: E2 FD 00 [00:15:37]MH_I2C_Read... [00:15:37]Read from MH i2c: E2 FD 00 3B 4F 00 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 90 00 7D [00:15:37]RAPDU: 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 90 00 [00:15:38]wFMCommunicate OK [00:15:38]wFMCommunicate request_size=4 [00:15:38]MH_SAM_APDU [00:15:38]CAPDU: 80 17 00 00 [00:15:38]Write to MH i2c: E2 08 00 3C 4F 80 17 00 00 00 00 00 00 0B [00:15:38]Write i2c OK [00:15:38]MH_I2C_Read... [00:15:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:38]Read from MH i2c: E2 [00:15:38]MH_I2C_Read... [00:15:38]Read from MH i2c: E2 CD 00 [00:15:38]MH_I2C_Read... [00:15:38]Read from MH i2c: E2 CD 00 3C 4F 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [00:15:38]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:38]wFMCommunicate OK [00:15:38]SAM_PROTO_GetShiftData done [00:15:38]requested_item shift.sale.total_cash is exist - process it [00:15:38]requested_item shift.sale_refund.total is exist - process it [00:15:38]requested_item shift.sale_refund.total_cash is exist - process it [00:15:38]requested_item shift.buy.total is exist - process it [00:15:38]requested_item shift.buy.total_cash is exist - process it [00:15:38]produce_requested_data done [00:15:38]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:38]process_action_free get_value [00:15:38]json_value_free [00:15:38]json_value_free done [00:15:38]process_json_proto returns [00:15:38]Send response to host [00:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:38]free response buf [00:15:38]execute_script done [00:15:38]execute_script returns [00:15:38]free content buf [00:15:38]Sock 7.Close socket [00:15:38]Sock 7.Thread stoped [00:15:38]accept exits with 9 [00:15:38]New connection [00:15:38]New thread 3066924388 created [00:15:38]Thread 3066781028 joined [00:15:38]Waiting for new connection... [00:15:38] Sock 9.Parse request [00:15:38]Sock 9.Check first char [00:15:38]Sock 9.First char is OK [00:15:38]request: POST /json_proto HTTP/1.0 [00:15:38]Method: POST [00:15:38]URL: /json_proto [00:15:38]Method is POST - this is cgi request [00:15:38]url: /json_proto [00:15:38]query_string will be loaded in cgi processing [00:15:38]execute_cgi json_proto POST (null) [00:15:38]execute_cgi path=json_proto method=POST [00:15:38]POST find Content-Length [00:15:38]Host: 172.17.39.131:8080 [00:15:38]Content-Length: 331 [00:15:38]Content-Type: application/json [00:15:38] [00:15:38]POST finish read [00:15:38]Found Content-Length = 331 [00:15:38]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:15:38]execute_script... [00:15:38]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:15:38]POST & json_proto [00:15:38]process_json_proto [00:15:38]json parsed OK: [00:15:38]protocol is kg_v1.0 [00:15:38]action value=get_value [00:15:38]process_action get_value [00:15:38]cmd_get_value [00:15:38]process_action get_value done [00:15:38]requested_data is exist [00:15:38]produce_requested_data [00:15:38]requested_item fm.sale.total is exist - process it [00:15:38]SAM_PROTO_GetFMData [00:15:38]wFMCommunicate request_size=4 [00:15:38]MH_SAM_APDU [00:15:38]CAPDU: 80 13 03 00 [00:15:38]Write to MH i2c: E2 08 00 3D 4F 80 13 03 00 00 00 00 00 0B [00:15:38]OFD Sender: No OFD packet to send [00:15:38]Write i2c OK [00:15:38]MH_I2C_Read... [00:15:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:39]Read from MH i2c: E2 [00:15:39]MH_I2C_Read... [00:15:39]Read from MH i2c: E2 FD 00 [00:15:39]MH_I2C_Read... [00:15:39]Read from MH i2c: E2 FD 00 3D 4F 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 C8 [00:15:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:39]wFMCommunicate OK [00:15:39]wFMCommunicate request_size=4 [00:15:39]MH_SAM_APDU [00:15:39]CAPDU: 80 17 00 00 [00:15:39]Write to MH i2c: E2 08 00 3E 4F 80 17 00 00 00 00 00 00 0D [00:15:39]Write i2c OK [00:15:39]MH_I2C_Read... [00:15:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:40]Read from MH i2c: E2 [00:15:40]MH_I2C_Read... [00:15:40]Read from MH i2c: E2 FD 00 [00:15:40]MH_I2C_Read... [00:15:40]Read from MH i2c: E2 FD 00 3E 4F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [00:15:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:40]wFMCommunicate OK [00:15:40]wFMCommunicate request_size=4 [00:15:40]MH_SAM_APDU [00:15:40]CAPDU: 80 17 00 00 [00:15:40]Write to MH i2c: E2 08 00 3F 4F 80 17 00 00 00 00 00 00 0E [00:15:40]Write i2c OK [00:15:40]MH_I2C_Read... [00:15:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:40]Read from MH i2c: E2 [00:15:40]MH_I2C_Read... [00:15:40]Read from MH i2c: E2 FD 00 [00:15:40]MH_I2C_Read... [00:15:40]Read from MH i2c: E2 FD 00 3F 4F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:15:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:41]wFMCommunicate OK [00:15:41]wFMCommunicate request_size=4 [00:15:41]MH_SAM_APDU [00:15:41]CAPDU: 80 17 00 00 [00:15:41]Write to MH i2c: E2 08 00 40 4F 80 17 00 00 00 00 00 00 0F [00:15:41]Write i2c OK [00:15:41]MH_I2C_Read... [00:15:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:41]Read from MH i2c: E2 [00:15:41]MH_I2C_Read... [00:15:41]Read from MH i2c: E2 FD 00 [00:15:41]MH_I2C_Read... [00:15:41]Read from MH i2c: E2 FD 00 40 4F 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 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 90 00 94 [00:15:41]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 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 90 00 [00:15:42]wFMCommunicate OK [00:15:42]wFMCommunicate request_size=4 [00:15:42]MH_SAM_APDU [00:15:42]CAPDU: 80 17 00 00 [00:15:42]Write to MH i2c: E2 08 00 41 4F 80 17 00 00 00 00 00 00 10 [00:15:42]Write i2c OK [00:15:42]MH_I2C_Read... [00:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:42]Read from MH i2c: E2 [00:15:42]MH_I2C_Read... [00:15:42]Read from MH i2c: E2 DE 00 [00:15:42]MH_I2C_Read... [00:15:42]Read from MH i2c: E2 DE 00 41 4F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [00:15:42]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:42]wFMCommunicate OK [00:15:42]SAM_PROTO_GetFMData done [00:15:42]requested_item fm.sale_refund.total is exist - process it [00:15:42]requested_item fm.buy.total is exist - process it [00:15:42]requested_item shift.sale.total is exist - process it [00:15:42]SAM_PROTO_GetShiftData [00:15:42]wFMCommunicate request_size=4 [00:15:42]MH_SAM_APDU [00:15:42]CAPDU: 80 13 02 00 [00:15:42]Write to MH i2c: E2 08 00 42 4F 80 13 02 00 00 00 00 00 0F [00:15:42]Write i2c OK [00:15:42]MH_I2C_Read... [00:15:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:43]Read from MH i2c: E2 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: E2 FD 00 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: E2 FD 00 42 4F 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3C [00:15:43]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:43]wFMCommunicate OK [00:15:43]wFMCommunicate request_size=4 [00:15:43]MH_SAM_APDU [00:15:43]CAPDU: 80 17 00 00 [00:15:43]Write to MH i2c: E2 08 00 43 4F 80 17 00 00 00 00 00 00 12 [00:15:43]OFD Sender: No OFD packet to send [00:15:43]Write i2c OK [00:15:43]MH_I2C_Read... [00:15:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:44]Read from MH i2c: E2 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 FD 00 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 FD 00 43 4F 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:15:44]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:44]wFMCommunicate OK [00:15:44]wFMCommunicate request_size=4 [00:15:44]MH_SAM_APDU [00:15:44]CAPDU: 80 17 00 00 [00:15:44]Write to MH i2c: E2 08 00 44 4F 80 17 00 00 00 00 00 00 13 [00:15:44]Write i2c OK [00:15:44]MH_I2C_Read... [00:15:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:44]Read from MH i2c: E2 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 FD 00 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 FD 00 44 4F 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [00:15:45]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:45]wFMCommunicate OK [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 17 00 00 [00:15:45]Write to MH i2c: E2 08 00 45 4F 80 17 00 00 00 00 00 00 14 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 FD 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 FD 00 45 4F 00 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 90 00 87 [00:15:45]RAPDU: 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 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 17 00 00 [00:15:46]Write to MH i2c: E2 08 00 46 4F 80 17 00 00 00 00 00 00 15 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 CD 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 CD 00 46 4F 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [00:15:46]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:46]wFMCommunicate OK [00:15:46]SAM_PROTO_GetShiftData done [00:15:46]requested_item shift.sale.total_cash is exist - process it [00:15:46]requested_item shift.sale_refund.total is exist - process it [00:15:46]requested_item shift.sale_refund.total_cash is exist - process it [00:15:46]requested_item shift.buy.total is exist - process it [00:15:46]requested_item shift.buy.total_cash is exist - process it [00:15:46]produce_requested_data done [00:15:46]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:46]process_action_free get_value [00:15:46]json_value_free [00:15:46]json_value_free done [00:15:46]process_json_proto returns [00:15:46]Send response to host [00:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:15:46]free response buf [00:15:46]execute_script done [00:15:46]execute_script returns [00:15:46]free content buf [00:15:46]Sock 9.Close socket [00:15:46]Sock 9.Thread stoped [00:15:46]accept exits with 7 [00:15:46]New connection [00:15:46]New thread 3066781028 created [00:15:46]Thread 3066924388 joined [00:15:46]Waiting for new connection... [00:15:46] Sock 7.Parse request [00:15:46]Sock 7.Check first char [00:15:46]Sock 7.First char is OK [00:15:46]request: POST /json_proto HTTP/1.0 [00:15:46]Method: POST [00:15:46]URL: /json_proto [00:15:46]Method is POST - this is cgi request [00:15:46]url: /json_proto [00:15:46]query_string will be loaded in cgi processing [00:15:46]execute_cgi json_proto POST (null) [00:15:46]execute_cgi path=json_proto method=POST [00:15:46]POST find Content-Length [00:15:46]Host: 172.17.39.131:8080 [00:15:46]Content-Length: 272 [00:15:46]Content-Type: application/json [00:15:46] [00:15:46]POST finish read [00:15:46]Found Content-Length = 272 [00:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u0441\u0443\u043F\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:46]execute_script... [00:15:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u0441\u0443\u043F\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:46]POST & json_proto [00:15:46]process_json_proto [00:15:46]json parsed OK: [00:15:46]protocol is kg_v1.0 [00:15:46]action value=close_shift [00:15:46]process_action close_shift [00:15:46]cmd_close_shift [00:15:46]MH_GetDate [00:15:46]Write to MH i2c: F0 00 00 47 4F 85 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: F0 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: F0 09 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: F0 09 00 47 4F 00 3A 86 1D 67 86 57 24 65 38 [00:15:46]GetLastDocTimeStamp 1729988118 [00:15:46]current date 1729988154 [00:15:46]FM_GetShiftState [00:15:46]SAM_PROTO_GetShiftState [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 13 01 00 [00:15:46]Write to MH i2c: E2 08 00 48 4F 80 13 01 00 00 00 00 00 14 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 48 4F 00 09 00 01 56 36 1C 67 00 00 00 00 90 00 2F [00:15:47]RAPDU: 09 00 01 56 36 1C 67 00 00 00 00 90 00 [00:15:47]wFMCommunicate OK [00:15:47]SAM_PROTO_GetShiftState done [00:15:47]FM_GetShiftState done [00:15:47]KKMCreateCloseShiftDocument [00:15:47]Load OK [00:15:47]Malloc new data [00:15:47]MH_GetDate [00:15:47]Write to MH i2c: F0 00 00 49 4F 87 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 09 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 09 00 49 4F 00 3A 86 1D 67 86 57 24 65 3A [00:15:47]Malloc new data [00:15:47]Malloc new data [00:15:47]Malloc new data [00:15:47]Malloc new data [00:15:47]KKMCreateCloseShiftDocument OK [00:15:47]KKMSetCloseShiftData OK [00:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:15:47]tlvbuf is 009F0280 [00:15:47]KKMLoadAndSignCloseShiftData [00:15:47]SAM_PROTO_ProcessDocument [00:15:47]wFMCommunicate request_size=9 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:15:47]Write to MH i2c: E2 0C 00 4A 4F 80 15 01 00 04 00 05 00 4B 00 00 00 70 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 4A 4F 00 90 00 0D [00:15:47]RAPDU: 90 00 [00:15:47]wFMCommunicate OK [00:15:47]wFMCommunicate request_size=23 [00:15:47]MH_SAM_APDU [00:15:47]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:15:47]Write to MH i2c: E2 1A 00 4B 4F 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 0F [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 4B 4F 00 90 00 0E [00:15:47]RAPDU: 90 00 [00:15:47]wFMCommunicate OK [00:15:47]wFMCommunicate request_size=34 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 [00:15:47]Write to MH i2c: E2 25 00 4C 4F 80 15 02 00 1D 00 FD 03 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 00 00 1B [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 4C 4F 00 90 00 0F [00:15:47]RAPDU: 90 00 [00:15:47]wFMCommunicate OK [00:15:47]wFMCommunicate request_size=13 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 15 02 00 08 F4 03 04 00 3A 86 1D 67 [00:15:47]Write to MH i2c: E2 10 00 4D 4F 80 15 02 00 08 00 F4 03 04 00 3A 86 1D 67 00 00 6B [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 4D 4F 00 90 00 10 [00:15:47]RAPDU: 90 00 [00:15:47]wFMCommunicate OK [00:15:47]wFMCommunicate request_size=25 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [00:15:47]Write to MH i2c: E2 1C 00 4E 4F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 80 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 03 00 4E 4F 00 90 00 11 [00:15:47]RAPDU: 90 00 [00:15:47]wFMCommunicate OK [00:15:47]wFMCommunicate request_size=4 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 15 03 00 [00:15:47]Write to MH i2c: E2 08 00 4F 4F 80 15 03 00 00 00 00 00 1F [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:15:48]Read from MH i2c: E2 [00:15:48]MH_I2C_Read... [00:15:48]Read from MH i2c: E2 FD 00 [00:15:48]MH_I2C_Read... [00:15:48]Read from MH i2c: E2 FD 00 4F 4F 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 77 [00:15:48]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:15:48]wFMCommunicate OK [00:15:48]SAM_PROTO_ProcessDocument answer len = 1267 [00:15:48]SAM_PROTO_ProcessDocument remain to read = 1019 [00:15:48]wFMCommunicate request_size=4 [00:15:48]MH_SAM_APDU [00:15:48]CAPDU: 80 17 00 00 [00:15:48]Write to MH i2c: E2 08 00 50 4F 80 17 00 00 00 00 00 00 1F [00:15:48]Write i2c OK [00:15:48]MH_I2C_Read... [00:15:48]OFD Sender: No OFD packet to send [00:15:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 FD 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 FD 00 50 4F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [00:15:49]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:49]SAM_PROTO_ProcessDocument remain to read = 769 [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 17 00 00 [00:15:49]Write to MH i2c: E2 08 00 51 4F 80 17 00 00 00 00 00 00 20 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 FD 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 FD 00 51 4F 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 90 00 82 [00:15:50]RAPDU: 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 90 00 [00:15:50]wFMCommunicate OK [00:15:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:50]SAM_PROTO_ProcessDocument remain to read = 519 [00:15:50]wFMCommunicate request_size=4 [00:15:50]MH_SAM_APDU [00:15:50]CAPDU: 80 17 00 00 [00:15:50]Write to MH i2c: E2 08 00 52 4F 80 17 00 00 00 00 00 00 21 [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:50]Read from MH i2c: E2 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: E2 FD 00 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: E2 FD 00 52 4F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [00:15:51]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:51]wFMCommunicate OK [00:15:51]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:51]SAM_PROTO_ProcessDocument remain to read = 269 [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 17 00 00 [00:15:51]Write to MH i2c: E2 08 00 53 4F 80 17 00 00 00 00 00 00 22 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 FD 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 FD 00 53 4F 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [00:15:51]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:52]wFMCommunicate OK [00:15:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:52]SAM_PROTO_ProcessDocument remain to read = 19 [00:15:52]wFMCommunicate request_size=4 [00:15:52]MH_SAM_APDU [00:15:52]CAPDU: 80 17 00 00 [00:15:52]Write to MH i2c: E2 08 00 54 4F 80 17 00 00 00 00 00 00 23 [00:15:52]Write i2c OK [00:15:52]MH_I2C_Read... [00:15:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:15:52]Read from MH i2c: E2 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: E2 16 00 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: E2 16 00 54 4F 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 33 46 5D BC 47 86 90 00 C2 [00:15:52]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 33 46 5D BC 47 86 90 00 [00:15:52]wFMCommunicate OK [00:15:52]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:15:52]SAM_PROTO_ProcessDocument done [00:15:52]1209 (1) - 1.0 - номер версии ФФД [00:15:52]1041 (16) - 0000000000871795 - номер ФМ [00:15:52]1040 (4) - 75213 - номер ФД [00:15:52]1038 (4) - 512 - номер смены [00:15:52]1118 (4) - 204 - количество кассовых чеков за смену [00:15:52]1111 (4) - 206 - общее количество ФД за смену [00:15:52]1194 (1196) - счетчики итогов смены [00:15:52] 1134 (4) - 204 - количество чеков со всеми признаками расчетов [00:15:52] 1129 (157) - счетчики операций «приход» [00:15:52] 1135 (4) - 204 - количество чеков по признаку расчетов [00:15:52] 1201 (4) - 194545.33 - общая итоговая сумма в чеках [00:15:52] 1136 (3) - 120888.00 - итоговая сумма в чеках наличными [00:15:52] 1138 (3) - 73657.33 - итоговая сумма в чеках безналичными [00:15:52] 1024 (123) - суммы налогов [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 0% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1006 (12) - суммы НДС [00:15:52] 1010 (1) - 12% - код ставки НДС [00:15:52] 1011 (3) - 20664.95 - сумма НДС по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (12) - суммы НСП [00:15:52] 1014 (1) - 1% - код ставки НСП [00:15:52] 1015 (3) - 1722.04 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 2% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 3% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 5% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1130 (141) - счетчики операций «возврат прихода» [00:15:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:52] 1024 (117) - суммы налогов [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 0% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 12% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 2% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 3% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 5% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1131 (141) - счетчики операций «расход» [00:15:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:52] 1024 (117) - суммы налогов [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 0% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 12% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 2% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 3% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 5% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1,50% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1132 (141) - счетчики операций «возврат расхода» [00:15:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:52] 1024 (117) - суммы налогов [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 0% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1006 (9) - суммы НДС [00:15:52] 1010 (1) - 12% - код ставки НДС [00:15:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 0% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 1% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 2% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 3% - код ставки НСП [00:15:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:52] 1007 (9) - суммы НСП [00:15:52] 1014 (1) - 5% - код ставки НСП [00:15:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:53] 1007 (9) - суммы НСП [00:15:53] 1014 (1) - 0,50% - код ставки НСП [00:15:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:53] 1007 (9) - суммы НСП [00:15:53] 1014 (1) - 1,50% - код ставки НСП [00:15:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:53] 1133 (588) - - счетчики коррекции - не используются [00:15:53]1077 (6) - 56377313347462 - ФПД [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1209 (04B9) [00:15:53]Malloc new data [00:15:53]Processing tag 1041 (0411) [00:15:53]Processing tag 1040 (0410) [00:15:53]Malloc new data [00:15:53]Processing tag 1038 (040E) [00:15:53]Malloc new data [00:15:53]Processing tag 1118 (045E) [00:15:53]Malloc new data [00:15:53]Processing tag 1111 (0457) [00:15:53]Malloc new data [00:15:53]Processing tag 1194 (04AA) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1134 (046E) [00:15:53]Malloc new data [00:15:53]Processing tag 1129 (0469) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1135 (046F) [00:15:53]Malloc new data [00:15:53]Processing tag 1201 (04B1) [00:15:53]Malloc new data [00:15:53]Processing tag 1136 (0470) [00:15:53]Malloc new data [00:15:53]Processing tag 1138 (0472) [00:15:53]Malloc new data [00:15:53]Processing tag 1024 (0400) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1130 (046A) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1135 (046F) [00:15:53]Malloc new data [00:15:53]Processing tag 1201 (04B1) [00:15:53]Malloc new data [00:15:53]Processing tag 1136 (0470) [00:15:53]Malloc new data [00:15:53]Processing tag 1138 (0472) [00:15:53]Malloc new data [00:15:53]Processing tag 1024 (0400) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1131 (046B) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1135 (046F) [00:15:53]Malloc new data [00:15:53]Processing tag 1201 (04B1) [00:15:53]Malloc new data [00:15:53]Processing tag 1136 (0470) [00:15:53]Malloc new data [00:15:53]Processing tag 1138 (0472) [00:15:53]Malloc new data [00:15:53]Processing tag 1024 (0400) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1132 (046C) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1135 (046F) [00:15:53]Malloc new data [00:15:53]Processing tag 1201 (04B1) [00:15:53]Malloc new data [00:15:53]Processing tag 1136 (0470) [00:15:53]Malloc new data [00:15:53]Processing tag 1138 (0472) [00:15:53]Malloc new data [00:15:53]Processing tag 1024 (0400) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1006 (03EE) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1010 (03F2) [00:15:53]Malloc new data [00:15:53]Processing tag 1011 (03F3) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1007 (03EF) [00:15:53]Load OK [00:15:53]SetTLVBufToDocument [00:15:53]Processing tag 1014 (03F6) [00:15:53]Malloc new data [00:15:53]Processing tag 1015 (03F7) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1133 (046D) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Processing tag 1077 (0435) [00:15:53]Malloc new data [00:15:53]SetTLVBufToDocument err=0 [00:15:53]Malloc new data [00:15:53]SAM_PROTO_GetFMData [00:15:53]wFMCommunicate request_size=4 [00:15:53]MH_SAM_APDU [00:15:53]CAPDU: 80 13 03 00 [00:15:53]Write to MH i2c: E2 08 00 55 4F 80 13 03 00 00 00 00 00 23 [00:15:53]Write i2c OK [00:15:53]MH_I2C_Read... [00:15:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:53]Read from MH i2c: E2 [00:15:53]MH_I2C_Read... [00:15:53]Read from MH i2c: E2 FD 00 [00:15:53]MH_I2C_Read... [00:15:53]Read from MH i2c: E2 FD 00 55 4F 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 OFD Sender: No OFD packet to send [00:15:54]C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 E0 [00:15:54]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:15:54]wFMCommunicate OK [00:15:54]wFMCommunicate request_size=4 [00:15:54]MH_SAM_APDU [00:15:54]CAPDU: 80 17 00 00 [00:15:54]Write to MH i2c: E2 08 00 56 4F 80 17 00 00 00 00 00 00 25 [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:54]Read from MH i2c: E2 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 FD 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 FD 00 56 4F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [00:15:55]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:55]wFMCommunicate OK [00:15:55]wFMCommunicate request_size=4 [00:15:55]MH_SAM_APDU [00:15:55]CAPDU: 80 17 00 00 [00:15:55]Write to MH i2c: E2 08 00 57 4F 80 17 00 00 00 00 00 00 26 [00:15:55]Write i2c OK [00:15:55]MH_I2C_Read... [00:15:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:55]Read from MH i2c: E2 [00:15:55]MH_I2C_Read... [00:15:55]Read from MH i2c: E2 FD 00 [00:15:55]MH_I2C_Read... [00:15:55]Read from MH i2c: E2 FD 00 57 4F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [00:15:56]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:56]wFMCommunicate OK [00:15:56]wFMCommunicate request_size=4 [00:15:56]MH_SAM_APDU [00:15:56]CAPDU: 80 17 00 00 [00:15:56]Write to MH i2c: E2 08 00 58 4F 80 17 00 00 00 00 00 00 27 [00:15:56]Write i2c OK [00:15:56]MH_I2C_Read... [00:15:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:56]Read from MH i2c: E2 [00:15:56]MH_I2C_Read... [00:15:56]Read from MH i2c: E2 FD 00 [00:15:56]MH_I2C_Read... [00:15:56]Read from MH i2c: E2 FD 00 58 4F 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 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 90 00 AC [00:15:56]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 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 90 00 [00:15:57]wFMCommunicate OK [00:15:57]wFMCommunicate request_size=4 [00:15:57]MH_SAM_APDU [00:15:57]CAPDU: 80 17 00 00 [00:15:57]Write to MH i2c: E2 08 00 59 4F 80 17 00 00 00 00 00 00 28 [00:15:57]Write i2c OK [00:15:57]MH_I2C_Read... [00:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:15:57]Read from MH i2c: E2 [00:15:57]MH_I2C_Read... [00:15:57]Read from MH i2c: E2 DE 00 [00:15:57]MH_I2C_Read... [00:15:57]Read from MH i2c: E2 DE 00 59 4F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [00:15:58]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:58]wFMCommunicate OK [00:15:58]SAM_PROTO_GetFMData done [00:15:58]Malloc new data [00:15:58]Malloc new data [00:15:58]Malloc new data [00:15:58]Malloc new data [00:15:58]KKMLoadAndSignCloseShiftData err=0 [00:15:58]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Усупбекова Ч. 27.10.2024 00:15 Смена: 512 РНМ: 0000000000091691 ЗНМ: 0300000089 СНО: Общий режим Чеков за смену: 204 ФД за смену: 206 Всего чеков: 204 ИТОГИ ПРИХОД Чеков: 204 Общий итог: 194545.33 Итого наличными: 120888.00 Итого безнал.: 73657.33 НДС 0% : 0.00 НДС 12% : 20664.95 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1722.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Общий итог: 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 Нал. в кассе: 120888.00 НС Приход: 71344420.27 НС Возвр.Прихода: 53731.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 75213 ФМ: 0000000000871795 ФПД: 56377313347462 [00:15:58]StoreToDocumentArchive [00:15:58]shift 512 fd 75213 [00:15:58]Create dir for shift 0512 [00:15:58]save to /storage/0512/doc_00075213 [00:15:58]save last doc name /storage/0512/doc_00075213 to /storage/kkm_last_doc_name [00:15:58]save OK [00:15:58]Clear old archive folders... [00:15:58]NVStorageSaveData kkm_registers [00:15:58]File name is /storage/kkm_registers [00:15:58]Write 24 bytes [00:15:58]NVStorageSaveData done [00:15:58]NVStorageSaveData kkm_registers [00:15:58]File name is /storage/kkm_registers [00:15:58]Write 24 bytes [00:15:58]NVStorageSaveData done [00:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:15:58]tlvbuf is 00A1B0D0 [00:15:58]SAM_PROTO_ClearQueue [00:15:58]wFMCommunicate request_size=4 [00:15:58]MH_SAM_APDU [00:15:58]CAPDU: 80 09 00 00 [00:15:58]Write to MH i2c: E2 08 00 5A 4F 80 09 00 00 00 00 00 00 1B [00:15:58]Write i2c OK [00:15:58]MH_I2C_Read... [00:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:58]Read from MH i2c: E2 [00:15:58]MH_I2C_Read... [00:15:58]Read from MH i2c: E2 03 00 [00:15:58]MH_I2C_Read... [00:15:58]Read from MH i2c: E2 03 00 5A 4F 00 90 00 1D [00:15:58]RAPDU: 90 00 [00:15:58]wFMCommunicate OK [00:15:58]SAM_PROTO_ClearQueue done [00:15:58]KKMCreateOFDPacket [00:15:58]OFDProtocolAddRootSTLVToBuf [00:15:58]FM_MakeSignedData [00:15:58]FM_MakeSignedData [00:15:58]SAM_PROTO_SignData [00:15:58]wFMCommunicate request_size=4 [00:15:58]MH_SAM_APDU [00:15:58]CAPDU: 80 0D 01 02 [00:15:58]Write to MH i2c: E2 08 00 5B 4F 80 0D 01 02 00 00 00 00 23 [00:15:58]Write i2c OK [00:15:58]MH_I2C_Read... [00:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:58]Read from MH i2c: E2 [00:15:58]MH_I2C_Read... [00:15:58]Read from MH i2c: E2 03 00 [00:15:58]MH_I2C_Read... [00:15:58]Read from MH i2c: E2 03 00 5B 4F 00 90 00 1E [00:15:58]RAPDU: 90 00 [00:15:58]wFMCommunicate OK [00:15:58]wFMCommunicate request_size=255 [00:15:58]MH_SAM_APDU [00:15:58]CAPDU: 80 0D 02 02 FA 05 00 69 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 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 3A 86 1D 67 0E 04 04 00 00 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D7 04 6E 04 04 00 CC 00 00 00 69 04 A4 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 [00:15:58]Write to MH i2c: E2 02 01 5C 4F 80 0D 02 02 FA 00 05 00 69 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 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 3A 86 1D 67 0E 04 04 00 00 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D7 04 6E 04 04 00 CC 00 00 00 69 04 A4 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 00 00 33 [00:15:59]Write i2c OK [00:15:59]MH_I2C_Read... [00:15:59]OFD Sender: No OFD packet to send [00:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:59]Read from MH i2c: E2 [00:15:59]MH_I2C_Read... [00:15:59]Read from MH i2c: E2 03 00 [00:15:59]MH_I2C_Read... [00:15:59]Read from MH i2c: E2 03 00 5C 4F 00 90 00 1F [00:15:59]RAPDU: 90 00 [00:15:59]wFMCommunicate OK [00:15:59]wFMCommunicate request_size=255 [00:15:59]MH_SAM_APDU [00:15:59]CAPDU: 80 0D 02 02 FA 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 AC A0 02 6A 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 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 [00:15:59]Write to MH i2c: E2 02 01 5D 4F 80 0D 02 02 FA 00 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 AC A0 02 6A 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 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 00 00 E0 [00:16:00]Write i2c OK [00:16:00]MH_I2C_Read... [00:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:00]Read from MH i2c: E2 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: E2 03 00 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: E2 03 00 5D 4F 00 90 00 20 [00:16:00]RAPDU: 90 00 [00:16:00]wFMCommunicate OK [00:16:00]wFMCommunicate request_size=255 [00:16:00]MH_SAM_APDU [00:16:00]CAPDU: 80 0D 02 02 FA 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 [00:16:00]Write to MH i2c: E2 02 01 5E 4F 80 0D 02 02 FA 00 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 00 00 ED [00:16:00]Write i2c OK [00:16:00]MH_I2C_Read... [00:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:01]Read from MH i2c: E2 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 5E 4F 00 90 00 21 [00:16:01]RAPDU: 90 00 [00:16:01]wFMCommunicate OK [00:16:01]wFMCommunicate request_size=255 [00:16:01]MH_SAM_APDU [00:16:01]CAPDU: 80 0D 02 02 FA 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 [00:16:01]Write to MH i2c: E2 02 01 5F 4F 80 0D 02 02 FA 00 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 00 00 F7 [00:16:01]Write i2c OK [00:16:01]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:02]Read from MH i2c: E2 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 5F 4F 00 90 00 22 [00:16:02]RAPDU: 90 00 [00:16:02]wFMCommunicate OK [00:16:02]wFMCommunicate request_size=255 [00:16:02]MH_SAM_APDU [00:16:02]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:02]Write to MH i2c: E2 02 01 60 4F 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 B8 [00:16:02]Write i2c OK [00:16:02]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:02]Read from MH i2c: E2 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 03 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 03 00 60 4F 00 90 00 23 [00:16:03]RAPDU: 90 00 [00:16:03]wFMCommunicate OK [00:16:03]wFMCommunicate request_size=144 [00:16:03]MH_SAM_APDU [00:16:03]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 33 46 5D BC 47 86 [00:16:03]Write to MH i2c: E2 93 00 61 4F 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 CD 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 33 46 5D BC 47 86 00 00 BE [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:03]Read from MH i2c: E2 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 03 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 03 00 61 4F 00 90 00 24 [00:16:03]RAPDU: 90 00 [00:16:03]wFMCommunicate OK [00:16:03]wFMCommunicate request_size=4 [00:16:03]MH_SAM_APDU [00:16:03]CAPDU: 80 0D 03 02 [00:16:03]Write to MH i2c: E2 08 00 62 4F 80 0D 03 02 00 00 00 00 2C [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:03]Read from MH i2c: E2 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 0B 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 0B 00 62 4F 00 F1 4F 64 6E AB A3 A1 AA 90 00 D8 [00:16:03]RAPDU: F1 4F 64 6E AB A3 A1 AA 90 00 [00:16:03]wFMCommunicate OK [00:16:03]SAM_PROTO_SignData done [00:16:03]FM_MakeSignedData done [00:16:03]CreateOFDProtocolMessage [00:16:03]wFMCommunicate request_size=4 [00:16:03]MH_SAM_APDU [00:16:03]CAPDU: 80 11 00 00 [00:16:03]Write to MH i2c: E2 08 00 63 4F 80 11 00 00 00 00 00 00 2C [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:03]Read from MH i2c: E2 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 17 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: E2 17 00 63 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 84 [00:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:16:03]wFMCommunicate OK [00:16:03]CreateOFDProtocolMessage done [00:16:03]OFDSenderStorePacket 75213 [00:16:03]StoreOFDPacket docnum=75213 [00:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 7D 05 00 00 95 40 75 05 D2 78 5A 05 01 00 05 00 69 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 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 3A 86 1D 67 0E 04 04 00 00 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D7 04 6E 04 04 00 CC 00 00 00 69 04 A4 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 6A 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 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 CD 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 33 46 5D BC 47 86 F1 4F 64 6E AB A3 A1 AA [00:16:04]CheckFolder [00:16:04]dirname=/storage/ofd_packets [00:16:04]CheckFolder done [00:16:04]ProducePacketName [00:16:04]name=ofd_packets/00075213 [00:16:04]NVStorageSaveData ofd_packets/00075213 [00:16:04]File name is /storage/ofd_packets/00075213 [00:16:04]Write 1435 bytes [00:16:04]NVStorageSaveData done [00:16:04]OFDSenderStorePacket done [00:16:04]KKMCreateOFDPacket done [00:16:04]NVStorageSaveData kkm_last_timestamp [00:16:04]File name is /storage/kkm_last_timestamp [00:16:04]Write 4 bytes [00:16:04]NVStorageSaveData done [00:16:04]ExternCall_PrintAddStr [00:16:04]wPrintStart [00:16:04]Write to MH i2c: 01 00 00 64 4F B3 [00:16:04]Write i2c OK [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: 01 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: 01 07 00 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: 01 07 00 64 4F 00 00 00 00 00 FF 0F C8 [00:16:04]RasterBufferAndPrint [00:16:04]line Отчет о закрытии смены [00:16:04]line ФФД: 1.0 [00:16:04]line ИНН: 02508201610067 [00:16:04]line Кассир: Усупбекова Ч. [00:16:04]line 27.10.2024 00:15 [00:16:04]line Смена: 512 [00:16:04]line РНМ: 0000000000091691 [00:16:04]line ЗНМ: 0300000089 [00:16:04]line СНО: Общий режим [00:16:04]line Чеков за смену: 204 [00:16:04]line ФД за смену: 206 [00:16:04]line Всего чеков: 204 [00:16:04]line ИТОГИ ПРИХОД [00:16:04]line Чеков: 204 [00:16:04]line Общий итог: 194545.33 [00:16:04]line Итого наличными: 120888.00 [00:16:04]line Итого безнал.: 73657.33 [00:16:04]line НДС 0% : 0.00 [00:16:04]line НДС 12% : 20664.95 [00:16:04]line НСП 0% : 0.00 [00:16:04]line НСП 1,50% : 0.00 [00:16:04]line НСП 0,50% : 0.00 [00:16:04]line НСП 5% : 0.00 [00:16:04]line НСП 3% : 0.00 [00:16:04]line НСП 2% : 0.00 [00:16:04]line НСП 1% : 1722.04 [00:16:04]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:16:04]line Чеков: 0 [00:16:04]line Общий итог: 0.00 [00:16:04]line Итого наличными: 0.00 [00:16:04]line Итого безнал.: 0.00 [00:16:04]OFD Sender: Processing packet 75213 [packets to send 13, broken 12] [00:16:04]line НДС 0% : 0.00 [00:16:04]ProducePacketName [00:16:04]line НДС 12% : 0.00 [00:16:04]name=ofd_packets/00075213 [00:16:04]line НСП 0% : 0.00 [00:16:04]OFD Sender: To server: pG, [00:16:04]CommunicateWithHost lk.salyk.kg:30040 [00:16:04]ConnectInit lk.salyk.kg [00:16:04]line НСП 1,50% : 0.00 [00:16:04]line НСП 0,50% : 0.00 [00:16:04]line НСП 5% : 0.00 [00:16:04]line НСП 3% : 0.00 [00:16:04]line НСП 2% : 0.00 [00:16:04]line НСП 1% : 0.00 [00:16:04]line ИТОГИ РАСХОД [00:16:04]line Чеков: 0 [00:16:04]line Общий итог: 0.00 [00:16:04]line Итого наличными: 0.00 [00:16:04]line Итого безнал.: 0.00 [00:16:04]line НДС 0% : 0.00 [00:16:04]line НДС 12% : 0.00 [00:16:04]line НСП 0% : 0.00 [00:16:04]line НСП 1,50% : 0.00 [00:16:04]line НСП 0,50% : 0.00 [00:16:04]line НСП 5% : 0.00 [00:16:04]line НСП 3% : 0.00 [00:16:04]line НСП 2% : 0.00 [00:16:04]line НСП 1% : 0.00 [00:16:04]line ИТОГИ ВОЗВРАТ РАСХОДА [00:16:04]line Чеков: 0 [00:16:04]line Общий итог: 0.00 [00:16:04]line Итого наличными: 0.00 [00:16:04]line Итого безнал.: 0.00 [00:16:04]line НДС 0% : 0.00 [00:16:04]line НДС 12% : 0.00 [00:16:04]line НСП 0% : 0.00 [00:16:04]line НСП 1,50% : 0.00 [00:16:04]line НСП 0,50% : 0.00 [00:16:04]line НСП 5% : 0.00 [00:16:04]line НСП 3% : 0.00 [00:16:04]line НСП 2% : 0.00 [00:16:04]line НСП 1% : 0.00 [00:16:04]line Сумма внесений: 0.00 [00:16:04]line Сумма выплат: 0.00 [00:16:04]line Нал. в кассе: 120888.00 [00:16:04]line НС Приход: 71344420.27 [00:16:04]line НС Возвр.Прихода: 53731.00 [00:16:04]line НС Расход: 0.00 [00:16:04]line НС Возвр.Расхода: 0.00 [00:16:04]line ФД: 75213 [00:16:04]line ФМ: 0000000000871795 [00:16:04]line ФПД: 56377313347462 [00:16:04]written 0, free lines is 4095 [00:16:04]Connected sock=10 [00:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 7D 05 00 00 95 40 75 05 D2 78 5A 05 01 00 05 00 69 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 19 00 D0 A3 D1 81 D1 83 D0 BF D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 3A 86 1D 67 0E 04 04 00 00 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 AA 04 D7 04 6E 04 04 00 CC 00 00 00 69 04 A4 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 6A 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 Write to MH i2c: 01 01 00 00 03 00 F7 03 01 00 00 EF 03 0A 00 B4 F6 4F 03 03 01 [00:16:05]00 02 F7 03 01 00 00 EF 03 0A Write i2c OK [00:16:05]00 MH_I2C_Read... [00:16:05]F6 03 01 00 Read from MH i2c: 01 01 F7 [00:16:05]03 MH_I2C_Read... [00:16:05]01 00 00 6B 04 99 00 6F 04 Read from MH i2c: 04 01 00 07 00 00 00 00 00 B1 04 01 00 00 70 [00:16:05]04 MH_I2C_Read... [00:16:05]01 Read from MH i2c: 00 01 00 07 72 00 04 B4 01 4F 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 00 01 00 00 00 00 00 EE 03 0A 00 F2 03 01 00 01 00 F3 CD 03 0A 01 E1 00 00 EF 03 0A 00 F6 03 01 00 [00:16:05]00 RasterBufferAndPrint [00:16:05]F7 line [00:16:05]03 line [00:16:05]line [00:16:05]line [00:16:05]line [00:16:05]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 written 0, free lines is 3033 [00:16:05]03 01 00 02 F7 03 01 00 00 MH_Cut [00:16:05]EF Write to MH i2c: 03 D1 0A 01 00 00 F6 BB 03 4F 01 01 00 DC 01 [00:16:05]F7 03 01 00 00 6C 04 99 Write i2c OK [00:16:05]00 MH_I2C_Read... [00:16:05]6F Read from MH i2c: 04 D1 04 [00:16:05]00 MH_I2C_Read... [00:16:05]00 00 00 00 B1 04 01 00 00 70 04 01 Read from MH i2c: 00 D1 00 01 72 00 04 [00:16:05]01 MH_I2C_Read... [00:16:05]00 Read from MH i2c: 00 D1 00 04 7E 00 EE 03 0A 00 F2 01 03 00 01 BB 4F 00 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 DB 01 [00:16:05]00 Write to MH i2c: 06 01 F7 03 01 00 00 EF 03 0A 00 00 F6 00 03 BC 01 4F 00 05 F7 03 01 00 00 EF 03 0B 0A [00:16:05]00 F6 03 01 00 Write i2c OK [00:16:05]04 MH_I2C_Read... [00:16:05]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 *** Cut start [00:16:06]03 *** Partial cut [00:16:06]01 00 *** CUTSNS_PIN = 1 [00:16:06]02 F7 *** CUTSNS_PIN = 0 [00:16:06]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Brake cut motor [00:16:06]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 *** Stop cut motor [00:16:07]00 *** Cut end [00:16:07]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 Read from MH i2c: 00 01 F2 [00:16:07]03 MH_I2C_Read... [00:16:07]01 00 00 F3 03 00 00 EE Read from MH i2c: 03 01 09 07 00 00 F2 03 01 00 01 F3 03 00 00 [00:16:07]EF MH_I2C_Read... [00:16:07]03 09 00 F6 03 Read from MH i2c: 01 01 07 00 00 00 F7 03 00 00 EF 03 09 00 BC F6 4F 03 00 01 00 00 01 F7 03 00 00 EF 03 09 00 00 00 F6 00 03 FF 01 00 02 F7 03 00 00 EF 03 0F 09 20 00 [00:16:07]F6 process_action close_shift done [00:16:07]03 requested_data is exist [00:16:07]01 produce_requested_data [00:16:07]00 requested_item fd.num is exist - process it [00:16:07]03 SAM_PROTO_GetFieldsCounters [00:16:07]F7 wFMCommunicate request_size=4 [00:16:07]03 MH_SAM_APDU [00:16:07]00 CAPDU: 80 13 00 00 [00:16:07]Write to MH i2c: E2 08 00 00 EF BD 03 4F 09 80 00 13 F6 00 03 00 01 00 00 00 04 00 F7 00 03 88 00 [00:16:07]00 Write i2c OK [00:16:07]EF MH_I2C_Read... [00:16:07]03 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 CD 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 33 46 5D BC 47 86 F1 4F 64 6E AB A3 A1 AA [00:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:07]Read from MH i2c: E2 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 62 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 62 00 BD 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [00:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 Received data: CC 87 00 95 F6 00 70 47 00 2C 57 01 04 00 04 00 CE 00 00 00 19 04 04 30 00 30 00 30 00 30 00 30 00 30 90 30 00 30 [00:16:08]30 wFMCommunicate OK [00:16:08]30 SAM_PROTO_GetFieldsCounters done [00:16:08]38 requested_item shift.num is exist - process it [00:16:08]37 requested_item shift.opened is exist - process it [00:16:08]31 req_shift_opened [00:16:08]37 FM_GetShiftState [00:16:08]39 SAM_PROTO_GetShiftState [00:16:08]wFMCommunicate request_size=4 [00:16:08]MH_SAM_APDU [00:16:08]CAPDU: 80 13 01 00 35 [00:16:08]4F Write to MH i2c: 00 E2 00 08 00 BE 4F 80 13 01 00 00 00 00 B9 00 3E 00 47 8A 00 [00:16:08]D2 Write i2c OK [00:16:08]4C A5 MH_I2C_Read... [00:16:08]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:08]30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 Read from MH i2c: 10 E2 04 [00:16:08]04 MH_I2C_Read... [00:16:08]00 Read from MH i2c: CD E2 25 0E 01 00 [00:16:08]MH_I2C_Read... [00:16:08]00 F4 03 04 00 C7 2D 1D 67 B6 04 01 00 00 F8 31 71 44 C5 AD 62 BB [00:16:08]CommunicateWithHost err = 0 [00:16:08]CheckOFDResponse [00:16:08]1017 (14) - 77093643461234 [00:16:08]1041 (16) - 0000000000871795 [00:16:08]1040 (4) - 75213 [00:16:08]1012 (4) - 26.10.2024 17:58 [00:16:08]1206 (1) - 0 [00:16:08]OFD Sender: Remove packet 75213 [00:16:08]ProducePacketName [00:16:08]name=ofd_packets/00075213 [00:16:08]NVStorageDeleteData [00:16:08]Read from MH i2c: E2 0E 00 BE 4F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 95 [00:16:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:16:08]wFMCommunicate OK [00:16:08]SAM_PROTO_GetShiftState done [00:16:08]FM_GetShiftState done [00:16:08]req_shift_opened done [00:16:08]requested_item shift.open_date is exist - process it [00:16:08]req_shift_open_date [00:16:08]FM_GetShiftState [00:16:08]SAM_PROTO_GetShiftState [00:16:08]wFMCommunicate request_size=4 [00:16:08]MH_SAM_APDU [00:16:08]CAPDU: 80 13 01 00 [00:16:08]Write to MH i2c: E2 08 00 BF 4F 80 13 01 00 00 00 00 00 8B [00:16:08]Write i2c OK [00:16:08]MH_I2C_Read... [00:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:08]Read from MH i2c: E2 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: E2 0E 00 [00:16:08]MH_I2C_Read... [00:16:08]Read from MH i2c: E2 0E 00 BF 4F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 96 [00:16:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:16:08]wFMCommunicate OK [00:16:08]SAM_PROTO_GetShiftState done [00:16:08]FM_GetShiftState done [00:16:08]req_shift_open_date done [00:16:08]produce_requested_data done [00:16:08]produce_requested_data return {"fd.num":75213,"shift.num":512,"shift.opened":0,"shift.open_date":0} [00:16:08]process_action_free close_shift [00:16:08]json_value_free [00:16:08]json_value_free done [00:16:08]process_json_proto returns [00:16:08]Send response to host [00:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":75213,"shift.num":512,"shift.opened":0,"shift.open_date":0}}} [00:16:08]free response buf [00:16:08]execute_script done [00:16:08]execute_script returns [00:16:08]free content buf [00:16:08]Sock 7.Close socket [00:16:08]Sock 7.Thread stoped [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:20]int [00:16:20]Write to MH i2c: 01 00 00 C0 4F 0F [00:16:20]*** FLAG_PRN_KEY set [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 C0 4F 00 08 00 00 00 FF 0F 2C [00:16:20]state=0 [00:16:20]Key pressed [00:16:20]Feed [00:16:20]Write to MH i2c: D8 00 00 C1 4F E7 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: D8 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: D8 01 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: D8 01 00 C1 4F 00 E8 [00:16:20]int line is 0 - check status [00:16:20]Write to MH i2c: 01 00 00 C2 4F 11 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 C2 4F 00 48 00 00 00 3C 00 9C [00:16:20]state=2 [00:16:20]Key pressed [00:16:20]int [00:16:20]Write to MH i2c: 01 00 00 C3 4F 12 [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 C3 4F 00 48 00 00 00 3C 00 9D [00:16:20]state=2 [00:16:20]Key pressed [00:16:20]int [00:16:20]Write to MH i2c: 01 00 00 C4 4F 13 [00:16:20]*** FLAG_PRN_KEY reset [00:16:20]Write i2c OK [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 [00:16:20]MH_I2C_Read... [00:16:20]Read from MH i2c: 01 07 00 C4 4F 00 00 00 00 00 FF 0F 28 [00:16:20]state=2 [00:16:20]Stop feed [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:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]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:54]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:16]recv_with_timeout no data received [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:42]recv_with_timeout no data received [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]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:19]OFD Sender: No OFD packet to send [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:06]recv_with_timeout no data received [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:16]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:47]recv_with_timeout no data received [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:57]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:35]accept exits with 9 [00:41:35]New connection [00:41:35]New thread 3066924388 created [00:41:35]Thread 3066781028 joined [00:41:35]Waiting for new connection... [00:41:35] Sock 9.Parse request [00:41:35]Sock 9.Check first char [00:41:35]Sock 9.First char is OK [00:41:35]request: POST /json_proto HTTP/1.0 [00:41:35]Method: POST [00:41:35]URL: /json_proto [00:41:35]Method is POST - this is cgi request [00:41:35]url: /json_proto [00:41:35]query_string will be loaded in cgi processing [00:41:35]execute_cgi json_proto POST (null) [00:41:35]execute_cgi path=json_proto method=POST [00:41:35]POST find Content-Length [00:41:35]Host: 172.17.39.131:8080 [00:41:35]Content-Length: 215 [00:41:35]Content-Type: application/json [00:41:35] [00:41:35]POST finish read [00:41:35]Found Content-Length = 215 [00:41:35]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:41:35]execute_script... [00:41:35]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:41:35]POST & json_proto [00:41:35]process_json_proto [00:41:35]json parsed OK: [00:41:35]protocol is kg_v1.0 [00:41:35]action value=get_value [00:41:35]process_action get_value [00:41:35]cmd_get_value [00:41:35]process_action get_value done [00:41:35]requested_data is exist [00:41:35]produce_requested_data [00:41:35]requested_item kkm.sn is exist - process it [00:41:35]requested_item kkm.ver is exist - process it [00:41:35]requested_item fm.sn is exist - process it [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 11 00 00 [00:41:35]Write to MH i2c: E2 08 00 C5 4F 80 11 00 00 00 00 00 00 8E [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 17 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 17 00 C5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E6 [00:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:41:35]wFMCommunicate OK [00:41:35]requested_item fd.num is exist - process it [00:41:35]SAM_PROTO_GetFieldsCounters [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 13 00 00 [00:41:35]Write to MH i2c: E2 08 00 C6 4F 80 13 00 00 00 00 00 00 91 [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 62 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 62 00 C6 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [00:41:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CD 25 01 00 0E 04 04 00 00 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:35]wFMCommunicate OK [00:41:35]SAM_PROTO_GetFieldsCounters done [00:41:35]requested_item shift.num is exist - process it [00:41:35]requested_item shift.opened is exist - process it [00:41:35]req_shift_opened [00:41:35]FM_GetShiftState [00:41:35]SAM_PROTO_GetShiftState [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 13 01 00 [00:41:35]Write to MH i2c: E2 08 00 C7 4F 80 13 01 00 00 00 00 00 93 [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 0E 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 0E 00 C7 4F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [00:41:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:35]wFMCommunicate OK [00:41:35]SAM_PROTO_GetShiftState done [00:41:35]FM_GetShiftState done [00:41:35]req_shift_opened done [00:41:35]requested_item shift.open_date is exist - process it [00:41:35]req_shift_open_date [00:41:35]FM_GetShiftState [00:41:35]SAM_PROTO_GetShiftState [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 13 01 00 [00:41:35]Write to MH i2c: E2 08 00 C8 4F 80 13 01 00 00 00 00 00 94 [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 0E 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 0E 00 C8 4F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:41:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:35]wFMCommunicate OK [00:41:35]SAM_PROTO_GetShiftState done [00:41:35]FM_GetShiftState done [00:41:35]req_shift_open_date done [00:41:35]produce_requested_data done [00:41:35]produce_requested_data return {"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75213,"shift.num":512,"shift.opened":0,"shift.open_date":0} [00:41:35]process_action_free get_value [00:41:35]json_value_free [00:41:35]json_value_free done [00:41:35]process_json_proto returns [00:41:35]Send response to host [00:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000089","kkm.ver":"001","fm.sn":"0000000000871795","fd.num":75213,"shift.num":512,"shift.opened":0,"shift.open_date":0}}} [00:41:35]free response buf [00:41:35]execute_script done [00:41:35]execute_script returns [00:41:35]free content buf [00:41:35]Sock 9.Close socket [00:41:35]Sock 9.Thread stoped [00:41:35]accept exits with 8 [00:41:35]New connection [00:41:35]New thread 3066781028 created [00:41:35]Thread 3066924388 joined [00:41:35]Waiting for new connection... [00:41:35] Sock 8.Parse request [00:41:35]Sock 8.Check first char [00:41:35]Sock 8.First char is OK [00:41:35]request: POST /json_proto HTTP/1.0 [00:41:35]Method: POST [00:41:35]URL: /json_proto [00:41:35]Method is POST - this is cgi request [00:41:35]url: /json_proto [00:41:35]query_string will be loaded in cgi processing [00:41:35]execute_cgi json_proto POST (null) [00:41:35]execute_cgi path=json_proto method=POST [00:41:35]POST find Content-Length [00:41:35]Host: 172.17.39.131:8080 [00:41:35]Content-Length: 331 [00:41:35]Content-Type: application/json [00:41:35] [00:41:35]POST finish read [00:41:35]Found Content-Length = 331 [00:41: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" ] } } [00:41:35]execute_script... [00:41:36]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:41:36]POST & json_proto [00:41:36]process_json_proto [00:41:36]json parsed OK: [00:41:36]protocol is kg_v1.0 [00:41:36]action value=get_value [00:41:36]process_action get_value [00:41:36]cmd_get_value [00:41:36]process_action get_value done [00:41:36]requested_data is exist [00:41:36]produce_requested_data [00:41:36]requested_item fm.sale.total is exist - process it [00:41:36]SAM_PROTO_GetFMData [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 13 03 00 [00:41:36]Write to MH i2c: E2 08 00 C9 4F 80 13 03 00 00 00 00 00 97 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 FD 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 FD 00 C9 4F 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 54 [00:41:36]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:41:36]wFMCommunicate OK [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 17 00 00 [00:41:36]Write to MH i2c: E2 08 00 CA 4F 80 17 00 00 00 00 00 00 99 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 FD 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 FD 00 CA 4F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [00:41:36]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:36]wFMCommunicate OK [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 17 00 00 [00:41:36]Write to MH i2c: E2 08 00 CB 4F 80 17 00 00 00 00 00 00 9A [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 FD 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 FD 00 CB 4F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:41:37]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:37]wFMCommunicate OK [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 17 00 00 [00:41:37]Write to MH i2c: E2 08 00 CC 4F 80 17 00 00 00 00 00 00 9B [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 FD 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 FD 00 CC 4F 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 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 90 00 20 [00:41:37]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 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 90 00 [00:41:37]wFMCommunicate OK [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 17 00 00 [00:41:37]Write to MH i2c: E2 08 00 CD 4F 80 17 00 00 00 00 00 00 9C [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 DE 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 DE 00 CD 4F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [00:41:37]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:37]wFMCommunicate OK [00:41:37]SAM_PROTO_GetFMData done [00:41:37]requested_item fm.sale_refund.total is exist - process it [00:41:37]requested_item fm.buy.total is exist - process it [00:41:37]requested_item shift.sale.total is exist - process it [00:41:37]SAM_PROTO_GetShiftData [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 02 00 [00:41:37]Write to MH i2c: E2 08 00 CE 4F 80 13 02 00 00 00 00 00 9B [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 CE 4F 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C8 [00:41:38]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 45 DA 28 01 70 04 03 00 E0 75 B8 72 04 03 00 65 64 70 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 3F 88 1F 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 AC A0 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 CF 4F 80 17 00 00 00 00 00 00 9E [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 CF 4F 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:41:38]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 D0 4F 80 17 00 00 00 00 00 00 9F [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 D0 4F 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:41:38]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 D1 4F 80 17 00 00 00 00 00 00 A0 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 D1 4F 00 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 90 00 13 [00:41:39]RAPDU: 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 90 00 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 17 00 00 [00:41:39]Write to MH i2c: E2 08 00 D2 4F 80 17 00 00 00 00 00 00 A1 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 CD 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 CD 00 D2 4F 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [00:41:39]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:39]wFMCommunicate OK [00:41:39]SAM_PROTO_GetShiftData done [00:41:39]requested_item shift.sale.total_cash is exist - process it [00:41:39]requested_item shift.sale_refund.total is exist - process it [00:41:39]requested_item shift.sale_refund.total_cash is exist - process it [00:41:39]requested_item shift.buy.total is exist - process it [00:41:39]requested_item shift.buy.total_cash is exist - process it [00:41:39]produce_requested_data done [00:41:39]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:41:39]process_action_free get_value [00:41:39]json_value_free [00:41:39]json_value_free done [00:41:39]process_json_proto returns [00:41:39]Send response to host [00:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.00,"fm.buy.total":0.00,"shift.sale.total":194545.33,"shift.sale.total_cash":120888.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:41:39]free response buf [00:41:39]execute_script done [00:41:39]execute_script returns [00:41:39]free content buf [00:41:39]Sock 8.Close socket [00:41:39]Sock 8.Thread stoped [00:41:39]accept exits with 9 [00:41:39]New connection [00:41:39]New thread 3066924388 created [00:41:39]Thread 3066781028 joined [00:41:39]Waiting for new connection... [00:41:39] Sock 9.Parse request [00:41:39]Sock 9.Check first char [00:41:39]Sock 9.First char is OK [00:41:39]request: POST /json_proto HTTP/1.0 [00:41:39]Method: POST [00:41:39]URL: /json_proto [00:41:39]Method is POST - this is cgi request [00:41:39]url: /json_proto [00:41:39]query_string will be loaded in cgi processing [00:41:39]execute_cgi json_proto POST (null) [00:41:39]execute_cgi path=json_proto method=POST [00:41:39]POST find Content-Length [00:41:39]Host: 172.17.39.131:8080 [00:41:39]Content-Length: 283 [00:41:39]Content-Type: application/json [00:41:39] [00:41:39]POST finish read [00:41:39]Found Content-Length = 283 [00:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:39]execute_script... [00:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:39]POST & json_proto [00:41:39]process_json_proto [00:41:39]json parsed OK: [00:41:39]protocol is kg_v1.0 [00:41:39]action value=open_shift [00:41:39]process_action open_shift [00:41:39]cmd_open_shift [00:41:39]MH_GetDate [00:41:39]Write to MH i2c: F0 00 00 D3 4F 11 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 09 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 09 00 D3 4F 00 4A 8C 1D 67 86 57 24 65 DA [00:41:39]GetLastDocTimeStamp 1729988154 [00:41:39]current date 1729989706 [00:41:39]FM_GetShiftState [00:41:39]SAM_PROTO_GetShiftState [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 13 01 00 [00:41:39]Write to MH i2c: E2 08 00 D4 4F 80 13 01 00 00 00 00 00 A0 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 0E 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 0E 00 D4 4F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AB [00:41:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:39]wFMCommunicate OK [00:41:39]SAM_PROTO_GetShiftState done [00:41:39]FM_GetShiftState done [00:41:39]KKMCreateOpenShiftDocument [00:41:39]Load OK [00:41:39]Malloc new data [00:41:39]MH_GetDate [00:41:39]Write to MH i2c: F0 00 00 D5 4F 13 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 09 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: F0 09 00 D5 4F 00 4A 8C 1D 67 86 57 24 65 DC [00:41:39]Malloc new data [00:41:39]KKMCreateOpenShiftDocument OK [00:41:39]KKMSetOpenShiftData OK [00:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=205 [00:41:39]tlvbuf is 0099BB70 [00:41:39]KKMLoadAndSignOpenShiftData [00:41:39]SAM_PROTO_ProcessDocument [00:41:39]wFMCommunicate request_size=9 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 15 01 00 04 02 00 CD 00 [00:41:39]Write to MH i2c: E2 0C 00 D6 4F 80 15 01 00 04 00 02 00 CD 00 00 00 7B [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 D6 4F 00 90 00 99 [00:41:39]RAPDU: 90 00 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=23 [00:41:39]MH_SAM_APDU [00:41:39]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:41:39]Write to MH i2c: E2 1A 00 D7 4F 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 9B [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 D7 4F 00 90 00 9A [00:41:39]RAPDU: 90 00 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=38 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:41:39]Write to MH i2c: E2 29 00 D8 4F 80 15 02 00 21 00 FD 03 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 B7 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 03 00 D8 4F 00 90 00 9B [00:41:39]RAPDU: 90 00 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=85 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 15 02 00 50 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 [00:41:39]Write to MH i2c: E2 58 00 D9 4F 80 15 02 00 50 00 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 00 00 AE [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 D9 4F 00 90 00 9C [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=51 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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:41:40]Write to MH i2c: E2 36 00 DA 4F 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 52 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 DA 4F 00 90 00 9D [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=13 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 15 02 00 08 F4 03 04 00 4A 8C 1D 67 [00:41:40]Write to MH i2c: E2 10 00 DB 4F 80 15 02 00 08 00 F4 03 04 00 4A 8C 1D 67 00 00 0F [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]OFD Sender: No OFD packet to send [00:41:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 DB 4F 00 90 00 9E [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=25 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 [00:41:40]Write to MH i2c: E2 1C 00 DC 4F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 00 00 0E [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 DC 4F 00 90 00 9F [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 15 03 00 [00:41:40]Write to MH i2c: E2 08 00 DD 4F 80 15 03 00 00 00 00 00 AD [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 38 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 38 00 DD 4F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 25 01 00 0E 04 04 00 01 02 00 00 35 04 06 00 3C 3E E2 F4 CB 6B 90 00 FB [00:41:40]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 25 01 00 0E 04 04 00 01 02 00 00 35 04 06 00 3C 3E E2 F4 CB 6B 90 00 [00:41:40]wFMCommunicate OK [00:41:40]SAM_PROTO_ProcessDocument answer len = 51 [00:41:40]SAM_PROTO_ProcessDocument done [00:41:40]SetTLVBufToDocument [00:41:40]Processing tag 1209 (04B9) [00:41:40]Malloc new data [00:41:40]Processing tag 1041 (0411) [00:41:40]Processing tag 1040 (0410) [00:41:40]Malloc new data [00:41:40]Processing tag 1038 (040E) [00:41:40]Malloc new data [00:41:40]Processing tag 1077 (0435) [00:41:40]Malloc new data [00:41:40]SetTLVBufToDocument err=0 [00:41:40]KKMLoadAndSignOpenShiftData store KKM data [00:41:40]KKMLoadAndSignOpenShiftData err=0 [00:41:40]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторалиева Н. Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 Место: АЗС № 142 "Партнер Нефть" 27.10.2024 00:41 Смена: 513 РНМ: 0000000000091691 ЗНМ: 0300000089 ФД: 75214 ФМ: 0000000000871795 ФПД: 66240793332587 [00:41:40]StoreToDocumentArchive [00:41:40]shift 513 fd 75214 [00:41:40]Create dir for shift 0513 [00:41:40]save to /storage/0513/doc_00075214 [00:41:40]save last doc name /storage/0513/doc_00075214 to /storage/kkm_last_doc_name [00:41:40]save OK [00:41:40]Clear old archive folders... [00:41:40]Remove dir /storage/0512 [00:41:40]opendir ok [00:41:40]file . [00:41:40]file .. [00:41:40]file doc_00075213 [00:41:40]remove file /storage/0512/doc_00075213 [00:41:40]remove dir /storage/0512 [00:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=256 [00:41:40]tlvbuf is 009C7530 [00:41:40]SAM_PROTO_ClearQueue [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 09 00 00 [00:41:40]Write to MH i2c: E2 08 00 DE 4F 80 09 00 00 00 00 00 00 9F [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 DE 4F 00 90 00 A1 [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]SAM_PROTO_ClearQueue done [00:41:40]KKMCreateOFDPacket [00:41:40]OFDProtocolAddRootSTLVToBuf [00:41:40]FM_MakeSignedData [00:41:40]FM_MakeSignedData [00:41:40]SAM_PROTO_SignData [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 0D 01 02 [00:41:40]Write to MH i2c: E2 08 00 DF 4F 80 0D 01 02 00 00 00 00 A7 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 03 00 DF 4F 00 90 00 A2 [00:41:40]RAPDU: 90 00 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=255 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 0D 02 02 FA 02 00 00 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 4A 8C 1D 67 0E 04 04 00 01 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 [00:41:40]Write to MH i2c: E2 02 01 E0 4F 80 0D 02 02 FA 00 02 00 00 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 4A 8C 1D 67 0E 04 04 00 01 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 00 00 B1 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 E0 4F 00 90 00 A3 [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=15 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 0D 02 02 0A 35 04 06 00 3C 3E E2 F4 CB 6B [00:41:41]Write to MH i2c: E2 12 00 E1 4F 80 0D 02 02 0A 00 35 04 06 00 3C 3E E2 F4 CB 6B 00 00 83 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 E1 4F 00 90 00 A4 [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 0D 03 02 [00:41:41]Write to MH i2c: E2 08 00 E2 4F 80 0D 03 02 00 00 00 00 AC [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0B 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0B 00 E2 4F 00 BA 72 B7 68 13 00 1F 2A 90 00 54 [00:41:41]RAPDU: BA 72 B7 68 13 00 1F 2A 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_SignData done [00:41:41]FM_MakeSignedData done [00:41:41]CreateOFDProtocolMessage [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 11 00 00 [00:41:41]Write to MH i2c: E2 08 00 E3 4F 80 11 00 00 00 00 00 00 AC [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 17 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 17 00 E3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 04 [00:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:41:41]wFMCommunicate OK [00:41:41]CreateOFDProtocolMessage done [00:41:41]OFDSenderStorePacket 75214 [00:41:41]StoreOFDPacket docnum=75214 [00:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 14 01 00 00 BE B2 0C 01 0B 99 5A 02 01 00 02 00 00 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 4A 8C 1D 67 0E 04 04 00 01 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 3C 3E E2 F4 CB 6B BA 72 B7 68 13 00 1F 2A [00:41:41]CheckFolder [00:41:41]dirname=/storage/ofd_packets [00:41:41]CheckFolder done [00:41:41]ProducePacketName [00:41:41]name=ofd_packets/00075214 [00:41:41]NVStorageSaveData ofd_packets/00075214 [00:41:41]File name is /storage/ofd_packets/00075214 [00:41:41]Write 306 bytes [00:41:41]NVStorageSaveData done [00:41:41]OFDSenderStorePacket done [00:41:41]KKMCreateOFDPacket done [00:41:41]NVStorageSaveData kkm_last_timestamp [00:41:41]File name is /storage/kkm_last_timestamp [00:41:41]Write 4 bytes [00:41:41]NVStorageSaveData done [00:41:41]ExternCall_PrintAddStr [00:41:41]wPrintStart [00:41:41]Write to MH i2c: 01 00 00 E4 4F 33 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 07 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 07 00 E4 4F 00 00 00 00 00 FF 0F 48 [00:41:41]RasterBufferAndPrint [00:41:41]line Отчет об открытии смены [00:41:41]line ФФД: 1.0 [00:41:41]line ИНН: 02508201610067 [00:41:41]line Кассир: Токторалиева Н. [00:41:41]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:41:41]line Место: АЗС № 142 "Партнер Нефть" [00:41:41]line 27.10.2024 00:41 [00:41:41]line Смена: 513 [00:41:41]line РНМ: 0000000000091691 [00:41:41]line ЗНМ: 0300000089 [00:41:41]line ФД: 75214 [00:41:41]line ФМ: 0000000000871795 [00:41:41]line ФПД: 66240793332587 [00:41:41]written 0, free lines is 4095 [00:41:41]OFD Sender: Processing packet 75214 [packets to send 13, broken 12] [00:41:41]ProducePacketName [00:41:41]name=ofd_packets/00075214 [00:41:41]OFD Sender: To server: pG, [00:41:41]CommunicateWithHost lk.salyk.kg:30040 [00:41:41]ConnectInit lk.salyk.kg [00:41:41]Write to MH i2c: 01 00 00 F6 4F 45 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 07 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: 01 07 00 F6 4F 00 00 00 00 00 57 0E B1 [00:41:41]RasterBufferAndPrint [00:41:41]line [00:41:41]line [00:41:41]line [00:41:41]line [00:41:41]line [00:41:41]written 0, free lines is 3683 [00:41:41]MH_Cut [00:41:41]Write to MH i2c: D1 01 00 FD 4F 01 1E [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: D1 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: D1 01 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: D1 01 00 FD 4F 00 1D [00:41:41]Write to MH i2c: 01 00 00 FE 4F 4D [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]Connected sock=11 [00:41:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 14 01 00 00 BE B2 0C 01 0B 99 5A 02 01 00 02 00 00 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 1D 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 81 2E 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 90 D0 BB D0 BC D0 B0 2C 20 34 31 2E 32 38 39 35 32 39 2C 20 37 32 2E 32 30 37 33 32 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 32 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 4A 8C 1D 67 0E 04 04 00 01 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 35 04 06 00 3C 3E E2 F4 CB 6B BA 72 B7 68 13 00 1F 2A [00:41:42]*** Cut start [00:41:42]*** Partial cut [00:41:42]*** CUTSNS_PIN = 1 [00:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 EB AA 47 00 9E 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CE 25 01 00 F4 03 04 00 C5 33 1D 67 B6 04 01 *** CUTSNS_PIN = 0 [00:41:42]00 00 57 D6 BA C6 29 53 71 F9 [00:41:42]CommunicateWithHost err = 0 [00:41:42]CheckOFDResponse [00:41:42]1017 (14) - 77093643461234 [00:41:42]1041 (16) - 0000000000871795 [00:41:42]1040 (4) - 75214 [00:41:42]1012 (4) - 26.10.2024 18:24 [00:41:42]1206 (1) - 0 [00:41:42]OFD Sender: Remove packet 75214 [00:41:42]ProducePacketName [00:41:42]name=ofd_packets/00075214 [00:41:42]NVStorageDeleteData [00:41:42]*** Brake cut motor [00:41:42]OFD Sender: No OFD packet to send [00:41:42]Read from MH i2c: 01 [00:41:42]MH_I2C_Read... [00:41:42]*** Stop cut motor [00:41:42]*** Cut end [00:41:42]Read from MH i2c: 01 07 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: 01 07 00 FE 4F 00 00 00 00 00 FF 0F 62 [00:41:42]process_action open_shift done [00:41:42]requested_data is exist [00:41:42]produce_requested_data [00:41:42]requested_item fd.num is exist - process it [00:41:42]SAM_PROTO_GetFieldsCounters [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 13 00 00 [00:41:42]Write to MH i2c: E2 08 00 FF 4F 80 13 00 00 00 00 00 00 CA [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 62 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 62 00 FF 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 0E 04 04 00 01 02 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 E8 [00:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CE 25 01 00 0E 04 04 00 01 02 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:41:42]wFMCommunicate OK [00:41:42]SAM_PROTO_GetFieldsCounters done [00:41:42]requested_item shift.num is exist - process it [00:41:42]requested_item shift.opened is exist - process it [00:41:42]req_shift_opened [00:41:42]FM_GetShiftState [00:41:42]SAM_PROTO_GetShiftState [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 13 01 00 [00:41:42]Write to MH i2c: E2 08 00 00 50 80 13 01 00 00 00 00 00 CD [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 0E 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 0E 00 00 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 33 [00:41:43]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [00:41:43]wFMCommunicate OK [00:41:43]SAM_PROTO_GetShiftState done [00:41:43]FM_GetShiftState done [00:41:43]req_shift_opened done [00:41:43]requested_item shift.open_date is exist - process it [00:41:43]req_shift_open_date [00:41:43]req_shift_open_date done [00:41:43]produce_requested_data done [00:41:43]produce_requested_data return {"fd.num":75214,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [00:41:43]process_action_free open_shift [00:41:43]json_value_free [00:41:43]json_value_free done [00:41:43]process_json_proto returns [00:41:43]Send response to host [00:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":75214,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [00:41:43]free response buf [00:41:43]execute_script done [00:41:43]execute_script returns [00:41:43]free content buf [00:41:43]Sock 9.Close socket [00:41:43]Sock 9.Thread stoped [00:41:43]accept exits with 8 [00:41:43]New connection [00:41:43]New thread 3066781028 created [00:41:43]Thread 3066924388 joined [00:41:43]Waiting for new connection... [00:41:43] Sock 8.Parse request [00:41:43]Sock 8.Check first char [00:41:43]Sock 8.First char is OK [00:41:43]request: POST /json_proto HTTP/1.0 [00:41:43]Method: POST [00:41:43]URL: /json_proto [00:41:43]Method is POST - this is cgi request [00:41:43]url: /json_proto [00:41:43]query_string will be loaded in cgi processing [00:41:43]execute_cgi json_proto POST (null) [00:41:43]execute_cgi path=json_proto method=POST [00:41:43]POST find Content-Length [00:41:43]Host: 172.17.39.131:8080 [00:41:43]Content-Length: 331 [00:41:43]Content-Type: application/json [00:41:43] [00:41:43]POST finish read [00:41:43]Found Content-Length = 331 [00:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:43]execute_script... [00:41:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:43]POST & json_proto [00:41:43]process_json_proto [00:41:43]json parsed OK: [00:41:43]protocol is kg_v1.0 [00:41:43]action value=get_value [00:41:43]process_action get_value [00:41:43]cmd_get_value [00:41:43]process_action get_value done [00:41:43]requested_data is exist [00:41:43]produce_requested_data [00:41:43]requested_item fm.sale.total is exist - process it [00:41:43]SAM_PROTO_GetFMData [00:41:43]wFMCommunicate request_size=4 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 13 03 00 [00:41:43]Write to MH i2c: E2 08 00 01 50 80 13 03 00 00 00 00 00 D0 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 01 50 00 C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 8D [00:41:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 CC 21 01 00 69 04 A3 00 6F 04 04 00 BF 21 01 00 B1 04 05 00 2B F2 3E A9 01 70 04 05 00 C4 8D E5 62 01 72 04 04 00 67 64 59 46 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 DE 1C 2C 2D 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 6F 99 C3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 AC FC 51 70 04 03 00 AC FC 51 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 FF B4 08 EF 03 09 00 F6 03 90 00 [00:41:43]wFMCommunicate OK [00:41:43]wFMCommunicate request_size=4 [00:41:43]MH_SAM_APDU [00:41:43]CAPDU: 80 17 00 00 [00:41:43]Write to MH i2c: E2 08 00 02 50 80 17 00 00 00 00 00 00 D2 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:43]Read from MH i2c: E2 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: E2 FD 00 02 50 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [00:41:44]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C0 B9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:44]wFMCommunicate OK [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 17 00 00 [00:41:44]Write to MH i2c: E2 08 00 03 50 80 17 00 00 00 00 00 00 D3 [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 FD 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 FD 00 03 50 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [00:41:44]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:41:44]wFMCommunicate OK [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 17 00 00 [00:41:44]Write to MH i2c: E2 08 00 04 50 80 17 00 00 00 00 00 00 D4 [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 FD 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 FD 00 04 50 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 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 90 00 59 [00:41:44]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 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 90 00 [00:41:45]wFMCommunicate OK [00:41:45]wFMCommunicate request_size=4 [00:41:45]MH_SAM_APDU [00:41:45]CAPDU: 80 17 00 00 [00:41:45]Write to MH i2c: E2 08 00 05 50 80 17 00 00 00 00 00 00 D5 [00:41:45]Write i2c OK [00:41:45]MH_I2C_Read... [00:41:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:41:45]Read from MH i2c: E2 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 DE 00 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 DE 00 05 50 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:45]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:45]wFMCommunicate OK [00:41:45]SAM_PROTO_GetFMData done [00:41:45]requested_item fm.sale_refund.total is exist - process it [00:41:45]requested_item fm.buy.total is exist - process it [00:41:45]requested_item shift.sale.total is exist - process it [00:41:45]SAM_PROTO_GetShiftData [00:41:45]wFMCommunicate request_size=4 [00:41:45]MH_SAM_APDU [00:41:45]CAPDU: 80 13 02 00 [00:41:45]Write to MH i2c: E2 08 00 06 50 80 13 02 00 00 00 00 00 D4 [00:41:45]Write i2c OK [00:41:45]MH_I2C_Read... [00:41:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:45]Read from MH i2c: E2 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 06 50 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 47 [00:41:46]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:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 17 00 00 [00:41:46]Write to MH i2c: E2 08 00 07 50 80 17 00 00 00 00 00 00 D7 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 07 50 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 DF [00:41:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 17 00 00 [00:41:46]Write to MH i2c: E2 08 00 08 50 80 17 00 00 00 00 00 00 D8 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 08 50 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 AA [00:41:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 09 50 80 17 00 00 00 00 00 00 D9 [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 09 50 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 4B [00:41:47]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 0A 50 80 17 00 00 00 00 00 00 DA [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 BD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 BD 00 0A 50 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 C0 [00:41:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:47]wFMCommunicate OK [00:41:47]SAM_PROTO_GetShiftData done [00:41:47]requested_item shift.sale.total_cash is exist - process it [00:41:47]requested_item shift.sale_refund.total is exist - process it [00:41:47]requested_item shift.sale_refund.total_cash is exist - process it [00:41:47]requested_item shift.buy.total is exist - process it [00:41:47]requested_item shift.buy.total_cash is exist - process it [00:41:47]produce_requested_data done [00:41:47]produce_requested_data return {"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.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:41:47]process_action_free get_value [00:41:47]json_value_free [00:41:47]json_value_free done [00:41:47]process_json_proto returns [00:41:47]Send response to host [00:41:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":71344420.27,"fm.sale_refund.total":53731.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:41:47]free response buf [00:41:47]execute_script done [00:41:47]execute_script returns [00:41:47]free content buf [00:41:47]Sock 8.Close socket [00:41:47]Sock 8.Thread stoped [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:05]accept exits with 9 [00:51:05]New connection [00:51:05]New thread 3066924388 created [00:51:05]Thread 3066781028 joined [00:51:05]Waiting for new connection... [00:51:05] Sock 9.Parse request [00:51:05]Sock 9.Check first char [00:51:05]Sock 9.First char is OK [00:51:05]request: POST /json_proto HTTP/1.0 [00:51:05]Method: POST [00:51:05]URL: /json_proto [00:51:05]Method is POST - this is cgi request [00:51:05]url: /json_proto [00:51:05]query_string will be loaded in cgi processing [00:51:05]execute_cgi json_proto POST (null) [00:51:05]execute_cgi path=json_proto method=POST [00:51:05]POST find Content-Length [00:51:05]Host: 172.17.39.131:8080 [00:51:05]Content-Length: 682 [00:51:05]Content-Type: application/json [00:51:05] [00:51:05]POST finish read [00:51:05]Found Content-Length = 682 [00:51:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.850, "sum" : 2732.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2732.00, "payments": [ { "type": 0, "sum" : 2732.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:05]execute_script... [00:51: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)191193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 40.850, "sum" : 2732.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2732.00, "payments": [ { "type": 0, "sum" : 2732.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:05]POST & json_proto [00:51:05]process_json_proto [00:51:05]json parsed OK: [00:51:05]protocol is kg_v1.0 [00:51:05]action value=close_receipt [00:51:05]process_action close_receipt [00:51:05]cmd_close_receipt [00:51:05]MH_GetDate [00:51:05]Write to MH i2c: F0 00 00 0B 50 4A [00:51:05]Write i2c OK [00:51:05]MH_I2C_Read... [00:51:05]Read from MH i2c: F0 [00:51:05]MH_I2C_Read... [00:51:05]Read from MH i2c: F0 09 00 [00:51:05]MH_I2C_Read... [00:51:05]Read from MH i2c: F0 09 00 0B 50 00 80 8E 1D 67 86 57 24 65 4B [00:51:05]GetLastDocTimeStamp 1729989706 [00:51:05]current date 1729990272 [00:51:05]FM_GetShiftState [00:51:05]SAM_PROTO_GetShiftState [00:51:05]wFMCommunicate request_size=4 [00:51:05]MH_SAM_APDU [00:51:05]CAPDU: 80 13 01 00 [00:51:05]Write to MH i2c: E2 08 00 0C 50 80 13 01 00 00 00 00 00 D9 [00:51:05]Write i2c OK [00:51:05]MH_I2C_Read... [00:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:05]Read from MH i2c: E2 [00:51:05]MH_I2C_Read... [00:51:05]Read from MH i2c: E2 0E 00 [00:51:05]MH_I2C_Read... [00:51:05]Read from MH i2c: E2 0E 00 0C 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 3F [00:51:05]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [00:51:05]wFMCommunicate OK [00:51:05]SAM_PROTO_GetShiftState done [00:51:05]FM_GetShiftState done [00:51:05]opened in 1729989706 [00:51:05]opened+sec_in_day 1730076106 [00:51:05]quantity*price = 273286 [00:51:05]sum+1 = 273288 [00:51:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 2732.00 Внесено: 5000.00 СДАЧА: 2268.00 НСП 1% : 24.18 НДС 12% : 290.22 Наличными: 2732.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 1 27.10.2024 00:51 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75215 ФПД: 121409353758604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T005113&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75215&fm=121409353758604&tin=02508201610067®Number=0000000000091691&sum=273200 [00:51:06]StoreToDocumentArchive [00:51:06]shift 513 fd 75215 [00:51:06]save to /storage/0513/doc_00075215 [00:51:06]save last doc name /storage/0513/doc_00075215 to /storage/kkm_last_doc_name [00:51:06]save OK [00:51:06]Clear old archive folders... [00:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:06]tlvbuf is 0090C760 [00:51:06]SAM_PROTO_ClearQueue [00:51:06]wFMCommunicate request_size=4 [00:51:06]MH_SAM_APDU [00:51:06]CAPDU: 80 09 00 00 [00:51:06]Write to MH i2c: E2 08 00 19 50 80 09 00 00 00 00 00 00 DB [00:51:06]Write i2c OK [00:51:06]MH_I2C_Read... [00:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:06]Read from MH i2c: E2 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 03 00 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 03 00 19 50 00 90 00 DD [00:51:06]RAPDU: 90 00 [00:51:06]wFMCommunicate OK [00:51:06]SAM_PROTO_ClearQueue done [00:51:06]KKMCreateOFDPacket [00:51:06]OFDProtocolAddRootSTLVToBuf [00:51:06]FM_MakeSignedData [00:51:06]FM_MakeSignedData [00:51:06]SAM_PROTO_SignData [00:51:06]wFMCommunicate request_size=4 [00:51:06]MH_SAM_APDU [00:51:06]CAPDU: 80 0D 01 02 [00:51:06]Write to MH i2c: E2 08 00 1A 50 80 0D 01 02 00 00 00 00 E3 [00:51:06]Write i2c OK [00:51:06]MH_I2C_Read... [00:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:06]Read from MH i2c: E2 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 03 00 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 03 00 1A 50 00 90 00 DE [00:51:06]RAPDU: 90 00 [00:51:06]wFMCommunicate OK [00:51:06]wFMCommunicate request_size=255 [00:51:06]MH_SAM_APDU [00:51: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 92 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 2B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 71 00 00 00 00 07 04 06 00 30 2B 04 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 81 8E 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 25 01 00 35 04 06 00 6E [00:51:06]Write to MH i2c: E2 02 01 1B 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 2B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 71 00 00 00 00 07 04 06 00 30 2B 04 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 81 8E 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 25 01 00 35 04 06 00 6E 00 00 18 [00:51:06]Write i2c OK [00:51:06]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]wFMCommunicate request_size=10 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 02 02 05 6B D1 67 37 8C [00:51:07]Write to MH i2c: E2 0D 00 1C 50 80 0D 02 02 05 00 6B D1 67 37 8C 00 00 56 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 1C 50 00 90 00 E0 [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 03 02 [00:51:07]Write to MH i2c: E2 08 00 1D 50 80 0D 03 02 00 00 00 00 E8 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 0B 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 0B 00 1D 50 00 D9 D8 8B 83 A4 94 A3 67 90 00 EA [00:51:07]RAPDU: D9 D8 8B 83 A4 94 A3 67 90 00 [00:51:07]wFMCommunicate OK [00:51:07]SAM_PROTO_SignData done [00:51:07]FM_MakeSignedData done [00:51:07]CreateOFDProtocolMessage [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 11 00 00 [00:51:07]Write to MH i2c: E2 08 00 1E 50 80 11 00 00 00 00 00 00 E8 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 17 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 17 00 1E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 40 [00:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:51:07]wFMCommunicate OK [00:51:07]CreateOFDProtocolMessage done [00:51:07]OFDSenderStorePacket 75215 [00:51:07]StoreOFDPacket docnum=75215 [00:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D1 99 07 01 E1 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 2B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 71 00 00 00 00 07 04 06 00 30 2B 04 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 81 8E 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 25 01 00 35 04 06 00 6E 6B D1 67 37 8C D9 D8 8B 83 A4 94 A3 67 [00:51:07]CheckFolder [00:51:07]dirname=/storage/ofd_packets [00:51:07]CheckFolder done [00:51:07]ProducePacketName [00:51:07]name=ofd_packets/00075215 [00:51:07]NVStorageSaveData ofd_packets/00075215 [00:51:07]File name is /storage/ofd_packets/00075215 [00:51:07]Write 301 bytes [00:51:07]NVStorageSaveData done [00:51:07]OFDSenderStorePacket done [00:51:07]KKMCreateOFDPacket done [00:51:07]NVStorageSaveData kkm_last_timestamp [00:51:07]File name is /storage/kkm_last_timestamp [00:51:07]Write 4 bytes [00:51:07]NVStorageSaveData done [00:51:07]ExternCall_PrintAddStr [00:51:07]wPrintStart [00:51:07]Write to MH i2c: 01 00 00 1F 50 6F [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 1F 50 00 00 00 00 00 FF 0F 84 [00:51:07]RasterBufferAndPrint [00:51:07]line Счет N : (1)191193 [00:51:07]line ИНН: 02508201610067 [00:51:07]line Контрольно-Кассовый Чек [00:51:07]line ПРОДАЖА [00:51:07]line ТРК (МРК, ГНК) : 21 [00:51:07]line Товар: 2710124130 [00:51:07]line Аи-92-К-5 [00:51:07]line 40.850 * 66.90 [00:51:07]line = 2732.87 [00:51:07]line НДС 12% НСП 1% [00:51:07]line > о реализуемом товаре [00:51:07]line ОКРУГЛЕНИЕ: -0.87 [00:51:07]line ИТОГО: 2732.00 [00:51:07]line Внесено: 5000.00 [00:51:07]line СДАЧА: 2268.00 [00:51:07]line НСП 1% : 24.18 [00:51:07]line НДС 12% : 290.22 [00:51:07]line Наличными: 2732.00 [00:51:07]line Безнал.: 0.00 [00:51:07]line Место: АЗС № 142 "Партнер Нефть" [00:51:07]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [00:51:07]line СНО: Общий режим [00:51:07]line Чек 1 27.10.2024 00:51 [00:51:07]line Смена: 513 ФФД: 1.0 [00:51:07]line ЗНМ: 0300000089 [00:51:07]line РНМ: 0000000000091691 [00:51:07]line Версия ККМ: 001 [00:51:07]line ФМ: 0000000000871795 [00:51:07]line ФД: 75215 [00:51:07]line ФПД: 121409353758604 [00:51:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T005113&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75215&fm=121409353758604&tin=02508201610067®Number=0000000000091691&sum=273200 [00:51:07]OFD Sender: Processing packet 75215 [packets to send 13, broken 12] [00:51:07]ProducePacketName [00:51:07]name=ofd_packets/00075215 [00:51:07]OFD Sender: To server: pG, [00:51:07]CommunicateWithHost lk.salyk.kg:30040 [00:51:07]ConnectInit lk.salyk.kg [00:51:07]written 0, free lines is 4095 [00:51:07]Connected sock=10 [00:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 D1 99 07 01 E1 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 9F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 2B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 71 00 00 00 00 07 04 06 00 30 2B 04 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 81 8E 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 25 01 00 35 04 06 00 6E 6B D1 67 37 8C D9 D8 8B 83 A4 94 A3 67 [00:51:08]Write to MH i2c: 01 00 00 4A 50 9A [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 07 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 07 00 4A 50 00 00 00 00 00 A5 0C 52 [00:51:08]RasterBufferAndPrint [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]written 0, free lines is 3242 [00:51:08]MH_Cut [00:51:08]Write to MH i2c: D1 01 00 51 50 01 73 [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 01 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 01 00 51 50 00 72 [00:51:08]Write to MH i2c: 01 00 00 52 50 A2 [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 AF 3A 47 00 47 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 CF 25 01 00 F4 03 04 00 FB 35 1D 67 B6 04 01 00 00 7B 5B 77 FF 97 6F 30 CC [00:51:08]CommunicateWithHost err = 0 [00:51:08]CheckOFDResponse [00:51:08]1017 (14) - 77093643461234 [00:51:08]1041 (16) - 0000000000871795 [00:51:08]1040 (4) - 75215 [00:51:08]1012 (4) - 26.10.2024 18:33 [00:51:08]1206 (1) - 0 [00:51:08]OFD Sender: Remove packet 75215 [00:51:08]ProducePacketName [00:51:08]name=ofd_packets/00075215 [00:51:08]NVStorageDeleteData [00:51:08]OFD Sender: No OFD packet to send [00:51:08]*** Cut start [00:51:08]*** Partial cut [00:51:08]*** CUTSNS_PIN = 1 [00:51:08]*** CUTSNS_PIN = 0 [00:51:09]*** Brake cut motor [00:51:09]Read from MH i2c: 01 [00:51:09]MH_I2C_Read... [00:51:09]*** Stop cut motor [00:51:09]*** Cut end [00:51:09]Read from MH i2c: 01 07 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: 01 07 00 52 50 00 00 00 00 00 FF 0F B7 [00:51:09]process_action close_receipt done [00:51:09]requested_data is exist [00:51:09]produce_requested_data [00:51:09]requested_item fm.sn is exist - process it [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 11 00 00 [00:51:09]Write to MH i2c: E2 08 00 53 50 80 11 00 00 00 00 00 00 1D [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:09]Read from MH i2c: E2 17 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 17 00 53 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 75 [00:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [00:51:09]wFMCommunicate OK [00:51:09]requested_item fd.num is exist - process it [00:51:09]SAM_PROTO_GetFieldsCounters [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 13 00 00 [00:51:09]Write to MH i2c: E2 08 00 54 50 80 13 00 00 00 00 00 00 20 [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 62 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 62 00 54 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CF 25 01 00 0E 04 04 00 01 02 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 42 [00:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 CF 25 01 00 0E 04 04 00 01 02 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:51:09]wFMCommunicate OK [00:51:09]SAM_PROTO_GetFieldsCounters done [00:51:09]requested_item shift.num is exist - process it [00:51:09]requested_item shift.opened is exist - process it [00:51:09]req_shift_opened [00:51:09]FM_GetShiftState [00:51:09]SAM_PROTO_GetShiftState [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 13 01 00 [00:51:09]Write to MH i2c: E2 08 00 55 50 80 13 01 00 00 00 00 00 22 [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 0E 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 0E 00 55 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 88 [00:51:09]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [00:51:09]wFMCommunicate OK [00:51:09]SAM_PROTO_GetShiftState done [00:51:09]FM_GetShiftState done [00:51:09]req_shift_opened done [00:51:09]requested_item shift.open_date is exist - process it [00:51:09]req_shift_open_date [00:51:09]req_shift_open_date done [00:51:09]produce_requested_data done [00:51:09]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75215,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [00:51:09]process_action_free close_receipt [00:51:09]json_value_free [00:51:09]json_value_free done [00:51:09]process_json_proto returns [00:51:09]Send response to host [00:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75215,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [00:51:09]free response buf [00:51:09]execute_script done [00:51:09]execute_script returns [00:51:09]free content buf [00:51:09]Sock 9.Close socket [00:51:09]Sock 9.Thread stoped [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:18]accept exits with 8 [01:09:18]New connection [01:09:18]New thread 3066781028 created [01:09:18]Thread 3066924388 joined [01:09:18]Waiting for new connection... [01:09:18] Sock 8.Parse request [01:09:18]Sock 8.Check first char [01:09:18]Sock 8.First char is OK [01:09:18]request: POST /json_proto HTTP/1.0 [01:09:18]Method: POST [01:09:18]URL: /json_proto [01:09:18]Method is POST - this is cgi request [01:09:18]url: /json_proto [01:09:18]query_string will be loaded in cgi processing [01:09:18]execute_cgi json_proto POST (null) [01:09:18]execute_cgi path=json_proto method=POST [01:09:18]POST find Content-Length [01:09:18]Host: 172.17.39.131:8080 [01:09:18]Content-Length: 680 [01:09:18]Content-Type: application/json [01:09:18] [01:09:18]POST finish read [01:09:18]Found Content-Length = 680 [01:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [01:09:18]execute_script... [01:09: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)191194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [01:09:18]POST & json_proto [01:09:18]process_json_proto [01:09:18]json parsed OK: [01:09:18]protocol is kg_v1.0 [01:09:18]action value=close_receipt [01:09:18]process_action close_receipt [01:09:18]cmd_close_receipt [01:09:18]MH_GetDate [01:09:18]Write to MH i2c: F0 00 00 56 50 95 [01:09:18]Write i2c OK [01:09:18]MH_I2C_Read... [01:09:18]Read from MH i2c: F0 [01:09:18]MH_I2C_Read... [01:09:18]Read from MH i2c: F0 09 00 [01:09:18]MH_I2C_Read... [01:09:18]Read from MH i2c: F0 09 00 56 50 00 C6 92 1D 67 86 57 24 65 E0 [01:09:18]GetLastDocTimeStamp 1729990273 [01:09:18]current date 1729991366 [01:09:18]FM_GetShiftState [01:09:18]SAM_PROTO_GetShiftState [01:09:18]wFMCommunicate request_size=4 [01:09:18]MH_SAM_APDU [01:09:18]CAPDU: 80 13 01 00 [01:09:18]Write to MH i2c: E2 08 00 57 50 80 13 01 00 00 00 00 00 24 [01:09:18]Write i2c OK [01:09:18]MH_I2C_Read... [01:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:18]Read from MH i2c: E2 [01:09:18]MH_I2C_Read... [01:09:18]Read from MH i2c: E2 0E 00 [01:09:18]MH_I2C_Read... [01:09:18]Read from MH i2c: E2 0E 00 57 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 8A [01:09:18]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:09:18]wFMCommunicate OK [01:09:18]SAM_PROTO_GetShiftState done [01:09:18]FM_GetShiftState done [01:09:18]opened in 1729989706 [01:09:18]opened+sec_in_day 1730076106 [01:09:18]quantity*price = 30030 [01:09:18]sum+1 = 30032 [01:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 2 27.10.2024 01:09 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75216 ФПД: 82547125733239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010926&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75216&fm=82547125733239&tin=02508201610067®Number=0000000000091691&sum=30000 [01:09:20]StoreToDocumentArchive [01:09:20]shift 513 fd 75216 [01:09:20]save to /storage/0513/doc_00075216 [01:09:20]save last doc name /storage/0513/doc_00075216 to /storage/kkm_last_doc_name [01:09:20]save OK [01:09:20]Clear old archive folders... [01:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:09:20]tlvbuf is 009A2320 [01:09:20]SAM_PROTO_ClearQueue [01:09:20]wFMCommunicate request_size=4 [01:09:20]MH_SAM_APDU [01:09:20]CAPDU: 80 09 00 00 [01:09:20]Write to MH i2c: E2 08 00 64 50 80 09 00 00 00 00 00 00 26 [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 64 50 00 90 00 28 [01:09:20]RAPDU: 90 00 [01:09:20]wFMCommunicate OK [01:09:20]SAM_PROTO_ClearQueue done [01:09:20]KKMCreateOFDPacket [01:09:20]OFDProtocolAddRootSTLVToBuf [01:09:20]FM_MakeSignedData [01:09:20]FM_MakeSignedData [01:09:20]SAM_PROTO_SignData [01:09:20]wFMCommunicate request_size=4 [01:09:20]MH_SAM_APDU [01:09:20]CAPDU: 80 0D 01 02 [01:09:20]Write to MH i2c: E2 08 00 65 50 80 0D 01 02 00 00 00 00 2E [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 65 50 00 90 00 29 [01:09:20]RAPDU: 90 00 [01:09:20]wFMCommunicate OK [01:09:20]wFMCommunicate request_size=255 [01:09:20]MH_SAM_APDU [01:09: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 39 30 30 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 02 00 00 00 F4 03 04 00 C6 92 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 25 01 00 35 04 06 00 4B 13 [01:09:20]Write to MH i2c: E2 02 01 66 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 39 30 30 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 02 00 00 00 F4 03 04 00 C6 92 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 25 01 00 35 04 06 00 4B 13 00 00 39 [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 66 50 00 90 00 2A [01:09:20]RAPDU: 90 00 [01:09:20]wFMCommunicate OK [01:09:20]wFMCommunicate request_size=9 [01:09:20]MH_SAM_APDU [01:09:20]CAPDU: 80 0D 02 02 04 80 1B 47 77 [01:09:20]Write to MH i2c: E2 0C 00 67 50 80 0D 02 02 04 00 80 1B 47 77 00 00 92 [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 03 00 67 50 00 90 00 2B [01:09:20]RAPDU: 90 00 [01:09:20]wFMCommunicate OK [01:09:20]wFMCommunicate request_size=4 [01:09:20]MH_SAM_APDU [01:09:20]CAPDU: 80 0D 03 02 [01:09:20]Write to MH i2c: E2 08 00 68 50 80 0D 03 02 00 00 00 00 33 [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 0B 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 0B 00 68 50 00 67 CC 7B B8 D9 E6 1A 51 90 00 C4 [01:09:20]RAPDU: 67 CC 7B B8 D9 E6 1A 51 90 00 [01:09:20]wFMCommunicate OK [01:09:20]SAM_PROTO_SignData done [01:09:20]FM_MakeSignedData done [01:09:20]CreateOFDProtocolMessage [01:09:20]wFMCommunicate request_size=4 [01:09:20]MH_SAM_APDU [01:09:20]CAPDU: 80 11 00 00 [01:09:20]Write to MH i2c: E2 08 00 69 50 80 11 00 00 00 00 00 00 33 [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:20]Read from MH i2c: E2 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 17 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: E2 17 00 69 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 8B [01:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:09:20]wFMCommunicate OK [01:09:20]CreateOFDProtocolMessage done [01:09:20]OFDSenderStorePacket 75216 [01:09:20]StoreOFDPacket docnum=75216 [01:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 F1 9C 06 01 59 C1 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 39 30 30 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 02 00 00 00 F4 03 04 00 C6 92 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 25 01 00 35 04 06 00 4B 13 80 1B 47 77 67 CC 7B B8 D9 E6 1A 51 [01:09:20]CheckFolder [01:09:20]dirname=/storage/ofd_packets [01:09:20]CheckFolder done [01:09:20]ProducePacketName [01:09:20]name=ofd_packets/00075216 [01:09:20]NVStorageSaveData ofd_packets/00075216 [01:09:20]File name is /storage/ofd_packets/00075216 [01:09:20]Write 300 bytes [01:09:20]NVStorageSaveData done [01:09:20]OFDSenderStorePacket done [01:09:20]KKMCreateOFDPacket done [01:09:20]NVStorageSaveData kkm_last_timestamp [01:09:20]File name is /storage/kkm_last_timestamp [01:09:20]Write 4 bytes [01:09:20]NVStorageSaveData done [01:09:20]ExternCall_PrintAddStr [01:09:20]wPrintStart [01:09:20]Write to MH i2c: 01 00 00 6A 50 BA [01:09:20]Write i2c OK [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: 01 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: 01 07 00 [01:09:20]MH_I2C_Read... [01:09:20]Read from MH i2c: 01 07 00 6A 50 00 00 00 00 00 FF 0F CF [01:09:20]RasterBufferAndPrint [01:09:20]line Счет N : (1)191194 [01:09:20]line ИНН: 02508201610067 [01:09:20]line Контрольно-Кассовый Чек [01:09:20]line ПРОДАЖА [01:09:20]line ТРК (МРК, ГНК) : 51 [01:09:20]line Товар: 2711190000 [01:09:20]line ГАЗ-К-3 [01:09:20]line 7.720 * 38.90 [01:09:20]line = 300.31 [01:09:20]line НДС 12% НСП 1% [01:09:20]line > о реализуемом товаре [01:09:20]line ОКРУГЛЕНИЕ: -0.31 [01:09:20]line ИТОГО: 300.00 [01:09:20]line Внесено: 300.00 [01:09:20]line СДАЧА: 0.00 [01:09:20]line НСП 1% : 2.66 [01:09:20]line НДС 12% : 31.89 [01:09:20]line Наличными: 300.00 [01:09:20]line Безнал.: 0.00 [01:09:20]line Место: АЗС № 142 "Партнер Нефть" [01:09:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:09:20]line СНО: Общий режим [01:09:20]line Чек 2 27.10.2024 01:09 [01:09:20]line Смена: 513 ФФД: 1.0 [01:09:20]line ЗНМ: 0300000089 [01:09:20]line РНМ: 0000000000091691 [01:09:20]line Версия ККМ: 001 [01:09:20]line ФМ: 0000000000871795 [01:09:20]line ФД: 75216 [01:09:20]line ФПД: 82547125733239 [01:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010926&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75216&fm=82547125733239&tin=02508201610067®Number=0000000000091691&sum=30000 [01:09:20]OFD Sender: Processing packet 75216 [packets to send 13, broken 12] [01:09:20]ProducePacketName [01:09:20]name=ofd_packets/00075216 [01:09:20]OFD Sender: To server: pG, [01:09:20]CommunicateWithHost lk.salyk.kg:30040 [01:09:20]ConnectInit lk.salyk.kg [01:09:20]written 0, free lines is 4095 [01:09:21]Connected sock=10 [01:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 F1 9C 06 01 59 C1 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 39 30 30 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 02 00 00 00 F4 03 04 00 C6 92 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 25 01 00 35 04 06 00 4B 13 80 1B 47 77 67 CC 7B B8 D9 E6 1A 51 [01:09:21]Write to MH i2c: 01 00 00 95 50 E5 [01:09:21]Write i2c OK [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: 01 [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: 01 07 00 [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: 01 07 00 95 50 00 00 00 00 00 99 0C 91 [01:09:21]RasterBufferAndPrint [01:09:21]line [01:09:21]line [01:09:21]line [01:09:21]line [01:09:21]line [01:09:21]written 0, free lines is 3232 [01:09:21]MH_Cut [01:09:21]Write to MH i2c: D1 01 00 9C 50 01 BE [01:09:21]Write i2c OK [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: D1 [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: D1 01 00 [01:09:21]MH_I2C_Read... [01:09:21]Read from MH i2c: D1 01 00 9C 50 00 BD [01:09:21]Write to MH i2c: 01 00 00 9D 50 ED [01:09:21]Write i2c OK [01:09:21]MH_I2C_Read... [01:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E2 D1 47 00 DA DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D0 25 01 00 F4 03 04 00 41 3A 1D 67 B6 04 01 00 00 B8 C2 68 7A FC 31 34 D2 [01:09:21]CommunicateWithHost err = 0 [01:09:21]CheckOFDResponse [01:09:21]1017 (14) - 77093643461234 [01:09:21]1041 (16) - 0000000000871795 [01:09:21]1040 (4) - 75216 [01:09:21]1012 (4) - 26.10.2024 18:51 [01:09:21]1206 (1) - 0 [01:09:21]OFD Sender: Remove packet 75216 [01:09:21]ProducePacketName [01:09:21]name=ofd_packets/00075216 [01:09:21]NVStorageDeleteData [01:09:21]OFD Sender: No OFD packet to send [01:09:22]*** Cut start [01:09:22]*** Partial cut [01:09:22]*** CUTSNS_PIN = 1 [01:09:22]*** CUTSNS_PIN = 0 [01:09:22]*** Brake cut motor [01:09:22]Read from MH i2c: 01 [01:09:22]MH_I2C_Read... [01:09:22]*** Stop cut motor [01:09:22]*** Cut end [01:09:22]Read from MH i2c: 01 07 00 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: 01 07 00 9D 50 00 00 00 00 00 FF 0F 02 [01:09:22]process_action close_receipt done [01:09:22]requested_data is exist [01:09:22]produce_requested_data [01:09:22]requested_item fm.sn is exist - process it [01:09:22]wFMCommunicate request_size=4 [01:09:22]MH_SAM_APDU [01:09:22]CAPDU: 80 11 00 00 [01:09:22]Write to MH i2c: E2 08 00 9E 50 80 11 00 00 00 00 00 00 68 [01:09:22]Write i2c OK [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: E2 [01:09:22]MH_I2C_Read... [01:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:22]Read from MH i2c: E2 17 00 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: E2 17 00 9E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 C0 [01:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:09:22]wFMCommunicate OK [01:09:22]requested_item fd.num is exist - process it [01:09:22]SAM_PROTO_GetFieldsCounters [01:09:22]wFMCommunicate request_size=4 [01:09:22]MH_SAM_APDU [01:09:22]CAPDU: 80 13 00 00 [01:09:22]Write to MH i2c: E2 08 00 9F 50 80 13 00 00 00 00 00 00 6B [01:09:22]Write i2c OK [01:09:22]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 62 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 62 00 9F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D0 25 01 00 0E 04 04 00 01 02 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 91 [01:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D0 25 01 00 0E 04 04 00 01 02 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 [01:09:23]wFMCommunicate OK [01:09:23]SAM_PROTO_GetFieldsCounters done [01:09:23]requested_item shift.num is exist - process it [01:09:23]requested_item shift.opened is exist - process it [01:09:23]req_shift_opened [01:09:23]FM_GetShiftState [01:09:23]SAM_PROTO_GetShiftState [01:09:23]wFMCommunicate request_size=4 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 13 01 00 [01:09:23]Write to MH i2c: E2 08 00 A0 50 80 13 01 00 00 00 00 00 6D [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 0E 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 0E 00 A0 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 D3 [01:09:23]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:09:23]wFMCommunicate OK [01:09:23]SAM_PROTO_GetShiftState done [01:09:23]FM_GetShiftState done [01:09:23]req_shift_opened done [01:09:23]requested_item shift.open_date is exist - process it [01:09:23]req_shift_open_date [01:09:23]req_shift_open_date done [01:09:23]produce_requested_data done [01:09:23]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75216,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [01:09:23]process_action_free close_receipt [01:09:23]json_value_free [01:09:23]json_value_free done [01:09:23]process_json_proto returns [01:09:23]Send response to host [01:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75216,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [01:09:23]free response buf [01:09:23]execute_script done [01:09:23]execute_script returns [01:09:23]free content buf [01:09:23]Sock 8.Close socket [01:09:23]Sock 8.Thread stoped [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]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:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:41]accept exits with 9 [01:28:41]New connection [01:28:41]New thread 3066924388 created [01:28:41]Thread 3066781028 joined [01:28:41]Waiting for new connection... [01:28:41] Sock 9.Parse request [01:28:41]Sock 9.Check first char [01:28:41]Sock 9.First char is OK [01:28:41]request: POST /json_proto HTTP/1.0 [01:28:41]Method: POST [01:28:41]URL: /json_proto [01:28:41]Method is POST - this is cgi request [01:28:41]url: /json_proto [01:28:41]query_string will be loaded in cgi processing [01:28:41]execute_cgi json_proto POST (null) [01:28:41]execute_cgi path=json_proto method=POST [01:28:41]POST find Content-Length [01:28:41]Host: 172.17.39.131:8080 [01:28:41]Content-Length: 685 [01:28:41]Content-Type: application/json [01:28:41] [01:28:41]POST finish read [01:28:41]Found Content-Length = 685 [01:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [01:28:41]execute_script... [01:28: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)191195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [01:28:41]POST & json_proto [01:28:41]process_json_proto [01:28:41]json parsed OK: [01:28:41]protocol is kg_v1.0 [01:28:41]action value=close_receipt [01:28:41]process_action close_receipt [01:28:41]cmd_close_receipt [01:28:41]MH_GetDate [01:28:41]Write to MH i2c: F0 00 00 A1 50 E0 [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: F0 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: F0 09 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: F0 09 00 A1 50 00 51 97 1D 67 86 57 24 65 BB [01:28:41]GetLastDocTimeStamp 1729991366 [01:28:41]current date 1729992529 [01:28:41]FM_GetShiftState [01:28:41]SAM_PROTO_GetShiftState [01:28:41]wFMCommunicate request_size=4 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 13 01 00 [01:28:41]Write to MH i2c: E2 08 00 A2 50 80 13 01 00 00 00 00 00 6F [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 0E 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 0E 00 A2 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 D5 [01:28:41]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:28:41]wFMCommunicate OK [01:28:41]SAM_PROTO_GetShiftState done [01:28:41]FM_GetShiftState done [01:28:41]opened in 1729989706 [01:28:41]opened+sec_in_day 1730076106 [01:28:41]quantity*price = 100011 [01:28:41]sum+1 = 100013 [01:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 3 27.10.2024 01:28 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75217 ФПД: 173487887846513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T012849&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75217&fm=173487887846513&tin=02508201610067®Number=0000000000091691&sum=100000 [01:28:42]StoreToDocumentArchive [01:28:42]shift 513 fd 75217 [01:28:42]save to /storage/0513/doc_00075217 [01:28:42]save last doc name /storage/0513/doc_00075217 to /storage/kkm_last_doc_name [01:28:42]save OK [01:28:42]Clear old archive folders... [01:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:28:42]tlvbuf is 009BAD00 [01:28:42]SAM_PROTO_ClearQueue [01:28:42]wFMCommunicate request_size=4 [01:28:42]MH_SAM_APDU [01:28:42]CAPDU: 80 09 00 00 [01:28:42]Write to MH i2c: E2 08 00 AF 50 80 09 00 00 00 00 00 00 71 [01:28:42]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 AF 50 00 90 00 73 [01:28:43]RAPDU: 90 00 [01:28:43]wFMCommunicate OK [01:28:43]SAM_PROTO_ClearQueue done [01:28:43]KKMCreateOFDPacket [01:28:43]OFDProtocolAddRootSTLVToBuf [01:28:43]FM_MakeSignedData [01:28:43]FM_MakeSignedData [01:28:43]SAM_PROTO_SignData [01:28:43]wFMCommunicate request_size=4 [01:28:43]MH_SAM_APDU [01:28:43]CAPDU: 80 0D 01 02 [01:28:43]Write to MH i2c: E2 08 00 B0 50 80 0D 01 02 00 00 00 00 79 [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 B0 50 00 90 00 74 [01:28:43]RAPDU: 90 00 [01:28:43]wFMCommunicate OK [01:28:43]wFMCommunicate request_size=255 [01:28:43]MH_SAM_APDU [01:28: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 39 30 30 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 03 00 00 00 F4 03 04 00 51 97 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 25 01 00 35 04 06 00 9D C9 [01:28:43]Write to MH i2c: E2 02 01 B1 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 39 30 30 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 03 00 00 00 F4 03 04 00 51 97 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 25 01 00 35 04 06 00 9D C9 00 00 AF [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 B1 50 00 90 00 75 [01:28:43]RAPDU: 90 00 [01:28:43]wFMCommunicate OK [01:28:43]wFMCommunicate request_size=9 [01:28:43]MH_SAM_APDU [01:28:43]CAPDU: 80 0D 02 02 04 4B ED 8C 71 [01:28:43]Write to MH i2c: E2 0C 00 B2 50 80 0D 02 02 04 00 4B ED 8C 71 00 00 B9 [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 03 00 B2 50 00 90 00 76 [01:28:43]RAPDU: 90 00 [01:28:43]wFMCommunicate OK [01:28:43]wFMCommunicate request_size=4 [01:28:43]MH_SAM_APDU [01:28:43]CAPDU: 80 0D 03 02 [01:28:43]Write to MH i2c: E2 08 00 B3 50 80 0D 03 02 00 00 00 00 7E [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 0B 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 0B 00 B3 50 00 3D 4F 3D 08 F1 1D 75 8F 90 00 62 [01:28:43]RAPDU: 3D 4F 3D 08 F1 1D 75 8F 90 00 [01:28:43]wFMCommunicate OK [01:28:43]SAM_PROTO_SignData done [01:28:43]FM_MakeSignedData done [01:28:43]CreateOFDProtocolMessage [01:28:43]wFMCommunicate request_size=4 [01:28:43]MH_SAM_APDU [01:28:43]CAPDU: 80 11 00 00 [01:28:43]Write to MH i2c: E2 08 00 B4 50 80 11 00 00 00 00 00 00 7E [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:43]Read from MH i2c: E2 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 17 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: E2 17 00 B4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 D6 [01:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:28:43]wFMCommunicate OK [01:28:43]CreateOFDProtocolMessage done [01:28:43]OFDSenderStorePacket 75217 [01:28:43]StoreOFDPacket docnum=75217 [01:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 41 89 06 01 55 05 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 39 30 30 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 03 00 00 00 F4 03 04 00 51 97 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 25 01 00 35 04 06 00 9D C9 4B ED 8C 71 3D 4F 3D 08 F1 1D 75 8F [01:28:43]CheckFolder [01:28:43]dirname=/storage/ofd_packets [01:28:43]CheckFolder done [01:28:43]ProducePacketName [01:28:43]name=ofd_packets/00075217 [01:28:43]NVStorageSaveData ofd_packets/00075217 [01:28:43]File name is /storage/ofd_packets/00075217 [01:28:43]Write 300 bytes [01:28:43]NVStorageSaveData done [01:28:43]OFDSenderStorePacket done [01:28:43]KKMCreateOFDPacket done [01:28:43]NVStorageSaveData kkm_last_timestamp [01:28:43]File name is /storage/kkm_last_timestamp [01:28:43]Write 4 bytes [01:28:43]NVStorageSaveData done [01:28:43]ExternCall_PrintAddStr [01:28:43]wPrintStart [01:28:43]Write to MH i2c: 01 00 00 B5 50 05 [01:28:43]OFD Sender: Processing packet 75217 [packets to send 13, broken 12] [01:28:43]ProducePacketName [01:28:43]name=ofd_packets/00075217 [01:28:43]OFD Sender: To server: pG, [01:28:43]CommunicateWithHost lk.salyk.kg:30040 [01:28:43]ConnectInit lk.salyk.kg [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 07 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 07 00 B5 50 00 00 00 00 00 FF 0F 1A [01:28:43]RasterBufferAndPrint [01:28:43]line Счет N : (1)191195 [01:28:43]line ИНН: 02508201610067 [01:28:43]line Контрольно-Кассовый Чек [01:28:43]line ПРОДАЖА [01:28:43]line ТРК (МРК, ГНК) : 51 [01:28:43]line Товар: 2711190000 [01:28:43]line ГАЗ-К-3 [01:28:43]line 25.710 * 38.90 [01:28:43]line = 1000.12 [01:28:43]line НДС 12% НСП 1% [01:28:43]line > о реализуемом товаре [01:28:43]line ОКРУГЛЕНИЕ: -0.12 [01:28:43]line ИТОГО: 1000.00 [01:28:43]line Внесено: 1000.00 [01:28:43]line СДАЧА: 0.00 [01:28:43]line НСП 1% : 8.85 [01:28:43]line НДС 12% : 106.21 [01:28:43]line Наличными: 1000.00 [01:28:43]line Безнал.: 0.00 [01:28:43]line Место: АЗС № 142 "Партнер Нефть" [01:28:43]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:28:43]line СНО: Общий режим [01:28:43]line Чек 3 27.10.2024 01:28 [01:28:43]line Смена: 513 ФФД: 1.0 [01:28:43]line ЗНМ: 0300000089 [01:28:43]line РНМ: 0000000000091691 [01:28:43]line Версия ККМ: 001 [01:28:43]line ФМ: 0000000000871795 [01:28:43]line ФД: 75217 [01:28:43]line ФПД: 173487887846513 [01:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T012849&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75217&fm=173487887846513&tin=02508201610067®Number=0000000000091691&sum=100000 [01:28:43]Connected sock=10 [01:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 41 89 06 01 55 05 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 39 30 30 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 03 00 00 00 F4 03 04 00 51 97 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D1 25 01 00 35 04 06 00 9D C9 4B ED 8C 71 3D 4F 3D 08 F1 1D 75 8F [01:28:43]written 0, free lines is 4095 [01:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E8 4B 47 00 91 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 38 37 31 37 39 35 10 04 04 00 D1 25 01 00 F4 03 04 00 CB 3E 1D 67 B6 04 01 00 00 6C E2 BB 13 37 F5 3D 55 [01:28:44]CommunicateWithHost err = 0 [01:28:44]CheckOFDResponse [01:28:44]1017 (14) - 77093643461234 [01:28:44]1041 (16) - 0000000000871795 [01:28:44]1040 (4) - 75217 [01:28:44]1012 (4) - 26.10.2024 19:11 [01:28:44]1206 (1) - 0 [01:28:44]OFD Sender: Remove packet 75217 [01:28:44]ProducePacketName [01:28:44]name=ofd_packets/00075217 [01:28:44]NVStorageDeleteData [01:28:44]Write to MH i2c: 01 00 00 E0 50 30 [01:28:44]Write i2c OK [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: 01 [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: 01 07 00 [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: 01 07 00 E0 50 00 00 00 00 00 8F 0C D2 [01:28:44]RasterBufferAndPrint [01:28:44]line [01:28:44]line [01:28:44]line [01:28:44]line [01:28:44]line [01:28:44]written 0, free lines is 3221 [01:28:44]MH_Cut [01:28:44]Write to MH i2c: D1 01 00 E7 50 01 09 [01:28:44]Write i2c OK [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: D1 [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: D1 01 00 [01:28:44]MH_I2C_Read... [01:28:44]Read from MH i2c: D1 01 00 E7 50 00 08 [01:28:44]Write to MH i2c: 01 00 00 E8 50 38 [01:28:44]Write i2c OK [01:28:44]MH_I2C_Read... [01:28:44]OFD Sender: No OFD packet to send [01:28:45]*** Cut start [01:28:45]*** Partial cut [01:28:45]*** CUTSNS_PIN = 1 [01:28:45]*** CUTSNS_PIN = 0 [01:28:45]*** Brake cut motor [01:28:45]Read from MH i2c: 01 [01:28:45]MH_I2C_Read... [01:28:45]*** Stop cut motor [01:28:45]*** Cut end [01:28:45]Read from MH i2c: 01 07 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: 01 07 00 E8 50 00 00 00 00 00 FF 0F 4D [01:28:45]process_action close_receipt done [01:28:45]requested_data is exist [01:28:45]produce_requested_data [01:28:45]requested_item fm.sn is exist - process it [01:28:45]wFMCommunicate request_size=4 [01:28:45]MH_SAM_APDU [01:28:45]CAPDU: 80 11 00 00 [01:28:45]Write to MH i2c: E2 08 00 E9 50 80 11 00 00 00 00 00 00 B3 [01:28:45]Write i2c OK [01:28:45]MH_I2C_Read... [01:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:45]Read from MH i2c: E2 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 17 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 17 00 E9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 0B [01:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:28:45]wFMCommunicate OK [01:28:45]requested_item fd.num is exist - process it [01:28:45]SAM_PROTO_GetFieldsCounters [01:28:45]wFMCommunicate request_size=4 [01:28:45]MH_SAM_APDU [01:28:45]CAPDU: 80 13 00 00 [01:28:45]Write to MH i2c: E2 08 00 EA 50 80 13 00 00 00 00 00 00 B6 [01:28:45]Write i2c OK [01:28:45]MH_I2C_Read... [01:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:46]Read from MH i2c: E2 [01:28:46]MH_I2C_Read... [01:28:46]Read from MH i2c: E2 62 00 [01:28:46]MH_I2C_Read... [01:28:46]Read from MH i2c: E2 62 00 EA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D1 25 01 00 0E 04 04 00 01 02 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 E0 [01:28:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D1 25 01 00 0E 04 04 00 01 02 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 [01:28:46]wFMCommunicate OK [01:28:46]SAM_PROTO_GetFieldsCounters done [01:28:46]requested_item shift.num is exist - process it [01:28:46]requested_item shift.opened is exist - process it [01:28:46]req_shift_opened [01:28:46]FM_GetShiftState [01:28:46]SAM_PROTO_GetShiftState [01:28:46]wFMCommunicate request_size=4 [01:28:46]MH_SAM_APDU [01:28:46]CAPDU: 80 13 01 00 [01:28:46]Write to MH i2c: E2 08 00 EB 50 80 13 01 00 00 00 00 00 B8 [01:28:46]Write i2c OK [01:28:46]MH_I2C_Read... [01:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:46]Read from MH i2c: E2 [01:28:46]MH_I2C_Read... [01:28:46]Read from MH i2c: E2 0E 00 [01:28:46]MH_I2C_Read... [01:28:46]Read from MH i2c: E2 0E 00 EB 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 1E [01:28:46]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:28:46]wFMCommunicate OK [01:28:46]SAM_PROTO_GetShiftState done [01:28:46]FM_GetShiftState done [01:28:46]req_shift_opened done [01:28:46]requested_item shift.open_date is exist - process it [01:28:46]req_shift_open_date [01:28:46]req_shift_open_date done [01:28:46]produce_requested_data done [01:28:46]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75217,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [01:28:46]process_action_free close_receipt [01:28:46]json_value_free [01:28:46]json_value_free done [01:28:46]process_json_proto returns [01:28:46]Send response to host [01:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75217,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [01:28:46]free response buf [01:28:46]execute_script done [01:28:46]execute_script returns [01:28:46]free content buf [01:28:46]Sock 9.Close socket [01:28:46]Sock 9.Thread stoped [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:36:59]ConnectInit Can't connect to host [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:07]accept exits with 8 [01:42:07]New connection [01:42:07]New thread 3066781028 created [01:42:07]Thread 3066924388 joined [01:42:07]Waiting for new connection... [01:42:07] Sock 8.Parse request [01:42:07]Sock 8.Check first char [01:42:07]Sock 8.First char is OK [01:42:07]request: POST /json_proto HTTP/1.0 [01:42:07]Method: POST [01:42:07]URL: /json_proto [01:42:07]Method is POST - this is cgi request [01:42:07]url: /json_proto [01:42:07]query_string will be loaded in cgi processing [01:42:07]execute_cgi json_proto POST (null) [01:42:07]execute_cgi path=json_proto method=POST [01:42:07]POST find Content-Length [01:42:07]Host: 172.17.39.131:8080 [01:42:07]Content-Length: 766 [01:42:07]Content-Type: application/json [01:42:07] [01:42:07]POST finish read [01:42:07]Found Content-Length = 766 [01:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [01:42:07]execute_script... [01:42: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)191196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "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" ] } } [01:42:07]POST & json_proto [01:42:07]process_json_proto [01:42:07]json parsed OK: [01:42:07]protocol is kg_v1.0 [01:42:07]action value=close_receipt [01:42:07]process_action close_receipt [01:42:07]cmd_close_receipt [01:42:07]MH_GetDate [01:42:07]Write to MH i2c: F0 00 00 EC 50 2B [01:42:07]Write i2c OK [01:42:07]MH_I2C_Read... [01:42:07]Read from MH i2c: F0 [01:42:07]MH_I2C_Read... [01:42:07]Read from MH i2c: F0 09 00 [01:42:07]MH_I2C_Read... [01:42:07]Read from MH i2c: F0 09 00 EC 50 00 77 9A 1D 67 86 57 24 65 2F [01:42:07]GetLastDocTimeStamp 1729992529 [01:42:07]current date 1729993335 [01:42:07]FM_GetShiftState [01:42:07]SAM_PROTO_GetShiftState [01:42:07]wFMCommunicate request_size=4 [01:42:07]MH_SAM_APDU [01:42:07]CAPDU: 80 13 01 00 [01:42:07]Write to MH i2c: E2 08 00 ED 50 80 13 01 00 00 00 00 00 BA [01:42:07]Write i2c OK [01:42:07]MH_I2C_Read... [01:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:07]Read from MH i2c: E2 [01:42:07]MH_I2C_Read... [01:42:07]Read from MH i2c: E2 0E 00 [01:42:07]MH_I2C_Read... [01:42:07]Read from MH i2c: E2 0E 00 ED 50 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 20 [01:42:07]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:42:07]wFMCommunicate OK [01:42:07]SAM_PROTO_GetShiftState done [01:42:07]FM_GetShiftState done [01:42:07]opened in 1729989706 [01:42:07]opened+sec_in_day 1730076106 [01:42:07]quantity*price = 200025 [01:42:07]sum+1 = 200026 [01:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 4 27.10.2024 01:42 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75218 ФПД: 12405819673106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014215&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75218&fm=12405819673106&tin=02508201610067®Number=0000000000091691&sum=200025 [01:42:08]StoreToDocumentArchive [01:42:08]shift 513 fd 75218 [01:42:08]save to /storage/0513/doc_00075218 [01:42:08]save last doc name /storage/0513/doc_00075218 to /storage/kkm_last_doc_name [01:42:08]save OK [01:42:08]Clear old archive folders... [01:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:42:08]tlvbuf is B6F51780 [01:42:08]SAM_PROTO_ClearQueue [01:42:08]wFMCommunicate request_size=4 [01:42:08]MH_SAM_APDU [01:42:08]CAPDU: 80 09 00 00 [01:42:08]Write to MH i2c: E2 08 00 FA 50 80 09 00 00 00 00 00 00 BC [01:42:08]Write i2c OK [01:42:08]MH_I2C_Read... [01:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:08]Read from MH i2c: E2 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: E2 03 00 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: E2 03 00 FA 50 00 90 00 BE [01:42:08]RAPDU: 90 00 [01:42:08]wFMCommunicate OK [01:42:08]SAM_PROTO_ClearQueue done [01:42:08]KKMCreateOFDPacket [01:42:08]OFDProtocolAddRootSTLVToBuf [01:42:08]FM_MakeSignedData [01:42:08]FM_MakeSignedData [01:42:08]SAM_PROTO_SignData [01:42:08]wFMCommunicate request_size=4 [01:42:08]MH_SAM_APDU [01:42:08]CAPDU: 80 0D 01 02 [01:42:08]Write to MH i2c: E2 08 00 FB 50 80 0D 01 02 00 00 00 00 C4 [01:42:08]Write i2c OK [01:42:08]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 FB 50 00 90 00 BF [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=255 [01:42:09]MH_SAM_APDU [01:42:09]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 34 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 04 00 00 00 F4 03 04 00 77 9A 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 25 01 00 35 04 06 00 0B 48 74 79 [01:42:09]Write to MH i2c: E2 02 01 FC 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 34 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 04 00 00 00 F4 03 04 00 77 9A 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 25 01 00 35 04 06 00 0B 48 74 79 00 00 42 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 FC 50 00 90 00 C0 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=7 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 02 02 02 8A 12 [01:42:09]Write to MH i2c: E2 0A 00 FD 50 80 0D 02 02 02 00 8A 12 00 00 67 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 FD 50 00 90 00 C1 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 03 02 [01:42:09]Write to MH i2c: E2 08 00 FE 50 80 0D 03 02 00 00 00 00 C9 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 0B 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 0B 00 FE 50 00 7F C2 4F D1 F3 47 AF 0D 90 00 21 [01:42:09]RAPDU: 7F C2 4F D1 F3 47 AF 0D 90 00 [01:42:09]wFMCommunicate OK [01:42:09]SAM_PROTO_SignData done [01:42:09]FM_MakeSignedData done [01:42:09]CreateOFDProtocolMessage [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 11 00 00 [01:42:09]Write to MH i2c: E2 08 00 FF 50 80 11 00 00 00 00 00 00 C9 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 17 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 17 00 FF 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 21 [01:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:42:09]wFMCommunicate OK [01:42:09]CreateOFDProtocolMessage done [01:42:09]OFDSenderStorePacket 75218 [01:42:09]StoreOFDPacket docnum=75218 [01:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 7C 7C 04 01 31 93 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 34 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 04 00 00 00 F4 03 04 00 77 9A 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 25 01 00 35 04 06 00 0B 48 74 79 8A 12 7F C2 4F D1 F3 47 AF 0D [01:42:09]CheckFolder [01:42:09]dirname=/storage/ofd_packets [01:42:09]CheckFolder done [01:42:09]ProducePacketName [01:42:09]name=ofd_packets/00075218 [01:42:09]NVStorageSaveData ofd_packets/00075218 [01:42:09]File name is /storage/ofd_packets/00075218 [01:42:09]Write 298 bytes [01:42:09]NVStorageSaveData done [01:42:09]OFDSenderStorePacket done [01:42:09]KKMCreateOFDPacket done [01:42:09]NVStorageSaveData kkm_last_timestamp [01:42:09]File name is /storage/kkm_last_timestamp [01:42:09]Write 4 bytes [01:42:09]NVStorageSaveData done [01:42:09]ExternCall_PrintAddStr [01:42:09]wPrintStart [01:42:09]Write to MH i2c: 01 00 00 00 51 51 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 07 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 07 00 00 51 00 00 00 00 00 FF 0F 66 [01:42:09]RasterBufferAndPrint [01:42:09]line Счет N : (1)191196 [01:42:09]line ИНН: 02508201610067 [01:42:09]line Контрольно-Кассовый Чек [01:42:09]line ПРОДАЖА [01:42:09]line ТРК (МРК, ГНК) : 31 [01:42:09]line Товар: 2710194210 [01:42:09]line ДТ-К-4 [01:42:09]line 26.250 * 76.20 [01:42:09]line = 2000.25 [01:42:09]line НДС 12% НСП 1% [01:42:09]line > о реализуемом товаре [01:42:09]line ИТОГО: 2000.25 [01:42:09]line НСП 1% : 17.70 [01:42:09]line НДС 12% : 212.42 [01:42:09]line Наличными: 0.00 [01:42:09]line Безнал.: 2000.25 [01:42:09]line Место: АЗС № 142 "Партнер Нефть" [01:42:09]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:42:09]line СНО: Общий режим [01:42:09]line Чек 4 27.10.2024 01:42 [01:42:09]line Смена: 513 ФФД: 1.0 [01:42:09]line ЗНМ: 0300000089 [01:42:09]line РНМ: 0000000000091691 [01:42:09]line Версия ККМ: 001 [01:42:09]line Платежная система: Mbank [01:42:09]line ФМ: 0000000000871795 [01:42:09]line ФД: 75218 [01:42:09]line ФПД: 12405819673106 [01:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014215&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75218&fm=12405819673106&tin=02508201610067®Number=0000000000091691&sum=200025 [01:42:09]written 0, free lines is 4095 [01:42:09]OFD Sender: Processing packet 75218 [packets to send 13, broken 12] [01:42:09]ProducePacketName [01:42:09]name=ofd_packets/00075218 [01:42:09]OFD Sender: To server: pG, [01:42:09]CommunicateWithHost lk.salyk.kg:30040 [01:42:09]ConnectInit lk.salyk.kg [01:42:09]Connected sock=10 [01:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0C 01 00 00 7C 7C 04 01 31 93 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 34 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 04 00 00 00 F4 03 04 00 77 9A 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D2 25 01 00 35 04 06 00 0B 48 74 79 8A 12 7F C2 4F D1 F3 47 AF 0D [01:42:09]Write to MH i2c: 01 00 00 29 51 7A [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 07 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 07 00 29 51 00 00 00 00 00 CB 0C 58 [01:42:09]RasterBufferAndPrint [01:42:09]line [01:42:09]line [01:42:09]line [01:42:09]line [01:42:09]line [01:42:09]written 0, free lines is 3280 [01:42:09]MH_Cut [01:42:09]Write to MH i2c: D1 01 00 30 51 01 53 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: D1 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: D1 01 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: D1 01 00 30 51 00 52 [01:42:09]Write to MH i2c: 01 00 00 31 51 82 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4D B1 47 00 F1 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 38 37 31 37 39 35 10 04 04 00 D2 25 01 00 F4 03 04 00 F1 41 1D 67 B6 04 01 00 00 22 DE F6 FD 82 A9 5F 37 [01:42:10]CommunicateWithHost err = 0 [01:42:10]CheckOFDResponse [01:42:10]1017 (14) - 77093643461234 [01:42:10]1041 (16) - 0000000000871795 [01:42:10]1040 (4) - 75218 [01:42:10]1012 (4) - 26.10.2024 19:24 [01:42:10]1206 (1) - 0 [01:42:10]OFD Sender: Remove packet 75218 [01:42:10]ProducePacketName [01:42:10]name=ofd_packets/00075218 [01:42:10]NVStorageDeleteData [01:42:10]OFD Sender: No OFD packet to send [01:42:10]*** Cut start [01:42:10]*** Partial cut [01:42:10]*** CUTSNS_PIN = 1 [01:42:10]*** CUTSNS_PIN = 0 [01:42:11]*** Brake cut motor [01:42:11]Read from MH i2c: 01 [01:42:11]MH_I2C_Read... [01:42:11]*** Stop cut motor [01:42:11]*** Cut end [01:42:11]Read from MH i2c: 01 07 00 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: 01 07 00 31 51 00 00 00 00 00 FF 0F 97 [01:42:11]process_action close_receipt done [01:42:11]requested_data is exist [01:42:11]produce_requested_data [01:42:11]requested_item fm.sn is exist - process it [01:42:11]wFMCommunicate request_size=4 [01:42:11]MH_SAM_APDU [01:42:11]CAPDU: 80 11 00 00 [01:42:11]Write to MH i2c: E2 08 00 32 51 80 11 00 00 00 00 00 00 FD [01:42:11]Write i2c OK [01:42:11]MH_I2C_Read... [01:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:11]Read from MH i2c: E2 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 17 00 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 17 00 32 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 55 [01:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:42:11]wFMCommunicate OK [01:42:11]requested_item fd.num is exist - process it [01:42:11]SAM_PROTO_GetFieldsCounters [01:42:11]wFMCommunicate request_size=4 [01:42:11]MH_SAM_APDU [01:42:11]CAPDU: 80 13 00 00 [01:42:11]Write to MH i2c: E2 08 00 33 51 80 13 00 00 00 00 00 00 00 [01:42:11]Write i2c OK [01:42:11]MH_I2C_Read... [01:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:11]Read from MH i2c: E2 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 62 00 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 62 00 33 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D2 25 01 00 0E 04 04 00 01 02 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 2E [01:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D2 25 01 00 0E 04 04 00 01 02 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 [01:42:11]wFMCommunicate OK [01:42:11]SAM_PROTO_GetFieldsCounters done [01:42:11]requested_item shift.num is exist - process it [01:42:11]requested_item shift.opened is exist - process it [01:42:11]req_shift_opened [01:42:11]FM_GetShiftState [01:42:11]SAM_PROTO_GetShiftState [01:42:11]wFMCommunicate request_size=4 [01:42:11]MH_SAM_APDU [01:42:11]CAPDU: 80 13 01 00 [01:42:11]Write to MH i2c: E2 08 00 34 51 80 13 01 00 00 00 00 00 02 [01:42:11]Write i2c OK [01:42:11]MH_I2C_Read... [01:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:11]Read from MH i2c: E2 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 0E 00 [01:42:11]MH_I2C_Read... [01:42:11]Read from MH i2c: E2 0E 00 34 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 68 [01:42:11]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:42:11]wFMCommunicate OK [01:42:11]SAM_PROTO_GetShiftState done [01:42:11]FM_GetShiftState done [01:42:11]req_shift_opened done [01:42:11]requested_item shift.open_date is exist - process it [01:42:11]req_shift_open_date [01:42:11]req_shift_open_date done [01:42:11]produce_requested_data done [01:42:11]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75218,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [01:42:11]process_action_free close_receipt [01:42:11]json_value_free [01:42:11]json_value_free done [01:42:11]process_json_proto returns [01:42:11]Send response to host [01:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75218,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [01:42:11]free response buf [01:42:11]execute_script done [01:42:11]execute_script returns [01:42:11]free content buf [01:42:11]Sock 8.Close socket [01:42:11]Sock 8.Thread stoped [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:09]ConnectInit Can't connect to host [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:44]accept exits with 9 [01:47:44]New connection [01:47:44]New thread 3066924388 created [01:47:44]Thread 3066781028 joined [01:47:44]Waiting for new connection... [01:47:44] Sock 9.Parse request [01:47:44]Sock 9.Check first char [01:47:44]Sock 9.First char is OK [01:47:44]request: POST /json_proto HTTP/1.0 [01:47:44]Method: POST [01:47:44]URL: /json_proto [01:47:44]Method is POST - this is cgi request [01:47:44]url: /json_proto [01:47:44]query_string will be loaded in cgi processing [01:47:44]execute_cgi json_proto POST (null) [01:47:44]execute_cgi path=json_proto method=POST [01:47:44]POST find Content-Length [01:47:44]Host: 172.17.39.131:8080 [01:47:44]Content-Length: 678 [01:47:44]Content-Type: application/json [01:47:44] [01:47:44]POST finish read [01:47:44]Found Content-Length = 678 [01:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [01:47:44]execute_script... [01:47: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)191197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [01:47:44]POST & json_proto [01:47:44]process_json_proto [01:47:44]json parsed OK: [01:47:44]protocol is kg_v1.0 [01:47:44]action value=close_receipt [01:47:44]process_action close_receipt [01:47:44]cmd_close_receipt [01:47:44]MH_GetDate [01:47:44]Write to MH i2c: F0 00 00 35 51 75 [01:47:44]Write i2c OK [01:47:44]MH_I2C_Read... [01:47:44]Read from MH i2c: F0 [01:47:44]MH_I2C_Read... [01:47:44]Read from MH i2c: F0 09 00 [01:47:44]MH_I2C_Read... [01:47:44]Read from MH i2c: F0 09 00 35 51 00 C8 9B 1D 67 86 57 24 65 CB [01:47:44]GetLastDocTimeStamp 1729993335 [01:47:44]current date 1729993672 [01:47:44]FM_GetShiftState [01:47:44]SAM_PROTO_GetShiftState [01:47:44]wFMCommunicate request_size=4 [01:47:44]MH_SAM_APDU [01:47:44]CAPDU: 80 13 01 00 [01:47:44]Write to MH i2c: E2 08 00 36 51 80 13 01 00 00 00 00 00 04 [01:47:44]Write i2c OK [01:47:44]MH_I2C_Read... [01:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:44]Read from MH i2c: E2 [01:47:44]MH_I2C_Read... [01:47:44]Read from MH i2c: E2 0E 00 [01:47:44]MH_I2C_Read... [01:47:44]Read from MH i2c: E2 0E 00 36 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 6A [01:47:44]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:47:44]wFMCommunicate OK [01:47:44]SAM_PROTO_GetShiftState done [01:47:44]FM_GetShiftState done [01:47:44]opened in 1729989706 [01:47:44]opened+sec_in_day 1730076106 [01:47:44]quantity*price = 70044 [01:47:44]sum+1 = 70045 [01:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 5 27.10.2024 01:47 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75219 ФПД: 74844353739933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014752&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75219&fm=74844353739933&tin=02508201610067®Number=0000000000091691&sum=70000 [01:47:45]StoreToDocumentArchive [01:47:45]shift 513 fd 75219 [01:47:45]save to /storage/0513/doc_00075219 [01:47:45]save last doc name /storage/0513/doc_00075219 to /storage/kkm_last_doc_name [01:47:45]save OK [01:47:45]Clear old archive folders... [01:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:47:45]tlvbuf is 00903780 [01:47:45]SAM_PROTO_ClearQueue [01:47:45]wFMCommunicate request_size=4 [01:47:45]MH_SAM_APDU [01:47:45]CAPDU: 80 09 00 00 [01:47:45]Write to MH i2c: E2 08 00 43 51 80 09 00 00 00 00 00 00 06 [01:47:45]Write i2c OK [01:47:45]MH_I2C_Read... [01:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:45]Read from MH i2c: E2 [01:47:45]MH_I2C_Read... [01:47:45]Read from MH i2c: E2 03 00 [01:47:45]MH_I2C_Read... [01:47:45]Read from MH i2c: E2 03 00 43 51 00 90 00 08 [01:47:45]RAPDU: 90 00 [01:47:45]wFMCommunicate OK [01:47:45]SAM_PROTO_ClearQueue done [01:47:45]KKMCreateOFDPacket [01:47:45]OFDProtocolAddRootSTLVToBuf [01:47:45]FM_MakeSignedData [01:47:45]FM_MakeSignedData [01:47:45]SAM_PROTO_SignData [01:47:45]wFMCommunicate request_size=4 [01:47:45]MH_SAM_APDU [01:47:45]CAPDU: 80 0D 01 02 [01:47:45]Write to MH i2c: E2 08 00 44 51 80 0D 01 02 00 00 00 00 0E [01:47:45]Write i2c OK [01:47:45]MH_I2C_Read... [01:47:45]OFD Sender: No OFD packet to send [01:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:46]Read from MH i2c: E2 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 44 51 00 90 00 09 [01:47:46]RAPDU: 90 00 [01:47:46]wFMCommunicate OK [01:47:46]wFMCommunicate request_size=255 [01:47:46]MH_SAM_APDU [01:47: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 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 05 00 00 00 F4 03 04 00 C8 9B 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 25 01 00 35 04 06 00 44 [01:47:46]Write to MH i2c: E2 02 01 45 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 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 05 00 00 00 F4 03 04 00 C8 9B 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 25 01 00 35 04 06 00 44 00 00 DF [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:46]Read from MH i2c: E2 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 45 51 00 90 00 0A [01:47:46]RAPDU: 90 00 [01:47:46]wFMCommunicate OK [01:47:46]wFMCommunicate request_size=10 [01:47:46]MH_SAM_APDU [01:47:46]CAPDU: 80 0D 02 02 05 12 0F 1E 3C 9D [01:47:46]Write to MH i2c: E2 0D 00 46 51 80 0D 02 02 05 00 12 0F 1E 3C 9D 00 00 33 [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:46]Read from MH i2c: E2 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 03 00 46 51 00 90 00 0B [01:47:46]RAPDU: 90 00 [01:47:46]wFMCommunicate OK [01:47:46]wFMCommunicate request_size=4 [01:47:46]MH_SAM_APDU [01:47:46]CAPDU: 80 0D 03 02 [01:47:46]Write to MH i2c: E2 08 00 47 51 80 0D 03 02 00 00 00 00 13 [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:46]Read from MH i2c: E2 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 0B 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 0B 00 47 51 00 D7 27 4A 7C FC 2A 84 34 90 00 B6 [01:47:46]RAPDU: D7 27 4A 7C FC 2A 84 34 90 00 [01:47:46]wFMCommunicate OK [01:47:46]SAM_PROTO_SignData done [01:47:46]FM_MakeSignedData done [01:47:46]CreateOFDProtocolMessage [01:47:46]wFMCommunicate request_size=4 [01:47:46]MH_SAM_APDU [01:47:46]CAPDU: 80 11 00 00 [01:47:46]Write to MH i2c: E2 08 00 48 51 80 11 00 00 00 00 00 00 13 [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:46]Read from MH i2c: E2 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 17 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: E2 17 00 48 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 6B [01:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:47:46]wFMCommunicate OK [01:47:46]CreateOFDProtocolMessage done [01:47:46]OFDSenderStorePacket 75219 [01:47:46]StoreOFDPacket docnum=75219 [01:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 11 69 07 01 F4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 F4 03 04 00 C8 9B 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 25 01 00 35 04 06 00 44 12 0F 1E 3C 9D D7 27 4A 7C FC 2A 84 34 [01:47:46]CheckFolder [01:47:46]dirname=/storage/ofd_packets [01:47:46]CheckFolder done [01:47:46]ProducePacketName [01:47:46]name=ofd_packets/00075219 [01:47:46]NVStorageSaveData ofd_packets/00075219 [01:47:46]File name is /storage/ofd_packets/00075219 [01:47:46]Write 301 bytes [01:47:46]NVStorageSaveData done [01:47:46]OFDSenderStorePacket done [01:47:46]KKMCreateOFDPacket done [01:47:46]NVStorageSaveData kkm_last_timestamp [01:47:46]File name is /storage/kkm_last_timestamp [01:47:46]Write 4 bytes [01:47:46]NVStorageSaveData done [01:47:46]ExternCall_PrintAddStr [01:47:46]wPrintStart [01:47:46]Write to MH i2c: 01 00 00 49 51 9A [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 07 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 07 00 49 51 00 00 00 00 00 FF 0F AF [01:47:46]RasterBufferAndPrint [01:47:46]line Счет N : (1)191197 [01:47:46]line ИНН: 02508201610067 [01:47:46]line Контрольно-Кассовый Чек [01:47:46]line ПРОДАЖА [01:47:46]line ТРК (МРК, ГНК) : 21 [01:47:46]line Товар: 2710124130 [01:47:46]line Аи-92-К-5 [01:47:46]line 10.470 * 66.90 [01:47:46]line = 700.44 [01:47:46]line НДС 12% НСП 1% [01:47:46]line > о реализуемом товаре [01:47:46]line ОКРУГЛЕНИЕ: -0.44 [01:47:46]line ИТОГО: 700.00 [01:47:46]line Внесено: 700.00 [01:47:46]line СДАЧА: 0.00 [01:47:46]line НСП 1% : 6.20 [01:47:46]line НДС 12% : 74.38 [01:47:46]line Наличными: 700.00 [01:47:46]line Безнал.: 0.00 [01:47:46]line Место: АЗС № 142 "Партнер Нефть" [01:47:46]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:47:46]line СНО: Общий режим [01:47:46]line Чек 5 27.10.2024 01:47 [01:47:46]line Смена: 513 ФФД: 1.0 [01:47:46]line ЗНМ: 0300000089 [01:47:46]line РНМ: 0000000000091691 [01:47:46]line Версия ККМ: 001 [01:47:46]line ФМ: 0000000000871795 [01:47:46]line ФД: 75219 [01:47:46]line ФПД: 74844353739933 [01:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014752&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75219&fm=74844353739933&tin=02508201610067®Number=0000000000091691&sum=70000 [01:47:46]written 0, free lines is 4095 [01:47:46]OFD Sender: Processing packet 75219 [packets to send 13, broken 12] [01:47:46]ProducePacketName [01:47:46]name=ofd_packets/00075219 [01:47:46]OFD Sender: To server: pG, [01:47:46]CommunicateWithHost lk.salyk.kg:30040 [01:47:46]ConnectInit lk.salyk.kg [01:47:46]Connected sock=11 [01:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 11 69 07 01 F4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 F4 03 04 00 C8 9B 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D3 25 01 00 35 04 06 00 44 12 0F 1E 3C 9D D7 27 4A 7C FC 2A 84 34 [01:47:46]Write to MH i2c: 01 00 00 74 51 C5 [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 07 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: 01 07 00 74 51 00 00 00 00 00 91 0C 69 [01:47:46]RasterBufferAndPrint [01:47:46]line [01:47:46]line [01:47:46]line [01:47:46]line [01:47:46]line [01:47:46]written 0, free lines is 3223 [01:47:46]MH_Cut [01:47:46]Write to MH i2c: D1 01 00 7B 51 01 9E [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: D1 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: D1 01 00 [01:47:46]MH_I2C_Read... [01:47:46]Read from MH i2c: D1 01 00 7B 51 00 9D [01:47:46]Write to MH i2c: 01 00 00 7C 51 CD [01:47:46]Write i2c OK [01:47:46]MH_I2C_Read... [01:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 16 1A 47 00 26 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 38 37 31 37 39 35 10 04 04 00 D3 25 01 00 F4 03 04 00 42 43 1D 67 B6 04 01 00 00 1E 7C DD 51 48 1E AE 45 [01:47:47]CommunicateWithHost err = 0 [01:47:47]CheckOFDResponse [01:47:47]1017 (14) - 77093643461234 [01:47:47]1041 (16) - 0000000000871795 [01:47:47]1040 (4) - 75219 [01:47:47]1012 (4) - 26.10.2024 19:30 [01:47:47]1206 (1) - 0 [01:47:47]OFD Sender: Remove packet 75219 [01:47:47]ProducePacketName [01:47:47]name=ofd_packets/00075219 [01:47:47]NVStorageDeleteData [01:47:47]OFD Sender: No OFD packet to send [01:47:47]*** Cut start [01:47:47]*** Partial cut [01:47:47]*** CUTSNS_PIN = 1 [01:47:47]*** CUTSNS_PIN = 0 [01:47:48]*** Brake cut motor [01:47:48]Read from MH i2c: 01 [01:47:48]MH_I2C_Read... [01:47:48]*** Stop cut motor [01:47:48]*** Cut end [01:47:48]Read from MH i2c: 01 07 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: 01 07 00 7C 51 00 00 00 00 00 FF 0F E2 [01:47:48]process_action close_receipt done [01:47:48]requested_data is exist [01:47:48]produce_requested_data [01:47:48]requested_item fm.sn is exist - process it [01:47:48]wFMCommunicate request_size=4 [01:47:48]MH_SAM_APDU [01:47:48]CAPDU: 80 11 00 00 [01:47:48]Write to MH i2c: E2 08 00 7D 51 80 11 00 00 00 00 00 00 48 [01:47:48]Write i2c OK [01:47:48]MH_I2C_Read... [01:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:48]Read from MH i2c: E2 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 17 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 17 00 7D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 A0 [01:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:47:48]wFMCommunicate OK [01:47:48]requested_item fd.num is exist - process it [01:47:48]SAM_PROTO_GetFieldsCounters [01:47:48]wFMCommunicate request_size=4 [01:47:48]MH_SAM_APDU [01:47:48]CAPDU: 80 13 00 00 [01:47:48]Write to MH i2c: E2 08 00 7E 51 80 13 00 00 00 00 00 00 4B [01:47:48]Write i2c OK [01:47:48]MH_I2C_Read... [01:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:48]Read from MH i2c: E2 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 62 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 62 00 7E 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D3 25 01 00 0E 04 04 00 01 02 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 7D [01:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D3 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:48]wFMCommunicate OK [01:47:48]SAM_PROTO_GetFieldsCounters done [01:47:48]requested_item shift.num is exist - process it [01:47:48]requested_item shift.opened is exist - process it [01:47:48]req_shift_opened [01:47:48]FM_GetShiftState [01:47:48]SAM_PROTO_GetShiftState [01:47:48]wFMCommunicate request_size=4 [01:47:48]MH_SAM_APDU [01:47:48]CAPDU: 80 13 01 00 [01:47:48]Write to MH i2c: E2 08 00 7F 51 80 13 01 00 00 00 00 00 4D [01:47:48]Write i2c OK [01:47:48]MH_I2C_Read... [01:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:48]Read from MH i2c: E2 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 0E 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 0E 00 7F 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 B3 [01:47:48]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:47:48]wFMCommunicate OK [01:47:48]SAM_PROTO_GetShiftState done [01:47:48]FM_GetShiftState done [01:47:48]req_shift_opened done [01:47:48]requested_item shift.open_date is exist - process it [01:47:48]req_shift_open_date [01:47:48]req_shift_open_date done [01:47:48]produce_requested_data done [01:47:48]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75219,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [01:47:48]process_action_free close_receipt [01:47:48]json_value_free [01:47:48]json_value_free done [01:47:48]process_json_proto returns [01:47:48]Send response to host [01:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75219,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [01:47:48]free response buf [01:47:48]execute_script done [01:47:48]execute_script returns [01:47:48]free content buf [01:47:48]Sock 9.Close socket [01:47:48]Sock 9.Thread stoped [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:49:58]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:15]accept exits with 10 [01:52:15]New connection [01:52:15]New thread 3066781028 created [01:52:15]Thread 3066924388 joined [01:52:15]Waiting for new connection... [01:52:15] Sock 10.Parse request [01:52:15]Sock 10.Check first char [01:52:15]Sock 10.First char is OK [01:52:15]request: POST /json_proto HTTP/1.0 [01:52:15]Method: POST [01:52:15]URL: /json_proto [01:52:15]Method is POST - this is cgi request [01:52:15]url: /json_proto [01:52:15]query_string will be loaded in cgi processing [01:52:15]execute_cgi json_proto POST (null) [01:52:15]execute_cgi path=json_proto method=POST [01:52:15]POST find Content-Length [01:52:15]Host: 172.17.39.131:8080 [01:52:15]Content-Length: 769 [01:52:15]Content-Type: application/json [01:52:15] [01:52:15]POST finish read [01:52:15]Found Content-Length = 769 [01:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 21.310, "sum" : 1425.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1425.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:15]execute_script... [01:52: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)191198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 21.310, "sum" : 1425.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1425.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:15]POST & json_proto [01:52:15]process_json_proto [01:52:15]json parsed OK: [01:52:15]protocol is kg_v1.0 [01:52:15]action value=close_receipt [01:52:15]process_action close_receipt [01:52:15]cmd_close_receipt [01:52:15]MH_GetDate [01:52:15]Write to MH i2c: F0 00 00 80 51 C0 [01:52:15]Write i2c OK [01:52:15]MH_I2C_Read... [01:52:15]Read from MH i2c: F0 [01:52:15]MH_I2C_Read... [01:52:15]Read from MH i2c: F0 09 00 [01:52:15]MH_I2C_Read... [01:52:15]Read from MH i2c: F0 09 00 80 51 00 D7 9C 1D 67 86 57 24 65 26 [01:52:15]GetLastDocTimeStamp 1729993672 [01:52:15]current date 1729993943 [01:52:15]FM_GetShiftState [01:52:15]SAM_PROTO_GetShiftState [01:52:15]wFMCommunicate request_size=4 [01:52:15]MH_SAM_APDU [01:52:15]CAPDU: 80 13 01 00 [01:52:15]Write to MH i2c: E2 08 00 81 51 80 13 01 00 00 00 00 00 4F [01:52:15]Write i2c OK [01:52:15]MH_I2C_Read... [01:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:15]Read from MH i2c: E2 [01:52:15]MH_I2C_Read... [01:52:15]Read from MH i2c: E2 0E 00 [01:52:15]MH_I2C_Read... [01:52:15]Read from MH i2c: E2 0E 00 81 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 B5 [01:52:15]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:52:15]wFMCommunicate OK [01:52:15]SAM_PROTO_GetShiftState done [01:52:15]FM_GetShiftState done [01:52:15]opened in 1729989706 [01:52:15]opened+sec_in_day 1730076106 [01:52:15]quantity*price = 142563 [01:52:15]sum+1 = 142565 [01:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1425.64 НСП 1% : 12.62 НДС 12% : 151.39 Наличными: 0.00 Безнал.: 1425.64 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 6 27.10.2024 01:52 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75220 ФПД: 167148055522477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T015223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75220&fm=167148055522477&tin=02508201610067®Number=0000000000091691&sum=142564 [01:52:16]StoreToDocumentArchive [01:52:16]shift 513 fd 75220 [01:52:16]save to /storage/0513/doc_00075220 [01:52:16]save last doc name /storage/0513/doc_00075220 to /storage/kkm_last_doc_name [01:52:16]save OK [01:52:16]Clear old archive folders... [01:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:52:16]tlvbuf is 00836040 [01:52:16]SAM_PROTO_ClearQueue [01:52:16]wFMCommunicate request_size=4 [01:52:16]MH_SAM_APDU [01:52:16]CAPDU: 80 09 00 00 [01:52:16]Write to MH i2c: E2 08 00 8E 51 80 09 00 00 00 00 00 00 51 [01:52:16]Write i2c OK [01:52:16]MH_I2C_Read... [01:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:16]Read from MH i2c: E2 [01:52:16]MH_I2C_Read... [01:52:16]Read from MH i2c: E2 03 00 [01:52:16]MH_I2C_Read... [01:52:16]Read from MH i2c: E2 03 00 8E 51 00 90 00 53 [01:52:16]RAPDU: 90 00 [01:52:16]wFMCommunicate OK [01:52:16]SAM_PROTO_ClearQueue done [01:52:16]KKMCreateOFDPacket [01:52:16]OFDProtocolAddRootSTLVToBuf [01:52:16]FM_MakeSignedData [01:52:16]FM_MakeSignedData [01:52:16]SAM_PROTO_SignData [01:52:16]wFMCommunicate request_size=4 [01:52:16]MH_SAM_APDU [01:52:16]CAPDU: 80 0D 01 02 [01:52:16]Write to MH i2c: E2 08 00 8F 51 80 0D 01 02 00 00 00 00 59 [01:52:16]Write i2c OK [01:52:16]MH_I2C_Read... [01:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:16]Read from MH i2c: E2 [01:52:16]MH_I2C_Read... [01:52:16]Read from MH i2c: E2 03 00 [01:52:16]MH_I2C_Read... [01:52:16]Read from MH i2c: E2 03 00 8F 51 00 90 00 54 [01:52:16]RAPDU: 90 00 [01:52:16]wFMCommunicate OK [01:52:16]wFMCommunicate request_size=255 [01:52:16]MH_SAM_APDU [01:52: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 3E 53 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E4 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D7 9C 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 25 01 00 35 04 06 00 98 [01:52:16]Write to MH i2c: E2 02 01 90 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 3E 53 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E4 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D7 9C 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 25 01 00 35 04 06 00 98 00 00 4E [01:52:16]Write i2c OK [01:52:16]MH_I2C_Read... [01:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:17]Read from MH i2c: E2 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 03 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 03 00 90 51 00 90 00 55 [01:52:17]RAPDU: 90 00 [01:52:17]wFMCommunicate OK [01:52:17]wFMCommunicate request_size=10 [01:52:17]MH_SAM_APDU [01:52:17]CAPDU: 80 0D 02 02 05 05 30 79 6C AD [01:52:17]Write to MH i2c: E2 0D 00 91 51 80 0D 02 02 05 00 05 30 79 6C AD 00 00 2D [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:17]Read from MH i2c: E2 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 03 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 03 00 91 51 00 90 00 56 [01:52:17]RAPDU: 90 00 [01:52:17]wFMCommunicate OK [01:52:17]wFMCommunicate request_size=4 [01:52:17]MH_SAM_APDU [01:52:17]CAPDU: 80 0D 03 02 [01:52:17]Write to MH i2c: E2 08 00 92 51 80 0D 03 02 00 00 00 00 5E [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:17]Read from MH i2c: E2 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 0B 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 0B 00 92 51 00 A2 25 17 52 26 CF 7F 7D 90 00 80 [01:52:17]RAPDU: A2 25 17 52 26 CF 7F 7D 90 00 [01:52:17]wFMCommunicate OK [01:52:17]SAM_PROTO_SignData done [01:52:17]FM_MakeSignedData done [01:52:17]CreateOFDProtocolMessage [01:52:17]wFMCommunicate request_size=4 [01:52:17]MH_SAM_APDU [01:52:17]CAPDU: 80 11 00 00 [01:52:17]Write to MH i2c: E2 08 00 93 51 80 11 00 00 00 00 00 00 5E [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:17]Read from MH i2c: E2 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 17 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: E2 17 00 93 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 B6 [01:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:52:17]wFMCommunicate OK [01:52:17]CreateOFDProtocolMessage done [01:52:17]OFDSenderStorePacket 75220 [01:52:17]StoreOFDPacket docnum=75220 [01:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D 82 07 01 FB 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 3E 53 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E4 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D7 9C 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 25 01 00 35 04 06 00 98 05 30 79 6C AD A2 25 17 52 26 CF 7F 7D [01:52:17]CheckFolder [01:52:17]dirname=/storage/ofd_packets [01:52:17]CheckFolder done [01:52:17]ProducePacketName [01:52:17]name=ofd_packets/00075220 [01:52:17]NVStorageSaveData ofd_packets/00075220 [01:52:17]File name is /storage/ofd_packets/00075220 [01:52:17]Write 301 bytes [01:52:17]NVStorageSaveData done [01:52:17]OFDSenderStorePacket done [01:52:17]KKMCreateOFDPacket done [01:52:17]NVStorageSaveData kkm_last_timestamp [01:52:17]File name is /storage/kkm_last_timestamp [01:52:17]Write 4 bytes [01:52:17]NVStorageSaveData done [01:52:17]ExternCall_PrintAddStr [01:52:17]wPrintStart [01:52:17]Write to MH i2c: 01 00 00 94 51 E5 [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 07 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 07 00 94 51 00 00 00 00 00 FF 0F FA [01:52:17]RasterBufferAndPrint [01:52:17]line Счет N : (1)191198 [01:52:17]line ИНН: 02508201610067 [01:52:17]line Контрольно-Кассовый Чек [01:52:17]line ПРОДАЖА [01:52:17]line ТРК (МРК, ГНК) : 21 [01:52:17]line Товар: 2710124130 [01:52:17]line Аи-92-К-5 [01:52:17]line 21.310 * 66.90 [01:52:17]line = 1425.64 [01:52:17]line НДС 12% НСП 1% [01:52:17]line > о реализуемом товаре [01:52:17]line ИТОГО: 1425.64 [01:52:17]line НСП 1% : 12.62 [01:52:17]line НДС 12% : 151.39 [01:52:17]line Наличными: 0.00 [01:52:17]line Безнал.: 1425.64 [01:52:17]line Место: АЗС № 142 "Партнер Нефть" [01:52:17]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [01:52:17]line СНО: Общий режим [01:52:17]line Чек 6 27.10.2024 01:52 [01:52:17]line Смена: 513 ФФД: 1.0 [01:52:17]line ЗНМ: 0300000089 [01:52:17]line РНМ: 0000000000091691 [01:52:17]line Версия ККМ: 001 [01:52:17]line Платежная система: Mbank [01:52:17]line ФМ: 0000000000871795 [01:52:17]line ФД: 75220 [01:52:17]line ФПД: 167148055522477 [01:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T015223&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75220&fm=167148055522477&tin=02508201610067®Number=0000000000091691&sum=142564 [01:52:17]written 0, free lines is 4095 [01:52:17]OFD Sender: Processing packet 75220 [packets to send 13, broken 12] [01:52:17]ProducePacketName [01:52:17]name=ofd_packets/00075220 [01:52:17]OFD Sender: To server: pG, [01:52:17]CommunicateWithHost lk.salyk.kg:30040 [01:52:17]ConnectInit lk.salyk.kg [01:52:17]Write to MH i2c: 01 00 00 BD 51 0E [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 07 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: 01 07 00 BD 51 00 00 00 00 00 C2 0C E3 [01:52:17]RasterBufferAndPrint [01:52:17]line [01:52:17]line [01:52:17]line [01:52:17]line [01:52:17]line [01:52:17]written 0, free lines is 3270 [01:52:17]MH_Cut [01:52:17]Write to MH i2c: D1 01 00 C4 51 01 E7 [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: D1 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: D1 01 00 [01:52:17]MH_I2C_Read... [01:52:17]Read from MH i2c: D1 01 00 C4 51 00 E6 [01:52:17]Write to MH i2c: 01 00 00 C5 51 16 [01:52:17]Write i2c OK [01:52:17]MH_I2C_Read... [01:52:17]Connected sock=9 [01:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 1D 82 07 01 FB 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 3E 53 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E4 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D7 9C 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D4 25 01 00 35 04 06 00 98 05 30 79 6C AD A2 25 17 52 26 CF 7F 7D [01:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 E9 16 47 00 0E 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 38 37 31 37 39 35 10 04 04 00 D4 25 01 00 F4 03 04 00 51 44 1D 67 B6 04 01 00 00 8E DD D5 30 96 7C 4A E2 [01:52:18]CommunicateWithHost err = 0 [01:52:18]CheckOFDResponse [01:52:18]1017 (14) - 77093643461234 [01:52:18]1041 (16) - 0000000000871795 [01:52:18]1040 (4) - 75220 [01:52:18]1012 (4) - 26.10.2024 19:34 [01:52:18]1206 (1) - 0 [01:52:18]OFD Sender: Remove packet 75220 [01:52:18]ProducePacketName [01:52:18]name=ofd_packets/00075220 [01:52:18]NVStorageDeleteData [01:52:18]*** Cut start [01:52:18]*** Partial cut [01:52:18]*** CUTSNS_PIN = 1 [01:52:18]OFD Sender: No OFD packet to send [01:52:18]*** CUTSNS_PIN = 0 [01:52:18]*** Brake cut motor [01:52:19]Read from MH i2c: 01 [01:52:19]MH_I2C_Read... [01:52:19]*** Stop cut motor [01:52:19]*** Cut end [01:52:19]Read from MH i2c: 01 07 00 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: 01 07 00 C5 51 00 00 00 00 00 FF 0F 2B [01:52:19]process_action close_receipt done [01:52:19]requested_data is exist [01:52:19]produce_requested_data [01:52:19]requested_item fm.sn is exist - process it [01:52:19]wFMCommunicate request_size=4 [01:52:19]MH_SAM_APDU [01:52:19]CAPDU: 80 11 00 00 [01:52:19]Write to MH i2c: E2 08 00 C6 51 80 11 00 00 00 00 00 00 91 [01:52:19]Write i2c OK [01:52:19]MH_I2C_Read... [01:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:19]Read from MH i2c: E2 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 17 00 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 17 00 C6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E9 [01:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [01:52:19]wFMCommunicate OK [01:52:19]requested_item fd.num is exist - process it [01:52:19]SAM_PROTO_GetFieldsCounters [01:52:19]wFMCommunicate request_size=4 [01:52:19]MH_SAM_APDU [01:52:19]CAPDU: 80 13 00 00 [01:52:19]Write to MH i2c: E2 08 00 C7 51 80 13 00 00 00 00 00 00 94 [01:52:19]Write i2c OK [01:52:19]MH_I2C_Read... [01:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:19]Read from MH i2c: E2 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 62 00 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 62 00 C7 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D4 25 01 00 0E 04 04 00 01 02 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 CA [01:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D4 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:52:19]wFMCommunicate OK [01:52:19]SAM_PROTO_GetFieldsCounters done [01:52:19]requested_item shift.num is exist - process it [01:52:19]requested_item shift.opened is exist - process it [01:52:19]req_shift_opened [01:52:19]FM_GetShiftState [01:52:19]SAM_PROTO_GetShiftState [01:52:19]wFMCommunicate request_size=4 [01:52:19]MH_SAM_APDU [01:52:19]CAPDU: 80 13 01 00 [01:52:19]Write to MH i2c: E2 08 00 C8 51 80 13 01 00 00 00 00 00 96 [01:52:19]Write i2c OK [01:52:19]MH_I2C_Read... [01:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:19]Read from MH i2c: E2 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 0E 00 [01:52:19]MH_I2C_Read... [01:52:19]Read from MH i2c: E2 0E 00 C8 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 FC [01:52:19]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [01:52:19]wFMCommunicate OK [01:52:19]SAM_PROTO_GetShiftState done [01:52:19]FM_GetShiftState done [01:52:19]req_shift_opened done [01:52:19]requested_item shift.open_date is exist - process it [01:52:19]req_shift_open_date [01:52:19]req_shift_open_date done [01:52:19]produce_requested_data done [01:52:19]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75220,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [01:52:19]process_action_free close_receipt [01:52:19]json_value_free [01:52:19]json_value_free done [01:52:19]process_json_proto returns [01:52:19]Send response to host [01:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75220,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [01:52:19]free response buf [01:52:19]execute_script done [01:52:19]execute_script returns [01:52:19]free content buf [01:52:19]Sock 10.Close socket [01:52:19]Sock 10.Thread stoped [01:52:22]int [01:52:22]Write to MH i2c: 01 00 00 C9 51 1A [01:52:22]*** FLAG_PRN_KEY set [01:52:22]Write i2c OK [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: 01 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: 01 07 00 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: 01 07 00 C9 51 00 08 00 00 00 FF 0F 37 [01:52:22]state=0 [01:52:22]Key pressed [01:52:22]Feed [01:52:22]Write to MH i2c: D8 00 00 CA 51 F2 [01:52:22]Write i2c OK [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: D8 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: D8 01 00 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: D8 01 00 CA 51 00 F3 [01:52:22]int [01:52:22]Write to MH i2c: 01 00 00 CB 51 1C [01:52:22]Write i2c OK [01:52:22]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 07 00 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 07 00 CB 51 00 48 00 00 00 3C 00 A7 [01:52:23]state=2 [01:52:23]Key pressed [01:52:23]int [01:52:23]Write to MH i2c: 01 00 00 CC 51 1D [01:52:23]*** FLAG_PRN_KEY reset [01:52:23]Write i2c OK [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 07 00 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: 01 07 00 CC 51 00 00 00 00 00 F8 0F 2B [01:52:23]state=2 [01:52:23]Stop feed [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:19:55]accept exits with 8 [02:19:55]New connection [02:19:55]New thread 3066924388 created [02:19:55]Thread 3066781028 joined [02:19:55]Waiting for new connection... [02:19:55] Sock 8.Parse request [02:19:55]Sock 8.Check first char [02:19:55]Sock 8.First char is OK [02:19:55]request: POST /json_proto HTTP/1.0 [02:19:55]Method: POST [02:19:55]URL: /json_proto [02:19:55]Method is POST - this is cgi request [02:19:55]url: /json_proto [02:19:55]query_string will be loaded in cgi processing [02:19:55]execute_cgi json_proto POST (null) [02:19:55]execute_cgi path=json_proto method=POST [02:19:55]POST find Content-Length [02:19:55]Host: 172.17.39.131:8080 [02:19:55]Content-Length: 677 [02:19:55]Content-Type: application/json [02:19:55] [02:19:55]POST finish read [02:19:55]Found Content-Length = 677 [02:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [02:19:55]execute_script... [02:19: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)191199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [02:19:55]POST & json_proto [02:19:55]process_json_proto [02:19:55]json parsed OK: [02:19:55]protocol is kg_v1.0 [02:19:55]action value=close_receipt [02:19:55]process_action close_receipt [02:19:55]cmd_close_receipt [02:19:55]MH_GetDate [02:19:55]Write to MH i2c: F0 00 00 CD 51 0D [02:19:55]Write i2c OK [02:19:55]MH_I2C_Read... [02:19:55]Read from MH i2c: F0 [02:19:55]MH_I2C_Read... [02:19:55]Read from MH i2c: F0 09 00 [02:19:55]MH_I2C_Read... [02:19:55]Read from MH i2c: F0 09 00 CD 51 00 53 A3 1D 67 86 57 24 65 F6 [02:19:55]GetLastDocTimeStamp 1729993943 [02:19:55]current date 1729995603 [02:19:55]FM_GetShiftState [02:19:55]SAM_PROTO_GetShiftState [02:19:55]wFMCommunicate request_size=4 [02:19:55]MH_SAM_APDU [02:19:55]CAPDU: 80 13 01 00 [02:19:55]Write to MH i2c: E2 08 00 CE 51 80 13 01 00 00 00 00 00 9C [02:19:55]Write i2c OK [02:19:55]MH_I2C_Read... [02:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:55]Read from MH i2c: E2 [02:19:55]MH_I2C_Read... [02:19:55]Read from MH i2c: E2 0E 00 [02:19:55]MH_I2C_Read... [02:19:55]Read from MH i2c: E2 0E 00 CE 51 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 02 [02:19:55]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:19:55]wFMCommunicate OK [02:19:55]SAM_PROTO_GetShiftState done [02:19:55]FM_GetShiftState done [02:19:55]opened in 1729989706 [02:19:55]opened+sec_in_day 1730076106 [02:19:55]quantity*price = 50041 [02:19:55]sum+1 = 50042 [02:19:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 7 27.10.2024 02:20 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75221 ФПД: 191358101772205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T022003&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75221&fm=191358101772205&tin=02508201610067®Number=0000000000091691&sum=50000 [02:19:57]StoreToDocumentArchive [02:19:57]shift 513 fd 75221 [02:19:57]save to /storage/0513/doc_00075221 [02:19:57]save last doc name /storage/0513/doc_00075221 to /storage/kkm_last_doc_name [02:19:57]save OK [02:19:57]Clear old archive folders... [02:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:19:57]tlvbuf is B6ED39E0 [02:19:57]SAM_PROTO_ClearQueue [02:19:57]wFMCommunicate request_size=4 [02:19:57]MH_SAM_APDU [02:19:57]CAPDU: 80 09 00 00 [02:19:57]Write to MH i2c: E2 08 00 DB 51 80 09 00 00 00 00 00 00 9E [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 DB 51 00 90 00 A0 [02:19:57]RAPDU: 90 00 [02:19:57]wFMCommunicate OK [02:19:57]SAM_PROTO_ClearQueue done [02:19:57]KKMCreateOFDPacket [02:19:57]OFDProtocolAddRootSTLVToBuf [02:19:57]FM_MakeSignedData [02:19:57]FM_MakeSignedData [02:19:57]SAM_PROTO_SignData [02:19:57]wFMCommunicate request_size=4 [02:19:57]MH_SAM_APDU [02:19:57]CAPDU: 80 0D 01 02 [02:19:57]Write to MH i2c: E2 08 00 DC 51 80 0D 01 02 00 00 00 00 A6 [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 DC 51 00 90 00 A1 [02:19:57]RAPDU: 90 00 [02:19:57]wFMCommunicate OK [02:19:57]wFMCommunicate request_size=255 [02:19:57]MH_SAM_APDU [02:19: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 07 00 00 00 F4 03 04 00 53 A3 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 25 01 00 35 04 06 00 AE [02:19:57]Write to MH i2c: E2 02 01 DD 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 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 07 00 00 00 F4 03 04 00 53 A3 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 25 01 00 35 04 06 00 AE 00 00 68 [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 DD 51 00 90 00 A2 [02:19:57]RAPDU: 90 00 [02:19:57]wFMCommunicate OK [02:19:57]wFMCommunicate request_size=10 [02:19:57]MH_SAM_APDU [02:19:57]CAPDU: 80 0D 02 02 05 0A 07 AE 57 AD [02:19:57]Write to MH i2c: E2 0D 00 DE 51 80 0D 02 02 05 00 0A 07 AE 57 AD 00 00 76 [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 03 00 DE 51 00 90 00 A3 [02:19:57]RAPDU: 90 00 [02:19:57]wFMCommunicate OK [02:19:57]wFMCommunicate request_size=4 [02:19:57]MH_SAM_APDU [02:19:57]CAPDU: 80 0D 03 02 [02:19:57]Write to MH i2c: E2 08 00 DF 51 80 0D 03 02 00 00 00 00 AB [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 0B 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 0B 00 DF 51 00 D9 59 13 D4 17 AA 98 B6 90 00 D4 [02:19:57]RAPDU: D9 59 13 D4 17 AA 98 B6 90 00 [02:19:57]wFMCommunicate OK [02:19:57]SAM_PROTO_SignData done [02:19:57]FM_MakeSignedData done [02:19:57]CreateOFDProtocolMessage [02:19:57]wFMCommunicate request_size=4 [02:19:57]MH_SAM_APDU [02:19:57]CAPDU: 80 11 00 00 [02:19:57]Write to MH i2c: E2 08 00 E0 51 80 11 00 00 00 00 00 00 AB [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:57]Read from MH i2c: E2 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 17 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: E2 17 00 E0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 03 [02:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:19:57]wFMCommunicate OK [02:19:57]CreateOFDProtocolMessage done [02:19:57]OFDSenderStorePacket 75221 [02:19:57]StoreOFDPacket docnum=75221 [02:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E3 AB 07 01 8A 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 07 00 00 00 F4 03 04 00 53 A3 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 25 01 00 35 04 06 00 AE 0A 07 AE 57 AD D9 59 13 D4 17 AA 98 B6 [02:19:57]CheckFolder [02:19:57]dirname=/storage/ofd_packets [02:19:57]CheckFolder done [02:19:57]ProducePacketName [02:19:57]name=ofd_packets/00075221 [02:19:57]NVStorageSaveData ofd_packets/00075221 [02:19:57]File name is /storage/ofd_packets/00075221 [02:19:57]Write 301 bytes [02:19:57]NVStorageSaveData done [02:19:57]OFDSenderStorePacket done [02:19:57]KKMCreateOFDPacket done [02:19:57]NVStorageSaveData kkm_last_timestamp [02:19:57]File name is /storage/kkm_last_timestamp [02:19:57]Write 4 bytes [02:19:57]NVStorageSaveData done [02:19:57]ExternCall_PrintAddStr [02:19:57]wPrintStart [02:19:57]Write to MH i2c: 01 00 00 E1 51 32 [02:19:57]Write i2c OK [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: 01 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: 01 07 00 [02:19:57]MH_I2C_Read... [02:19:57]Read from MH i2c: 01 07 00 E1 51 00 00 00 00 00 FF 0F 47 [02:19:57]RasterBufferAndPrint [02:19:57]line Счет N : (1)191199 [02:19:57]line ИНН: 02508201610067 [02:19:57]line Контрольно-Кассовый Чек [02:19:57]line ПРОДАЖА [02:19:57]line ТРК (МРК, ГНК) : 21 [02:19:57]line Товар: 2710124130 [02:19:57]line Аи-92-К-5 [02:19:57]line 7.480 * 66.90 [02:19:57]line = 500.41 [02:19:57]line НДС 12% НСП 1% [02:19:57]line > о реализуемом товаре [02:19:57]line ОКРУГЛЕНИЕ: -0.41 [02:19:57]line ИТОГО: 500.00 [02:19:57]line Внесено: 500.00 [02:19:57]line СДАЧА: 0.00 [02:19:57]line НСП 1% : 4.43 [02:19:57]line НДС 12% : 53.14 [02:19:57]line Наличными: 500.00 [02:19:57]line Безнал.: 0.00 [02:19:57]line Место: АЗС № 142 "Партнер Нефть" [02:19:57]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:19:57]line СНО: Общий режим [02:19:57]line Чек 7 27.10.2024 02:20 [02:19:57]line Смена: 513 ФФД: 1.0 [02:19:57]line ЗНМ: 0300000089 [02:19:57]line РНМ: 0000000000091691 [02:19:57]line Версия ККМ: 001 [02:19:57]line ФМ: 0000000000871795 [02:19:57]line ФД: 75221 [02:19:57]line ФПД: 191358101772205 [02:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T022003&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75221&fm=191358101772205&tin=02508201610067®Number=0000000000091691&sum=50000 [02:19:57]written 0, free lines is 4095 [02:19:57]OFD Sender: Processing packet 75221 [packets to send 13, broken 12] [02:19:57]ProducePacketName [02:19:57]name=ofd_packets/00075221 [02:19:57]OFD Sender: To server: pG, [02:19:57]CommunicateWithHost lk.salyk.kg:30040 [02:19:57]ConnectInit lk.salyk.kg [02:19:58]Write to MH i2c: 01 00 00 0C 52 5E [02:19:58]Write i2c OK [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: 01 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: 01 07 00 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: 01 07 00 0C 52 00 00 00 00 00 93 0C 04 [02:19:58]RasterBufferAndPrint [02:19:58]line [02:19:58]line [02:19:58]line [02:19:58]line [02:19:58]line [02:19:58]written 0, free lines is 3223 [02:19:58]MH_Cut [02:19:58]Write to MH i2c: D1 01 00 13 52 01 37 [02:19:58]Write i2c OK [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: D1 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: D1 01 00 [02:19:58]MH_I2C_Read... [02:19:58]Read from MH i2c: D1 01 00 13 52 00 36 [02:19:58]Write to MH i2c: 01 00 00 14 52 66 [02:19:58]Write i2c OK [02:19:58]MH_I2C_Read... [02:19:59]*** Cut start [02:19:59]*** Partial cut [02:19:59]*** CUTSNS_PIN = 1 [02:19:59]*** CUTSNS_PIN = 0 [02:19:59]*** Brake cut motor [02:19:59]Read from MH i2c: 01 [02:19:59]MH_I2C_Read... [02:19:59]*** Stop cut motor [02:19:59]*** Cut end [02:19:59]Read from MH i2c: 01 07 00 [02:19:59]MH_I2C_Read... [02:19:59]Read from MH i2c: 01 07 00 14 52 00 00 00 00 00 FF 0F 7B [02:19:59]process_action close_receipt done [02:19:59]requested_data is exist [02:19:59]produce_requested_data [02:19:59]requested_item fm.sn is exist - process it [02:19:59]wFMCommunicate request_size=4 [02:19:59]MH_SAM_APDU [02:19:59]CAPDU: 80 11 00 00 [02:19:59]Write to MH i2c: E2 08 00 15 52 80 11 00 00 00 00 00 00 E1 [02:19:59]Write i2c OK [02:19:59]MH_I2C_Read... [02:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:00]Read from MH i2c: E2 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 17 00 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 17 00 15 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 39 [02:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:20:00]wFMCommunicate OK [02:20:00]requested_item fd.num is exist - process it [02:20:00]SAM_PROTO_GetFieldsCounters [02:20:00]wFMCommunicate request_size=4 [02:20:00]MH_SAM_APDU [02:20:00]CAPDU: 80 13 00 00 [02:20:00]Write to MH i2c: E2 08 00 16 52 80 13 00 00 00 00 00 00 E4 [02:20:00]Write i2c OK [02:20:00]MH_I2C_Read... [02:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:00]Read from MH i2c: E2 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 62 00 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 62 00 16 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D5 25 01 00 0E 04 04 00 01 02 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 1E [02:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D5 25 01 00 0E 04 04 00 01 02 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 [02:20:00]wFMCommunicate OK [02:20:00]SAM_PROTO_GetFieldsCounters done [02:20:00]requested_item shift.num is exist - process it [02:20:00]requested_item shift.opened is exist - process it [02:20:00]req_shift_opened [02:20:00]FM_GetShiftState [02:20:00]SAM_PROTO_GetShiftState [02:20:00]wFMCommunicate request_size=4 [02:20:00]MH_SAM_APDU [02:20:00]CAPDU: 80 13 01 00 [02:20:00]Write to MH i2c: E2 08 00 17 52 80 13 01 00 00 00 00 00 E6 [02:20:00]Write i2c OK [02:20:00]MH_I2C_Read... [02:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:00]Read from MH i2c: E2 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 0E 00 [02:20:00]MH_I2C_Read... [02:20:00]Read from MH i2c: E2 0E 00 17 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 4C [02:20:00]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:20:00]wFMCommunicate OK [02:20:00]SAM_PROTO_GetShiftState done [02:20:00]FM_GetShiftState done [02:20:00]req_shift_opened done [02:20:00]requested_item shift.open_date is exist - process it [02:20:00]req_shift_open_date [02:20:00]req_shift_open_date done [02:20:00]produce_requested_data done [02:20:00]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75221,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [02:20:00]process_action_free close_receipt [02:20:00]json_value_free [02:20:00]json_value_free done [02:20:00]process_json_proto returns [02:20:00]Send response to host [02:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75221,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [02:20:00]free response buf [02:20:00]execute_script done [02:20:00]execute_script returns [02:20:00]free content buf [02:20:00]Sock 8.Close socket [02:20:00]Sock 8.Thread stoped [02:22:08]ConnectInit Can't connect to host [02:22:08]CommunicateWithHost connect error [02:22:08]CommunicateWithHost err = -1 [02:22:08]OFD Sender: Server communicate error [02:22:13]OFD Sender: Processing packet 75221 [packets to send 13, broken 12] [02:22:13]ProducePacketName [02:22:13]name=ofd_packets/00075221 [02:22:13]OFD Sender: To server: pG, [02:22:13]CommunicateWithHost lk.salyk.kg:30040 [02:22:13]ConnectInit lk.salyk.kg [02:22:13]Connected sock=8 [02:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 E3 AB 07 01 8A 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 07 00 00 00 F4 03 04 00 53 A3 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 25 01 00 35 04 06 00 AE 0A 07 AE 57 AD D9 59 13 D4 17 AA 98 B6 [02:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 57 1A 47 00 17 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D5 25 01 00 F4 03 04 00 55 4B 1D 67 B6 04 01 00 00 8E 6E 95 FA E2 CE 9E 38 [02:22:13]CommunicateWithHost err = 0 [02:22:13]CheckOFDResponse [02:22:13]1017 (14) - 77093643461234 [02:22:13]1041 (16) - 0000000000871795 [02:22:13]1040 (4) - 75221 [02:22:13]1012 (4) - 26.10.2024 20:04 [02:22:13]1206 (1) - 0 [02:22:13]OFD Sender: Remove packet 75221 [02:22:13]ProducePacketName [02:22:13]name=ofd_packets/00075221 [02:22:13]NVStorageDeleteData [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]accept exits with 9 [02:26:29]New connection [02:26:29]New thread 3066781028 created [02:26:29]Thread 3066924388 joined [02:26:29]Waiting for new connection... [02:26:29] Sock 9.Parse request [02:26:29]Sock 9.Check first char [02:26:29]Sock 9.First char is OK [02:26:29]request: POST /json_proto HTTP/1.0 [02:26:29]Method: POST [02:26:29]URL: /json_proto [02:26:29]Method is POST - this is cgi request [02:26:29]url: /json_proto [02:26:29]query_string will be loaded in cgi processing [02:26:29]execute_cgi json_proto POST (null) [02:26:29]execute_cgi path=json_proto method=POST [02:26:29]POST find Content-Length [02:26:29]Host: 172.17.39.131:8080 [02:26:29]Content-Length: 766 [02:26:29]Content-Type: application/json [02:26:29] [02:26:29]POST finish read [02:26:29]Found Content-Length = 766 [02:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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 }]} ], "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.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:29]execute_script... [02:26: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)191200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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 }]} ], "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.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:29]POST & json_proto [02:26:29]process_json_proto [02:26:29]json parsed OK: [02:26:29]protocol is kg_v1.0 [02:26:29]action value=close_receipt [02:26:29]process_action close_receipt [02:26:29]cmd_close_receipt [02:26:29]MH_GetDate [02:26:29]Write to MH i2c: F0 00 00 18 52 59 [02:26:29]Write i2c OK [02:26:29]MH_I2C_Read... [02:26:29]Read from MH i2c: F0 [02:26:29]MH_I2C_Read... [02:26:29]Read from MH i2c: F0 09 00 [02:26:29]MH_I2C_Read... [02:26:29]Read from MH i2c: F0 09 00 18 52 00 DD A4 1D 67 86 57 24 65 CD [02:26:29]GetLastDocTimeStamp 1729995603 [02:26:29]current date 1729995997 [02:26:29]FM_GetShiftState [02:26:29]SAM_PROTO_GetShiftState [02:26:29]wFMCommunicate request_size=4 [02:26:29]MH_SAM_APDU [02:26:29]CAPDU: 80 13 01 00 [02:26:29]Write to MH i2c: E2 08 00 19 52 80 13 01 00 00 00 00 00 E8 [02:26:29]Write i2c OK [02:26:29]MH_I2C_Read... [02:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:29]Read from MH i2c: E2 [02:26:29]MH_I2C_Read... [02:26:29]Read from MH i2c: E2 0E 00 [02:26:29]MH_I2C_Read... [02:26:29]Read from MH i2c: E2 0E 00 19 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 4E [02:26:29]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:26:29]wFMCommunicate OK [02:26:29]SAM_PROTO_GetShiftState done [02:26:29]FM_GetShiftState done [02:26:29]opened in 1729989706 [02:26:29]opened+sec_in_day 1730076106 [02:26:29]quantity*price = 60009 [02:26:29]sum+1 = 60010 [02:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 8 27.10.2024 02:26 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871795 ФД: 75222 ФПД: 79292882606220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T022637&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75222&fm=79292882606220&tin=02508201610067®Number=0000000000091691&sum=60009 [02:26:30]StoreToDocumentArchive [02:26:30]shift 513 fd 75222 [02:26:30]save to /storage/0513/doc_00075222 [02:26:30]save last doc name /storage/0513/doc_00075222 to /storage/kkm_last_doc_name [02:26:30]save OK [02:26:30]Clear old archive folders... [02:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:26:30]tlvbuf is 00918DA0 [02:26:30]SAM_PROTO_ClearQueue [02:26:30]wFMCommunicate request_size=4 [02:26:30]MH_SAM_APDU [02:26:30]CAPDU: 80 09 00 00 [02:26:30]Write to MH i2c: E2 08 00 26 52 80 09 00 00 00 00 00 00 EA [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 26 52 00 90 00 EC [02:26:30]RAPDU: 90 00 [02:26:30]wFMCommunicate OK [02:26:30]SAM_PROTO_ClearQueue done [02:26:30]KKMCreateOFDPacket [02:26:30]OFDProtocolAddRootSTLVToBuf [02:26:30]FM_MakeSignedData [02:26:30]FM_MakeSignedData [02:26:30]SAM_PROTO_SignData [02:26:30]wFMCommunicate request_size=4 [02:26:30]MH_SAM_APDU [02:26:30]CAPDU: 80 0D 01 02 [02:26:30]Write to MH i2c: E2 08 00 27 52 80 0D 01 02 00 00 00 00 F2 [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 27 52 00 90 00 ED [02:26:30]RAPDU: 90 00 [02:26:30]wFMCommunicate OK [02:26:30]wFMCommunicate request_size=255 [02:26:30]MH_SAM_APDU [02:26: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 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 DD A4 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 25 01 00 35 04 06 00 48 [02:26:30]Write to MH i2c: E2 02 01 28 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 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 DD A4 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 25 01 00 35 04 06 00 48 00 00 CA [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 28 52 00 90 00 EE [02:26:30]RAPDU: 90 00 [02:26:30]wFMCommunicate OK [02:26:30]wFMCommunicate request_size=10 [02:26:30]MH_SAM_APDU [02:26:30]CAPDU: 80 0D 02 02 05 1D D0 19 D8 8C [02:26:30]Write to MH i2c: E2 0D 00 29 52 80 0D 02 02 05 00 1D D0 19 D8 8C 00 00 69 [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 03 00 29 52 00 90 00 EF [02:26:30]RAPDU: 90 00 [02:26:30]wFMCommunicate OK [02:26:30]wFMCommunicate request_size=4 [02:26:30]MH_SAM_APDU [02:26:30]CAPDU: 80 0D 03 02 [02:26:30]Write to MH i2c: E2 08 00 2A 52 80 0D 03 02 00 00 00 00 F7 [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 0B 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 0B 00 2A 52 00 26 B5 3D D5 3B E2 0F EF 90 00 00 [02:26:30]RAPDU: 26 B5 3D D5 3B E2 0F EF 90 00 [02:26:30]wFMCommunicate OK [02:26:30]SAM_PROTO_SignData done [02:26:30]FM_MakeSignedData done [02:26:30]CreateOFDProtocolMessage [02:26:30]wFMCommunicate request_size=4 [02:26:30]MH_SAM_APDU [02:26:30]CAPDU: 80 11 00 00 [02:26:30]Write to MH i2c: E2 08 00 2B 52 80 11 00 00 00 00 00 00 F7 [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:30]Read from MH i2c: E2 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 17 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: E2 17 00 2B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 4F [02:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:26:30]wFMCommunicate OK [02:26:30]CreateOFDProtocolMessage done [02:26:30]OFDSenderStorePacket 75222 [02:26:30]StoreOFDPacket docnum=75222 [02:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 61 9D 07 01 0A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 DD A4 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 25 01 00 35 04 06 00 48 1D D0 19 D8 8C 26 B5 3D D5 3B E2 0F EF [02:26:30]CheckFolder [02:26:30]dirname=/storage/ofd_packets [02:26:30]CheckFolder done [02:26:30]ProducePacketName [02:26:30]name=ofd_packets/00075222 [02:26:30]NVStorageSaveData ofd_packets/00075222 [02:26:30]File name is /storage/ofd_packets/00075222 [02:26:30]Write 301 bytes [02:26:30]NVStorageSaveData done [02:26:30]OFDSenderStorePacket done [02:26:30]KKMCreateOFDPacket done [02:26:30]NVStorageSaveData kkm_last_timestamp [02:26:30]File name is /storage/kkm_last_timestamp [02:26:30]Write 4 bytes [02:26:30]NVStorageSaveData done [02:26:30]ExternCall_PrintAddStr [02:26:30]wPrintStart [02:26:30]Write to MH i2c: 01 00 00 2C 52 7E [02:26:30]Write i2c OK [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: 01 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: 01 07 00 [02:26:30]MH_I2C_Read... [02:26:30]Read from MH i2c: 01 07 00 2C 52 00 00 00 00 00 FF 0F 93 [02:26:30]RasterBufferAndPrint [02:26:30]line Счет N : (1)191200 [02:26:30]line ИНН: 02508201610067 [02:26:30]line Контрольно-Кассовый Чек [02:26:30]line ПРОДАЖА [02:26:30]line ТРК (МРК, ГНК) : 21 [02:26:30]line Товар: 2710124130 [02:26:30]line Аи-92-К-5 [02:26:30]line 8.970 * 66.90 [02:26:30]line = 600.09 [02:26:30]line НДС 12% НСП 1% [02:26:30]line > о реализуемом товаре [02:26:30]line ИТОГО: 600.09 [02:26:30]line НСП 1% : 5.31 [02:26:30]line НДС 12% : 63.73 [02:26:30]line Наличными: 0.00 [02:26:30]line Безнал.: 600.09 [02:26:30]line Место: АЗС № 142 "Партнер Нефть" [02:26:30]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:26:30]line СНО: Общий режим [02:26:30]line Чек 8 27.10.2024 02:26 [02:26:30]line Смена: 513 ФФД: 1.0 [02:26:30]line ЗНМ: 0300000089 [02:26:30]line РНМ: 0000000000091691 [02:26:30]line Версия ККМ: 001 [02:26:30]line Платежная система: Mbank [02:26:30]line ФМ: 0000000000871795 [02:26:30]line ФД: 75222 [02:26:30]line ФПД: 79292882606220 [02:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T022637&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75222&fm=79292882606220&tin=02508201610067®Number=0000000000091691&sum=60009 [02:26:30]written 0, free lines is 4095 [02:26:30]OFD Sender: Processing packet 75222 [packets to send 13, broken 12] [02:26:30]ProducePacketName [02:26:30]name=ofd_packets/00075222 [02:26:31]OFD Sender: To server: pG, [02:26:31]CommunicateWithHost lk.salyk.kg:30040 [02:26:31]ConnectInit lk.salyk.kg [02:26:31]Write to MH i2c: 01 00 00 55 52 A7 [02:26:31]Write i2c OK [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: 01 [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: 01 07 00 [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: 01 07 00 55 52 00 00 00 00 00 C4 0C 7E [02:26:31]RasterBufferAndPrint [02:26:31]line [02:26:31]line [02:26:31]line [02:26:31]line [02:26:31]line [02:26:31]written 0, free lines is 3272 [02:26:31]MH_Cut [02:26:31]Write to MH i2c: D1 01 00 5C 52 01 80 [02:26:31]Write i2c OK [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: D1 [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: D1 01 00 [02:26:31]MH_I2C_Read... [02:26:31]Read from MH i2c: D1 01 00 5C 52 00 7F [02:26:31]Write to MH i2c: 01 00 00 5D 52 AF [02:26:31]Write i2c OK [02:26:31]MH_I2C_Read... [02:26:31]Connected sock=10 [02:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0F 01 00 00 61 9D 07 01 0A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 DD A4 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 25 01 00 35 04 06 00 48 1D D0 19 D8 8C 26 B5 3D D5 3B E2 0F EF [02:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 CB E5 47 00 48 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D6 25 01 00 F4 03 04 00 57 4C 1D 67 B6 04 01 00 00 48 C5 57 FA 0B 5D 78 81 [02:26:31]CommunicateWithHost err = 0 [02:26:31]CheckOFDResponse [02:26:31]1017 (14) - 77093643461234 [02:26:31]1041 (16) - 0000000000871795 [02:26:31]1040 (4) - 75222 [02:26:31]1012 (4) - 26.10.2024 20:08 [02:26:31]1206 (1) - 0 [02:26:31]OFD Sender: Remove packet 75222 [02:26:31]ProducePacketName [02:26:31]name=ofd_packets/00075222 [02:26:31]NVStorageDeleteData [02:26:32]*** Cut start [02:26:32]*** Partial cut [02:26:32]*** CUTSNS_PIN = 1 [02:26:32]*** CUTSNS_PIN = 0 [02:26:32]OFD Sender: No OFD packet to send [02:26:32]*** Brake cut motor [02:26:32]Read from MH i2c: 01 [02:26:32]MH_I2C_Read... [02:26:32]*** Stop cut motor [02:26:32]*** Cut end [02:26:32]Read from MH i2c: 01 07 00 [02:26:32]MH_I2C_Read... [02:26:32]Read from MH i2c: 01 07 00 5D 52 00 00 00 00 00 FF 0F C4 [02:26:32]process_action close_receipt done [02:26:32]requested_data is exist [02:26:32]produce_requested_data [02:26:32]requested_item fm.sn is exist - process it [02:26:32]wFMCommunicate request_size=4 [02:26:32]MH_SAM_APDU [02:26:32]CAPDU: 80 11 00 00 [02:26:32]Write to MH i2c: E2 08 00 5E 52 80 11 00 00 00 00 00 00 2A [02:26:32]Write i2c OK [02:26:32]MH_I2C_Read... [02:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:32]Read from MH i2c: E2 [02:26:32]MH_I2C_Read... [02:26:32]Read from MH i2c: E2 17 00 [02:26:32]MH_I2C_Read... [02:26:32]Read from MH i2c: E2 17 00 5E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 82 [02:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:26:32]wFMCommunicate OK [02:26:32]requested_item fd.num is exist - process it [02:26:32]SAM_PROTO_GetFieldsCounters [02:26:32]wFMCommunicate request_size=4 [02:26:32]MH_SAM_APDU [02:26:32]CAPDU: 80 13 00 00 [02:26:32]Write to MH i2c: E2 08 00 5F 52 80 13 00 00 00 00 00 00 2D [02:26:32]Write i2c OK [02:26:32]MH_I2C_Read... [02:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:33]Read from MH i2c: E2 [02:26:33]MH_I2C_Read... [02:26:33]Read from MH i2c: E2 62 00 [02:26:33]MH_I2C_Read... [02:26:33]Read from MH i2c: E2 62 00 5F 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D6 25 01 00 0E 04 04 00 01 02 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 6B [02:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D6 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:26:33]wFMCommunicate OK [02:26:33]SAM_PROTO_GetFieldsCounters done [02:26:33]requested_item shift.num is exist - process it [02:26:33]requested_item shift.opened is exist - process it [02:26:33]req_shift_opened [02:26:33]FM_GetShiftState [02:26:33]SAM_PROTO_GetShiftState [02:26:33]wFMCommunicate request_size=4 [02:26:33]MH_SAM_APDU [02:26:33]CAPDU: 80 13 01 00 [02:26:33]Write to MH i2c: E2 08 00 60 52 80 13 01 00 00 00 00 00 2F [02:26:33]Write i2c OK [02:26:33]MH_I2C_Read... [02:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:33]Read from MH i2c: E2 [02:26:33]MH_I2C_Read... [02:26:33]Read from MH i2c: E2 0E 00 [02:26:33]MH_I2C_Read... [02:26:33]Read from MH i2c: E2 0E 00 60 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 95 [02:26:33]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:26:33]wFMCommunicate OK [02:26:33]SAM_PROTO_GetShiftState done [02:26:33]FM_GetShiftState done [02:26:33]req_shift_opened done [02:26:33]requested_item shift.open_date is exist - process it [02:26:33]req_shift_open_date [02:26:33]req_shift_open_date done [02:26:33]produce_requested_data done [02:26:33]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75222,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [02:26:33]process_action_free close_receipt [02:26:33]json_value_free [02:26:33]json_value_free done [02:26:33]process_json_proto returns [02:26:33]Send response to host [02:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75222,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [02:26:33]free response buf [02:26:33]execute_script done [02:26:33]execute_script returns [02:26:33]free content buf [02:26:33]Sock 9.Close socket [02:26:33]Sock 9.Thread stoped [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:08]accept exits with 8 [02:42:08]New connection [02:42:08]New thread 3066924388 created [02:42:08]Thread 3066781028 joined [02:42:08]Waiting for new connection... [02:42:08] Sock 8.Parse request [02:42:08]Sock 8.Check first char [02:42:08]Sock 8.First char is OK [02:42:08]request: POST /json_proto HTTP/1.0 [02:42:08]Method: POST [02:42:08]URL: /json_proto [02:42:08]Method is POST - this is cgi request [02:42:08]url: /json_proto [02:42:08]query_string will be loaded in cgi processing [02:42:08]execute_cgi json_proto POST (null) [02:42:08]execute_cgi path=json_proto method=POST [02:42:08]POST find Content-Length [02:42:08]Host: 172.17.39.131:8080 [02:42:08]Content-Length: 681 [02:42:08]Content-Type: application/json [02:42:08] [02:42:08]POST finish read [02:42:08]Found Content-Length = 681 [02:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [02:42:08]execute_script... [02:42: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)191201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "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" ] } } [02:42:08]POST & json_proto [02:42:08]process_json_proto [02:42:08]json parsed OK: [02:42:08]protocol is kg_v1.0 [02:42:08]action value=close_receipt [02:42:08]process_action close_receipt [02:42:08]cmd_close_receipt [02:42:08]MH_GetDate [02:42:08]Write to MH i2c: F0 00 00 61 52 A2 [02:42:08]Write i2c OK [02:42:08]MH_I2C_Read... [02:42:08]Read from MH i2c: F0 [02:42:08]MH_I2C_Read... [02:42:08]Read from MH i2c: F0 09 00 [02:42:08]MH_I2C_Read... [02:42:08]Read from MH i2c: F0 09 00 61 52 00 88 A8 1D 67 86 57 24 65 C5 [02:42:08]GetLastDocTimeStamp 1729995997 [02:42:08]current date 1729996936 [02:42:08]FM_GetShiftState [02:42:08]SAM_PROTO_GetShiftState [02:42:08]wFMCommunicate request_size=4 [02:42:08]MH_SAM_APDU [02:42:08]CAPDU: 80 13 01 00 [02:42:08]Write to MH i2c: E2 08 00 62 52 80 13 01 00 00 00 00 00 31 [02:42:08]Write i2c OK [02:42:08]MH_I2C_Read... [02:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:08]Read from MH i2c: E2 [02:42:08]MH_I2C_Read... [02:42:08]Read from MH i2c: E2 0E 00 [02:42:08]MH_I2C_Read... [02:42:08]Read from MH i2c: E2 0E 00 62 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 97 [02:42:08]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:42:08]wFMCommunicate OK [02:42:08]SAM_PROTO_GetShiftState done [02:42:08]FM_GetShiftState done [02:42:08]opened in 1729989706 [02:42:08]opened+sec_in_day 1730076106 [02:42:08]quantity*price = 50025 [02:42:08]sum+1 = 50026 [02:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 9 27.10.2024 02:42 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75223 ФПД: 153764977184146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024216&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75223&fm=153764977184146&tin=02508201610067®Number=0000000000091691&sum=50000 [02:42:09]StoreToDocumentArchive [02:42:09]shift 513 fd 75223 [02:42:09]save to /storage/0513/doc_00075223 [02:42:09]save last doc name /storage/0513/doc_00075223 to /storage/kkm_last_doc_name [02:42:09]save OK [02:42:09]Clear old archive folders... [02:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:42:09]tlvbuf is 007FDA80 [02:42:09]SAM_PROTO_ClearQueue [02:42:09]wFMCommunicate request_size=4 [02:42:09]MH_SAM_APDU [02:42:09]CAPDU: 80 09 00 00 [02:42:09]Write to MH i2c: E2 08 00 6F 52 80 09 00 00 00 00 00 00 33 [02:42:09]Write i2c OK [02:42:09]MH_I2C_Read... [02:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:09]Read from MH i2c: E2 [02:42:09]MH_I2C_Read... [02:42:09]Read from MH i2c: E2 03 00 [02:42:09]MH_I2C_Read... [02:42:09]Read from MH i2c: E2 03 00 6F 52 00 90 00 35 [02:42:09]RAPDU: 90 00 [02:42:09]wFMCommunicate OK [02:42:09]SAM_PROTO_ClearQueue done [02:42:09]KKMCreateOFDPacket [02:42:09]OFDProtocolAddRootSTLVToBuf [02:42:09]FM_MakeSignedData [02:42:09]FM_MakeSignedData [02:42:09]SAM_PROTO_SignData [02:42:09]wFMCommunicate request_size=4 [02:42:09]MH_SAM_APDU [02:42:09]CAPDU: 80 0D 01 02 [02:42:09]Write to MH i2c: E2 08 00 70 52 80 0D 01 02 00 00 00 00 3B [02:42:09]Write i2c OK [02:42:09]MH_I2C_Read... [02:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:09]Read from MH i2c: E2 [02:42:09]MH_I2C_Read... [02:42:09]Read from MH i2c: E2 03 00 [02:42:09]MH_I2C_Read... [02:42:09]Read from MH i2c: E2 03 00 70 52 00 90 00 36 [02:42:09]RAPDU: 90 00 [02:42:09]wFMCommunicate OK [02:42:09]wFMCommunicate request_size=255 [02:42:09]MH_SAM_APDU [02:42:09]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 39 30 30 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 09 00 00 00 F4 03 04 00 88 A8 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 25 01 00 35 04 06 00 8B D9 [02:42:09]Write to MH i2c: E2 02 01 71 52 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 39 30 30 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 09 00 00 00 F4 03 04 00 88 A8 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 25 01 00 35 04 06 00 8B D9 00 00 A2 [02:42:09]Write i2c OK [02:42:09]MH_I2C_Read... [02:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:10]Read from MH i2c: E2 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 03 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 03 00 71 52 00 90 00 37 [02:42:10]RAPDU: 90 00 [02:42:10]wFMCommunicate OK [02:42:10]wFMCommunicate request_size=9 [02:42:10]MH_SAM_APDU [02:42:10]CAPDU: 80 0D 02 02 04 32 D8 0D 92 [02:42:10]Write to MH i2c: E2 0C 00 72 52 80 0D 02 02 04 00 32 D8 0D 92 00 00 EF [02:42:10]Write i2c OK [02:42:10]MH_I2C_Read... [02:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:10]Read from MH i2c: E2 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 03 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 03 00 72 52 00 90 00 38 [02:42:10]RAPDU: 90 00 [02:42:10]wFMCommunicate OK [02:42:10]wFMCommunicate request_size=4 [02:42:10]MH_SAM_APDU [02:42:10]CAPDU: 80 0D 03 02 [02:42:10]Write to MH i2c: E2 08 00 73 52 80 0D 03 02 00 00 00 00 40 [02:42:10]Write i2c OK [02:42:10]MH_I2C_Read... [02:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:10]Read from MH i2c: E2 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 0B 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 0B 00 73 52 00 88 C5 73 1E A5 C0 B1 25 90 00 5A [02:42:10]RAPDU: 88 C5 73 1E A5 C0 B1 25 90 00 [02:42:10]wFMCommunicate OK [02:42:10]SAM_PROTO_SignData done [02:42:10]FM_MakeSignedData done [02:42:10]CreateOFDProtocolMessage [02:42:10]wFMCommunicate request_size=4 [02:42:10]MH_SAM_APDU [02:42:10]CAPDU: 80 11 00 00 [02:42:10]Write to MH i2c: E2 08 00 74 52 80 11 00 00 00 00 00 00 40 [02:42:10]Write i2c OK [02:42:10]MH_I2C_Read... [02:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:10]Read from MH i2c: E2 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 17 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: E2 17 00 74 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 98 [02:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:42:10]wFMCommunicate OK [02:42:10]CreateOFDProtocolMessage done [02:42:10]OFDSenderStorePacket 75223 [02:42:10]StoreOFDPacket docnum=75223 [02:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 AB 78 06 01 95 CA 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 39 30 30 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 09 00 00 00 F4 03 04 00 88 A8 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 25 01 00 35 04 06 00 8B D9 32 D8 0D 92 88 C5 73 1E A5 C0 B1 25 [02:42:10]CheckFolder [02:42:10]dirname=/storage/ofd_packets [02:42:10]CheckFolder done [02:42:10]ProducePacketName [02:42:10]name=ofd_packets/00075223 [02:42:10]NVStorageSaveData ofd_packets/00075223 [02:42:10]File name is /storage/ofd_packets/00075223 [02:42:10]Write 300 bytes [02:42:10]NVStorageSaveData done [02:42:10]OFDSenderStorePacket done [02:42:10]KKMCreateOFDPacket done [02:42:10]NVStorageSaveData kkm_last_timestamp [02:42:10]File name is /storage/kkm_last_timestamp [02:42:10]Write 4 bytes [02:42:10]NVStorageSaveData done [02:42:10]ExternCall_PrintAddStr [02:42:10]wPrintStart [02:42:10]Write to MH i2c: 01 00 00 75 52 C7 [02:42:10]Write i2c OK [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 07 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 07 00 75 52 00 00 00 00 00 FF 0F DC [02:42:10]RasterBufferAndPrint [02:42:10]line Счет N : (1)191201 [02:42:10]line ИНН: 02508201610067 [02:42:10]line Контрольно-Кассовый Чек [02:42:10]line ПРОДАЖА [02:42:10]line ТРК (МРК, ГНК) : 51 [02:42:10]line Товар: 2711190000 [02:42:10]line ГАЗ-К-3 [02:42:10]line 12.860 * 38.90 [02:42:10]line = 500.25 [02:42:10]line НДС 12% НСП 1% [02:42:10]line > о реализуемом товаре [02:42:10]line ОКРУГЛЕНИЕ: -0.25 [02:42:10]line ИТОГО: 500.00 [02:42:10]line Внесено: 500.00 [02:42:10]line СДАЧА: 0.00 [02:42:10]line НСП 1% : 4.43 [02:42:10]line НДС 12% : 53.12 [02:42:10]line Наличными: 500.00 [02:42:10]line Безнал.: 0.00 [02:42:10]line Место: АЗС № 142 "Партнер Нефть" [02:42:10]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:42:10]line СНО: Общий режим [02:42:10]line Чек 9 27.10.2024 02:42 [02:42:10]line Смена: 513 ФФД: 1.0 [02:42:10]line ЗНМ: 0300000089 [02:42:10]line РНМ: 0000000000091691 [02:42:10]line Версия ККМ: 001 [02:42:10]line ФМ: 0000000000871795 [02:42:10]line ФД: 75223 [02:42:10]line ФПД: 153764977184146 [02:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024216&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75223&fm=153764977184146&tin=02508201610067®Number=0000000000091691&sum=50000 [02:42:10]OFD Sender: Processing packet 75223 [packets to send 13, broken 12] [02:42:10]ProducePacketName [02:42:10]name=ofd_packets/00075223 [02:42:10]OFD Sender: To server: pG, [02:42:10]CommunicateWithHost lk.salyk.kg:30040 [02:42:10]ConnectInit lk.salyk.kg [02:42:10]written 0, free lines is 4095 [02:42:10]Connected sock=10 [02:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 AB 78 06 01 95 CA 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 39 30 30 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 09 00 00 00 F4 03 04 00 88 A8 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 25 01 00 35 04 06 00 8B D9 32 D8 0D 92 88 C5 73 1E A5 C0 B1 25 [02:42:10]Write to MH i2c: 01 00 00 A0 52 F2 [02:42:10]Write i2c OK [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 07 00 [02:42:10]MH_I2C_Read... [02:42:10]Read from MH i2c: 01 07 00 A0 52 00 00 00 00 00 9B 0C A0 [02:42:10]RasterBufferAndPrint [02:42:10]line [02:42:10]line [02:42:10]line [02:42:10]line [02:42:10]line [02:42:10]written 0, free lines is 3234 [02:42:11]MH_Cut [02:42:11]Write to MH i2c: D1 01 00 A7 52 01 CB [02:42:11]Write i2c OK [02:42:11]MH_I2C_Read... [02:42:11]Read from MH i2c: D1 [02:42:11]MH_I2C_Read... [02:42:11]Read from MH i2c: D1 01 00 [02:42:11]MH_I2C_Read... [02:42:11]Read from MH i2c: D1 01 00 A7 52 00 CA [02:42:11]Write to MH i2c: 01 00 00 A8 52 FA [02:42:11]Write i2c OK [02:42:11]MH_I2C_Read... [02:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 34 43 47 00 BD DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D7 25 01 00 F4 03 04 00 02 50 1D 67 B6 04 01 00 00 04 0E 3C DB 6D 3E 76 43 [02:42:11]CommunicateWithHost err = 0 [02:42:11]CheckOFDResponse [02:42:11]1017 (14) - 77093643461234 [02:42:11]1041 (16) - 0000000000871795 [02:42:11]1040 (4) - 75223 [02:42:11]1012 (4) - 26.10.2024 20:24 [02:42:11]1206 (1) - 0 [02:42:11]OFD Sender: Remove packet 75223 [02:42:11]ProducePacketName [02:42:11]name=ofd_packets/00075223 [02:42:11]NVStorageDeleteData [02:42:11]OFD Sender: No OFD packet to send [02:42:11]*** Cut start [02:42:11]*** Partial cut [02:42:11]*** CUTSNS_PIN = 1 [02:42:11]*** CUTSNS_PIN = 0 [02:42:12]*** Brake cut motor [02:42:12]Read from MH i2c: 01 [02:42:12]MH_I2C_Read... [02:42:12]*** Stop cut motor [02:42:12]*** Cut end [02:42:12]Read from MH i2c: 01 07 00 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: 01 07 00 A8 52 00 00 00 00 00 FF 0F 0F [02:42:12]process_action close_receipt done [02:42:12]requested_data is exist [02:42:12]produce_requested_data [02:42:12]requested_item fm.sn is exist - process it [02:42:12]wFMCommunicate request_size=4 [02:42:12]MH_SAM_APDU [02:42:12]CAPDU: 80 11 00 00 [02:42:12]Write to MH i2c: E2 08 00 A9 52 80 11 00 00 00 00 00 00 75 [02:42:12]Write i2c OK [02:42:12]MH_I2C_Read... [02:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:12]Read from MH i2c: E2 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 17 00 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 17 00 A9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 CD [02:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:42:12]wFMCommunicate OK [02:42:12]requested_item fd.num is exist - process it [02:42:12]SAM_PROTO_GetFieldsCounters [02:42:12]wFMCommunicate request_size=4 [02:42:12]MH_SAM_APDU [02:42:12]CAPDU: 80 13 00 00 [02:42:12]Write to MH i2c: E2 08 00 AA 52 80 13 00 00 00 00 00 00 78 [02:42:12]Write i2c OK [02:42:12]MH_I2C_Read... [02:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:12]Read from MH i2c: E2 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 62 00 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 62 00 AA 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D7 25 01 00 0E 04 04 00 01 02 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 BA [02:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D7 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:12]wFMCommunicate OK [02:42:12]SAM_PROTO_GetFieldsCounters done [02:42:12]requested_item shift.num is exist - process it [02:42:12]requested_item shift.opened is exist - process it [02:42:12]req_shift_opened [02:42:12]FM_GetShiftState [02:42:12]SAM_PROTO_GetShiftState [02:42:12]wFMCommunicate request_size=4 [02:42:12]MH_SAM_APDU [02:42:12]CAPDU: 80 13 01 00 [02:42:12]Write to MH i2c: E2 08 00 AB 52 80 13 01 00 00 00 00 00 7A [02:42:12]Write i2c OK [02:42:12]MH_I2C_Read... [02:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:12]Read from MH i2c: E2 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 0E 00 [02:42:12]MH_I2C_Read... [02:42:12]Read from MH i2c: E2 0E 00 AB 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 E0 [02:42:12]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:42:12]wFMCommunicate OK [02:42:12]SAM_PROTO_GetShiftState done [02:42:12]FM_GetShiftState done [02:42:12]req_shift_opened done [02:42:12]requested_item shift.open_date is exist - process it [02:42:12]req_shift_open_date [02:42:12]req_shift_open_date done [02:42:12]produce_requested_data done [02:42:12]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75223,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [02:42:12]process_action_free close_receipt [02:42:12]json_value_free [02:42:12]json_value_free done [02:42:12]process_json_proto returns [02:42:12]Send response to host [02:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75223,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [02:42:12]free response buf [02:42:12]execute_script done [02:42:12]execute_script returns [02:42:12]free content buf [02:42:12]Sock 8.Close socket [02:42:12]Sock 8.Thread stoped [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:10]accept exits with 9 [02:44:10]New connection [02:44:10]New thread 3066781028 created [02:44:10]Thread 3066924388 joined [02:44:10]Waiting for new connection... [02:44:10] Sock 9.Parse request [02:44:10]Sock 9.Check first char [02:44:10]Sock 9.First char is OK [02:44:10]request: POST /json_proto HTTP/1.0 [02:44:10]Method: POST [02:44:10]URL: /json_proto [02:44:10]Method is POST - this is cgi request [02:44:10]url: /json_proto [02:44:10]query_string will be loaded in cgi processing [02:44:10]execute_cgi json_proto POST (null) [02:44:10]execute_cgi path=json_proto method=POST [02:44:10]POST find Content-Length [02:44:10]Host: 172.17.39.131:8080 [02:44:10]Content-Length: 681 [02:44:10]Content-Type: application/json [02:44:10] [02:44:10]POST finish read [02:44:10]Found Content-Length = 681 [02:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.900, "sum" : 618.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 618.00, "payments": [ { "type": 0, "sum" : 618.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:10]execute_script... [02:44: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)191202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.900, "sum" : 618.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 618.00, "payments": [ { "type": 0, "sum" : 618.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:10]POST & json_proto [02:44:10]process_json_proto [02:44:10]json parsed OK: [02:44:10]protocol is kg_v1.0 [02:44:10]action value=close_receipt [02:44:10]process_action close_receipt [02:44:10]cmd_close_receipt [02:44:10]MH_GetDate [02:44:10]Write to MH i2c: F0 00 00 AC 52 ED [02:44:10]Write i2c OK [02:44:10]MH_I2C_Read... [02:44:10]Read from MH i2c: F0 [02:44:10]MH_I2C_Read... [02:44:10]Read from MH i2c: F0 09 00 [02:44:10]MH_I2C_Read... [02:44:10]Read from MH i2c: F0 09 00 AC 52 00 02 A9 1D 67 86 57 24 65 8B [02:44:10]GetLastDocTimeStamp 1729996936 [02:44:10]current date 1729997058 [02:44:10]FM_GetShiftState [02:44:10]SAM_PROTO_GetShiftState [02:44:10]wFMCommunicate request_size=4 [02:44:10]MH_SAM_APDU [02:44:10]CAPDU: 80 13 01 00 [02:44:10]Write to MH i2c: E2 08 00 AD 52 80 13 01 00 00 00 00 00 7C [02:44:10]Write i2c OK [02:44:10]MH_I2C_Read... [02:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:10]Read from MH i2c: E2 [02:44:10]MH_I2C_Read... [02:44:10]Read from MH i2c: E2 0E 00 [02:44:10]MH_I2C_Read... [02:44:10]Read from MH i2c: E2 0E 00 AD 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 E2 [02:44:10]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:44:10]wFMCommunicate OK [02:44:10]SAM_PROTO_GetShiftState done [02:44:10]FM_GetShiftState done [02:44:10]opened in 1729989706 [02:44:10]opened+sec_in_day 1730076106 [02:44:10]quantity*price = 61851 [02:44:10]sum+1 = 61852 [02:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 618.00 Внесено: 700.00 СДАЧА: 82.00 НСП 1% : 5.47 НДС 12% : 65.68 Наличными: 618.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 10 27.10.2024 02:44 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75224 ФПД: 175216037055447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024418&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75224&fm=175216037055447&tin=02508201610067®Number=0000000000091691&sum=61800 [02:44:11]StoreToDocumentArchive [02:44:11]shift 513 fd 75224 [02:44:11]save to /storage/0513/doc_00075224 [02:44:11]save last doc name /storage/0513/doc_00075224 to /storage/kkm_last_doc_name [02:44:11]save OK [02:44:11]Clear old archive folders... [02:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:44:11]tlvbuf is B6ED3AD0 [02:44:11]SAM_PROTO_ClearQueue [02:44:11]wFMCommunicate request_size=4 [02:44:11]MH_SAM_APDU [02:44:11]CAPDU: 80 09 00 00 [02:44:11]Write to MH i2c: E2 08 00 BA 52 80 09 00 00 00 00 00 00 7E [02:44:11]Write i2c OK [02:44:11]MH_I2C_Read... [02:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:11]Read from MH i2c: E2 [02:44:11]MH_I2C_Read... [02:44:11]Read from MH i2c: E2 03 00 [02:44:11]MH_I2C_Read... [02:44:11]Read from MH i2c: E2 03 00 BA 52 00 90 00 80 [02:44:11]RAPDU: 90 00 [02:44:11]wFMCommunicate OK [02:44:11]SAM_PROTO_ClearQueue done [02:44:11]KKMCreateOFDPacket [02:44:11]OFDProtocolAddRootSTLVToBuf [02:44:11]FM_MakeSignedData [02:44:11]FM_MakeSignedData [02:44:11]SAM_PROTO_SignData [02:44:11]wFMCommunicate request_size=4 [02:44:11]MH_SAM_APDU [02:44:11]CAPDU: 80 0D 01 02 [02:44:11]Write to MH i2c: E2 08 00 BB 52 80 0D 01 02 00 00 00 00 86 [02:44:11]Write i2c OK [02:44:11]MH_I2C_Read... [02:44:11]Read from MH i2c: E2 [02:44:11]MH_I2C_Read... [02:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:11]Read from MH i2c: E2 03 00 [02:44:11]MH_I2C_Read... [02:44:11]Read from MH i2c: E2 03 00 BB 52 00 90 00 81 [02:44:11]RAPDU: 90 00 [02:44:11]wFMCommunicate OK [02:44:11]wFMCommunicate request_size=255 [02:44:11]MH_SAM_APDU [02:44:11]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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9B F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 19 00 00 00 00 07 04 06 00 68 F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 02 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 25 01 00 35 04 06 00 9F 5B [02:44:11]Write to MH i2c: E2 02 01 BC 52 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9B F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 19 00 00 00 00 07 04 06 00 68 F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 02 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 25 01 00 35 04 06 00 9F 5B 00 00 2E [02:44:11]Write i2c OK [02:44:11]MH_I2C_Read... [02:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:12]Read from MH i2c: E2 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 03 00 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 03 00 BC 52 00 90 00 82 [02:44:12]RAPDU: 90 00 [02:44:12]wFMCommunicate OK [02:44:12]wFMCommunicate request_size=9 [02:44:12]MH_SAM_APDU [02:44:12]CAPDU: 80 0D 02 02 04 A9 A5 CB D7 [02:44:12]Write to MH i2c: E2 0C 00 BD 52 80 0D 02 02 04 00 A9 A5 CB D7 00 00 81 [02:44:12]Write i2c OK [02:44:12]MH_I2C_Read... [02:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:12]Read from MH i2c: E2 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 03 00 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 03 00 BD 52 00 90 00 83 [02:44:12]RAPDU: 90 00 [02:44:12]wFMCommunicate OK [02:44:12]wFMCommunicate request_size=4 [02:44:12]MH_SAM_APDU [02:44:12]CAPDU: 80 0D 03 02 [02:44:12]Write to MH i2c: E2 08 00 BE 52 80 0D 03 02 00 00 00 00 8B [02:44:12]Write i2c OK [02:44:12]MH_I2C_Read... [02:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:12]Read from MH i2c: E2 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 0B 00 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 0B 00 BE 52 00 1A FF 4A E1 AD 39 B5 60 90 00 CB [02:44:12]RAPDU: 1A FF 4A E1 AD 39 B5 60 90 00 [02:44:12]wFMCommunicate OK [02:44:12]SAM_PROTO_SignData done [02:44:12]FM_MakeSignedData done [02:44:12]CreateOFDProtocolMessage [02:44:12]wFMCommunicate request_size=4 [02:44:12]MH_SAM_APDU [02:44:12]CAPDU: 80 11 00 00 [02:44:12]Write to MH i2c: E2 08 00 BF 52 80 11 00 00 00 00 00 00 8B [02:44:12]Write i2c OK [02:44:12]MH_I2C_Read... [02:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:12]Read from MH i2c: E2 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 17 00 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: E2 17 00 BF 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 E3 [02:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:44:12]wFMCommunicate OK [02:44:12]CreateOFDProtocolMessage done [02:44:12]OFDSenderStorePacket 75224 [02:44:12]StoreOFDPacket docnum=75224 [02:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 E7 FE 06 01 9F 42 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9B F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 19 00 00 00 00 07 04 06 00 68 F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 02 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 25 01 00 35 04 06 00 9F 5B A9 A5 CB D7 1A FF 4A E1 AD 39 B5 60 [02:44:12]CheckFolder [02:44:12]dirname=/storage/ofd_packets [02:44:12]CheckFolder done [02:44:12]ProducePacketName [02:44:12]name=ofd_packets/00075224 [02:44:12]NVStorageSaveData ofd_packets/00075224 [02:44:12]File name is /storage/ofd_packets/00075224 [02:44:12]Write 300 bytes [02:44:12]NVStorageSaveData done [02:44:12]OFDSenderStorePacket done [02:44:12]KKMCreateOFDPacket done [02:44:12]NVStorageSaveData kkm_last_timestamp [02:44:12]File name is /storage/kkm_last_timestamp [02:44:12]Write 4 bytes [02:44:12]NVStorageSaveData done [02:44:12]ExternCall_PrintAddStr [02:44:12]wPrintStart [02:44:12]Write to MH i2c: 01 00 00 C0 52 12 [02:44:12]Write i2c OK [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: 01 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: 01 07 00 [02:44:12]MH_I2C_Read... [02:44:12]Read from MH i2c: 01 07 00 C0 52 00 00 00 00 00 FF 0F 27 [02:44:12]RasterBufferAndPrint [02:44:12]line Счет N : (1)191202 [02:44:12]line ИНН: 02508201610067 [02:44:12]line Контрольно-Кассовый Чек [02:44:12]line ПРОДАЖА [02:44:12]line ТРК (МРК, ГНК) : 51 [02:44:12]line Товар: 2711190000 [02:44:12]line ГАЗ-К-3 [02:44:12]line 15.900 * 38.90 [02:44:12]line = 618.51 [02:44:12]line НДС 12% НСП 1% [02:44:12]line > о реализуемом товаре [02:44:12]line ОКРУГЛЕНИЕ: -0.51 [02:44:12]line ИТОГО: 618.00 [02:44:12]line Внесено: 700.00 [02:44:12]line СДАЧА: 82.00 [02:44:12]line НСП 1% : 5.47 [02:44:12]line НДС 12% : 65.68 [02:44:12]line Наличными: 618.00 [02:44:12]line Безнал.: 0.00 [02:44:12]line Место: АЗС № 142 "Партнер Нефть" [02:44:12]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:44:12]line СНО: Общий режим [02:44:12]line Чек 10 27.10.2024 02:44 [02:44:12]line Смена: 513 ФФД: 1.0 [02:44:12]line ЗНМ: 0300000089 [02:44:12]line РНМ: 0000000000091691 [02:44:12]line Версия ККМ: 001 [02:44:12]line ФМ: 0000000000871795 [02:44:12]line ФД: 75224 [02:44:12]line ФПД: 175216037055447 [02:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024418&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75224&fm=175216037055447&tin=02508201610067®Number=0000000000091691&sum=61800 [02:44:12]OFD Sender: Processing packet 75224 [packets to send 13, broken 12] [02:44:12]ProducePacketName [02:44:12]name=ofd_packets/00075224 [02:44:12]OFD Sender: To server: pG, [02:44:12]CommunicateWithHost lk.salyk.kg:30040 [02:44:12]ConnectInit lk.salyk.kg [02:44:12]written 0, free lines is 4095 [02:44:12]Connected sock=10 [02:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 E7 FE 06 01 9F 42 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9B F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 19 00 00 00 00 07 04 06 00 68 F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 02 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D8 25 01 00 35 04 06 00 9F 5B A9 A5 CB D7 1A FF 4A E1 AD 39 B5 60 [02:44:13]Write to MH i2c: 01 00 00 EB 52 3D [02:44:13]Write i2c OK [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: 01 [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: 01 07 00 [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: 01 07 00 EB 52 00 00 00 00 00 9A 0C EA [02:44:13]RasterBufferAndPrint [02:44:13]line [02:44:13]line [02:44:13]line [02:44:13]line [02:44:13]line [02:44:13]written 0, free lines is 3230 [02:44:13]MH_Cut [02:44:13]Write to MH i2c: D1 01 00 F2 52 01 16 [02:44:13]Write i2c OK [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: D1 [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: D1 01 00 [02:44:13]MH_I2C_Read... [02:44:13]Read from MH i2c: D1 01 00 F2 52 00 15 [02:44:13]Write to MH i2c: 01 00 00 F3 52 45 [02:44:13]Write i2c OK [02:44:13]MH_I2C_Read... [02:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 4E 3F 47 00 EA 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 38 37 31 37 39 35 10 04 04 00 D8 25 01 00 F4 03 04 00 7D 50 1D 67 B6 04 01 00 00 95 2E 36 C3 8E C6 26 B2 [02:44:13]CommunicateWithHost err = 0 [02:44:13]CheckOFDResponse [02:44:13]1017 (14) - 77093643461234 [02:44:13]1041 (16) - 0000000000871795 [02:44:13]1040 (4) - 75224 [02:44:13]1012 (4) - 26.10.2024 20:26 [02:44:13]1206 (1) - 0 [02:44:13]OFD Sender: Remove packet 75224 [02:44:13]ProducePacketName [02:44:13]name=ofd_packets/00075224 [02:44:13]NVStorageDeleteData [02:44:13]OFD Sender: No OFD packet to send [02:44:14]*** Cut start [02:44:14]*** Partial cut [02:44:14]*** CUTSNS_PIN = 1 [02:44:14]*** CUTSNS_PIN = 0 [02:44:14]*** Brake cut motor [02:44:14]Read from MH i2c: 01 [02:44:14]MH_I2C_Read... [02:44:14]*** Stop cut motor [02:44:14]*** Cut end [02:44:14]Read from MH i2c: 01 07 00 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: 01 07 00 F3 52 00 00 00 00 00 FF 0F 5A [02:44:14]process_action close_receipt done [02:44:14]requested_data is exist [02:44:14]produce_requested_data [02:44:14]requested_item fm.sn is exist - process it [02:44:14]wFMCommunicate request_size=4 [02:44:14]MH_SAM_APDU [02:44:14]CAPDU: 80 11 00 00 [02:44:14]Write to MH i2c: E2 08 00 F4 52 80 11 00 00 00 00 00 00 C0 [02:44:14]Write i2c OK [02:44:14]MH_I2C_Read... [02:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:14]Read from MH i2c: E2 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 17 00 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 17 00 F4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 18 [02:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:44:14]wFMCommunicate OK [02:44:14]requested_item fd.num is exist - process it [02:44:14]SAM_PROTO_GetFieldsCounters [02:44:14]wFMCommunicate request_size=4 [02:44:14]MH_SAM_APDU [02:44:14]CAPDU: 80 13 00 00 [02:44:14]Write to MH i2c: E2 08 00 F5 52 80 13 00 00 00 00 00 00 C3 [02:44:14]Write i2c OK [02:44:14]MH_I2C_Read... [02:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:14]Read from MH i2c: E2 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 62 00 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 62 00 F5 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D8 25 01 00 0E 04 04 00 01 02 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 09 [02:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D8 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:44:14]wFMCommunicate OK [02:44:14]SAM_PROTO_GetFieldsCounters done [02:44:14]requested_item shift.num is exist - process it [02:44:14]requested_item shift.opened is exist - process it [02:44:14]req_shift_opened [02:44:14]FM_GetShiftState [02:44:14]SAM_PROTO_GetShiftState [02:44:14]wFMCommunicate request_size=4 [02:44:14]MH_SAM_APDU [02:44:14]CAPDU: 80 13 01 00 [02:44:14]Write to MH i2c: E2 08 00 F6 52 80 13 01 00 00 00 00 00 C5 [02:44:14]Write i2c OK [02:44:14]MH_I2C_Read... [02:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:14]Read from MH i2c: E2 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 0E 00 [02:44:14]MH_I2C_Read... [02:44:14]Read from MH i2c: E2 0E 00 F6 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 2B [02:44:14]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:44:14]wFMCommunicate OK [02:44:14]SAM_PROTO_GetShiftState done [02:44:14]FM_GetShiftState done [02:44:14]req_shift_opened done [02:44:14]requested_item shift.open_date is exist - process it [02:44:14]req_shift_open_date [02:44:14]req_shift_open_date done [02:44:14]produce_requested_data done [02:44:14]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75224,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [02:44:14]process_action_free close_receipt [02:44:14]json_value_free [02:44:14]json_value_free done [02:44:14]process_json_proto returns [02:44:14]Send response to host [02:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75224,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [02:44:14]free response buf [02:44:14]execute_script done [02:44:14]execute_script returns [02:44:14]free content buf [02:44:14]Sock 9.Close socket [02:44:14]Sock 9.Thread stoped [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]accept exits with 8 [02:45:18]New connection [02:45:18]New thread 3066924388 created [02:45:18]Thread 3066781028 joined [02:45:18]Waiting for new connection... [02:45:18] Sock 8.Parse request [02:45:18]Sock 8.Check first char [02:45:18]Sock 8.First char is OK [02:45:18]request: POST /json_proto HTTP/1.0 [02:45:18]Method: POST [02:45:18]URL: /json_proto [02:45:18]Method is POST - this is cgi request [02:45:18]url: /json_proto [02:45:18]query_string will be loaded in cgi processing [02:45:18]execute_cgi json_proto POST (null) [02:45:18]execute_cgi path=json_proto method=POST [02:45:18]POST find Content-Length [02:45:18]Host: 172.17.39.131:8080 [02:45:18]Content-Length: 676 [02:45:18]Content-Type: application/json [02:45:18] [02:45:18]POST finish read [02:45:18]Found Content-Length = 676 [02:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.110, "sum" : 82.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 82.00, "total" : 82.00, "payments": [ { "type": 0, "sum" : 82.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:45:18]execute_script... [02: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)191203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.110, "sum" : 82.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 82.00, "total" : 82.00, "payments": [ { "type": 0, "sum" : 82.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:45:18]POST & json_proto [02:45:18]process_json_proto [02:45:18]json parsed OK: [02:45:18]protocol is kg_v1.0 [02:45:18]action value=close_receipt [02:45:18]process_action close_receipt [02:45:18]cmd_close_receipt [02:45:18]MH_GetDate [02:45:18]Write to MH i2c: F0 00 00 F7 52 38 [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: F0 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: F0 09 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: F0 09 00 F7 52 00 46 A9 1D 67 86 57 24 65 1A [02:45:18]GetLastDocTimeStamp 1729997058 [02:45:18]current date 1729997126 [02:45:18]FM_GetShiftState [02:45:18]SAM_PROTO_GetShiftState [02:45:18]wFMCommunicate request_size=4 [02:45:18]MH_SAM_APDU [02:45:18]CAPDU: 80 13 01 00 [02:45:18]Write to MH i2c: E2 08 00 F8 52 80 13 01 00 00 00 00 00 C7 [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:18]Read from MH i2c: E2 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: E2 0E 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: E2 0E 00 F8 52 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 2D [02:45:18]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:45:18]wFMCommunicate OK [02:45:18]SAM_PROTO_GetShiftState done [02:45:18]FM_GetShiftState done [02:45:18]opened in 1729989706 [02:45:18]opened+sec_in_day 1730076106 [02:45:18]quantity*price = 8207 [02:45:18]sum+1 = 8209 [02:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 82.00 Внесено: 82.00 СДАЧА: 0.00 НСП 1% : 0.73 НДС 12% : 8.72 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 142 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 СНО: Общий режим Чек 11 27.10.2024 02:45 Смена: 513 ФФД: 1.0 ЗНМ: 0300000089 РНМ: 0000000000091691 Версия ККМ: 001 ФМ: 0000000000871795 ФД: 75225 ФПД: 267138078800561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024526&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75225&fm=267138078800561&tin=02508201610067®Number=0000000000091691&sum=8200 [02:45:19]StoreToDocumentArchive [02:45:19]shift 513 fd 75225 [02:45:19]save to /storage/0513/doc_00075225 [02:45:19]save last doc name /storage/0513/doc_00075225 to /storage/kkm_last_doc_name [02:45:19]save OK [02:45:19]Clear old archive folders... [02:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:45:19]tlvbuf is 00868EB0 [02:45:19]SAM_PROTO_ClearQueue [02:45:19]wFMCommunicate request_size=4 [02:45:19]MH_SAM_APDU [02:45:19]CAPDU: 80 09 00 00 [02:45:19]Write to MH i2c: E2 08 00 05 53 80 09 00 00 00 00 00 00 CA [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:45:19]Read from MH i2c: E2 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 03 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 03 00 05 53 00 90 00 CC [02:45:19]RAPDU: 90 00 [02:45:19]wFMCommunicate OK [02:45:19]SAM_PROTO_ClearQueue done [02:45:19]KKMCreateOFDPacket [02:45:19]OFDProtocolAddRootSTLVToBuf [02:45:19]FM_MakeSignedData [02:45:19]FM_MakeSignedData [02:45:19]SAM_PROTO_SignData [02:45:19]wFMCommunicate request_size=4 [02:45:19]MH_SAM_APDU [02:45:19]CAPDU: 80 0D 01 02 [02:45:19]Write to MH i2c: E2 08 00 06 53 80 0D 01 02 00 00 00 00 D2 [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:45:19]Read from MH i2c: E2 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 03 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 03 00 06 53 00 90 00 CD [02:45:19]RAPDU: 90 00 [02:45:19]wFMCommunicate OK [02:45:19]wFMCommunicate request_size=255 [02:45:19]MH_SAM_APDU [02:45: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 46 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 25 01 00 35 04 06 00 F2 F5 [02:45:19]Write to MH i2c: E2 02 01 07 53 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 46 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 25 01 00 35 04 06 00 F2 F5 00 00 A9 [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 03 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 03 00 07 53 00 90 00 CE [02:45:20]RAPDU: 90 00 [02:45:20]wFMCommunicate OK [02:45:20]wFMCommunicate request_size=9 [02:45:20]MH_SAM_APDU [02:45:20]CAPDU: 80 0D 02 02 04 EE 4A FA B1 [02:45:20]Write to MH i2c: E2 0C 00 08 53 80 0D 02 02 04 00 EE 4A FA B1 00 00 C0 [02:45:20]Write i2c OK [02:45:20]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 03 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 03 00 08 53 00 90 00 CF [02:45:20]RAPDU: 90 00 [02:45:20]wFMCommunicate OK [02:45:20]wFMCommunicate request_size=4 [02:45:20]MH_SAM_APDU [02:45:20]CAPDU: 80 0D 03 02 [02:45:20]Write to MH i2c: E2 08 00 09 53 80 0D 03 02 00 00 00 00 D7 [02:45:20]Write i2c OK [02:45:20]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 0B 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 0B 00 09 53 00 23 9C 67 C9 F7 87 05 C6 90 00 10 [02:45:20]RAPDU: 23 9C 67 C9 F7 87 05 C6 90 00 [02:45:20]wFMCommunicate OK [02:45:20]SAM_PROTO_SignData done [02:45:20]FM_MakeSignedData done [02:45:20]CreateOFDProtocolMessage [02:45:20]wFMCommunicate request_size=4 [02:45:20]MH_SAM_APDU [02:45:20]CAPDU: 80 11 00 00 [02:45:20]Write to MH i2c: E2 08 00 0A 53 80 11 00 00 00 00 00 00 D7 [02:45:20]Write i2c OK [02:45:20]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 17 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 17 00 0A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 2F [02:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:45:20]wFMCommunicate OK [02:45:20]CreateOFDProtocolMessage done [02:45:20]OFDSenderStorePacket 75225 [02:45:20]StoreOFDPacket docnum=75225 [02:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 43 63 06 01 CB 06 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 46 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 25 01 00 35 04 06 00 F2 F5 EE 4A FA B1 23 9C 67 C9 F7 87 05 C6 [02:45:20]CheckFolder [02:45:20]dirname=/storage/ofd_packets [02:45:20]CheckFolder done [02:45:20]ProducePacketName [02:45:20]name=ofd_packets/00075225 [02:45:20]NVStorageSaveData ofd_packets/00075225 [02:45:20]File name is /storage/ofd_packets/00075225 [02:45:20]Write 300 bytes [02:45:20]NVStorageSaveData done [02:45:20]OFDSenderStorePacket done [02:45:20]KKMCreateOFDPacket done [02:45:20]NVStorageSaveData kkm_last_timestamp [02:45:20]File name is /storage/kkm_last_timestamp [02:45:20]Write 4 bytes [02:45:20]NVStorageSaveData done [02:45:20]ExternCall_PrintAddStr [02:45:20]wPrintStart [02:45:20]Write to MH i2c: 01 00 00 0B 53 5E [02:45:20]Write i2c OK [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: 01 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: 01 07 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: 01 07 00 0B 53 00 00 00 00 00 FF 0F 73 [02:45:20]RasterBufferAndPrint [02:45:20]line Счет N : (1)191203 [02:45:20]line ИНН: 02508201610067 [02:45:20]line Контрольно-Кассовый Чек [02:45:20]line ПРОДАЖА [02:45:20]line ТРК (МРК, ГНК) : 51 [02:45:20]line Товар: 2711190000 [02:45:20]line ГАЗ-К-3 [02:45:20]line 2.110 * 38.90 [02:45:20]line = 82.08 [02:45:20]line НДС 12% НСП 1% [02:45:20]line > о реализуемом товаре [02:45:20]line ОКРУГЛЕНИЕ: -0.08 [02:45:20]line ИТОГО: 82.00 [02:45:20]line Внесено: 82.00 [02:45:20]line СДАЧА: 0.00 [02:45:20]line НСП 1% : 0.73 [02:45:20]line НДС 12% : 8.72 [02:45:20]line Наличными: 82.00 [02:45:20]line Безнал.: 0.00 [02:45:20]line Место: АЗС № 142 "Партнер Нефть" [02:45:20]line Адрес: 720001, г. Таш-Кумыр, с. Кызыл Алма, 41.289529, 72.207326 [02:45:20]line СНО: Общий режим [02:45:20]line Чек 11 27.10.2024 02:45 [02:45:20]line Смена: 513 ФФД: 1.0 [02:45:20]line ЗНМ: 0300000089 [02:45:20]line РНМ: 0000000000091691 [02:45:20]line Версия ККМ: 001 [02:45:20]line ФМ: 0000000000871795 [02:45:20]line ФД: 75225 [02:45:20]line ФПД: 267138078800561 [02:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T024526&type=1&operation_type=1&fn_number=0000000000871795&fd_number=75225&fm=267138078800561&tin=02508201610067®Number=0000000000091691&sum=8200 [02:45:20]written 0, free lines is 4095 [02:45:20]OFD Sender: Processing packet 75225 [packets to send 13, broken 12] [02:45:20]ProducePacketName [02:45:20]name=ofd_packets/00075225 [02:45:20]OFD Sender: To server: pG, [02:45:20]CommunicateWithHost lk.salyk.kg:30040 [02:45:20]ConnectInit lk.salyk.kg [02:45:20]Connected sock=10 [02:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0E 01 00 00 43 63 06 01 CB 06 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 46 A9 1D 67 0E 04 04 00 01 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 10 04 04 00 D9 25 01 00 35 04 06 00 F2 F5 EE 4A FA B1 23 9C 67 C9 F7 87 05 C6 [02:45:21]Write to MH i2c: 01 00 00 36 53 89 [02:45:21]Write i2c OK [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: 01 [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: 01 07 00 [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: 01 07 00 36 53 00 00 00 00 00 91 0C 2D [02:45:21]RasterBufferAndPrint [02:45:21]line [02:45:21]line [02:45:21]line [02:45:21]line [02:45:21]line [02:45:21]written 0, free lines is 3223 [02:45:21]MH_Cut [02:45:21]Write to MH i2c: D1 01 00 3D 53 01 62 [02:45:21]Write i2c OK [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: D1 [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: D1 01 00 [02:45:21]MH_I2C_Read... [02:45:21]Read from MH i2c: D1 01 00 3D 53 00 61 [02:45:21]Write to MH i2c: 01 00 00 3E 53 91 [02:45:21]Write i2c OK [02:45:21]MH_I2C_Read... [02:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 4F 00 00 00 10 A1 47 00 E7 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 38 37 31 37 39 35 10 04 04 00 D9 25 01 00 F4 03 04 00 C0 50 1D 67 B6 04 01 00 00 CB AC BC 36 AD AE 6E 22 [02:45:21]CommunicateWithHost err = 0 [02:45:21]CheckOFDResponse [02:45:21]1017 (14) - 77093643461234 [02:45:21]1041 (16) - 0000000000871795 [02:45:21]1040 (4) - 75225 [02:45:21]1012 (4) - 26.10.2024 20:27 [02:45:21]1206 (1) - 0 [02:45:21]OFD Sender: Remove packet 75225 [02:45:21]ProducePacketName [02:45:21]name=ofd_packets/00075225 [02:45:21]NVStorageDeleteData [02:45:21]OFD Sender: No OFD packet to send [02:45:21]*** Cut start [02:45:21]*** Partial cut [02:45:21]*** CUTSNS_PIN = 1 [02:45:21]*** CUTSNS_PIN = 0 [02:45:22]*** Brake cut motor [02:45:22]Read from MH i2c: 01 [02:45:22]MH_I2C_Read... [02:45:22]*** Stop cut motor [02:45:22]*** Cut end [02:45:22]Read from MH i2c: 01 07 00 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: 01 07 00 3E 53 00 00 00 00 00 FF 0F A6 [02:45:22]process_action close_receipt done [02:45:22]requested_data is exist [02:45:22]produce_requested_data [02:45:22]requested_item fm.sn is exist - process it [02:45:22]wFMCommunicate request_size=4 [02:45:22]MH_SAM_APDU [02:45:22]CAPDU: 80 11 00 00 [02:45:22]Write to MH i2c: E2 08 00 3F 53 80 11 00 00 00 00 00 00 0C [02:45:22]Write i2c OK [02:45:22]MH_I2C_Read... [02:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:22]Read from MH i2c: E2 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 17 00 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 17 00 3F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 64 [02:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 90 00 [02:45:22]wFMCommunicate OK [02:45:22]requested_item fd.num is exist - process it [02:45:22]SAM_PROTO_GetFieldsCounters [02:45:22]wFMCommunicate request_size=4 [02:45:22]MH_SAM_APDU [02:45:22]CAPDU: 80 13 00 00 [02:45:22]Write to MH i2c: E2 08 00 40 53 80 13 00 00 00 00 00 00 0F [02:45:22]Write i2c OK [02:45:22]MH_I2C_Read... [02:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:45:22]Read from MH i2c: E2 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 62 00 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 62 00 40 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D9 25 01 00 0E 04 04 00 01 02 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 59 [02:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 31 10 04 04 00 D9 25 01 00 0E 04 04 00 01 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:45:22]wFMCommunicate OK [02:45:22]SAM_PROTO_GetFieldsCounters done [02:45:22]requested_item shift.num is exist - process it [02:45:22]requested_item shift.opened is exist - process it [02:45:22]req_shift_opened [02:45:22]FM_GetShiftState [02:45:22]SAM_PROTO_GetShiftState [02:45:22]wFMCommunicate request_size=4 [02:45:22]MH_SAM_APDU [02:45:22]CAPDU: 80 13 01 00 [02:45:22]Write to MH i2c: E2 08 00 41 53 80 13 01 00 00 00 00 00 11 [02:45:22]Write i2c OK [02:45:22]MH_I2C_Read... [02:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:22]Read from MH i2c: E2 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 0E 00 [02:45:22]MH_I2C_Read... [02:45:22]Read from MH i2c: E2 0E 00 41 53 00 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 77 [02:45:22]RAPDU: 09 00 01 4A 8C 1D 67 00 00 00 00 90 00 [02:45:22]wFMCommunicate OK [02:45:22]SAM_PROTO_GetShiftState done [02:45:22]FM_GetShiftState done [02:45:22]req_shift_opened done [02:45:22]requested_item shift.open_date is exist - process it [02:45:22]req_shift_open_date [02:45:22]req_shift_open_date done [02:45:22]produce_requested_data done [02:45:22]produce_requested_data return {"fm.sn":"0000000000871795","fd.num":75225,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706} [02:45:22]process_action_free close_receipt [02:45:22]json_value_free [02:45:22]json_value_free done [02:45:22]process_json_proto returns [02:45:22]Send response to host [02:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871795","fd.num":75225,"shift.num":513,"shift.opened":1,"shift.open_date":1729989706}}} [02:45:22]free response buf [02:45:22]execute_script done [02:45:22]execute_script returns [02:45:22]free content buf [02:45:22]Sock 8.Close socket [02:45:22]Sock 8.Thread stoped [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:34]recv_with_timeout no data received [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send